//
// sub_9FF34 from 0x9ff34 to 0xa0008 (212 bytes)
//
// 0 xrefs:
//
// 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_9FF34(float *a1, int a2, int a3, unsigned int *a4, int *a5)
{
char v7; // r8
int v8; // r0
unsigned int v9; // r1
float v10; // s6
int v11; // s10
int v12; // r2
int v13; // r3
int v14; // r2
float v15; // s12
int v16; // r1
float *v17; // r3
float *v18; // r6
__int64 v20; // [sp+0h] [bp-28h]
float *v21; // [sp+Ch] [bp-1Ch] BYREF
v21 = a1;
v7 = a2;
if ( a2 >> 2 )
j_FMOD_Resampler_Linear_16Bit_Stereo_VFP((int)&v21, a2 >> 2, a3, (int)a4, *a5, a5[1], 0.000030518);
v8 = v7 & 3;
while ( v8 )
{
--v8;
v9 = a4[1];
v10 = (float)*a4 * 2.3283e-10;
v11 = *(__int16 *)(a3 + 4 * v9);
v12 = a3 + 4 * v9;
v13 = *(__int16 *)(v12 + 4);
v14 = *(__int16 *)(v12 + 6);
v15 = (float)v13;
v16 = *(__int16 *)(a3 + 4 * v9 + 2);
v17 = v21;
v18 = v21 + 2;
*v21 = (float)((float)((float)(1.0 - v10) * (float)v11) + (float)(v10 * v15)) * 0.000030518;
v21 = v18;
v17[1] = (float)((float)((float)(1.0 - v10) * (float)v16) + (float)(v10 * (float)v14)) * 0.000030518;
*(_QWORD *)a4 += *(_QWORD *)a5;
}
return v20;
}