//
// sub_CB088C from 0xcb088c to 0xcb08e8 (92 bytes)
//
// 5 xrefs:
// > sub_CA0328 @ 0xca0750
// > sub_CA0328 @ 0xca10d0
// > sub_CA1168 @ 0xca1840
// > sub_CA1168 @ 0xca1a78
// > WebPEncode @ 0xcb5d60
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_CB088C(__int64 a1)
{
int v2; // w20
__int64 result; // x0
__int64 v4; // x19
__int64 v5; // x0
sub_CB7468(a1 + 64);
v2 = 0;
result = *(unsigned int *)(a1 + 60);
v4 = a1 + 112;
if ( (int)result > 0 )
{
do
{
v5 = v4;
++v2;
v4 += 48;
sub_CB7468(v5);
result = *(unsigned int *)(a1 + 60);
}
while ( (int)result > v2 );
}
return result;
}