// // sub_100698E54 from 0x100698e54 to 0x100698f74 (288 bytes) // // 10 xrefs: // > sub_1006927C0 @ 0x100692934 // > sub_100692BEC @ 0x100692e6c // > sub_100693620 @ 0x10069369c // > sub_100693A08 @ 0x100693bbc // > sub_100698F74 @ 0x100698fa0 // > sub_100699054 @ 0x10069907c // > sub_100699054 @ 0x1006990b0 // > sub_100699054 @ 0x100699130 // > sub_100699158 @ 0x1006991a4 // > sub_100699158 @ 0x100699214 // // 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 11:11:36 +0000 // __int64 *__fastcall sub_100698E54(__int64 *a1, int a2, __int64 **a3) { __int64 *v3; // x9 __int64 *v4; // x10 __int64 *v5; // x8 int v6; // w8 __int64 *v7; // x8 __int64 v8; // x11 __int64 v9; // x11 __int64 v11; // [xsp+0h] [xbp-30h] BYREF __int64 v12; // [xsp+8h] [xbp-28h] if ( !a3 ) return nullptr; v11 = 0; v12 = 0; v3 = &v11; v4 = &v11; while ( 1 ) { while ( 1 ) { v5 = a3[3]; if ( (__int64)a1 >= (__int64)v5 ) break; LABEL_7: v7 = *a3; if ( !*a3 ) goto LABEL_25; v8 = v7[3]; if ( (__int64)a1 < v8 ) goto LABEL_12; if ( (__int64)a1 > v8 ) { v7 = (__int64 *)a3; goto LABEL_3; } if ( a2 >= *((_DWORD *)v7 + 8) ) { v7 = (__int64 *)a3; } else { LABEL_12: *a3 = (__int64 *)v7[1]; v7[1] = (__int64)a3; if ( !*v7 ) goto LABEL_26; } LABEL_3: *v4 = (__int64)v7; a3 = (__int64 **)*v7; v4 = v7; } if ( (__int64)a1 <= (__int64)v5 ) { v6 = *((_DWORD *)a3 + 8); if ( a2 < v6 ) goto LABEL_7; if ( a2 <= v6 ) break; } v7 = a3[1]; if ( !v7 ) break; v9 = v7[3]; if ( (__int64)a1 >= v9 ) { if ( (__int64)a1 <= v9 && a2 <= *((_DWORD *)v7 + 8) ) { v7 = (__int64 *)a3; } else { a3[1] = (__int64 *)*v7; *v7 = (__int64)a3; if ( !v7[1] ) goto LABEL_26; } } else { v7 = (__int64 *)a3; } v3[1] = (__int64)v7; a3 = (__int64 **)v7[1]; v3 = v7; } LABEL_25: v7 = (__int64 *)a3; LABEL_26: v3[1] = *v7; *v4 = v7[1]; *v7 = v12; v7[1] = v11; return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source