//
// sub_952E8 from 0x952e8 to 0x953ba (210 bytes)
//
// 1 xrefs:
// > sub_955D4 @ 0x955de
//
// 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_952E8(int a1, float *a2, float *a3, int a4, int a5)
{
int v5; // r8
int v6; // r10
float v7; // s0
float v8; // s2
int v9; // lr
float *v10; // r11
int v11; // r6
float *v12; // r5
float *v13; // r4
float v14; // s4
int v15; // r12
float v16; // s6
float v17; // s8
float v18; // s4
if ( a2 )
{
v5 = 0;
v6 = *(_DWORD *)(a1 + 524);
v7 = *(float *)(a1 + 512);
v8 = *(float *)(a1 + 516);
v9 = 4 * a5;
while ( v5 != a4 )
{
if ( v6 )
*(float *)(a1 + 376) = *(float *)(a1 + 376) * *(float *)(a1 + 520);
v10 = (float *)(a1 + 376);
v11 = 0;
v12 = a2;
v13 = a3;
while ( a5 != v11 )
{
if ( v6 )
{
v14 = *(float *)(a1 + 376);
v15 = 0;
}
else
{
v15 = v11;
v14 = *v10 * *(float *)(a1 + 520);
*v10 = v14;
}
v16 = *v12;
++v10;
++v11;
v17 = fabsf(*v12);
if ( v17 > v14 )
{
*(float *)(a1 + 4 * v15 + 376) = v17;
v16 = *v12;
v14 = v17;
}
v18 = v7 / v14;
++v12;
if ( v18 > v8 )
v18 = v8;
*v13++ = v18 * v16;
}
a2 = (float *)((char *)a2 + v9);
a3 = (float *)((char *)a3 + v9);
++v5;
}
}
return 0;
}