// // sub_5E8B0 from 0x5e8b0 to 0x5e920 (112 bytes) // // 3 xrefs: // > sub_60178 @ 0x6024e // > sub_60178 @ 0x6030e // > sub_603D4 @ 0x60668 // // 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_5E8B0(int result, float a2, int a3, float *a4, int a5, float *a6) { float v8; // s2 int v9; // r2 int v10; // r5 float *v11; // r6 float v12; // s4 int v13; // r5 float v14; // s2 float v15; // s4 v8 = 0.0; v9 = 4 * a3; v10 = 0; v11 = a4; while ( v10 < result ) { v12 = *v11; ++v10; v11 = (float *)((char *)v11 + v9); v8 = v8 + (float)(v12 * v12); } if ( v8 != 0.0 ) { v13 = 0; v14 = 1.0 / sqrtf(v8); while ( v13 < result ) { v15 = *a4; a4 = (float *)((char *)a4 + v9); ++v13; *a6 = *a6 + (float)((float)(v15 * a2) * v14); a6 += a5; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source