//
// fmt::internal::PrintfParser::ParseFlags from 0x180042eb0 to 0x180042f03 (83 bytes)
//
// 1 xrefs:
// > ??> @ 0x1801438a8
//
// 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
//
__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;
}