//
// sub_A54EC from 0xa54ec to 0xa557a (142 bytes)
//
// 1 xrefs:
// > sub_A5300 @ 0xa5352
//
// 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_A54EC(int a1, float a2, int a3)
{
int v4; // r4
int v5; // r6
float v6; // s16
float v7; // r0
float v8; // r0
float v9; // s18
float v10; // s16
float v11; // r0
float v12; // r0
float v13; // r0
float v14; // s16
float v15; // s18
float v16; // 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 = *(float *)(v4 + 20);
v10 = v8 * v6;
v11 = sub_6D5B0(v5 + 3328, a2);
v12 = sub_6D5B0(v5 + 3840, v11);
v13 = sub_6D5B0(v5 + 5376, v12);
v14 = v10 + (float)(sub_6D5B0(v5 + 5888, v13) * v9);
v15 = *(float *)(v4 + 40);
v16 = sub_6D5B0(v5 + 7424, a2);
return v14 + (float)(sub_6D5B0(v5 + 7936, v16) * v15);
}