//
// sub_F0FA28 from 0xf0fa28 to 0xf0faa4 (124 bytes)
//
// 1 xrefs:
// > WebPEncode @ 0xf2bcb0
//
// 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:27 +0000
//
__int64 __fastcall sub_F0FA28(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
unsigned int v5; // w21
__int64 v6; // x0
v2 = *(unsigned int *)(a1 + 23580);
if ( (int)v2 <= 0 )
{
v5 = 1;
}
else
{
v3 = WebPGetWorkerInterface(v2);
v4 = (*(__int64 (__fastcall **)(__int64))(v3 + 16))(a1 + 560);
v5 = v4;
v6 = WebPGetWorkerInterface(v4);
(*(void (__fastcall **)(__int64))(v6 + 40))(a1 + 560);
}
WebPSafeFree(*(void **)(a1 + 544));
*(_QWORD *)(a1 + 544) = 0;
*(_DWORD *)(a1 + 552) = 0;
*(_DWORD *)(a1 + 540) = 0;
return v5;
}