//
// sub_C9977C from 0xc9977c to 0xc99804 (136 bytes)
//
// 1 xrefs:
// > WebPEncode @ 0xcb5c2c
//
// 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 sub_C9977C(__int64 a1)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 result; // x0
__int64 v4; // x0
if ( !*(_DWORD *)(a1 + 540) )
return 1;
if ( *(int *)(a1 + 23580) <= 0 )
return sub_C99520(a1);
v1 = a1 + 560;
v2 = WebPGetWorkerInterface(a1);
result = (*(__int64 (__fastcall **)(__int64))(v2 + 8))(v1);
if ( (_DWORD)result )
{
v4 = WebPGetWorkerInterface(result);
(*(void (__fastcall **)(__int64))(v4 + 24))(v1);
return 1;
}
return result;
}