//
// sub_969A4 from 0x969a4 to 0x96ada (310 bytes)
//
// 2 xrefs:
// > sub_9690C @ 0x96994
// > sub_974E0 @ 0x975e8
//
// 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:28 +0000
//
int __fastcall sub_969A4(int a1, float a2, float a3)
{
float v4; // s22
int v5; // r6
int v6; // r9
int v7; // r4
float v8; // s24
float v9; // s20
float v10; // s18
int v11; // r0
int v12; // r1
int v13; // r2
int v14; // r3
float *v15; // r8
float *v16; // r0
float v17; // s2
int v18; // r2
float v19; // s0
float v20; // r1
float *v21; // r3
_DWORD v23[2]; // [sp+20h] [bp-68h] BYREF
int v24; // [sp+28h] [bp-60h] BYREF
float v25; // [sp+2Ch] [bp-5Ch] BYREF
int v26; // [sp+30h] [bp-58h] BYREF
int v27; // [sp+34h] [bp-54h] BYREF
int v28; // [sp+38h] [bp-50h] BYREF
int v29; // [sp+3Ch] [bp-4Ch] BYREF
if ( a2 >= 1.0 )
{
v4 = 1.0 / a2;
v5 = a1 + 396;
v6 = a1 + 912;
v7 = 0;
v8 = 1.0;
v9 = (float)*(int *)(*(_DWORD *)(a1 + 128) + 1184);
v23[0] = 1065353216;
v23[1] = 1065353216;
v10 = a3;
if ( (float)(v9 * 0.5) < a3 )
v10 = (float)(v9 * 0.5) + -10.0;
while ( v7 != 2 )
{
v11 = a1 + 24 * v7;
v12 = *(_DWORD *)(v11 + 944);
v13 = *(_DWORD *)(v11 + 948);
v14 = *(_DWORD *)(v11 + 952);
v26 = *(_DWORD *)(v11 + 956);
v27 = v14;
v28 = v13;
v29 = v12;
v25 = *(float *)(v11 + 960) * v4;
v24 = *(_DWORD *)(v11 + 964);
v15 = (float *)&v23[v7];
sub_9778C((int)&v24, (int)&v29, (int)&v28, (int)&v27, (int)&v26, (int)&v25, (int)&v24, v10, v9, (int)v15, v6);
v16 = (float *)(a1 + 4 * v7 + 388);
if ( *v16 == 0.0 )
{
v20 = *v15;
v19 = *v15;
}
else
{
v17 = 1.0 / *v16;
v18 = 0;
v19 = *v15;
v20 = *v15;
while ( v18 != 512 )
{
v21 = (float *)(v5 + v18);
v18 += 16;
*v21 = (float)(*v21 * v19) * v17;
}
}
*v16 = v19;
v5 += 4;
++v7;
v8 = v8 * v20;
v6 += 16;
}
*(float *)(a1 + 908) = v8;
}
return 0;
}