// // sub_100704780 from 0x100704780 to 0x100704818 (152 bytes) // // 4 xrefs: // > sub_1006FDA90 @ 0x1006fdb84 // > sub_1006FDA90 @ 0x1006fdc48 // > sub_100725BF8 @ 0x100725e50 // > sub_1007378D8 @ 0x100737928 // // 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:12:50 +0000 // __int64 __fastcall sub_100704780(int *a1, __int64 a2) { __int64 v2; // x9 __int64 v3; // x8 _QWORD *i; // x11 int v5; // w10 int v6; // w9 v2 = *a1; if ( (int)v2 < 1 ) return 0; v3 = 0; for ( i = *((_QWORD **)a1 + 1); *i != a2; ++i ) { if ( ++v3 >= v2 ) return 0; } if ( (v3 & 0x80000000) != 0 ) return 0; v5 = v2 - 1; if ( (int)v2 - 1 > (int)v3 ) { *i = *(_QWORD *)(*((_QWORD *)a1 + 1) + 8 * v3 + 8); if ( (_DWORD)v3 != (_DWORD)v2 - 2 ) { v6 = v2 - 2; do { *(_QWORD *)(*((_QWORD *)a1 + 1) + 8 * v3 + 8) = *(_QWORD *)(*((_QWORD *)a1 + 1) + 8 * v3 + 16); ++v3; } while ( v6 != (_DWORD)v3 ); } } *a1 = v5; return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source