// // sub_1004393F0 from 0x1004393f0 to 0x100439464 (116 bytes) // // 0 xrefs: // // 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 // __int64 __fastcall sub_1004393F0(__int64 a1, __int64 a2, __int64 a3) { __int64 result; // x0 float v5; // s0 float v6; // s1 float v7; // s2 float v8; // s3 float v9; // s0 result = 31; if ( a2 && a3 ) { result = 0; v5 = *(float *)(a2 + 4); *(_QWORD *)a1 = a2; *(_QWORD *)(a1 + 8) = a3; v6 = *(float *)(a3 + 4); v7 = (float)(v5 + v6) * 0.5; v8 = v7 + 180.0; if ( v7 >= 0.0 ) v8 = v7 + -180.0; if ( v5 <= v6 ) { v9 = v6 - v5; } else { v7 = v8; v9 = (float)(v6 - v5) + 360.0; } *(float *)(a1 + 16) = v7; *(float *)(a1 + 20) = v9; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source