//
// sub_CACBB4 from 0xcacbb4 to 0xcacc0c (88 bytes)
//
// 1 xrefs:
// > WebPEncode @ 0xcb5c20
//
// 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_CACBB4(__int64 result)
{
int v1; // w6
int v2; // w5
int v3; // w4
__int64 v4; // x3
__int64 i; // x1
v1 = *(_DWORD *)(result + 12);
v2 = 0;
v3 = *(_DWORD *)(result + 8);
v4 = *(_QWORD *)(result + 72);
if ( v1 > 0 )
{
do
{
for ( i = 0; v3 > (int)i; ++i )
{
if ( (*(_DWORD *)(v4 + 4 * i) & 0xFF000000) == 0 )
*(_DWORD *)(v4 + 4 * i) = 0;
}
++v2;
v4 += 4LL * *(int *)(result + 80);
}
while ( v2 != v1 );
}
return result;
}