//
// sub_6C004 from 0x6c004 to 0x6c05c (88 bytes)
//
// 1 xrefs:
// > FMOD::System::getNumNestedPlugins @ 0xdbd78
//
// 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
//
// positive sp value has been detected, the output may be wrong!
__int64 __fastcall sub_6C004(__int64 a1, unsigned int a2, int *a3)
{
int *v3; // x0
int v4; // w8
__int64 result; // x0
if ( *(_BYTE *)(a1 + 9) || (result = sub_7037C(), !(_DWORD)result) )
{
if ( a3 )
{
v3 = (int *)sub_629A8(*(_QWORD *)(a1 + 69128), a2);
if ( v3 )
v4 = *v3;
else
v4 = 1;
*a3 = v4;
return 0;
}
else
{
return 31;
}
}
return result;
}