//
// sub_10060FFB4 from 0x10060ffb4 to 0x1006100a4 (240 bytes)
//
// 6 xrefs:
// > sub_10060F8F8 @ 0x10060fa68
// > sub_1006100A4 @ 0x100610150
// > sub_1006102F4 @ 0x100610478
// > sub_1006102F4 @ 0x100610758
// > sub_1006102F4 @ 0x100610804
// > sub_1006102F4 @ 0x100610bc8
//
// 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 *__fastcall sub_10060FFB4(_QWORD *a1, __int64 a2, int a3)
{
_BYTE *v5; // x20
_QWORD *v6; // x22
_BYTE *v7; // x0
int v8; // w8
if ( !a1 && !a2 )
return nullptr;
if ( a2 )
{
v6 = sub_10058BE58(a2);
if ( !v6 )
return nullptr;
}
else
{
v6 = nullptr;
}
v5 = sub_100588710(32, (__int64)"pcy_data.c", 99);
if ( !v5 )
return nullptr;
v7 = sub_1005DE4A4();
*((_QWORD *)v5 + 3) = v7;
if ( v7 )
{
if ( a3 )
v8 = 16;
else
v8 = 0;
*(_DWORD *)v5 = v8;
if ( v6 )
{
*((_QWORD *)v5 + 1) = v6;
}
else
{
*((_QWORD *)v5 + 1) = *a1;
*a1 = 0;
}
if ( a1 )
{
*((_QWORD *)v5 + 2) = a1[1];
a1[1] = 0;
}
else
{
*((_QWORD *)v5 + 2) = 0;
}
}
else
{
sub_100588C44(v5);
if ( v6 )
sub_1005EE6D8(v6);
return nullptr;
}
return v5;
}