//
// sub_1005E88A8 from 0x1005e88a8 to 0x1005e8924 (124 bytes)
//
// 6 xrefs:
// > ??> @ 0x10083d4f0
// > ??> @ 0x10083d548
// > ??> @ 0x10083d5a0
// > ??> @ 0x10083d5f8
// > ??> @ 0x10083d650
// > ??> @ 0x10083d6a8
//
// 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_1005E88A8(__int64 a1, int a2, int a3, _DWORD *a4)
{
switch ( a2 )
{
case 3:
if ( a3 >= 1 )
{
**(_DWORD **)(a1 + 120) = a3;
return 1;
}
return 0;
case 2:
*a4 = **(_DWORD **)(a1 + 120);
return 1;
case 0:
**(_DWORD **)(a1 + 120) = 8 * sub_1005EB290(a1);
return 1;
default:
return 0xFFFFFFFFLL;
}
}