//
// sub_7B4D0 from 0x7b4d0 to 0x7b528 (88 bytes)
//
// 8 xrefs:
// > sub_7B580 @ 0x7b5b0
// > sub_7B658 @ 0x7b6e0
// > sub_7B824 @ 0x7b88c
// > sub_7B964 @ 0x7b968
// > sub_7FE24 @ 0x7fe50
// > sub_B8FA8 @ 0xb8ffc
// > sub_B9360 @ 0xb95b0
// > sub_B9D6C @ 0xb9d88
//
// 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_7B4D0(__int64 a1, int a2, _QWORD *a3)
{
__int64 result; // x0
if ( !a2 )
a2 = *(_DWORD *)(a1 + 70460);
if ( !*(_BYTE *)(a1 + 8) )
return 67;
result = 31;
if ( a3 )
{
if ( (unsigned int)(a2 - 1) <= 7 )
{
result = 0;
*a3 = a1 + 192LL * (a2 - 1) + 71136;
}
}
return result;
}