// // std::__ndk1::vector>::__append from 0x43fea4 to 0x43ff52 (174 bytes) // // 3 xrefs: // > PlayerObject::init @ 0x447e4e // > ReadArchive::process @ 0x719c14 // > cocos2d::extension::CCTableView::_updateCellPositions @ 0x7afa92 // // 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:48:25 +0000 // void __fastcall std::vector::__append(int a1, unsigned int a2, _DWORD *a3) { int v4; // r3 int v6; // r5 unsigned int v7; // r6 _DWORD *v8; // r3 int v9; // r5 unsigned int v10; // r7 unsigned int v11; // r3 int v12; // r0 int v13; // r3 int v14; // r7 unsigned int v15; // r1 _DWORD *v16; // r2 int v17; // r5 signed int v18; // r2 void *v19; // r3 void *v20; // r0 v4 = *(_DWORD *)(a1 + 8); v6 = *(_DWORD *)(a1 + 4); v7 = a2; if ( a2 <= (v4 - v6) >> 2 ) { do { v8 = *(_DWORD **)(a1 + 4); if ( v8 ) *v8 = *a3; --v7; *(_DWORD *)(a1 + 4) += 4; } while ( v7 ); return; } v9 = v6 - *(_DWORD *)a1; v10 = a2 + (v9 >> 2); if ( v10 >= 0x40000000 ) sub_387AF8(); v11 = (v4 - *(_DWORD *)a1) >> 2; if ( v11 > 0x1FFFFFFE ) { v10 = 0x3FFFFFFF; LABEL_14: v12 = operator new(4 * v10); goto LABEL_16; } if ( v10 < 2 * v11 ) v10 = 2 * v11; if ( v10 ) goto LABEL_14; v12 = 0; LABEL_16: v13 = v12 + v9; v14 = v12 + 4 * v10; v15 = v7; v16 = (_DWORD *)(v12 + v9); do { if ( v16 ) *v16 = *a3; --v15; ++v16; } while ( v15 ); v17 = v13 + 4 * v7; v18 = *(_DWORD *)(a1 + 4) - *(_DWORD *)a1; v19 = (void *)(v13 - v18); if ( v18 > 3 ) v19 = memcpy(v19, *(const void **)a1, v18); v20 = *(void **)a1; *(_DWORD *)a1 = v19; *(_DWORD *)(a1 + 4) = v17; *(_DWORD *)(a1 + 8) = v14; if ( v20 ) operator delete(v20); }
GD Web Decomp Icon

GD Web Decomp

Raw Source