// // sub_55D20 from 0x55d20 to 0x55d90 (112 bytes) // // 2 xrefs: // > sub_54DB0 @ 0x55610 // > sub_54DB0 @ 0x55928 // // 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 // long double __fastcall sub_55D20(float a1, float a2, long double a3) { float v3; // s2 float v4; // s3 bool v5; // nf float v6; // s0 float v7; // s1 float v8; // s1 LODWORD(a3) = 0; if ( a1 != 0.0 || a2 != 0.0 ) { v3 = fabsf(a2); v4 = fabsf(a1); if ( v4 <= v3 ) { v6 = a1 / v3; if ( a2 < 0.0 ) { v8 = 5.0; goto LABEL_8; } v7 = 1.0; } else { v5 = a1 < 0.0; v6 = a2 / v4; if ( !v5 ) { v8 = 3.0; LABEL_8: *(float *)&a3 = v8 - v6; return a3; } v7 = 7.0; } *(float *)&a3 = v6 + v7; } return a3; }