//
// fmt::BasicFormatter::Format from 0x60ecac to 0x60ed50 (164 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall fmt::BasicFormatter::Format(_DWORD **a1, int a2, int a3, _DWORD *a4)
{
_DWORD *v5; // r1
int v6; // r2
int v7; // r3
_DWORD *v8; // r0
_DWORD *v9; // r1
int v10; // r2
int *v11; // r0
int v12; // r1
int v13; // r2
int v14; // r3
int v16; // [sp+Ch] [bp-1Ch] BYREF
int v17[5]; // [sp+10h] [bp-18h] BYREF
a1[4] = (_DWORD *)a2;
v16 = a2;
v5 = (_DWORD *)a4[1];
a1[1] = (_DWORD *)*a4;
a1[2] = v5;
a1[3] = nullptr;
while ( 1 )
{
v6 = v16;
v7 = *(_DWORD *)v16;
if ( !*(_DWORD *)v16 )
break;
v16 += 4;
if ( v7 == 123 || v7 == 125 )
{
if ( *(_DWORD *)(v6 + 4) == v7 )
{
fmt::internal::Array::append(*a1, a1[4], v6 + 4);
v16 += 4;
a1[4] = (_DWORD *)v16;
}
else
{
v8 = *a1;
v9 = a1[4];
a1[5] = &dword_0 + 1;
fmt::internal::Array::append(v8, v9, v6);
v11 = (int *)fmt::BasicFormatter::ParseArgIndex((int)a1, (int **)&v16, v10);
v12 = v11[1];
v13 = v11[2];
v14 = v11[3];
v17[0] = *v11;
v17[1] = v12;
v17[2] = v13;
v17[3] = v14;
v16 = (int)fmt::BasicFormatter::format((int)a1, (char *)v16, v17);
}
}
}
return fmt::internal::Array::append(*a1, a1[4], v16);
}