// // sub_C9C8DC from 0xc9c8dc to 0xc9ca84 (424 bytes) // // 3 xrefs: // > sub_C9CA84 @ 0xc9cbf4 // > sub_C9CCB0 @ 0xc9cd20 // > sub_C9CCB0 @ 0xc9ced8 // // This function is hookable on this platform (idp: arm, 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 13:05:57 +0000 // __int64 __fastcall sub_C9C8DC(int *a1, int *a2, int *a3, int *a4, int *a5, __int64 a6) { __int64 result; // x0 int v12; // w4 int v13; // w4 int v14; // w4 int v15; // w4 result = sub_C9C798(a1, a2, a3, a4, a6); v12 = *a4; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)a6 + 320LL) + 80LL * *a5 + 16) > *(_DWORD *)(*(_QWORD *)(*(_QWORD *)a6 + 320LL) + 80LL * *a4 + 16) ) { *a4 = *a5; *a5 = v12; v13 = *a3; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)a6 + 320LL) + 80LL * *a4 + 16) <= *(_DWORD *)(*(_QWORD *)(*(_QWORD *)a6 + 320LL) + 80LL * *a3 + 16) ) { return (unsigned int)(result + 1); } else { *a3 = *a4; *a4 = v13; v14 = *a2; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)a6 + 320LL) + 80LL * *a3 + 16) <= *(_DWORD *)(*(_QWORD *)(*(_QWORD *)a6 + 320LL) + 80LL * *a2 + 16) ) { return (unsigned int)(result + 2); } else { *a2 = *a3; *a3 = v14; v15 = *a1; if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)a6 + 320LL) + 80LL * *a2 + 16) <= *(_DWORD *)(*(_QWORD *)(*(_QWORD *)a6 + 320LL) + 80LL * *a1 + 16) ) { return (unsigned int)(result + 3); } else { *a1 = *a2; result = (unsigned int)(result + 4); *a2 = v15; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source