//
// sub_9AA674 from 0x9aa674 to 0x9aa6f8 (132 bytes)
//
// 6 xrefs:
// > SSL_CTX_enable_ct @ 0x9b0034
// > SSL_CTX_enable_ct @ 0x9b003c
// > ??> @ 0x9b0084
// > SSL_enable_ct @ 0x9b00a8
// > SSL_enable_ct @ 0x9b00b0
// > ??> @ 0x9b00f8
//
// 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:06:53 +0000
//
int __fastcall sub_9AA674(int a1, int a2)
{
int v3; // r6
int v4; // r4
int v5; // r0
if ( a2 && (v3 = OPENSSL_sk_num(a2), v3 > 0) )
{
v4 = 0;
while ( 1 )
{
v5 = OPENSSL_sk_value(a2, v4++);
if ( SCT_get_validation_status(v5) == 2 )
return 1;
if ( v4 == v3 )
goto LABEL_7;
}
}
else
{
LABEL_7:
ERR_put_error(20, 349, 216, "ssl/ssl_lib.c", 4068);
return 0;
}
}