//
// fmt::BasicWriter::GrowBuffer from 0x60d91e to 0x60d93c (30 bytes)
//
// 20 xrefs:
// > fmt::BasicWriter::write_str @ 0x60d96e
// > fmt::BasicWriter::write_str @ 0x60d9b6
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60da54
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60da62
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60da8c
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60daac
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dbe6
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dbf4
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dc1e
// > fmt::BasicWriter::PrepareBufferForInt @ 0x60dc3e
// > fmt::BasicWriter::write_str @ 0x60e3e2
// > fmt::BasicWriter::write_str @ 0x60e42c
// > fmt::BasicWriter::FormatDouble @ 0x60e68e
// > fmt::BasicWriter::FormatDouble @ 0x60e698
// > fmt::BasicWriter::FormatDouble @ 0x60e942
// > fmt::BasicWriter::FormatDouble @ 0x60e94c
// > fmt::BasicFormatter::format @ 0x60ebde
// > fmt::BasicFormatter::format @ 0x60ec2a
// > fmt::internal::PrintfParser::Format @ 0x60f026
// > fmt::internal::PrintfParser::Format @ 0x60f070
//
// 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
//
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;
}