//
// std::vector>::reserve from 0x5cd53c to 0x5cd594 (88 bytes)
//
// 2 xrefs:
// > cocos2d::CCLabelBMFont::updateLabel @ 0x5cd7c6
// > cocos2d::CCLabelBMFont::updateLabel @ 0x5cd7d4
//
// 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)
{
void *v5; // r8
int v6; // r9
char *v7; // r5
if ( a2 >= 0x80000000 )
sub_7731C4("vector::reserve", a2, a3);
v5 = *(void **)a1;
if ( a2 > (*(_DWORD *)(a1 + 8) - *(_DWORD *)a1) >> 1 )
{
v6 = *(_DWORD *)(a1 + 4);
v7 = (char *)sub_5CBA18(a2);
std::__copy_move::__copy_m(v5, v6, v7);
if ( *(_DWORD *)a1 )
operator delete(*(void **)a1);
*(_DWORD *)a1 = v7;
*(_DWORD *)(a1 + 4) = &v7[v6 - (_DWORD)v5];
*(_DWORD *)(a1 + 8) = &v7[2 * a2];
}
}