// // sub_1401C9AB0 from 0x1401c9ab0 to 0x1401c9c72 (450 bytes) // // 4 xrefs: // > sub_1401C9920 @ 0x1401c99ee // > @ 0x1408a2ee4 // > @ 0x1408a2f28 // > @ 0x14091a90c // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:28:06 +0000 // char *__fastcall sub_1401C9AB0(char *Src, char *a2) { char *v4; // r13 char *i; // r15 __int64 v6; // rbx char *v7; // r14 __int64 v8; // rdi float v9; // xmm6_4 float *v10; // rax __int64 (__fastcall *v11)(__int64); // r8 float v12; // xmm6_4 float v13; // xmm0_4 char *j; // rbx __int64 v15; // rsi float v16; // xmm6_4 float *v17; // rax __int64 (__fastcall *v18)(__int64); // r8 float v19; // xmm6_4 float v20; // xmm0_4 if ( Src == a2 ) return a2; v4 = Src + 8; for ( i = Src + 8; i != a2; i += 8 ) { v6 = *(_QWORD *)Src; v7 = i; v8 = *(_QWORD *)i; v9 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)Src + 200LL))(*(_QWORD *)Src); v10 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 200LL))(v8); v11 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 200LL); if ( *v10 == v9 ) { v12 = *(float *)(v11(v8) + 4); v13 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 200LL))(v6) + 4); } else { v12 = *(float *)v11(v8); v13 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 200LL))(v6); } if ( v13 <= v12 ) { for ( j = i; ; v7 = j ) { v15 = *((_QWORD *)j - 1); j -= 8; v16 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 200LL))(v15); v17 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 200LL))(v8); v18 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 200LL); if ( *v17 == v16 ) { v19 = *(float *)(v18(v8) + 4); v20 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 200LL))(v15) + 4); } else { v19 = *(float *)v18(v8); v20 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v15 + 200LL))(v15); } if ( v20 <= v19 ) break; *(_QWORD *)v7 = *(_QWORD *)j; } *(_QWORD *)v7 = v8; } else { memmove(v4, Src, i - Src); *(_QWORD *)Src = v8; } } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source