//
// sub_180100F40 from 0x180100f40 to 0x180100f86 (70 bytes)
//
// 11 xrefs:
// > sub_1800E98E0 @ 0x1800e994e
// > sub_1800EB110 @ 0x1800eb297
// > sub_1800EB320 @ 0x1800eb53a
// > sub_1800EB320 @ 0x1800eb667
// > sub_1800EB320 @ 0x1800eb83f
// > sub_1800EB320 @ 0x1800ebdd9
// > sub_1800EB320 @ 0x1800ebe1e
// > sub_1800EB320 @ 0x1800ebe76
// > sub_1800EB320 @ 0x1800ebea7
// > sub_1800EB320 @ 0x1800ebeef
// > sub_18010A4A0 @ 0x18010a4cd
//
// 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_180100F40(__int64 a1, int a2, _QWORD *a3)
{
unsigned int v4; // edx
if ( !a2 )
a2 = *(_DWORD *)(a1 + 70452);
if ( !*(_BYTE *)(a1 + 8) )
return 67;
if ( !a3 )
return 31;
v4 = a2 - 1;
if ( v4 > 7 )
return 31;
*a3 = 192LL * (int)v4 + a1 + 71128;
return 0;
}