// // std::__ndk1::vector>::__append from 0x416300 to 0x4163a2 (162 bytes) // // 2 xrefs: // > GameManager::calculateBaseKeyForIcons @ 0x4189f8 // > LevelPickerPopup::updateMatches @ 0x75a6e8 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:47:41 +0000 // void __fastcall std::vector::__append(int a1, unsigned int a2) { int v3; // r3 unsigned int v4; // r6 int v5; // r5 _DWORD *v6; // r3 int v7; // r5 unsigned int v8; // r7 unsigned int v9; // r3 int v10; // r0 int v11; // r3 int v12; // r7 unsigned int v13; // r1 _DWORD *v14; // r2 int v15; // r6 signed int v16; // r2 void *v17; // r3 void *v18; // r0 v3 = *(_DWORD *)(a1 + 8); v4 = a2; v5 = *(_DWORD *)(a1 + 4); if ( a2 <= (v3 - v5) >> 2 ) { do { v6 = *(_DWORD **)(a1 + 4); if ( v6 ) *v6 = 0; --v4; *(_DWORD *)(a1 + 4) += 4; } while ( v4 ); return; } v7 = v5 - *(_DWORD *)a1; v8 = a2 + (v7 >> 2); if ( v8 >= 0x40000000 ) sub_387990(); v9 = (v3 - *(_DWORD *)a1) >> 2; if ( v9 > 0x1FFFFFFE ) { v8 = 0x3FFFFFFF; LABEL_14: v10 = operator new(4 * v8); goto LABEL_16; } if ( v8 < 2 * v9 ) v8 = 2 * v9; if ( v8 ) goto LABEL_14; v10 = 0; LABEL_16: v11 = v10 + v7; v12 = v10 + 4 * v8; v13 = v4; v14 = (_DWORD *)(v10 + v7); do { if ( v14 ) *v14 = 0; --v13; ++v14; } while ( v13 ); v15 = v11 + 4 * v4; v16 = *(_DWORD *)(a1 + 4) - *(_DWORD *)a1; v17 = (void *)(v11 - v16); if ( v16 > 3 ) v17 = memcpy(v17, *(const void **)a1, v16); v18 = *(void **)a1; *(_DWORD *)a1 = v17; *(_DWORD *)(a1 + 4) = v15; *(_DWORD *)(a1 + 8) = v12; if ( v18 ) operator delete(v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source