//
// X509V3_EXT_get_nid from 0x857470 to 0x85750c (156 bytes)
//
// 5 xrefs:
// > sub_8539DC @ 0x853a00
// > X509V3_EXT_i2d @ 0x854108
// > X509V3_EXT_get @ 0x857530
// > X509V3_EXT_add_alias @ 0x857584
// > ??> @ 0x68b6c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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_AC105C, 46, 4, (int (__fastcall *)(int, int))sub_85737C);
if ( v1 )
return *(_DWORD *)v1;
if ( !dword_AD4850 )
return 0;
v3 = OPENSSL_sk_find(dword_AD4850, (int)v5);
if ( v3 == -1 )
return 0;
else
return OPENSSL_sk_value((_DWORD *)dword_AD4850, v3);
}