//
// sub_64E04 from 0x64e04 to 0x64e88 (132 bytes)
//
// 1 xrefs:
// > FMOD::System::getDefaultMixMatrix @ 0xb90f0
//
// 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
//
int __fastcall sub_64E04(int a1, int a2, int a3, void *a4, unsigned int a5)
{
int v5; // r6
int result; // r0
unsigned int v8; // r8
bool v9; // zf
int *v11; // r5
int v12; // r6
_DWORD *v13; // [sp+8h] [bp-20h] BYREF
unsigned int *v14; // [sp+Ch] [bp-1Ch] BYREF
result = 31;
if ( a4 )
{
v8 = a5;
if ( a5 <= 0x20 )
{
v9 = a2 == 1;
result = 31;
if ( a2 != 1 )
{
v5 = a3;
v9 = a3 == 1;
}
if ( !v9 )
{
v14 = nullptr;
result = sub_64BD4(a1, a2, &v14);
if ( !result )
{
v13 = nullptr;
result = sub_64BD4(a1, v5, &v13);
if ( !result )
{
v11 = (int *)v14;
if ( !a5 )
v8 = *v14;
v12 = (int)v13;
memset(a4, 0, 4 * v8 * *v13);
return sub_60848(v11, v12, 1.0, v8, (float *)a4);
}
}
}
}
}
return result;
}