//
// sub_597A4 from 0x597a4 to 0x597cc (40 bytes)
//
// 1 xrefs:
// > FMOD::System::setStreamBufferSize @ 0xb89f0
//
// 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_597A4(int a1, int a2, unsigned int a3)
{
int result; // r0
if ( !a2 )
return 31;
result = 31;
if ( a3 <= 8 && ((1 << a3) & 0x116) != 0 )
{
*(_DWORD *)(a1 + 69180) = a2;
*(_DWORD *)(a1 + 69184) = a3;
return 0;
}
return result;
}