//
// fmt::internal::Array::append from 0xdde494 to 0xdde50c (120 bytes)
//
// 6 xrefs:
// > fmt::BasicFormatter::Format @ 0xde5820
// > fmt::BasicFormatter::Format @ 0xde585c
// > fmt::internal::PrintfParser::Format @ 0xde5944
// > fmt::internal::PrintfParser::Format @ 0xde5994
// > fmt::internal::PrintfParser::Format @ 0xde5bf0
// > ??> @ 0x4f270
//
// 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
//
char *__fastcall fmt::internal::Array::append(__int64 *a1, void *a2, __int64 a3)
{
signed __int64 v3; // x2
__int64 v4; // x19
__int64 v7; // x3
unsigned __int64 v8; // x1
char *result; // x0
signed __int64 v10; // [xsp+38h] [xbp+38h]
v3 = a3 - (_QWORD)a2;
v4 = v3 >> 2;
v7 = *a1;
v8 = (v3 >> 2) + *a1;
if ( v8 > a1[1] )
{
v10 = v3;
fmt::internal::Array::grow(a1, v8);
v7 = *a1;
v3 = v10;
}
result = (char *)a1[2];
if ( v4 )
{
result = (char *)memmove(&result[4 * v7], a2, v3);
v7 = *a1;
}
*a1 = v7 + v4;
return result;
}