//
// sub_71D160 from 0x71d160 to 0x71d1a6 (70 bytes)
//
// 1 xrefs:
// > WebPEncode @ 0x733012
//
// 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
//
int __fastcall sub_71D160(int a1)
{
int v2; // r6
int v3; // r0
int v4; // r0
if ( *(int *)(a1 + 22604) > 0 )
{
v3 = WebPGetWorkerInterface(a1);
v2 = (*(int (__fastcall **)(int))(v3 + 8))(a1 + 384);
v4 = WebPGetWorkerInterface(v2);
(*(void (__fastcall **)(int))(v4 + 20))(a1 + 384);
}
else
{
v2 = 1;
}
WebPSafeFree(*(void **)(a1 + 376));
*(_DWORD *)(a1 + 376) = 0;
*(_DWORD *)(a1 + 380) = 0;
*(_DWORD *)(a1 + 372) = 0;
return v2;
}