//
// fmt::BasicFormatter::CheckSign from 0x180040bc0 to 0x180040d65 (421 bytes)
//
// 6 xrefs:
// > fmt::BasicFormatter::format @ 0x1800434c5
// > fmt::BasicFormatter::format @ 0x1800434da
// > fmt::BasicFormatter::format @ 0x1800434f5
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b13c8
// > ??> @ 0x1801b13d4
//
// 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(__int64 a1, _QWORD *a2, int *a3)
{
void *v5; // rcx
void *v6; // rcx
void *Block[3]; // [rsp+70h] [rbp+27h] BYREF
unsigned __int64 v8; // [rsp+88h] [rbp+3Fh]
if ( *a3 > 5 )
{
sub_180044050(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 )
invalid_parameter_noinfo_noreturn();
}
j_j_free_0(v5);
}
}
if ( ((*a3 - 1) & 0xFFFFFFFD) == 0 )
{
sub_180044050(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 )
invalid_parameter_noinfo_noreturn();
}
j_j_free_0(v6);
}
}
++*a2;
}