//
// sub_100568E64 from 0x100568e64 to 0x100568ee8 (132 bytes)
//
// 12 xrefs:
// > FMOD_Memory_GetStats @ 0x1005788a4
// > sub_10057FAA0 @ 0x10057fafc
// > sub_100581904 @ 0x1005819a8
// > sub_1005C9F18 @ 0x1005c9f80
// > sub_1005D4E3C @ 0x1005d4f74
// > FMOD::Sound::release @ 0x1005e45ec
// > FMOD::Sound::setSoundGroup @ 0x1005e6630
// > sub_1005E9638 @ 0x1005e9678
// > sub_1005F45A8 @ 0x1005f465c
// > sub_1005F4FC0 @ 0x1005f4fec
// > sub_1005F4FC0 @ 0x1005f5110
// > sub_100616790 @ 0x1006167c8
//
// 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:08:13 +0000
//
__int64 __fastcall sub_100568E64(__int64 a1)
{
__int64 v1; // x19
__int64 result; // x0
__int64 v3; // [xsp+8h] [xbp-18h] BYREF
v1 = a1 + 69520;
if ( !*(_QWORD *)(a1 + 69520) )
return 0;
if ( !*(_QWORD *)(a1 + 70440) )
goto LABEL_13;
v3 = 0;
result = sub_1005DB9F4(&v3);
if ( (_DWORD)result )
return result;
if ( *(_QWORD *)(v1 + 920) == v3 && *(_BYTE *)(v1 + 928) )
return 35;
LABEL_13:
if ( *(_QWORD *)v1 )
return sub_1005DBDD8(*(_QWORD *)v1);
return 28;
}