//
// sub_1005F9694 from 0x1005f9694 to 0x1005f9740 (172 bytes)
//
// 3 xrefs:
// > sub_1005FC89C @ 0x1005fc9c4
// > sub_1005FC89C @ 0x1005fca60
// > sub_1005FC89C @ 0x1005fcab4
//
// 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
//
_BYTE *sub_1005F9694()
{
_BYTE *v0; // x0
_BYTE *v1; // x19
__int64 v2; // x0
__int64 v3; // x0
v0 = sub_100588710(88, (__int64)"x_pkey.c", 109);
v1 = v0;
if ( v0 )
{
*(_DWORD *)v0 = 0;
v2 = sub_1005F2974();
*((_QWORD *)v1 + 1) = v2;
if ( v2 )
{
v3 = sub_1005FBAFC(4);
*((_QWORD *)v1 + 2) = v3;
if ( v3 )
{
*((_QWORD *)v1 + 3) = 0;
*((_DWORD *)v1 + 8) = 0;
*((_QWORD *)v1 + 5) = 0;
*((_DWORD *)v1 + 12) = 0;
*((_QWORD *)v1 + 7) = 0;
*((_QWORD *)v1 + 8) = 0;
*((_QWORD *)v1 + 9) = 0;
*((_DWORD *)v1 + 20) = 1;
}
else
{
return nullptr;
}
}
else
{
return nullptr;
}
}
else
{
sub_1005E0E48(13, 173, 65, (__int64)"x_pkey.c", 109);
return nullptr;
}
return v1;
}