//
// sub_A70B14 from 0xa70b14 to 0xa70bb4 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0xc80a10
//
// 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:08:42 +0000
//
int __fastcall sub_A70B14(int a1, _DWORD *a2, int a3)
{
signed int i; // r4
int v5; // r6
int v6; // r3
int v8; // r3
int v9; // [sp+4h] [bp-4h] BYREF
v9 = a3;
for ( i = 0; i < OPENSSL_sk_num((int)a2); ++i )
{
v5 = OPENSSL_sk_value(a2, i);
v6 = ASN1_INTEGER_get(v5);
if ( v6 == 5 )
{
v8 = 0;
}
else
{
if ( v6 != 17 )
{
X509V3_add_value_int(0, v5, &v9);
continue;
}
v8 = 1;
}
X509V3_add_value(0, *((_DWORD *)&unk_C809C0 + 2 * v8 + 1), &v9);
}
return v9;
}