// // sub_100508674 from 0x100508674 to 0x1005086f0 (124 bytes) // // 1 xrefs: // > sub_1005074CC @ 0x100507ec4 // // 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_100508674(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