//
// SCT_LIST_validate from 0x10029b0 to 0x1002a34 (132 bytes)
//
// 2 xrefs:
// > ssl_validate_ct @ 0xfc2090
// > ??> @ 0x509f8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:54 +0000
//
__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;
}