//
// sub_1005D2FD8 from 0x1005d2fd8 to 0x1005d3024 (76 bytes)
//
// 5 xrefs:
// > sub_10051EB5C @ 0x10051f2c0
// > sub_100525468 @ 0x10052553c
// > sub_100526FF8 @ 0x100527558
// > sub_100527B50 @ 0x100527c5c
// > sub_100540AD8 @ 0x100540b8c
//
// 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 __fastcall sub_1005D2FD8(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
v2 = sub_1005D2B58();
v3 = v2;
if ( !v2 )
return 0;
if ( !(unsigned int)sub_1005D3024(v2, a1, 0xFFFFFFFFLL) )
{
sub_1005D2CEC(v3);
return 0;
}
return v3;
}