//
// std::__ndk1::vector>::reserve from 0x59de64 to 0x59dec0 (92 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::init @ 0x5b4f98
// > GJBaseGameLayer::init @ 0x5b4fa4
// > GJBaseGameLayer::init @ 0x5b5384
//
// 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:15 +0000
//
void __fastcall std::vector::reserve(_DWORD *a1, unsigned int a2)
{
void *v3[2]; // [sp+0h] [bp-18h] BYREF
int v4; // [sp+8h] [bp-10h]
if ( a2 > (a1[2] - *a1) >> 2 )
{
std::__split_buffer::__split_buffer(v3, a2, (a1[1] - *a1) >> 2, (int)(a1 + 2));
std::vector::__swap_out_circular_buffer((int)a1, v3);
v4 -= 4 * ((v4 - (unsigned int)v3[1]) >> 2);
if ( v3[0] )
operator delete(v3[0]);
}
}