// // sub_100704818 from 0x100704818 to 0x100704898 (128 bytes) // // 5 xrefs: // > sub_100728920 @ 0x100728964 // > sub_10073645C @ 0x100736a4c // > sub_10073645C @ 0x100736aa8 // > sub_100739358 @ 0x1007393a4 // > sub_100739358 @ 0x100739404 // // 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_100704818(int *a1, int a2) { __int64 v2; // x8 int v3; // w10 __int64 v4; // x11 int v5; // w9 int v6; // w10 __int64 v7; // x11 v2 = 0; if ( !a1 || a2 < 0 ) return v2; v3 = *a1; if ( *a1 > a2 ) { v4 = *((_QWORD *)a1 + 1); v2 = *(_QWORD *)(v4 + 8LL * a2); v5 = v3 - 1; if ( v3 - 1 > a2 ) { *(_QWORD *)(v4 + 8LL * a2) = *(_QWORD *)(v4 + 8LL * a2 + 8); v6 = v3 - 2 - a2; if ( v6 ) { v7 = 8LL * a2; do { *(_QWORD *)(*((_QWORD *)a1 + 1) + v7 + 8) = *(_QWORD *)(*((_QWORD *)a1 + 1) + v7 + 16); v7 += 8; --v6; } while ( v6 ); } } *a1 = v5; return v2; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source