//
// fmt::internal::PrintfParser::ParseFlags from 0x1800434b0 to 0x180043503 (83 bytes)
//
// 1 xrefs:
// > ??> @ 0x18014cf68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:21:40 +0000
//
__int64 __fastcall fmt::internal::PrintfParser::ParseFlags(__int64 a1, __int64 a2, __int64 *a3)
{
_WORD *v3; // r9
__int16 v4; // cx
__int64 result; // rax
while ( 1 )
{
while ( 1 )
{
while ( 1 )
{
while ( 1 )
{
while ( 1 )
{
v3 = (_WORD *)*a3;
v4 = *(_WORD *)*a3;
result = *a3 + 2;
*a3 = result;
if ( v4 != 32 )
break;
*(_DWORD *)(a2 + 12) |= 1u;
}
if ( v4 != 35 )
break;
*(_DWORD *)(a2 + 12) |= 4u;
}
if ( v4 != 43 )
break;
*(_DWORD *)(a2 + 12) |= 3u;
}
if ( v4 != 45 )
break;
*(_DWORD *)(a2 + 8) = 1;
}
if ( v4 != 48 )
break;
*(_WORD *)(a2 + 4) = 48;
}
*a3 = (__int64)v3;
return result;
}