//
// sub_58A30 from 0x58a30 to 0x58a64 (52 bytes)
//
// 1 xrefs:
// > FMOD::System::setOutputByPlugin @ 0xb81ac
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:40:47 +0000
//
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;
}