//
// sub_1005E02F8 from 0x1005e02f8 to 0x1005e0374 (124 bytes)
//
// 6 xrefs:
// > sub_100586300 @ 0x100586370
// > sub_100586300 @ 0x10058638c
// > sub_100586300 @ 0x1005863bc
// > sub_100586300 @ 0x1005863e8
// > sub_1005CD140 @ 0x1005cd24c
// > sub_1005E0678 @ 0x1005e069c
//
// 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_1005E02F8()
{
__int64 v0; // x0
__int64 v1; // x0
__int64 v2; // x19
__int64 (*v3)(void); // x0
v0 = qword_100883218;
if ( !qword_100883218 )
{
v1 = sub_1005D8890();
v2 = v1;
if ( v1 )
{
v0 = sub_1005D88A0(v1);
qword_100883218 = v0;
if ( v0 )
{
qword_100883210 = v2;
goto LABEL_7;
}
sub_1005D70C4(v2);
}
v0 = (__int64)sub_1005DF950();
qword_100883218 = v0;
if ( !v0 )
return 0;
}
LABEL_7:
v3 = *(__int64 (**)(void))(v0 + 40);
if ( v3 )
return v3();
return 0;
}