//
// sub_CBAEE8 from 0xcbaee8 to 0xcbaf54 (108 bytes)
//
// 9 xrefs:
// > sub_C68D28 @ 0xc68db0
// > sub_C68E18 @ 0xc68ed8
// > sub_C68E18 @ 0xc68f28
// > sub_C68E18 @ 0xc68f68
// > WebPPictureRescale @ 0xcac500
// > WebPPictureRescale @ 0xcac590
// > WebPPictureRescale @ 0xcac640
// > WebPPictureRescale @ 0xcac6b4
// > WebPPictureRescale @ 0xcac78c
//
// 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_CBAEE8(int *a1)
{
unsigned int v1; // w20
v1 = 0;
if ( a1[14] > a1[16] )
{
while ( a1[6] <= 0 )
{
++v1;
sub_C8B3B8((__int64)a1);
if ( a1[14] <= a1[16] )
return v1;
}
}
return v1;
}