//
// sub_66C30 from 0x66c30 to 0x66ca6 (118 bytes)
//
// 1 xrefs:
// > sub_5D970 @ 0x5d9b2
//
// 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:40:56 +0000
//
float *__fastcall sub_66C30(int a1, int a2, int a3, int a4)
{
float *v4; // r1
float *v5; // r2
int v6; // r3
int v7; // r5
int v8; // r4
float *result; // r0
float *v10; // r4
float v11; // s2
float v12; // s4
float v13; // s8
float v14; // s6
float v15; // s10
float v16; // s2
float v17; // s14
float v18; // s1
v4 = (float *)(a2 + 4);
v5 = (float *)(a3 + 4);
v6 = a4 / 2;
v7 = 0;
v8 = a1 + 8 * v6;
result = (float *)(a1 + 4);
v10 = (float *)(v8 + 4);
while ( v6 > v7 )
{
v11 = *(v5 - 1);
++v7;
v12 = *v5;
v5 += 2;
v13 = *(result - 1);
v14 = 1.0 - v11;
v15 = *result;
v16 = v11 + 1.0;
v17 = *(v10 - 1);
v18 = *v10;
v10 -= 2;
result += 2;
*(v4 - 1) = (float)((float)((float)(v13 * v14) - (float)(v15 * v12)) + (float)(v17 * v16)) - (float)(v18 * v12);
*v4 = (float)((float)((float)(v13 * v12) + (float)(v15 * v14)) - (float)(v17 * v12)) - (float)(v18 * v16);
v4 += 2;
}
return result;
}