//
// sub_C661BC from 0xc661bc to 0xc66218 (92 bytes)
//
// 4 xrefs:
// > sub_C665F0 @ 0xc669d8
// > WebPIDelete @ 0xc67020
// > sub_C6C0B8 @ 0xc6c164
// > sub_C6C0B8 @ 0xc6c2c0
//
// 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_C661BC(__int64 a1, __int64 a2)
{
__int64 v3; // x0
unsigned int v4; // w19
__int64 v5; // x0
void (__fastcall *v6)(__int64); // x2
__int64 v8; // [xsp+28h] [xbp+28h]
v3 = *(unsigned int *)(a1 + 200);
v4 = 1;
if ( (int)v3 > 0 )
{
v8 = a2;
v5 = WebPGetWorkerInterface(v3);
v4 = (*(__int64 (__fastcall **)(__int64))(v5 + 16))(a1 + 152);
a2 = v8;
}
v6 = *(void (__fastcall **)(__int64))(a2 + 80);
if ( v6 )
v6(a2);
return v4;
}