//
// X509V3_EXT_get_nid from 0xdfdfb0 to 0xdfe048 (152 bytes)
//
// 5 xrefs:
// > sub_DFAB3C @ 0xdfab70
// > X509V3_EXT_i2d @ 0xdfb1c4
// > X509V3_EXT_get @ 0xdfe060
// > X509V3_EXT_add_alias @ 0xdfe0dc
// > ??> @ 0x3d398
//
// 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
//
__int64 __fastcall X509V3_EXT_get_nid(int a1)
{
__int64 v1; // x0
int v3; // w1
_DWORD *v4; // [xsp+20h] [xbp+20h] BYREF
_DWORD v5[26]; // [xsp+28h] [xbp+28h] BYREF
v4 = v5;
if ( a1 < 0 )
return 0;
v5[0] = a1;
v1 = OBJ_bsearch_((__int64)&v4, (__int64)&off_1239450, 46, 8, (__int64 (__fastcall *)(__int64, __int64))sub_DFDED0);
if ( v1 )
return *(_QWORD *)v1;
if ( !qword_125F728 )
return 0;
v3 = OPENSSL_sk_find(qword_125F728, (__int64)v5);
if ( v3 == -1 )
return 0;
else
return OPENSSL_sk_value(qword_125F728, v3);
}