// // sub_C3F8C from 0xc3f8c to 0xc4000 (116 bytes) // // 2 xrefs: // > sub_C3BD4 @ 0xc3cac // > sub_C4404 @ 0xc4454 // // 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_C3F8C(__int64 a1, __int64 a2) { __int64 v2; // x0 __int64 v3; // x1 long double v4; // q0 long double v5; // q1 char v6; // nf char v7; // vf int v8; // s1 float v9; // s0 int v10; // w8 v2 = sub_C4B8C(*(float *)(a2 + 4), *(float *)&xmmword_155470); if ( v6 != v7 || (LODWORD(v5) = DWORD1(xmmword_155470), *(float *)&v4 > *((float *)&xmmword_155470 + 1)) ) { v4 = v5; *(_DWORD *)(v3 + 4) = LODWORD(v5); } v8 = *(_DWORD *)(v2 + 2080); *(_DWORD *)(v2 + 2036) = LODWORD(v4); v9 = *(float *)&v4 * 0.001; *(float *)(v2 + 1664) = v9; *(float *)&v4 = v9 * (float)v8; v10 = (int)*(float *)&v4; if ( !(int)*(float *)&v4 ) v10 = 1; *(_DWORD *)(v2 + 1700) = v10; sub_C4000(v4); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source