// // std::__ndk1::vector>::assign from 0x5c54e0 to 0x5c560e (302 bytes) // // 2 xrefs: // > GJEffectManager::loadFromState @ 0x5d2238 // > GJEffectManager::saveToState @ 0x5d2496 // // 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:53:53 +0000 // int __fastcall std::vector::assign(int a1, int a2, const void **a3) { char **v3; // r5 unsigned int v7; // r7 char **v8; // r4 int v9; // r8 char **v10; // r5 char **v11; // r8 int v12; // r7 int v13; // r0 int v14; // r1 int result; // r0 char **v16; // r0 unsigned int v17; // r3 int v18; // r5 int v19; // r0 int v20; // r5 v3 = *(char ***)a1; v7 = -1227133513 * (((int)a3 - a2) >> 3); if ( v7 > -1227133513 * ((*(_DWORD *)(a1 + 8) - *(_DWORD *)a1) >> 3) ) { if ( v3 ) { while ( 1 ) { v16 = *(char ***)(a1 + 4); if ( v3 == v16 ) break; *(_DWORD *)(a1 + 4) = v16 - 14; std::__vector_base::~__vector_base(v16 - 3); } operator delete(*(void **)a1); *(_DWORD *)(a1 + 8) = 0; *(_DWORD *)(a1 + 4) = 0; *(_DWORD *)a1 = 0; } v17 = 76695844; if ( v7 > 0x4924924 ) sub_388B90(); if ( (unsigned int)(-1227133513 * ((*(_DWORD *)(a1 + 8) - *(_DWORD *)a1) >> 3)) <= 0x2492491 ) { v17 = 1840700270 * ((*(_DWORD *)(a1 + 8) - *(_DWORD *)a1) >> 3); if ( v17 < v7 ) v17 = v7; } v18 = 56 * v17; v19 = operator new(56 * v17); v14 = a2; v20 = v18 + v19; *(_DWORD *)(a1 + 4) = v19; *(_DWORD *)a1 = v19; v13 = a1; *(_DWORD *)(a1 + 8) = v20; return sub_5C51EC(v13, v14, a3); } v8 = (char **)(a2 + 44); v9 = *(_DWORD *)(a1 + 4) - (_DWORD)v3; v10 = v3 + 11; if ( v7 <= -1227133513 * (v9 >> 3) ) { v11 = (char **)a3; v12 = 0; } else { v11 = (char **)(v9 + a2); v12 = 1; } while ( v11 != v8 - 11 ) { *((_BYTE *)v10 - 44) = *((_BYTE *)v8 - 44); *((_BYTE *)v10 - 43) = *((_BYTE *)v8 - 43); *(_QWORD *)(v10 - 9) = *(_QWORD *)(v8 - 9); *(_QWORD *)(v10 - 7) = *(_QWORD *)(v8 - 7); *(v10 - 5) = *(v8 - 5); *(v10 - 4) = *(v8 - 4); *(v10 - 3) = *(v8 - 3); *((_BYTE *)v10 - 8) = *((_BYTE *)v8 - 8); *(v10 - 1) = *(v8 - 1); if ( v10 != v8 ) std::vector::assign(v10, *v8, v8[1]); v10 += 14; v8 += 14; } if ( v12 ) { v13 = a1; v14 = (int)v11; return sub_5C51EC(v13, v14, a3); } while ( 1 ) { result = *(_DWORD *)(a1 + 4); if ( v10 - 11 == (char **)result ) break; *(_DWORD *)(a1 + 4) = result - 56; std::__vector_base::~__vector_base((char **)(result - 12)); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source