// // sub_1004F7B98 from 0x1004f7b98 to 0x1004f7c10 (120 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 // float __fastcall sub_1004F7B98(float *a1) { float v1; // s0 float v2; // s2 float v3; // s3 float v4; // s5 float v5; // s4 float v6; // s1 float v7; // s0 float v8; // s0 float result; // s0 v1 = (float)(a1[137] + 1.0) * 0.5; v2 = a1[138]; v3 = v1 + (float)((float)(1.0 - v1) * v2); v4 = v3 - v1; if ( (float)(v3 - v1) >= (float)(1.0 - v3) ) v4 = 1.0 - v3; v5 = 1.0 - a1[139]; v6 = (float)(1.0 - v2) * v1; v7 = v1 - v6; if ( v6 < v7 ) v7 = v6; v8 = v5 * v7; a1[143] = v6 - v8; a1[144] = v6 + v8; a1[145] = v3 - (float)(v5 * v4); result = v3 + (float)(v5 * v4); a1[146] = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source