//
// fmt::internal::Array::grow from 0x3bf08c to 0x3bf0c2 (54 bytes)
//
// 25 xrefs:
// > fmt::BasicWriter::GrowBuffer @ 0x3bf0d2
// > fmt::BasicWriter::PrepareBufferForInt @ 0x3bf172
// > fmt::BasicWriter::PrepareBufferForInt @ 0x3bf194
// > fmt::BasicWriter::PrepareBufferForInt @ 0x3bf1f6
// > fmt::BasicWriter::PrepareBufferForInt @ 0x3bf224
// > AchievementManager::achievementForUnlock @ 0x3bf4b8
// > CCPartAnimSprite::initWithAnimDesc @ 0x3c7b36
// > fmt::BasicWriter::c_str @ 0x3d225e
// > SpriteAnimationManager::loadAnimations @ 0x3d91da
// > PlayLayer::updateInfoLabel @ 0x409ea8
// > getFrameForStreak @ 0x446df6
// > SimplePlayer::init @ 0x50d0de
// > GJBigSprite::init @ 0x640a6c
// > GameObject::perspectiveFrame @ 0x643228
// > printTheArray @ 0x671684
// > GJSmartTemplate::keyFromNeighborsOld @ 0x671946
// > SecretRewardsLayer::generateChestItems @ 0x6cf5aa
// > EditorUI::copyObjects @ 0x6f3912
// > WriteArchive::getString @ 0x71b3a6
// > LevelControlConfig::encode @ 0x799a06
// > DS_Dictionary::setFloatForKey @ 0x80db90
// > DS_Dictionary::setIntegerForKey @ 0x80de44
// > fmt::internal::Array::append @ 0x81ba14
// > fmt::internal::Array::reserve @ 0x81bd42
// > fmt::internal::FormatSystemErrorMessage @ 0x81cb1a
//
// 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:46:29 +0000
//
void __fastcall fmt::internal::Array::grow(int a1, unsigned int a2)
{
unsigned int v3; // r0
void *v4; // r0
void *v5; // r5
void *v6; // r0
v3 = *(_DWORD *)(a1 + 4) + (*(_DWORD *)(a1 + 4) >> 1);
if ( v3 < a2 )
v3 = a2;
*(_DWORD *)(a1 + 4) = v3;
v4 = (void *)operator new[](v3);
v5 = v4;
if ( *(_DWORD *)a1 )
memmove(v4, *(const void **)(a1 + 8), *(_DWORD *)a1);
v6 = *(void **)(a1 + 8);
if ( v6 != (void *)(a1 + 12) && v6 )
operator delete[](v6);
*(_DWORD *)(a1 + 8) = v5;
}