//
// fmt::BasicWriter::GrowBuffer from 0x180043220 to 0x180043262 (66 bytes)
//
// 4 xrefs:
// > fmt::BasicFormatter::format @ 0x1800442da
// > fmt::BasicFormatter::format @ 0x1800443d1
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb5fc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:21:39 +0000
//
__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_180044610(a1);
*a1 = v4;
return a1[2] + 2 * v2;
}