// // sub_140227B60 from 0x140227b60 to 0x140227c25 (197 bytes) // // 3 xrefs: // > GJBaseGameLayer::getAreaObjectValue @ 0x140228225 // > PlayLayer::applyCustomEnterEffect @ 0x1403b0bf3 // > @ 0x1406cd914 // // 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_140227B60(float a1, int a2, float a3) { float v3; // xmm3_4 float v4; // xmm0_4 float v5; // xmm1_4 float v6; // xmm6_4 float v7; // xmm6_4 float v9; // xmm6_4 v3 = a1 / (float)a2; v4 = v3 - a3; v5 = 1.0 - a3; if ( a3 == 0.0 ) v6 = v3; else v6 = (float)(v3 - a3) / (float)(1.0 - a3); if ( v6 <= 1.0 ) { v7 = a3 == 0.0 ? v3 : v4 / v5; if ( v7 < 0.0 ) return 0.0; } if ( a3 == 0.0 ) v9 = v3; else v9 = v4 / v5; if ( v9 > 1.0 ) return 1.0; if ( a3 == 0.0 ) return v3; return v4 / v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source