//
// fmt::BasicFormatter::Format from 0x81ecd0 to 0x81ed76 (166 bytes)
//
// 0 xrefs:
//
// 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:48 +0000
//
int __fastcall fmt::BasicFormatter::Format(int a1, char *a2, int a3, _DWORD *a4)
{
int v5; // r1
char *v6; // r2
int v7; // r3
int *v8; // r0
void *v9; // r1
int v10; // r2
int *v11; // r0
int v12; // r1
int v13; // r2
int v14; // r3
char *v16; // [sp+Ch] [bp-1Ch] BYREF
int v17[5]; // [sp+10h] [bp-18h] BYREF
*(_DWORD *)(a1 + 16) = a2;
v16 = a2;
v5 = a4[1];
*(_DWORD *)(a1 + 4) = *a4;
*(_DWORD *)(a1 + 8) = v5;
*(_DWORD *)(a1 + 12) = 0;
while ( 1 )
{
v6 = v16;
if ( !*(_DWORD *)v16 )
break;
v16 += 4;
v7 = *(_DWORD *)v6;
if ( *(_DWORD *)v6 == 123 || v7 == 125 )
{
if ( *((_DWORD *)v6 + 1) == v7 )
{
fmt::internal::Array::append(*(int **)a1, *(void **)(a1 + 16), (int)(v6 + 4));
v16 += 4;
*(_DWORD *)(a1 + 16) = v16;
}
else
{
v8 = *(int **)a1;
v9 = *(void **)(a1 + 16);
*(_DWORD *)(a1 + 20) = 1;
fmt::internal::Array::append(v8, v9, (int)v6);
v11 = (int *)fmt::BasicFormatter::ParseArgIndex(a1, (_DWORD **)&v16, v10);
v12 = v11[1];
v13 = v11[2];
v14 = v11[3];
v17[0] = *v11;
v17[1] = v12;
v17[2] = v13;
v17[3] = v14;
v16 = fmt::BasicFormatter::format(a1, v16, v17);
}
}
}
return fmt::internal::Array::append(*(int **)a1, *(void **)(a1 + 16), (int)v16);
}