//
// fmt::BasicWriter::GrowBuffer from 0x81c29c to 0x81c2ba (30 bytes)
//
// 20 xrefs:
// > fmt::BasicWriter::write_str @ 0x81c2ee
// > fmt::BasicWriter::write_str @ 0x81c336
// > fmt::BasicWriter::write_str @ 0x81c47a
// > fmt::BasicWriter::write_str @ 0x81c4c2
// > fmt::BasicWriter::FormatDouble @ 0x81c742
// > fmt::BasicWriter::FormatDouble @ 0x81c74c
// > fmt::BasicWriter::FormatDouble @ 0x81c9c6
// > fmt::BasicWriter::FormatDouble @ 0x81c9d0
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81e004
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81e012
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81e040
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81e066
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81e1bc
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81e1ca
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81e1f8
// > fmt::BasicWriter::PrepareBufferForInt @ 0x81e21e
// > fmt::BasicFormatter::format @ 0x81ec04
// > fmt::BasicFormatter::format @ 0x81ec50
// > fmt::internal::PrintfParser::Format @ 0x81f04c
// > fmt::internal::PrintfParser::Format @ 0x81f096
//
// 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 12:01:46 +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 + 4 * v3;
}