//
// sub_59E9C from 0x59e9c to 0x59f2c (144 bytes)
//
// 2 xrefs:
// > sub_66EE4 @ 0x66f24
// > FMOD::System::getCPUUsage @ 0xb92be
//
// 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
//
int __fastcall sub_59E9C(int a1, _DWORD *a2)
{
_DWORD v5[6]; // [sp+0h] [bp-28h] BYREF
memset(v5, 0, sizeof(v5));
if ( !a2 )
return 31;
if ( !sub_BE978(a1 + 1204, v5) )
*a2 = v5[0];
if ( !sub_BE978(a1 + 71208, &v5[1]) )
a2[1] = v5[1];
if ( !sub_BE978(a1 + 71628, &v5[2]) )
a2[2] = v5[2];
if ( !sub_BE978(a1 + 68768, &v5[3]) )
a2[3] = v5[3];
if ( !sub_BE978(a1 + 67236, &v5[4]) )
a2[4] = v5[4];
if ( !sub_BE978(a1 + 67296, &v5[5]) )
a2[5] = v5[5];
return 0;
}