// // sub_5EC94 from 0x5ec94 to 0x5ecfa (102 bytes) // // 3 xrefs: // > sub_5ED08 @ 0x5ed16 // > sub_5F2D0 @ 0x5f452 // > sub_5F2D0 @ 0x5f462 // // 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_5EC94(int a1, int a2, int a3) { int v3; // r3 float v4; // s0 float v5; // s4 float v6; // s2 float v7; // s6 float v8; // s6 v3 = 31; if ( a2 && a3 ) { *(_DWORD *)a1 = a2; *(_DWORD *)(a1 + 4) = a3; v4 = *(float *)(a2 + 4); v5 = *(float *)(a3 + 4); v6 = (float)(v5 + v4) * 0.5; if ( v4 > v5 ) { if ( v6 >= 0.0 ) v7 = -180.0; else v7 = 180.0; v6 = v6 + v7; } v8 = v5 - v4; v3 = 0; if ( v4 > v5 ) v8 = (float)(v5 - v4) + 360.0; *(float *)(a1 + 8) = v6; *(float *)(a1 + 12) = v8; } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source