//
// sub_1800445F0 from 0x1800445f0 to 0x1800446e4 (244 bytes)
//
// 2 xrefs:
// > sub_180015E10 @ 0x180015ebd
// > ??> @ 0x1801f8160
//
// 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 10:53:12 +0000
//
_BOOL8 __fastcall sub_1800445F0(__int64 a1, unsigned int **a2)
{
unsigned int v4; // r8d
int v6; // [rsp+38h] [rbp+10h] BYREF
v4 = **a2;
while ( 2 )
{
switch ( v4 )
{
case 0u:
if ( (unsigned int)sub_180044980(a1, a2) )
goto LABEL_9;
return 0;
case 1u:
return (unsigned int)sub_180045B60(a1, a2) != 0;
case 2u:
if ( (unsigned int)sub_180044B90(a1, a2) )
goto LABEL_9;
return 1;
case 3u:
if ( !(unsigned int)sub_180044E10(a1, a2, &v6, 1) )
return 0;
if ( !v6 )
{
LABEL_9:
v4 = **a2;
if ( v4 > 7 )
return 0;
continue;
}
return 1;
case 4u:
case 7u:
return 1;
default:
return 0;
}
}
}