//
// sub_180101F30 from 0x180101f30 to 0x180101fb9 (137 bytes)
//
// 1 xrefs:
// > sub_1800E14F0 @ 0x1800e1bfc
//
// 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_180101F30(__int64 a1, int a2, __int64 a3, __int64 a4, int a5, float a6, __int64 a7, __int64 a8)
{
__int64 v8; // r8
int v10; // edx
if ( !a8 || (unsigned int)(a7 - 1) > 0x1F )
return 31;
v8 = *(_QWORD *)(*(_QWORD *)a1 + 168LL);
if ( !a2 )
a2 = *(_DWORD *)(v8 + 70452);
if ( !*(_BYTE *)(v8 + 8) )
return 67;
v10 = a2 - 1;
if ( (unsigned int)v10 <= 7 )
return sub_1800F9F70(v8 + 71128 + 192LL * v10, v10, (int)v8 + 71128, a7, a6, a7, a8);
else
return 31;
}