//
// sub_AD8F00 from 0xad8f00 to 0xad8fc0 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0xd19c48
//
// 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_AD8F00(int a1, int *a2, int *a3)
{
int v3; // r3
bool v4; // zf
char *v6; // r5
_DWORD *v7; // r1
int v8; // r3
char *v9; // r4
int *v11[2]; // [sp+4h] [bp-8h] BYREF
v3 = *a2;
v4 = *a2 == 0;
v11[0] = a3;
if ( !v4 )
{
v6 = OPENSSL_buf2hexstr(*(unsigned __int8 **)(v3 + 8), *(_DWORD *)v3);
X509V3_add_value("keyid", v6, v11);
CRYPTO_free(v6, (int)"crypto/x509v3/v3_akey.c", 46);
}
v7 = (_DWORD *)a2[1];
if ( v7 )
v11[0] = i2v_GENERAL_NAMES(0, v7, (int)v11[0]);
v8 = a2[2];
if ( v8 )
{
v9 = OPENSSL_buf2hexstr(*(unsigned __int8 **)(v8 + 8), *(_DWORD *)v8);
X509V3_add_value("serial", v9, v11);
CRYPTO_free(v9, (int)"crypto/x509v3/v3_akey.c", 53);
}
return v11[0];
}