//
// sub_59E5C from 0x59e5c to 0x59e7a (30 bytes)
//
// 1 xrefs:
// > FMOD::System::getOutputHandle @ 0xb91d8
//
// 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_59E5C(int a1, int a2)
{
int v2; // r0
int (__fastcall *v3)(int); // r2
if ( !a2 )
return 31;
v2 = *(_DWORD *)(a1 + 1112);
if ( !v2 )
return 67;
v3 = *(int (__fastcall **)(int))(v2 + 724);
if ( v3 )
return v3(v2 + 4);
else
return 0;
}