//
// sub_10058BAEC from 0x10058baec to 0x10058bbf8 (268 bytes)
//
// 1 xrefs:
// > sub_1005FC67C @ 0x1005fc75c
//
// 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_10058BAEC(char *a1)
{
__int64 v2; // x0
int v3; // w24
__int64 v4; // x23
_BYTE *v5; // x0
void *v6; // x19
__int64 v7; // x0
void *v8; // x20
v2 = sub_1005EDCBC(0, 0, a1);
v3 = v2;
v4 = 0;
if ( (int)v2 >= 1 )
{
v5 = sub_100588710(v2, (__int64)"obj_dat.c", 786);
v6 = v5;
if ( v5 )
{
if ( (unsigned int)sub_1005EDCBC((int)v5, v3, a1)
&& (++dword_10085E040, v7 = sub_1005EE750(), (v8 = (void *)v7) != nullptr) )
{
v4 = sub_10058A924(v7);
}
else
{
v4 = 0;
v8 = nullptr;
}
sub_1005EE6D8(v8);
sub_100588C44(v6);
}
else
{
sub_1005E0E48(8, 100, 65, "obj_dat.c", 787);
return 0;
}
}
return v4;
}