//
// sub_9FDA8 from 0x9fda8 to 0x9fe7c (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_9FDA8(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
float v13; // s12
int v14; // r1
float *v15; // r3
int v16; // r2
float *v17; // r6
__int64 v19; // [sp+0h] [bp-28h]
float *v20; // [sp+Ch] [bp-1Ch] BYREF
v20 = a1;
v7 = a2;
if ( a2 >> 2 )
j_FMOD_Resampler_Linear_8Bit_Stereo_VFP((int)&v20, a2 >> 2, a3, (int)a4, *a5, a5[1], 0.0078125);
v8 = v7 & 3;
while ( v8 )
{
--v8;
v9 = a4[1];
v10 = (float)*a4 * 2.3283e-10;
v11 = *(char *)(a3 + 2 * v9);
v12 = a3 + 2 * v9;
v13 = (float)*(char *)(v12 + 2);
v14 = *(char *)(a3 + 2 * v9 + 1);
v15 = v20;
v16 = *(char *)(v12 + 3);
v17 = v20 + 2;
*v20 = (float)((float)((float)(1.0 - v10) * (float)v11) + (float)(v10 * v13)) * 0.0078125;
v20 = v17;
v15[1] = (float)((float)((float)(1.0 - v10) * (float)v14) + (float)(v10 * (float)v16)) * 0.0078125;
*(_QWORD *)a4 += *(_QWORD *)a5;
}
return v19;
}