//
// SCT_LIST_validate from 0xd84650 to 0xd846d4 (132 bytes)
//
// 2 xrefs:
// > ssl_validate_ct @ 0xd43d3c
// > ??> @ 0x37248
//
// 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 SCT_LIST_validate(__int64 a1, __int64 a2)
{
int v4; // w23
unsigned int v5; // w19
unsigned int v6; // w20
__int64 v7; // x1
__int64 v8; // x0
__int64 result; // x0
if ( a1 && (v4 = OPENSSL_sk_num(a1), v4 > 0) )
{
v5 = 0;
v6 = 1;
while ( 1 )
{
v7 = v5++;
v8 = OPENSSL_sk_value(a1, v7);
if ( v8 )
{
result = SCT_validate(v8, a2);
v6 &= result;
if ( (result & 0x80000000) != 0 )
break;
}
if ( v5 == v4 )
return v6;
}
}
else
{
return 1;
}
return result;
}