//
// sub_1005F870C from 0x1005f870c to 0x1005f8818 (268 bytes)
//
// 1 xrefs:
// > FMOD::System::mixerSuspend @ 0x1005f13fc
//
// 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 11:09:52 +0000
//
__int64 __fastcall sub_1005F870C(__int64 a1)
{
_BYTE *v2; // x20
__int64 result; // x0
__int64 v4; // x9
int v5; // w8
__int64 v6; // x21
__int64 v7; // x22
__int64 v8; // x8
__int64 v9; // x0
__int64 (__fastcall *v10)(__int64, __int64); // x8
if ( !*(_BYTE *)(a1 + 8) )
return 0;
v2 = (_BYTE *)(a1 + 69984);
if ( *(_BYTE *)(a1 + 69984) )
return 0;
v4 = *(_QWORD *)(a1 + 1648);
if ( *(_QWORD *)(v4 + 1040) )
{
v5 = *(_DWORD *)(a1 + 1684);
if ( v5 >= 1 )
{
v6 = 0;
v7 = 48;
do
{
if ( *(_QWORD *)(*(_QWORD *)(a1 + 1696) + v7) )
{
v8 = *(_QWORD *)(a1 + 1648);
if ( v8 )
v9 = v8 + 8;
else
v9 = 0;
result = (*(__int64 (__fastcall **)(__int64))(v8 + 1040))(v9);
if ( (_DWORD)result )
return result;
v5 = *(_DWORD *)(a1 + 1684);
}
++v6;
v7 += 56;
}
while ( v6 < v5 );
v4 = *(_QWORD *)(a1 + 1648);
}
}
v10 = *(__int64 (__fastcall **)(__int64, __int64))(v4 + 976);
if ( v10 )
{
result = v10(v4 + 8, 1);
if ( (_DWORD)result )
return result;
v4 = *(_QWORD *)(a1 + 1648);
}
if ( !*(_BYTE *)(v4 + 972) || (result = sub_100563848(a1), !(_DWORD)result) )
{
result = sub_100568CC4(a1, 0xCu);
if ( !(_DWORD)result )
{
result = sub_1005D7270((__int64)off_1009DA5E8);
if ( !(_DWORD)result )
*v2 = 1;
}
}
return result;
}