//
// sub_100442A2C from 0x100442a2c to 0x100442b30 (260 bytes)
//
// 1 xrefs:
// > FMOD::System::getDefaultMixMatrix @ 0x1004cb520
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100442A2C(__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_10043C79C(v8, (__int64)v9, v6, (__int64)a4, v10);
}