//
// sub_1005F8818 from 0x1005f8818 to 0x1005f8928 (272 bytes)
//
// 1 xrefs:
// > FMOD::System::mixerResume @ 0x1005f14c0
//
// 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_1005F8818(__int64 a1)
{
_BYTE *v2; // x20
__int64 result; // x0
__int64 v4; // x8
__int64 (__fastcall *v5)(__int64, _QWORD); // x9
int v6; // w8
__int64 v7; // x21
__int64 v8; // x22
__int64 v9; // x8
__int64 v10; // x0
if ( !*(_BYTE *)(a1 + 8) )
return 0;
v2 = (_BYTE *)(a1 + 69984);
if ( !*(_BYTE *)(a1 + 69984) )
return 0;
result = sub_100568CE4(a1, 0xCu);
if ( !(_DWORD)result )
{
result = sub_1005D7298((__int64)off_1009DA5E8);
if ( !(_DWORD)result )
{
v4 = *(_QWORD *)(a1 + 1648);
if ( *(_BYTE *)(v4 + 972) )
{
result = sub_100563974(a1, *(unsigned int *)(a1 + 1664));
if ( (_DWORD)result )
return result;
v4 = *(_QWORD *)(a1 + 1648);
}
v5 = *(__int64 (__fastcall **)(__int64, _QWORD))(v4 + 976);
if ( v5 )
{
result = v5(v4 + 8, 0);
if ( (_DWORD)result )
return result;
v4 = *(_QWORD *)(a1 + 1648);
}
if ( *(_QWORD *)(v4 + 1040) )
{
v6 = *(_DWORD *)(a1 + 1684);
if ( v6 >= 1 )
{
v7 = 0;
v8 = 48;
do
{
if ( *(_QWORD *)(*(_QWORD *)(a1 + 1696) + v8) )
{
v9 = *(_QWORD *)(a1 + 1648);
if ( v9 )
v10 = v9 + 8;
else
v10 = 0;
result = (*(__int64 (__fastcall **)(__int64))(v9 + 1040))(v10);
if ( (_DWORD)result )
return result;
v6 = *(_DWORD *)(a1 + 1684);
}
++v7;
v8 += 56;
}
while ( v7 < v6 );
}
}
*v2 = 0;
return 0;
}
}
return result;
}