//
// fmt::internal::Array::grow from 0xdde080 to 0xdde100 (128 bytes)
//
// 31 xrefs:
// > fmt::BasicWriter::write_str @ 0xdde2c8
// > fmt::BasicWriter::write_str @ 0xdde2dc
// > fmt::internal::Array::append @ 0xdde4fc
// > fmt::BasicWriter::write_str @ 0xdde958
// > fmt::BasicWriter::write_str @ 0xdde970
// > fmt::BasicWriter::FormatDouble @ 0xddee10
// > fmt::BasicWriter::FormatDouble @ 0xddefa0
// > fmt::BasicWriter::FormatDouble @ 0xddefb4
// > fmt::BasicWriter::FormatDouble @ 0xddefc8
// > fmt::BasicWriter::FormatDouble @ 0xddefdc
// > fmt::BasicWriter::FormatDouble @ 0xddf324
// > fmt::BasicWriter::FormatDouble @ 0xddf4c8
// > fmt::BasicWriter::FormatDouble @ 0xddf4dc
// > fmt::BasicWriter::FormatDouble @ 0xddf4f0
// > fmt::BasicWriter::FormatDouble @ 0xddf504
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde2be8
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde2c04
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde2ec4
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde31c8
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde31e0
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde38e4
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde3904
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde3920
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde3b8c
// > fmt::BasicWriter::PrepareBufferForInt @ 0xde4170
// > fmt::BasicFormatter::format @ 0xde5314
// > fmt::BasicFormatter::format @ 0xde5648
// > fmt::BasicFormatter::Format @ 0xde58a0
// > fmt::internal::PrintfParser::Format @ 0xde5fd0
// > fmt::internal::PrintfParser::Format @ 0xde6164
// > ??> @ 0xc22d8
//
// This function is hookable on this platform (idp: arm, 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 13:09:07 +0000
//
void __fastcall fmt::internal::Array::grow(_QWORD *a1, unsigned __int64 a2)
{
unsigned __int64 v3; // x0
unsigned __int64 v4; // x0
void *v5; // x0
void *v6; // x20
_QWORD *v7; // x1
size_t v8; // x2
v3 = a1[1] + (a1[1] >> 1);
if ( a2 < v3 )
a2 = v3;
a1[1] = a2;
v4 = 4 * a2;
if ( a2 > 0x1FC0000000000000LL )
v4 = -1;
v5 = (void *)operator new[](v4);
v6 = v5;
v7 = (_QWORD *)a1[2];
v8 = 4LL * *a1;
if ( v8 )
{
memmove(v5, v7, v8);
v7 = (_QWORD *)a1[2];
}
if ( v7 != a1 + 3 && v7 )
operator delete[](v7);
a1[2] = v6;
}