//
// X509V3_EXT_add_alias from 0xa6c174 to 0xa6c244 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x82c4c
//
// 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:39 +0000
//
int __fastcall X509V3_EXT_add_alias(int a1, int a2)
{
_DWORD *nid; // r4
_DWORD *v4; // r0
_DWORD *v5; // r5
int v6; // r1
int v7; // r2
int v8; // r3
int v9; // r1
int v10; // r2
int v11; // r3
int v12; // r0
int v13; // r1
int v14; // r2
int v15; // r3
_DWORD *v16; // r12
int v17; // r4
int v18; // r1
nid = (_DWORD *)X509V3_EXT_get_nid(a2);
if ( nid )
{
v4 = CRYPTO_malloc(&dword_38, (int)"crypto/x509v3/v3_lib.c", 162);
v5 = v4;
if ( v4 )
{
v6 = nid[1];
v7 = nid[2];
v8 = nid[3];
*v4 = *nid;
v4[1] = v6;
v4[2] = v7;
v4[3] = v8;
v9 = nid[5];
v10 = nid[6];
v11 = nid[7];
v4[4] = nid[4];
v4[5] = v9;
v4[6] = v10;
v4[7] = v11;
v12 = nid[8];
v13 = nid[9];
v14 = nid[10];
v15 = nid[11];
v16 = nid + 12;
v17 = v5[1];
v5[8] = v12;
v5[9] = v13;
v5[10] = v14;
v5[11] = v15;
v18 = v16[1];
v5[12] = *v16;
v5[13] = v18;
*v5 = a1;
v5[1] = v17 | 1;
return X509V3_EXT_add((int)v5);
}
ERR_put_error(34, 106, 65, (int)"crypto/x509v3/v3_lib.c", 163);
}
else
{
ERR_put_error(34, 106, 102, (int)"crypto/x509v3/v3_lib.c", 159);
}
return 0;
}