//
// sub_7EFF4 from 0x7eff4 to 0x7f07c (136 bytes)
//
// 1 xrefs:
// > sub_7F4F8 @ 0x7f4fc
//
// 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:14:07 +0000
//
__int64 __fastcall sub_7EFF4(int *a1)
{
unsigned int v2; // w19
__int64 v4; // [xsp+0h] [xbp-20h] BYREF
char v5; // [xsp+8h] [xbp-18h]
if ( a1[138] != 1 )
return 0;
v4 = FMOD::DSPTransceiver::sCriticalSection;
FMOD_OS_CriticalSection_Enter(FMOD::DSPTransceiver::sCriticalSection);
v5 = 1;
v2 = sub_7EB6C(*(_QWORD *)&FMOD::DSPTransceiver::sRefCount[2 * a1[56] + 6] + 112LL * a1[187], a1 + 142, -1);
sub_52090((__int64)&v4);
if ( !v2 )
return 0;
return v2;
}