//
// sub_5B5E8 from 0x5b5e8 to 0x5b63a (82 bytes)
//
// 1 xrefs:
// > FMOD::System::isRecording @ 0xba458
//
// 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_5B5E8(int a1, int a2, bool *a3)
{
int result; // r0
int v7; // r0
bool v8; // zf
result = sub_5B0B8(a1);
if ( !result )
{
if ( a2 < 0 || *(_DWORD *)(a1 + 1144) <= a2 )
{
return 31;
}
else
{
v7 = *(_DWORD *)(a1 + 1156);
if ( a3 )
*a3 = *(_DWORD *)(v7 + 44 * a2 + 40) != 0;
v8 = *(unsigned __int8 *)(v7 + 44 * a2 + 20) << 31 == 0;
result = 0;
if ( v8 )
return 80;
}
}
return result;
}