//
// sub_F8A24 from 0xf8a24 to 0xf8ab8 (148 bytes)
//
// 3 xrefs:
// > sub_F91D8 @ 0xf93fc
// > sub_F9B54 @ 0xf9bcc
// > sub_FA864 @ 0xfa8f0
//
// 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_F8A24(__int64 a1)
{
__int64 v1; // x19
int v3; // w8
unsigned int v4; // w1
int v5; // w0
int v6[8]; // [xsp+0h] [xbp-30h] BYREF
v1 = *(_QWORD *)(a1 + 32);
sub_F2DC0();
if ( (unsigned int)sub_F2EE8(v6, 1u) )
return 4294967161LL;
v3 = *(_DWORD *)(v1 + 8);
v4 = 0;
while ( v3 >= 2 )
{
++v4;
v3 = (unsigned int)v3 >> 1;
}
v5 = sub_F2EE8(v6, v4);
if ( v5 == -1 )
return 4294967160LL;
else
return *(unsigned int *)(v1 + 4LL * **(int **)(v1 + 8LL * v5 + 32));
}