// // std::vector>::resize from 0x480b90 to 0x480c34 (164 bytes) // // 6 xrefs: // > EnterEffectInstance::EnterEffectInstance @ 0x480cb2 // > GJBaseGameLayer::addToSection @ 0x4828c2 // > GJBaseGameLayer::addToSection @ 0x482bd2 // > GJBaseGameLayer::addToSection @ 0x482e12 // > GJBaseGameLayer::init @ 0x490e42 // > GJBaseGameLayer::init @ 0x490e50 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall std::vector::resize(const void **a1, unsigned int a2) { _BYTE *v2; // r3 unsigned int v4; // r5 unsigned int v5; // r5 unsigned int v6; // r2 _DWORD *v7; // r1 unsigned int v8; // r0 unsigned int v9; // r8 char *v10; // r7 size_t v11; // r6 char *v12; // r6 unsigned int v13; // r3 char *v14; // r2 char *v15; // r6 v2 = a1[1]; v4 = (v2 - (_BYTE *)*a1) >> 2; if ( a2 <= v4 ) { if ( a2 < v4 ) a1[1] = (char *)*a1 + 4 * a2; } else { v5 = a2 - v4; if ( v5 ) { if ( v5 > ((_BYTE *)a1[2] - v2) >> 2 ) { v8 = std::vector::_M_check_len(a1, v5, (int)"vector::_M_default_append"); v9 = v8; if ( v8 ) { if ( v8 >= 0x40000000 ) sub_772FB4(v8); v10 = (char *)operator new(4 * v8); } else { v10 = nullptr; } v11 = (_BYTE *)a1[1] - (_BYTE *)*a1; if ( v11 >> 2 ) memmove(v10, *a1, v11); v12 = &v10[v11]; v13 = v5; v14 = v12; do { --v13; *(_DWORD *)v14 = 0; v14 += 4; } while ( v13 ); v15 = &v12[4 * v5]; if ( *a1 ) operator delete((void *)*a1); *a1 = v10; a1[1] = v15; a1[2] = &v10[4 * v9]; } else { v6 = v5; v7 = a1[1]; do { --v6; *v7++ = 0; } while ( v6 ); a1[1] = &v2[4 * v5]; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source