//
// sub_9FE84 from 0x9fe84 to 0x9ff2a (166 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:32 +0000
//
__int64 __fastcall sub_9FE84(int a1, int a2, int a3, unsigned int *a4, int *a5)
{
char v7; // r8
int v8; // r0
unsigned int v9; // r1
int v10; // r2
float v11; // s6
float *v12; // r3
int v13; // s10
__int64 v15; // [sp+0h] [bp-28h]
int v16; // [sp+Ch] [bp-1Ch] BYREF
v16 = a1;
v7 = a2;
if ( a2 >> 3 )
j_FMOD_Resampler_Linear_16Bit_Mono_VFP((int)&v16, a2 >> 3, a3, (int)a4, *a5, a5[1], 0.000030518);
v8 = v7 & 7;
while ( v8 )
{
v9 = a4[1];
--v8;
v10 = *(__int16 *)(a3 + 2 * v9 + 2);
v11 = (float)*a4;
v12 = (float *)v16;
v13 = *(__int16 *)(a3 + 2 * v9);
v16 += 4;
*v12 = (float)((float)((float)(1.0 - (float)(v11 * 2.3283e-10)) * (float)v13)
+ (float)((float)(v11 * 2.3283e-10) * (float)v10))
* 0.000030518;
*(_QWORD *)a4 += *(_QWORD *)a5;
}
return v15;
}