// // sub_CDA78 from 0xcda78 to 0xcdaf0 (120 bytes) // // 2 xrefs: // > sub_C4A50 @ 0xc4adc // > sub_CD714 @ 0xcd808 // // 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_CDA78(__int64 a1, float result, float a3, float a4, float a5, float a6) { __int64 v6; // x8 float v7; // s2 __int64 v8; // x9 int v9; // w10 double v10; // d6 int v11; // w11 int v12; // w12 int v13; // w10 int v14; // w11 v6 = 0; v7 = a6 * a4; while ( v6 != 32 ) { v8 = a1 + v6; v9 = (int)(v7 + 0.5); v10 = (float)(result * a6) + 0.5; v11 = *(_DWORD *)(a1 + v6 + 984) - 1; *(_DWORD *)(v8 + 912) = v9; *(_DWORD *)(v8 + 848) = (int)v10; v12 = v11 + (int)v10; v13 = v11 + v9; v14 = *(_DWORD *)(a1 + v6 + 952); v7 = v7 * a5; *(float *)(v8 + 816) = result; result = result * a3; *(_DWORD *)(v8 + 1016) = v12 & v14; *(_DWORD *)(v8 + 1080) = v13 & v14; v6 += 4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source