// // std::__ndk1::vector>::__append from 0x3f52c0 to 0x3f5394 (212 bytes) // // 3 xrefs: // > ScrollableContentLayer::reloadVirtualRows @ 0x3f69d0 // > PlayLayer::createObjectsFromSetupFinished @ 0x404aa6 // > LevelEditorLayer::init @ 0x475e6a // // 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:16 +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 std::logic_error *exception; // r4 unsigned int v10; // r3 int v11; // r0 int v12; // r3 int v13; // r7 unsigned int v14; // r1 _DWORD *v15; // r2 int v16; // r6 signed int v17; // r2 void *v18; // r3 void *v19; // 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 ) { exception = (std::logic_error *)_cxa_allocate_exception(8u); std::logic_error::logic_error(exception, "vector"); *(_DWORD *)exception = &off_D1546C; _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::length_error, (void (*)(void *))std::length_error::~length_error); } v10 = (v3 - *(_DWORD *)a1) >> 2; if ( v10 > 0x1FFFFFFE ) { v8 = 0x3FFFFFFF; LABEL_14: v11 = operator new(4 * v8); goto LABEL_16; } if ( v8 < 2 * v10 ) v8 = 2 * v10; if ( v8 ) goto LABEL_14; v11 = 0; LABEL_16: v12 = v11 + v7; v13 = v11 + 4 * v8; v14 = v4; v15 = (_DWORD *)(v11 + v7); do { if ( v15 ) *v15 = 0; --v14; ++v15; } while ( v14 ); v16 = v12 + 4 * v4; v17 = *(_DWORD *)(a1 + 4) - *(_DWORD *)a1; v18 = (void *)(v12 - v17); if ( v17 > 3 ) v18 = memcpy(v18, *(const void **)a1, v17); v19 = *(void **)a1; *(_DWORD *)a1 = v18; *(_DWORD *)(a1 + 4) = v16; *(_DWORD *)(a1 + 8) = v13; if ( v19 ) operator delete(v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source