//
// X509V3_EXT_get_nid from 0xa6c070 to 0xa6c10c (156 bytes)
//
// 5 xrefs:
// > sub_A685DC @ 0xa68600
// > X509V3_EXT_i2d @ 0xa68d08
// > X509V3_EXT_get @ 0xa6c130
// > X509V3_EXT_add_alias @ 0xa6c184
// > ??> @ 0x825ec
//
// 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_get_nid(int a1)
{
int v1; // r0
unsigned int v3; // r1
_DWORD *v4; // [sp+Ch] [bp-40h] BYREF
_DWORD v5[15]; // [sp+10h] [bp-3Ch] BYREF
v4 = v5;
if ( a1 < 0 )
return 0;
v5[0] = a1;
v1 = OBJ_bsearch_((int)&v4, (int)&off_D26234, 46, 4, (int (__fastcall *)(int, int))sub_A6BF7C);
if ( v1 )
return *(_DWORD *)v1;
if ( !dword_D35ADC )
return 0;
v3 = OPENSSL_sk_find(dword_D35ADC, (int)v5);
if ( v3 == -1 )
return 0;
else
return OPENSSL_sk_value((_DWORD *)dword_D35ADC, v3);
}