//
// fmt::BasicFormatter::ParseArgIndex from 0x60bb40 to 0x60bb8e (78 bytes)
//
// 2 xrefs:
// > fmt::BasicFormatter::format @ 0x60eb22
// > fmt::BasicFormatter::Format @ 0x60ed1e
//
// 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::ParseArgIndex(int a1, int **a2, int a3)
{
int v4; // r0
int v6[3]; // [sp+0h] [bp-Ch] BYREF
v6[0] = a1;
v6[1] = (int)a2;
v6[2] = a3;
if ( (unsigned int)(**a2 - 48) <= 9 )
{
*(_DWORD *)(a1 + 12) = -1;
v6[0] = 0;
v4 = sub_60B92C(a2, v6);
}
else
{
v4 = *(_DWORD *)(a1 + 12);
*(_DWORD *)(a1 + 12) = v4 + 1;
}
return *(_DWORD *)(a1 + 4) + 16 * v4;
}