//
// sub_1006099FC from 0x1006099fc to 0x100609b80 (388 bytes)
//
// 6 xrefs:
// > sub_1006090A0 @ 0x10060916c
// > sub_100609210 @ 0x10060934c
// > sub_1006098FC @ 0x10060995c
// > sub_1006099D8 @ 0x1006099f8
// > sub_10060DA0C @ 0x10060dacc
// > sub_10060E5D4 @ 0x10060e6d0
//
// 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_1006099FC(int a1, __int64 a2, int a3, __int64 a4)
{
char *v6; // x21
const char *v7; // x23
int v8; // w1
__int64 v9; // x1
__int64 v10; // x2
__int64 v11; // x3
__int64 v12; // x4
__int64 v13; // x5
__int64 v14; // x6
__int64 v15; // x7
int v17; // w3
v6 = *(char **)(a4 + 16);
if ( !v6 )
{
sub_1005E0E48(34, 117, 124, (__int64)"v3_alt.c", 531);
return 0;
}
v7 = *(const char **)(a4 + 8);
if ( (unsigned int)sub_100607B14(v7, "email") )
{
if ( (unsigned int)sub_100607B14(v7, "URI") )
{
if ( (unsigned int)sub_100607B14(v7, "DNS") )
{
if ( (unsigned int)sub_100607B14(v7, "RID") )
{
if ( (unsigned int)sub_100607B14(v7, "IP") )
{
if ( (unsigned int)sub_100607B14(v7, "dirName") )
{
if ( (unsigned int)sub_100607B14(v7, "otherName") )
{
sub_1005E0E48(34, 117, 117, (__int64)"v3_alt.c", 550);
sub_1005E19F0(2, v9, v10, v11, v12, v13, v14, v15, (char)"name=");
return 0;
}
v17 = 0;
}
else
{
v17 = 4;
}
}
else
{
v17 = 7;
}
}
else
{
v17 = 8;
}
}
else
{
v17 = 2;
}
}
else
{
v17 = 6;
}
}
else
{
v17 = 1;
}
return sub_100609B80(a1, v8, a3, v17, v6);
}