// // sub_1000260E0 from 0x1000260e0 to 0x100026238 (344 bytes) // // 3 xrefs: // > KeybindingsLayer::settingsEntries @ 0x100025980 // > sub_1004EE2C0 @ 0x1004ee328 // > LevelBindingsLayer::settingsEntries @ 0x1004ef124 // // 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 10:57:25 +0000 // _QWORD *__fastcall sub_1000260E0(_QWORD *result, char *__src, char *a3, unsigned __int64 a4) { __int64 v7; // x19 __int64 v8; // x8 _BYTE *v9; // x23 unsigned __int64 v10; // x8 __int64 v11; // x10 unsigned __int64 v12; // x1 __int64 v13; // x22 size_t v14; // x21 char *v15; // x8 _BYTE *v16; // x24 size_t v17; // x2 char *v18; // x22 size_t v19; // x21 v7 = (__int64)result; v8 = result[2]; v9 = (_BYTE *)*result; if ( 0xAAAAAAAAAAAAAAABLL * ((v8 - *result) >> 4) >= a4 ) { v16 = (_BYTE *)result[1]; v17 = v16 - v9; if ( 0xAAAAAAAAAAAAAAABLL * ((v16 - v9) >> 4) >= a4 ) { v19 = a3 - __src; if ( v19 ) result = memmove((void *)*result, __src, v19); v15 = &v9[v19]; } else { v18 = &__src[v17]; if ( v16 != v9 ) { result = memmove((void *)*result, __src, v17); v16 = *(_BYTE **)(v7 + 8); } if ( a3 != v18 ) result = memmove(v16, v18, a3 - v18); v15 = &v16[a3 - v18]; } } else { if ( v9 ) { result[1] = v9; operator delete(v9); v8 = 0; *(_QWORD *)v7 = 0; *(_QWORD *)(v7 + 8) = 0; *(_QWORD *)(v7 + 16) = 0; } if ( a4 > 0x555555555555555LL ) sub_10000A5F8(); v10 = 0xAAAAAAAAAAAAAAABLL * (v8 >> 4); v11 = 2 * v10; if ( 2 * v10 <= a4 ) v11 = a4; if ( v10 >= 0x2AAAAAAAAAAAAAALL ) v12 = 0x555555555555555LL; else v12 = v11; result = sub_100022570((_QWORD *)v7, v12); v13 = *(_QWORD *)(v7 + 8); v14 = a3 - __src; if ( v14 ) result = memmove(*(void **)(v7 + 8), __src, v14); v15 = (char *)(v13 + v14); } *(_QWORD *)(v7 + 8) = v15; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source