//
// sub_1005D5080 from 0x1005d5080 to 0x1005d50fc (124 bytes)
//
// 1 xrefs:
// > sub_1005D48A8 @ 0x1005d491c
//
// 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
//
_QWORD *sub_1005D5080()
{
_QWORD *v0; // x19
_BYTE *v1; // x0
bool v2; // zf
v0 = (_QWORD *)sub_1005D2B58();
if ( !v0 )
return nullptr;
v0[1] = sub_1005AAEE0((__int64)&off_10083B650);
v0[2] = sub_1005AAEE0((__int64)&off_10083B680);
v1 = sub_1005AAEE0((__int64)&off_10083B668);
v0[8] = v1;
if ( v1 )
v2 = v0[1] == 0;
else
v2 = 1;
if ( v2 || !v0[2] )
{
sub_1005D2CEC((__int64)v0);
return nullptr;
}
return v0;
}