//
// sub_100568B94 from 0x100568b94 to 0x100568c98 (260 bytes)
//
// 1 xrefs:
// > FMOD::System::getDefaultMixMatrix @ 0x1005f1688
//
// 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_100568B94(__int64 a1, int a2, int a3, void *a4, unsigned int a5)
{
__int64 v5; // x8
int v6; // w20
unsigned int *v8; // x21
_DWORD *v9; // x22
double v10; // d0
v5 = 31;
if ( !a4 )
return v5;
v6 = a5;
if ( a5 > 0x20 )
return v5;
v5 = 31;
if ( a2 == 1 || a3 == 1 )
return v5;
if ( !a2 )
{
a2 = *(_DWORD *)(a1 + 70460);
if ( *(_BYTE *)(a1 + 8) )
goto LABEL_7;
return 67;
}
if ( !*(_BYTE *)(a1 + 8) )
return 67;
LABEL_7:
if ( (unsigned int)(a2 - 1) > 7 )
return 31;
if ( !a3 )
a3 = *(_DWORD *)(a1 + 70460);
if ( (unsigned int)(a3 - 1) > 7 )
return 31;
v8 = (unsigned int *)(a1 + 192LL * (unsigned int)(a2 - 1) + 71136);
v9 = (_DWORD *)(a1 + 192LL * (unsigned int)(a3 - 1) + 71136);
if ( !a5 )
v6 = *v8;
bzero(a4, 4LL * *v9 * v6);
LODWORD(v10) = 1.0;
return sub_100562904(v8, (__int64)v9, v6, (__int64)a4, v10);
}