//
// sub_6C004 from 0x6c004 to 0x6c05c (88 bytes)
//
// 1 xrefs:
// > FMOD::System::getNumNestedPlugins @ 0xdbd78
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:13:57 +0000
//
// 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;
}