//
// sub_C99710 from 0xc99710 to 0xc9977c (108 bytes)
//
// 1 xrefs:
// > WebPEncode @ 0xcb58ec
//
// 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
//
__int64 (__fastcall *__fastcall sub_C99710(__int64 a1))(__int64 a1)
{
__int64 (__fastcall *result)(__int64); // x0
void (__fastcall **v3)(__int64); // x0
sub_C73290();
*(_DWORD *)(a1 + 540) = WebPPictureHasTransparency(*(_QWORD *)(a1 + 8));
*(_QWORD *)(a1 + 544) = 0;
result = (__int64 (__fastcall *)(__int64))*(unsigned int *)(a1 + 23580);
*(_DWORD *)(a1 + 552) = 0;
if ( (int)result > 0 )
{
v3 = (void (__fastcall **)(__int64))WebPGetWorkerInterface(result);
(*v3)(a1 + 560);
*(_QWORD *)(a1 + 584) = a1;
*(_QWORD *)(a1 + 592) = 0;
*(_QWORD *)(a1 + 576) = sub_C99520;
return sub_C99520;
}
return result;
}