//
// fmt::BasicFormatter::ParseArgIndex from 0x81baf0 to 0x81bb3e (78 bytes)
//
// 2 xrefs:
// > fmt::BasicFormatter::format @ 0x81eb46
// > fmt::BasicFormatter::Format @ 0x81ed44
//
// 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::BasicFormatter::ParseArgIndex(int a1, _DWORD **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_81B8B0(a2, v6);
}
else
{
v4 = *(_DWORD *)(a1 + 12);
*(_DWORD *)(a1 + 12) = v4 + 1;
}
return *(_DWORD *)(a1 + 4) + 16 * v4;
}