//
// sub_58A30 from 0x58a30 to 0x58a64 (52 bytes)
//
// 1 xrefs:
// > FMOD::System::setOutputByPlugin @ 0xb81ac
//
// 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_58A30(int a1, int a2)
{
int result; // r0
if ( *(_BYTE *)(a1 + 68936) )
return 51;
result = sub_610FC(a1, 0, a2);
if ( !result )
{
*(_DWORD *)(a1 + 68844) = 0;
*(_DWORD *)(a1 + 68848) = a2;
return 0;
}
return result;
}