//
// sub_1005688D0 from 0x1005688d0 to 0x100568924 (84 bytes)
//
// 8 xrefs:
// > FMOD::System::getSpeakerModeChannels @ 0x1005f1598
// > sub_100633CAC @ 0x100633e80
// > sub_100633CAC @ 0x100633f88
// > sub_1006349B4 @ 0x100634a40
// > sub_1006349B4 @ 0x100634a70
// > sub_100634ADC @ 0x100634af4
// > sub_100634B7C @ 0x100634ca0
// > sub_100636514 @ 0x100636588
//
// 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:12 +0000
//
__int64 __fastcall sub_1005688D0(__int64 a1, unsigned int a2, _DWORD *a3)
{
_DWORD *v3; // x8
if ( !a3 )
return 31;
if ( !a2 )
{
v3 = (_DWORD *)(a1 + 1748);
goto LABEL_8;
}
if ( *(_BYTE *)(a1 + 8) )
{
if ( a2 <= 8 )
{
v3 = (_DWORD *)(a1 + 192LL * (a2 - 1) + 71136);
LABEL_8:
*a3 = *v3;
return 0;
}
return 31;
}
return 67;
}