// // sub_C6478 from 0xc6478 to 0xc653c (196 bytes) // // 2 xrefs: // > sub_C60F4 @ 0xc61bc // > sub_C68BC @ 0xc6a80 // // 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 // __int64 __fastcall sub_C6478(__int64 result) { int v1; // w12 __int64 v2; // x9 int v3; // w8 float *v4; // x10 int v5; // w13 int v6; // t1 __int64 v8; // x9 __int64 v9; // x10 float v10; // s2 int v11; // w12 int v12; // w13 int v13; // w12 v1 = *(_DWORD *)(result + 992); v2 = 0; v3 = -1; v4 = flt_4E548; while ( v2 != 5 ) { v6 = *(_DWORD *)v4; v4 += 9; v5 = v6; if ( v1 < 9 && v5 == v1 ) v3 = v2; ++v2; } v8 = 0; v9 = result + 664; while ( v8 < v1 ) { if ( v3 < 0 ) v10 = (float)(*(float *)(result + 576) * 5.0) / (float)v1; else v10 = *(float *)(result + 576) * flt_4E548[9 * v3 + 1 + v8]; v11 = (int)(float)((float)(*(float *)(result + 568) - v10) * *(float *)(result + 612)); *(_DWORD *)(v9 + 4 * v8) = v11; v12 = *(_DWORD *)(result + 616); if ( v12 <= v11 ) { v13 = v11 - v12; } else { if ( (v11 & 0x80000000) == 0 ) goto LABEL_19; v13 = v12 + v11; } *(_DWORD *)(v9 + 4 * v8) = v13; LABEL_19: v1 = *(_DWORD *)(result + 992); ++v8; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source