//
// std::__ndk1::vector>::reserve from 0x9fe508 to 0x9fe5fc (244 bytes)
//
// 4 xrefs:
// > GJEffectManager::updateTimers @ 0x9fe650
// > GJEffectManager::getPersistentStateString @ 0xa137bc
// > GJEffectManager::getPersistentStateString @ 0xa13a24
// > ??> @ 0x101428
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:59:18 +0000
//
__int64 __fastcall std::vector::reserve(void **a1, unsigned __int64 a2)
{
char *v4; // x1
char *v5; // x3
signed __int64 v6; // x2
char *v7; // x0
void *v8; // x2
char *v9; // [xsp+20h] [xbp+20h] BYREF
char *v10; // [xsp+28h] [xbp+28h]
char *v11; // [xsp+30h] [xbp+30h]
void *v12; // [xsp+38h] [xbp+38h]
if ( a2 > ((_BYTE *)a1[2] - (_BYTE *)*a1) >> 2 )
{
std::__split_buffer::__split_buffer(
(__int64 *)&v9,
a2,
((_BYTE *)a1[1] - (_BYTE *)*a1) >> 2,
(__int64)(a1 + 2));
v4 = (char *)*a1;
v5 = (char *)a1[1];
v6 = v5 - (_BYTE *)*a1;
v7 = &v10[-v6];
v10 -= v6;
if ( v6 > 3 )
{
memcpy(v7, v4, v6);
v4 = (char *)*a1;
v7 = v10;
v5 = (char *)a1[1];
}
*a1 = v7;
v8 = a1[2];
a1[1] = v11;
v10 = v4;
v11 = v5;
a1[2] = v12;
v12 = v8;
v9 = v4;
if ( v4 != v5 )
v11 = &v5[4 * ~((unsigned __int64)(v5 - 4 - v4) >> 2)];
if ( v4 )
operator delete(v4);
}
return _stack_chk_guard;
}