//
// sub_7F910 from 0x7f910 to 0x7f9dc (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x114de8
//
// 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_7F910(__int64 a1, int a2)
{
__int64 v4; // x0
__int64 v5; // x21
__int64 i; // x19
__int64 j; // x22
unsigned int v8; // w0
unsigned int v9; // w20
unsigned int v11; // [xsp+Ch] [xbp-34h] BYREF
__int64 v12; // [xsp+10h] [xbp-30h] BYREF
char v13; // [xsp+18h] [xbp-28h]
v12 = FMOD::DSPTransceiver::sCriticalSection;
v4 = FMOD_OS_CriticalSection_Enter(FMOD::DSPTransceiver::sCriticalSection);
v13 = 1;
v5 = *(_QWORD *)&FMOD::DSPTransceiver::sRefCount[2 * *(int *)(a1 + 48) + 6];
if ( v5 )
{
if ( a2 )
{
if ( a2 == 1 )
{
for ( i = 0; i != 3584; i += 112 )
sub_7ECCC(v5 + i);
}
}
else
{
for ( j = 92; j != 3676; j += 112 )
{
if ( !*(_DWORD *)(v5 + j) )
{
v11 = 0;
v8 = sub_7F9DC(v4, &v11);
if ( v8 )
{
v9 = v8;
goto LABEL_14;
}
v4 = sub_65A10(v11);
*(_DWORD *)(v5 + j) = v4;
}
}
}
}
v9 = 0;
LABEL_14:
sub_52090((__int64)&v12);
return v9;
}