//
// fmt::internal::Array::append from 0x81c354 to 0x81c386 (50 bytes)
//
// 6 xrefs:
// > fmt::BasicFormatter::Format @ 0x81ed26
// > fmt::BasicFormatter::Format @ 0x81ed3c
// > fmt::BasicFormatter::Format @ 0x81ed60
// > fmt::internal::PrintfParser::Format @ 0x81edee
// > fmt::internal::PrintfParser::Format @ 0x81edfa
// > fmt::internal::PrintfParser::Format @ 0x81f0fe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:46 +0000
//
int __fastcall fmt::internal::Array::append(int *a1, void *a2, int a3)
{
size_t v3; // r6
int v5; // r5
unsigned int v6; // r1
int result; // r0
v3 = a3 - (_DWORD)a2;
v5 = (a3 - (int)a2) >> 2;
v6 = *a1 + v5;
if ( v6 > a1[1] )
fmt::internal::Array::grow((int)a1, v6);
result = *a1;
if ( v5 )
result = (int)memmove((void *)(a1[2] + 4 * result), a2, v3);
*a1 += v5;
return result;
}