//
// fmt::BasicWriter::GrowBuffer from 0x180042c30 to 0x180042c72 (66 bytes)
//
// 4 xrefs:
// > fmt::BasicFormatter::format @ 0x180043ccd
// > fmt::BasicFormatter::format @ 0x180043d8f
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1500
//
// 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
//
__int64 __fastcall fmt::BasicWriter::GrowBuffer(unsigned __int64 *a1, __int64 a2)
{
unsigned __int64 v2; // rsi
unsigned __int64 v4; // rdi
v2 = *a1;
v4 = *a1 + a2;
if ( v4 > a1[1] )
sub_1800441F0(a1);
*a1 = v4;
return a1[2] + 2 * v2;
}