//
// fmt::BasicFormatter::CheckSign from 0x1800415a0 to 0x18004174b (427 bytes)
//
// 5 xrefs:
// > fmt::BasicFormatter::format @ 0x180044076
// > fmt::BasicFormatter::format @ 0x180044087
// > fmt::BasicFormatter::format @ 0x1800440a2
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb4f4
//
// 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:39 +0000
//
void __fastcall fmt::BasicFormatter::CheckSign(__int64 a1, _QWORD *a2, int *a3)
{
void *v5; // rcx
void *v6; // rcx
void *Block[3]; // [rsp+80h] [rbp+17h] BYREF
unsigned __int64 v8; // [rsp+98h] [rbp+2Fh]
if ( *a3 > 5 )
{
sub_1800444C0(Block);
if ( v8 > 0xF )
{
v5 = Block[0];
if ( v8 + 1 >= 0x1000 )
{
v5 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v5 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v5);
}
}
if ( *a3 == 1 || *a3 == 3 )
{
sub_1800444C0(Block);
if ( v8 > 0xF )
{
v6 = Block[0];
if ( v8 + 1 >= 0x1000 )
{
v6 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free_0(v6);
}
}
*a2 += 2LL;
}