//
// sub_F0F9C4 from 0xf0f9c4 to 0xf0fa28 (100 bytes)
//
// 1 xrefs:
// > WebPEncode @ 0xf2be0c
//
// 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_F0F9C4(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 result; // x0
if ( !*(_DWORD *)(a1 + 540) )
return sub_F2B67C(*(_QWORD *)(a1 + 8), (unsigned int)(*(_DWORD *)(a1 + 536) + 20), a1 + 536);
v2 = *(unsigned int *)(a1 + 23580);
if ( (int)v2 <= 0 )
return sub_F2B67C(*(_QWORD *)(a1 + 8), (unsigned int)(*(_DWORD *)(a1 + 536) + 20), a1 + 536);
v3 = WebPGetWorkerInterface(v2);
result = (*(__int64 (__fastcall **)(__int64))(v3 + 16))(a1 + 560);
if ( (_DWORD)result )
return sub_F2B67C(*(_QWORD *)(a1 + 8), (unsigned int)(*(_DWORD *)(a1 + 536) + 20), a1 + 536);
return result;
}