//
// sub_7F07C from 0x7f07c to 0x7f134 (184 bytes)
//
// 1 xrefs:
// > sub_7F558 @ 0x7f5bc
//
// 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
//
__int64 __fastcall sub_7F07C(int *a1, __int64 a2, __int64 a3, __int64 a4, int a5)
{
_DWORD *v5; // x9
int v6; // w10
int v7; // w9
int v8; // w9
__int64 v9; // x9
__int64 v10; // x10
__int64 v11; // x8
if ( !a4 )
return 0;
v5 = *(_DWORD **)(a4 + 8);
*(_DWORD *)(a4 + 32) = *(_DWORD *)(a3 + 32);
v6 = **(_DWORD **)(a3 + 8);
*v5 = v6;
v7 = v6 == 2 ? 1 : 2;
if ( v6 == 1 )
v7 = 0;
a1[141] = v7;
if ( !a5 )
return 0;
v8 = a1[138];
if ( v8 != 1
&& (v8
|| (v9 = a1[137],
v10 = *(_QWORD *)&FMOD::DSPTransceiver::sRefCount[2 * a1[56] + 6],
v11 = 1LL - *(int *)(v10 + 112 * v9 + 108),
*(_BYTE *)(v10 + 112 * v9 + v11 + 100))
|| *(_BYTE *)(v10 + 112 * v9 + v11 + 102)
|| *(_BYTE *)(v10 + 112 * v9 + v11 + 104)) )
{
return 0;
}
else
{
return 11;
}
}