//
// sub_CB630C from 0xcb630c to 0xcb6350 (68 bytes)
//
// 4 xrefs:
// > WebPIAppend @ 0xc6753c
// > WebPIAppend @ 0xc67558
// > WebPIUpdate @ 0xc6771c
// > WebPIUpdate @ 0xc67748
//
// 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_CB630C(__int64 result, __int64 a2, unsigned __int64 a3)
{
unsigned __int64 v3; // x4
int v4; // w3
v3 = *(_QWORD *)(result + 24);
v4 = 1;
*(_QWORD *)(result + 8) = a2;
*(_QWORD *)(result + 16) = a3;
if ( a3 >= v3 )
{
v4 = *(_DWORD *)(result + 36);
if ( v4 )
{
v4 = 1;
}
else if ( a3 == v3 )
{
v4 = *(_DWORD *)(result + 32) > 64;
}
}
*(_DWORD *)(result + 36) = v4;
return result;
}