//
// sub_8AE6A from 0x8ae6a to 0x8af26 (188 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:41:23 +0000
//
int __fastcall sub_8AE6A(float *a1, float *a2, unsigned int a3, float *a4, int a5, int a6, int a7)
{
char v7; // r4
float v8; // s16
float v9; // s18
int v10; // r2
int result; // r0
float *v12; // r1
float *v13; // r2
float *v14; // r1
float *v15; // r2
float v16; // s4
float *v17; // [sp+8h] [bp-20h] BYREF
float *v18; // [sp+Ch] [bp-1Ch] BYREF
v17 = a2;
v18 = a1;
v7 = a3;
v8 = *a4;
v9 = a4[32];
if ( a3 >> 3 )
{
v10 = a3 >> 3;
if ( a7 )
{
j_FMOD_DSP_Connection_WriteMonoToStereo_VFP((int)&v18, (int)&v17, v10, *(_DWORD *)a4, v9);
result = v7 & 7;
goto LABEL_7;
}
j_FMOD_DSP_Connection_MixMonoToStereo_VFP((int)&v18, (int)&v17, v10, *(_DWORD *)a4, v9);
result = v7 & 7;
}
else
{
result = a3 & 7;
if ( a7 )
{
LABEL_7:
while ( result )
{
v12 = v18;
--result;
v13 = v17;
*v17 = *v18 * v8;
v13[1] = *v12 * v9;
v17 = v13 + 2;
v18 = v12 + 1;
}
return result;
}
}
while ( result )
{
v14 = v18;
--result;
v15 = v17;
v16 = v17[1];
*v17 = *v17 + (float)(*v18 * v8);
v15[1] = v16 + (float)(*v14 * v9);
v17 = v15 + 2;
v18 = v14 + 1;
}
return result;
}