//
// sub_10060BCC4 from 0x10060bcc4 to 0x10060bee0 (540 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008412d0
//
// 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_10060BCC4(__int64 a1, __int64 a2, unsigned int *a3)
{
__int64 v5; // x19
int i; // w22
__int64 v7; // x25
const char *v8; // x24
__int64 v9; // x27
int v10; // w0
__int64 v11; // x0
_DWORD *v12; // x1
__int64 v14; // x1
__int64 v15; // x2
__int64 v16; // x3
__int64 v17; // x4
__int64 v18; // x5
__int64 v19; // x6
__int64 v20; // x7
v5 = sub_1005F55E0((__int64)&unk_100841250);
if ( !v5 )
{
sub_1005E0E48(34, 157, 65, (__int64)"v3_crld.c", 459);
goto LABEL_21;
}
if ( (int)sub_1005DEA4C(a3) >= 1 )
{
for ( i = 0; i < (int)sub_1005DEA4C(a3); ++i )
{
v7 = sub_1005DEA60((__int64)a3, i);
v8 = *(const char **)(v7 + 8);
v9 = *(_QWORD *)(v7 + 16);
v10 = sub_10060C208(v5, a2, v7);
if ( v10 <= 0 )
{
if ( v10 < 0 )
goto LABEL_21;
if ( !strcmp(v8, "onlyuser") )
{
v11 = v7;
v12 = (_DWORD *)(v5 + 8);
goto LABEL_17;
}
if ( !strcmp(v8, "onlyCA") )
{
v11 = v7;
v12 = (_DWORD *)(v5 + 12);
goto LABEL_17;
}
if ( !strcmp(v8, "onlyAA") )
{
v11 = v7;
v12 = (_DWORD *)(v5 + 28);
goto LABEL_17;
}
if ( !strcmp(v8, "indirectCRL") )
{
v11 = v7;
v12 = (_DWORD *)(v5 + 24);
LABEL_17:
if ( !(unsigned int)sub_100607174(v11, v12) )
goto LABEL_21;
continue;
}
if ( strcmp(v8, "onlysomereasons") )
{
sub_1005E0E48(34, 157, 106, (__int64)"v3_crld.c", 451);
sub_1005E19F0(6, v14, v15, v16, v17, v18, v19, v20, (char)"section:");
LABEL_21:
sub_1005F5B94(v5, (__int64)&unk_100841250);
return 0;
}
if ( !(unsigned int)sub_10060C3E8(v5 + 16, v9) )
goto LABEL_21;
}
}
}
return v5;
}