//
// sub_10060B7A4 from 0x10060b7a4 to 0x10060ba70 (716 bytes)
//
// 2 xrefs:
// > ??> @ 0x100840f50
// > ??> @ 0x100840fb8
//
// 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
//
void **__fastcall sub_10060B7A4(__int64 a1, __int64 a2, unsigned int *a3)
{
void **v6; // x19
int v7; // w23
__int64 v8; // x8
__int64 v9; // x24
void **v10; // x0
__int64 v11; // x27
_QWORD *v12; // x24
__int64 v13; // x0
unsigned int *v14; // x28
__int64 v15; // x27
int v16; // w24
__int64 v17; // x25
int v18; // w0
const char *v19; // x22
__int64 v20; // x0
__int64 v22; // [xsp+8h] [xbp-58h]
v6 = (void **)sub_1005DE4A4();
if ( !v6 )
{
v11 = 0;
goto LABEL_28;
}
if ( (int)sub_1005DEA4C(a3) < 1 )
return v6;
v7 = 0;
while ( 1 )
{
v8 = sub_1005DEA60((__int64)a3, v7);
if ( !*(_QWORD *)(v8 + 16) )
break;
v9 = sub_1006099D8(a1, a2, v8);
if ( !v9 )
goto LABEL_32;
v10 = (void **)sub_100608EF8();
v11 = (__int64)v10;
if ( !v10 )
{
v11 = 0;
goto LABEL_29;
}
if ( !(unsigned int)sub_1005DE80C(v10, v9) )
goto LABEL_29;
v12 = (_QWORD *)sub_1005F55E0((__int64)&unk_100841100);
if ( !v12 )
goto LABEL_28;
if ( !(unsigned int)sub_1005DE80C(v6, (__int64)v12) )
{
sub_1005F5B94((__int64)v12, (__int64)&unk_100841100);
goto LABEL_28;
}
v13 = sub_1005F55E0((__int64)&unk_100841050);
*v12 = v13;
if ( !v13 )
goto LABEL_28;
*(_QWORD *)(v13 + 8) = v11;
*(_DWORD *)*v12 = 0;
LABEL_25:
if ( ++v7 >= (int)sub_1005DEA4C(a3) )
return v6;
}
v14 = (unsigned int *)sub_1006061BC(a2);
if ( !v14 )
goto LABEL_32;
v15 = sub_1005F55E0((__int64)&unk_100841100);
if ( !v15 )
goto LABEL_31;
v22 = a1;
if ( (int)sub_1005DEA4C(v14) < 1 )
{
LABEL_24:
sub_100606210(a2, (__int64)v14);
a1 = v22;
if ( (unsigned int)sub_1005DE80C(v6, v15) )
goto LABEL_25;
sub_1005F5B94(v15, (__int64)&unk_100841100);
v11 = 0;
LABEL_28:
v9 = 0;
LABEL_29:
sub_1005E0E48(34, 134, 65, (__int64)"v3_crld.c", 336);
goto LABEL_33;
}
v16 = 0;
while ( 1 )
{
v17 = sub_1005DEA60((__int64)v14, v16);
v18 = sub_10060C208(v15, a2, v17);
if ( v18 > 0 )
goto LABEL_23;
if ( v18 < 0 )
goto LABEL_30;
v19 = *(const char **)(v17 + 8);
if ( strcmp(v19, "reasons") )
break;
if ( !(unsigned int)sub_10060C3E8(v15 + 8, *(_QWORD *)(v17 + 16)) )
goto LABEL_30;
LABEL_23:
if ( ++v16 >= (int)sub_1005DEA4C(v14) )
goto LABEL_24;
}
if ( strcmp(v19, "CRLissuer") )
goto LABEL_23;
v20 = sub_10060C60C(a2, *(_QWORD *)(v17 + 16));
*(_QWORD *)(v15 + 16) = v20;
if ( v20 )
goto LABEL_23;
LABEL_30:
sub_1005F5B94(v15, (__int64)&unk_100841100);
LABEL_31:
sub_100606210(a2, (__int64)v14);
LABEL_32:
v11 = 0;
v9 = 0;
LABEL_33:
sub_100608EEC(v9);
sub_100608F04(v11);
sub_1005DE9D0(v6, (void (*)(void))sub_10060BCA0);
return nullptr;
}