//
// sub_F27534 from 0xf27534 to 0xf27594 (96 bytes)
//
// 2 xrefs:
// > sub_F17328 @ 0xf17524
// > WebPEncode @ 0xf2bcc0
//
// 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:47 +0000
//
__int64 __fastcall sub_F27534(__int64 result)
{
__int64 v1; // x20
_QWORD *v2; // x0
_QWORD *v3; // x19
if ( result )
{
v1 = result;
v2 = *(_QWORD **)result;
if ( v2 )
{
do
{
v3 = (_QWORD *)*v2;
WebPSafeFree(v2);
v2 = v3;
}
while ( v3 );
}
LODWORD(result) = *(_DWORD *)(v1 + 28);
*(_QWORD *)(v1 + 16) = 0;
*(_QWORD *)v1 = 0;
if ( (int)result < 0x2000 )
result = 0x2000;
else
result = (unsigned int)result;
*(_QWORD *)(v1 + 8) = v1;
*(_DWORD *)(v1 + 24) = 0;
*(_DWORD *)(v1 + 28) = result;
*(_DWORD *)(v1 + 32) = 0;
}
return result;
}