// // sub_E18EA8 from 0xe18ea8 to 0xe18fc4 (284 bytes) // // 9 xrefs: // > sub_E108DC @ 0xe1091c // > sub_E10EA8 @ 0xe10f34 // > sub_E11A00 @ 0xe11a6c // > sub_E18FC4 @ 0xe18fe8 // > sub_E190B8 @ 0xe190d8 // > sub_E190B8 @ 0xe19150 // > sub_E190B8 @ 0xe191b4 // > sub_E191E0 @ 0xe19250 // > sub_E191E0 @ 0xe192d0 // // 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:09:42 +0000 // __int64 **__fastcall sub_E18EA8(__int64 *a1, __int64 a2, __int64 **a3) { __int64 *v3; // x6 __int64 *v4; // x4 __int64 *v5; // x3 bool v6; // cc __int64 *v7; // x3 __int64 *v8; // x3 __int64 *v9; // x5 __int64 *v10; // x3 __int64 v11; // x5 __int64 *v12; // x5 __int64 *v14; // [xsp+0h] [xbp-30h] BYREF __int64 *v15; // [xsp+8h] [xbp-28h] if ( !a3 ) return a3; v3 = (__int64 *)&v14; v15 = nullptr; v14 = nullptr; v4 = (__int64 *)&v14; while ( 1 ) { v5 = a3[3]; v6 = (__int64)v5 < (__int64)a1; if ( (__int64)v5 <= (__int64)a1 ) break; LABEL_14: v8 = *a3; if ( !*a3 ) { v12 = nullptr; goto LABEL_22; } v11 = v8[3]; if ( (__int64)a1 >= v11 && ((__int64)a1 > v11 || v8[4] <= a2) ) { v8 = (__int64 *)a3; } else { *a3 = (__int64 *)v8[1]; v8[1] = (__int64)a3; v12 = (__int64 *)*v8; if ( !*v8 ) goto LABEL_26; } *v3 = (__int64)v8; v3 = v8; a3 = (__int64 **)*v8; } while ( 1 ) { if ( !v6 ) { v7 = a3[4]; if ( (__int64)v7 > a2 ) goto LABEL_14; if ( (__int64)v7 >= a2 ) goto LABEL_21; } v8 = a3[1]; if ( !v8 ) { LABEL_21: v12 = *a3; goto LABEL_22; } v9 = (__int64 *)v8[3]; if ( (__int64)a1 >= (__int64)v9 && ((__int64)a1 > (__int64)v9 || v8[4] < a2) ) break; LABEL_13: v4[1] = (__int64)a3; v4 = (__int64 *)a3; a3 = (__int64 **)a3[1]; v10 = a3[3]; v6 = (__int64)v10 < (__int64)a1; if ( (__int64)v10 > (__int64)a1 ) goto LABEL_14; } a3[1] = (__int64 *)*v8; *v8 = (__int64)a3; if ( v8[1] ) { a3 = (__int64 **)v8; goto LABEL_13; } v12 = (__int64 *)a3; LABEL_26: a3 = (__int64 **)v8; LABEL_22: v4[1] = (__int64)v12; *v3 = (__int64)a3[1]; *a3 = v15; a3[1] = v14; return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source