// // sub_1004D1D5C from 0x1004d1d5c to 0x1004d1dd8 (124 bytes) // // 1 xrefs: // > sub_1004D1C74 @ 0x1004d1d3c // // 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_1004D1D5C(float a1, float a2) { float result; // s0 float v4; // s0 float v5; // s3 if ( a1 != 0.0 || (result = 0.0, a2 != 0.0) ) { v4 = -a2; if ( a2 >= 0.0 ) v4 = a2; v5 = -a1; if ( a1 >= 0.0 ) v5 = a1; if ( v5 <= v4 ) { result = (float)(a1 / v4) + 1.0; if ( a2 < 0.0 ) return 6.0 - result; } else { result = 3.0 - (float)(a2 / v5); if ( a1 < 0.0 ) return 10.0 - result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source