//
// SCT_LIST_validate from 0x9f1754 to 0x9f17c0 (108 bytes)
//
// 2 xrefs:
// > ssl_validate_ct @ 0x9aff60
// > ??> @ 0x7618c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:30 +0000
//
int __fastcall SCT_LIST_validate(int a1, int a2)
{
int v4; // r8
int v5; // r4
int v6; // r5
int v7; // r0
int result; // r0
if ( !a1 )
return 1;
v4 = OPENSSL_sk_num(a1);
if ( v4 <= 0 )
return 1;
v5 = 0;
v6 = 1;
while ( 1 )
{
v7 = OPENSSL_sk_value(a1, v5++);
if ( v7 )
{
result = SCT_validate(v7, a2);
v6 &= result;
if ( result < 0 )
break;
}
if ( v5 == v4 )
return v6;
}
return result;
}