//
// sub_AD9590 from 0xad9590 to 0xad95fc (108 bytes)
//
// 2 xrefs:
// > ??> @ 0xd19d9c
// > ??> @ 0xd19dd4
//
// 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:09:30 +0000
//
int *__fastcall sub_AD9590(int a1, _DWORD *a2, int *a3)
{
signed int v4; // r4
int v5; // r0
int v6; // r0
unsigned int v7; // r1
int *v10; // [sp+4h] [bp+0h] BYREF
char v11[84]; // [sp+8h] [bp+4h] BYREF
v10 = a3;
v4 = 0;
while ( 1 )
{
v6 = OPENSSL_sk_num((int)a2);
v7 = v4;
if ( v4++ >= v6 )
break;
v5 = OPENSSL_sk_value(a2, v7);
i2t_ASN1_OBJECT((int)v11, 80, v5);
X509V3_add_value(nullptr, v11, &v10);
}
return v10;
}