//
// sub_10058316C from 0x10058316c to 0x1005831e8 (124 bytes)
//
// 1 xrefs:
// > sub_1005877DC @ 0x1005877dc
//
// 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
//
char **sub_10058316C()
{
__int64 v0; // x19
__int64 v1; // x20
char *v2; // x0
char **v3; // x21
v0 = sub_1005D67EC();
v1 = 0;
if ( !v0 )
return nullptr;
while ( 1 )
{
v2 = (char *)sub_1005D67D8(v0);
v3 = sub_10057480C(v1, v2);
if ( !v3 )
break;
v0 = sub_1005D6850(v0);
v1 = (__int64)v3;
if ( !v0 )
return v3;
}
sub_100574898(v1);
return nullptr;
}