//
// sub_1006219C8 from 0x1006219c8 to 0x100621a98 (208 bytes)
//
// 1 xrefs:
// > sub_1006213AC @ 0x100621460
//
// 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
//
__int64 sub_1006219C8()
{
__int64 v0; // x19
int v1; // w0
__int16 v2; // w2
int v3; // w4
if ( qword_100885B90 )
{
off_100885BA0();
if ( (unsigned int)sub_1005D5EB4((__int64 *)qword_100885B90) )
{
v0 = 1;
goto LABEL_11;
}
v1 = dword_100885B54;
if ( !dword_100885B54 )
{
v1 = sub_1005E197C();
dword_100885B54 = v1;
}
v2 = 104;
v3 = 598;
}
else
{
v1 = dword_100885B54;
if ( !dword_100885B54 )
{
v1 = sub_1005E197C();
dword_100885B54 = v1;
}
v2 = 112;
v3 = 592;
}
sub_1005E0E48(v1, 103, v2, (__int64)"e_sureware.c", v3);
v0 = 0;
LABEL_11:
if ( qword_100885B60 )
sub_1005DA554((_DWORD *)qword_100885B60);
qword_100885B90 = 0;
off_100885B98 = nullptr;
off_100885BA0 = nullptr;
off_100885B80 = nullptr;
off_100885B88 = nullptr;
off_100885BA8 = nullptr;
off_100885BB0 = nullptr;
off_100885BB8 = nullptr;
off_100885B68 = nullptr;
off_100885B58 = nullptr;
off_100885B78 = nullptr;
off_100885BC0 = nullptr;
off_100885BC8 = nullptr;
off_100885B70 = nullptr;
return v0;
}