//
// sub_CBAF54 from 0xcbaf54 to 0xcbaf98 (68 bytes)
//
// 2 xrefs:
// > WebPSetWorkerInterface @ 0xcbb380
// > ??> @ 0x1233e58
//
// 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_CBAF54(__int64 result)
{
unsigned int (__fastcall *v1)(_QWORD, _QWORD); // x2
__int64 v2; // x19
v1 = *(unsigned int (__fastcall **)(_QWORD, _QWORD))(result + 16);
if ( v1 )
{
v2 = result;
result = *(_DWORD *)(result + 40) | (unsigned int)(v1(*(_QWORD *)(result + 24), *(_QWORD *)(result + 32)) == 0);
*(_DWORD *)(v2 + 40) = result;
}
return result;
}