//
// sub_F22D74 from 0xf22d74 to 0xf22dcc (88 bytes)
//
// 1 xrefs:
// > WebPEncode @ 0xf2bde0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:12:44 +0000
//
__int64 __fastcall sub_F22D74(__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;
}