// // std::vector>::operator= from 0x49af04 to 0x49afea (230 bytes) // // 2 xrefs: // > GJEffectManager::saveToState @ 0x4a692c // > GJEffectManager::loadFromState @ 0x4a6a8a // // 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::operator=(void **a1, char **a2) { char *v4; // r6 char *v5; // r8 char *v6; // r10 int v7; // r7 unsigned int v8; // r4 char *v9; // r3 int v10; // r6 int v11; // r4 int v12; // r6 char *v13; // r3 char *v14; // r6 char *i; // r4 if ( a2 != (char **)a1 ) { v4 = a2[1]; v5 = *a2; v6 = (char *)*a1; v7 = v4 - *a2; v8 = 954437177 * (v7 >> 3); if ( v8 <= 954437177 * (((_BYTE *)a1[2] - (_BYTE *)*a1) >> 3) ) { v10 = 954437177 * (((_BYTE *)a1[1] - v6) >> 3); if ( v10 >= v8 ) { v12 = 0; while ( (int)v8 > 0 ) { --v8; memcpy(&v6[v12], &v5[v12], 0x48u); v12 += 72; } } else { v11 = 0; while ( v10 > 0 ) { --v10; memcpy(&v6[v11], &v5[v11], 0x48u); v11 += 72; } v13 = (char *)a1[1]; v14 = a2[1]; for ( i = &(*a2)[v13 - (_BYTE *)*a1]; i != v14; i += 72 ) { if ( v13 ) v13 = (char *)memcpy(v13, i, 0x48u); v13 += 72; } } } else { if ( v8 ) { if ( v8 > 0x38E38E3 ) sub_772FB4(a1); v8 = operator new(v4 - *a2); } v9 = (char *)v8; while ( v5 != v4 ) { if ( v9 ) v9 = (char *)memcpy(v9, v5, 0x48u); v5 += 72; v9 += 72; } if ( *a1 ) operator delete(*a1); *a1 = (void *)v8; a1[2] = (void *)(v8 + v7); } a1[1] = (char *)*a1 + v7; } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source