//
// fmt::BasicFormatter::CheckSign from 0x81d7f0 to 0x81d892 (162 bytes)
//
// 3 xrefs:
// > fmt::BasicFormatter::format @ 0x81eaaa
// > fmt::BasicFormatter::format @ 0x81eabc
// > fmt::BasicFormatter::format @ 0x81eace
//
// 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:47 +0000
//
int __fastcall fmt::BasicFormatter::CheckSign(int a1, int **a2, int *a3)
{
int v5; // r4
int result; // r0
_DWORD *v7; // [sp+14h] [bp-2Ch] BYREF
int v8; // [sp+18h] [bp-28h]
int v9[3]; // [sp+1Ch] [bp-24h] BYREF
_DWORD v10[2]; // [sp+28h] [bp-18h] BYREF
int v11; // [sp+30h] [bp-10h]
v5 = **a2;
if ( *a3 > 5 )
{
v10[0] = 6;
v11 = (unsigned __int8)v5;
v7 = v10;
v8 = 1;
fmt::format(v9, "format specifier '{}' requires numeric argument", 0, &v7);
result = std::string::~string((int)v9);
}
if ( (*a3 & 0xFFFFFFFD) == 1 )
{
v8 = 1;
v11 = (unsigned __int8)v5;
v10[0] = 6;
v7 = v10;
fmt::format(v9, "format specifier '{}' requires signed argument", 0, &v7);
result = std::string::~string((int)v9);
}
++*a2;
return result;
}