//
// fmt::BasicFormatter::CheckSign from 0x60d5ac to 0x60d64e (162 bytes)
//
// 3 xrefs:
// > fmt::BasicFormatter::format @ 0x60ea86
// > fmt::BasicFormatter::format @ 0x60ea98
// > fmt::BasicFormatter::format @ 0x60eaaa
//
// 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
//
void __fastcall fmt::BasicFormatter::CheckSign(int a1, int **a2, int *a3)
{
int v5; // r4
_BYTE v6[4]; // [sp+4h] [bp-34h] BYREF
const char *v7; // [sp+8h] [bp-30h]
int v8; // [sp+Ch] [bp-2Ch]
_DWORD v9[2]; // [sp+10h] [bp-28h] BYREF
_DWORD *v10; // [sp+18h] [bp-20h] BYREF
int v11; // [sp+1Ch] [bp-1Ch]
_DWORD v12[2]; // [sp+20h] [bp-18h] BYREF
int v13; // [sp+28h] [bp-10h]
v5 = **a2;
if ( *a3 > 5 )
{
v7 = "format specifier '{}' requires numeric argument";
v8 = 0;
v12[0] = 6;
v13 = (unsigned __int8)v5;
v10 = v12;
v11 = 1;
fmt::format((int)v9, "format specifier '{}' requires numeric argument", 0, &v10);
sub_774008(v9);
}
if ( (*a3 & 0xFFFFFFFD) == 1 )
{
v11 = 1;
v13 = (unsigned __int8)v5;
v9[0] = "format specifier '{}' requires signed argument";
v9[1] = 0;
v12[0] = 6;
v10 = v12;
fmt::format((int)v6, "format specifier '{}' requires signed argument", 0, &v10);
sub_774008(v6);
}
++*a2;
}