// // std::vector>::reserve from 0x49ae98 to 0x49aefe (102 bytes) // // 3 xrefs: // > GJEffectManager::updateTimers @ 0x4a0174 // > GJEffectManager::getPersistentStateString @ 0x4a36cc // > GJEffectManager::getPersistentStateString @ 0x4a37b8 // // 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::reserve(int a1, unsigned int a2, int a3) { const void *v5; // r8 signed int v6; // r6 char *v7; // r5 if ( a2 >= 0x40000000 ) sub_7731C4("vector::reserve", a2, a3); v5 = *(const void **)a1; if ( a2 > (*(_DWORD *)(a1 + 8) - *(_DWORD *)a1) >> 2 ) { v6 = *(_DWORD *)(a1 + 4) - (_DWORD)v5; if ( a2 ) v7 = (char *)sub_498916(a2); else v7 = nullptr; if ( v6 >> 2 ) memmove(v7, v5, v6); if ( *(_DWORD *)a1 ) operator delete(*(void **)a1); *(_DWORD *)a1 = v7; *(_DWORD *)(a1 + 4) = &v7[v6]; *(_DWORD *)(a1 + 8) = &v7[4 * a2]; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source