//
// sub_A5580 from 0xa5580 to 0xa564e (206 bytes)
//
// 1 xrefs:
// > sub_A5300 @ 0xa535e
//
// 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
//
float __fastcall sub_A5580(int a1, float a2, int a3)
{
int v4; // r4
int v5; // r6
float v6; // s16
float v7; // r0
float v8; // r0
float v9; // r0
float v10; // r0
float v11; // s18
float v12; // s16
float v13; // r0
float v14; // r0
float v15; // r0
float v16; // r0
float v17; // r0
float v18; // r0
float v19; // r0
float v20; // s16
float v21; // s18
float v22; // r0
float v23; // r0
float v24; // r0
v4 = a1 + 9476;
v5 = a1 + 16 * a3;
v6 = *(float *)(a1 + 9476);
v7 = sub_6D5B0(v5 + 1280, a2);
v8 = sub_6D5B0(v5 + 1792, v7);
v9 = sub_6D5B0(v5 + 2304, v8);
v10 = sub_6D5B0(v5 + 2816, v9);
v11 = *(float *)(v4 + 20);
v12 = v10 * v6;
v13 = sub_6D5B0(v5 + 3328, a2);
v14 = sub_6D5B0(v5 + 3840, v13);
v15 = sub_6D5B0(v5 + 4352, v14);
v16 = sub_6D5B0(v5 + 4864, v15);
v17 = sub_6D5B0(v5 + 5376, v16);
v18 = sub_6D5B0(v5 + 5888, v17);
v19 = sub_6D5B0(v5 + 6400, v18);
v20 = v12 + (float)(sub_6D5B0(v5 + 6912, v19) * v11);
v21 = *(float *)(v4 + 40);
v22 = sub_6D5B0(v5 + 7424, a2);
v23 = sub_6D5B0(v5 + 7936, v22);
v24 = sub_6D5B0(v5 + 8448, v23);
return v20 + (float)(sub_6D5B0(v5 + 8960, v24) * v21);
}