//
// fmt::BasicWriter::GrowBuffer from 0x3bf0c2 to 0x3bf0de (28 bytes)
//
// 20 xrefs:
// > fmt::BasicWriter::operator<< @ 0x3bf0fc
// > fmt::BasicWriter::PrepareBufferForInt @ 0x3bf1ca
// > fmt::BasicWriter::FormatInt CCPartAnimSprite::initWithAnimDesc @ 0x3c7aec
// > fmt::BasicWriter::operator<< @ 0x3d26b8
// > fmt::BasicWriter::write_str @ 0x81bca2
// > fmt::BasicWriter::write_str @ 0x81bce6
// > fmt::BasicWriter::FormatDouble @ 0x81bf62
// > fmt::BasicWriter::FormatDouble @ 0x81bf6c
// > fmt::BasicWriter::FormatDouble @ 0x81c1ee
// > fmt::BasicWriter::FormatDouble @ 0x81c1f8
// > fmt::internal::FormatSystemErrorMessage @ 0x81caec
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81cbec
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81cc18
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81cc38
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81cc54
// > fmt::BasicFormatter::format @ 0x81d612
// > fmt::BasicFormatter::format @ 0x81d656
// > fmt::internal::PrintfParser::Format @ 0x81de12
// > fmt::internal::PrintfParser::Format @ 0x81de58
//
// 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
//
unsigned int __fastcall fmt::BasicWriter::GrowBuffer(unsigned int *a1, int a2)
{
unsigned int v3; // r6
unsigned int v4; // r5
unsigned int v5; // r0
v3 = *a1;
v4 = *a1 + a2;
if ( v4 > a1[1] )
fmt::internal::Array::grow((int)a1, *a1 + a2);
v5 = a1[2];
*a1 = v4;
return v5 + v3;
}