//
// sub_FCB60 from 0xfcb60 to 0xfcbe4 (132 bytes)
//
// 1 xrefs:
// > sub_8BE2C @ 0x8bf08
//
// 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_FCB60(__int64 a1, unsigned int **a2)
{
__int64 v2; // x20
int v4; // w21
int v6; // w1
int v7; // w0
v2 = *(_QWORD *)(a1 + 48);
v4 = *(_DWORD *)(v2 + 8);
if ( sub_FB098(a2, 1) )
return -135;
v6 = 0;
while ( v4 >= 2 )
{
++v6;
v4 = (unsigned int)v4 >> 1;
}
v7 = sub_FB098(a2, v6);
if ( v7 == -1 )
return -136;
else
return *(int *)(v2 + 4LL * *(unsigned __int8 *)(*(_QWORD *)(v2 + 32) + 2LL * v7));
}