//
// sub_1005E86B4 from 0x1005e86b4 to 0x1005e8748 (148 bytes)
//
// 6 xrefs:
// > ??> @ 0x10083d4e0
// > ??> @ 0x10083d538
// > ??> @ 0x10083d590
// > ??> @ 0x10083d5e8
// > ??> @ 0x10083d640
// > ??> @ 0x10083d698
//
// 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_1005E86B4(__int64 a1, __int64 a2)
{
__int64 v4; // x8
__int64 v5; // x11
__int64 v6; // x21
__int64 v7; // x0
int v9; // [xsp+Ch] [xbp-24h]
if ( !a2 )
return 0;
sub_1005E3A9C(a1);
v4 = 58;
v5 = 120;
if ( v9 != 64 )
v5 = 0;
if ( v9 != 128 )
v4 = v5;
if ( v9 == 40 )
v6 = 160;
else
v6 = v4;
v7 = sub_1005EB108(a1);
return sub_1005FC000(a2, v6, a1 + 24, v7);
}