//
// sub_1006057DC from 0x1006057dc to 0x10060587c (160 bytes)
//
// 4 xrefs:
// > sub_10053E0BC @ 0x10053e1f0
// > sub_10053F868 @ 0x10053f9a4
// > sub_1006012E4 @ 0x100601334
// > sub_100602FD4 @ 0x100603020
//
// 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_1006057DC()
{
_QWORD *v0; // x0
_QWORD *v1; // x19
_QWORD *v2; // x0
v0 = sub_100588710(64, (__int64)"x509_vpm.c", 176);
v1 = v0;
if ( !v0 )
return nullptr;
v0[6] = 0;
v0[7] = 0;
v0[4] = 0;
v0[5] = 0;
v0[2] = 0;
v0[3] = 0;
*v0 = 0;
v0[1] = 0;
v2 = sub_100588710(56, (__int64)"x509_vpm.c", 181);
if ( v2 )
{
v2[5] = 0;
v2[6] = 0;
v2[3] = 0;
v2[4] = 0;
v2[1] = 0;
v2[2] = 0;
*v2 = 0;
*v2 = 0;
v2[5] = 0;
v2[2] = 0;
v2[3] = 0;
v1[7] = v2;
sub_10060587C(v1);
}
else
{
sub_100588C44(v1);
return nullptr;
}
return v1;
}