// // std::__ndk1::vector>::assign from 0x410538 to 0x410622 (234 bytes) // // 1 xrefs: // > std::__ndk1::__tree,std::__ndk1::vector>>,std::__ndk1::__map_value_compare,std::__ndk1::__value_type,std::__ndk1::vector>>,std::__ndk1::less>,true>,std::__ndk1::allocator,std::__ndk1::vector>>>>::__assign_multi,std::__ndk1::vector>>,std::__ndk1::__tree_node,std::__ndk1::vector>>,void *> *,int>> @ 0x410766 // // 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:35 +0000 // int __fastcall std::vector::assign(int a1, int a2, const void **a3) { char **v3; // r5 int v6; // r6 unsigned int v7; // r7 int v8; // r9 _DWORD *v9; // r5 const void **v10; // r9 int v11; // r7 int result; // r0 char **v13; // r0 unsigned int v14; // r1 v3 = *(char ***)a1; v6 = a2; v7 = -1227133513 * (((int)a3 - a2) >> 2); if ( v7 > -1227133513 * ((*(_DWORD *)(a1 + 8) - *(_DWORD *)a1) >> 2) ) { if ( v3 ) { while ( 1 ) { v13 = *(char ***)(a1 + 4); if ( v3 == v13 ) break; *(_DWORD *)(a1 + 4) = v13 - 7; std::__vector_base::~__vector_base(v13 - 3); } operator delete(*(void **)a1); *(_DWORD *)(a1 + 8) = 0; *(_DWORD *)(a1 + 4) = 0; *(_DWORD *)a1 = 0; } v14 = 153391689; if ( v7 > 0x9249249 ) sub_3878B8(); if ( (unsigned int)(-1227133513 * ((*(_DWORD *)(a1 + 8) - *(_DWORD *)a1) >> 2)) <= 0x4924923 ) { v14 = 1840700270 * ((*(_DWORD *)(a1 + 8) - *(_DWORD *)a1) >> 2); if ( v14 < v7 ) v14 = v7; } std::vector::allocate((_DWORD *)a1, v14); return sub_4039BC(a1, v6, a3); } v8 = *(_DWORD *)(a1 + 4) - (_DWORD)v3; v9 = v3 + 4; if ( v7 <= -1227133513 * (v8 >> 2) ) { v10 = a3; v11 = 0; } else { v10 = (const void **)(v8 + a2); v11 = 1; } while ( (const void **)v6 != v10 ) { *(v9 - 4) = *(_DWORD *)v6; *(v9 - 3) = *(_DWORD *)(v6 + 4); *(v9 - 2) = *(_DWORD *)(v6 + 8); *((_BYTE *)v9 - 4) = *(_BYTE *)(v6 + 12); if ( v9 != (_DWORD *)(v6 + 16) ) std::vector::assign(v9, *(char **)(v6 + 16), *(char **)(v6 + 20)); v6 += 28; v9 += 7; } if ( v11 ) return sub_4039BC(a1, v6, a3); while ( 1 ) { result = *(_DWORD *)(a1 + 4); if ( v9 - 4 == (_DWORD *)result ) break; *(_DWORD *)(a1 + 4) = result - 28; std::__vector_base::~__vector_base((char **)(result - 12)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source