//
// X509V3_EXT_get_nid from 0x107c2f0 to 0x107c388 (152 bytes)
//
// 5 xrefs:
// > sub_1078E7C @ 0x1078eb0
// > X509V3_EXT_i2d @ 0x1079504
// > X509V3_EXT_get @ 0x107c3a0
// > X509V3_EXT_add_alias @ 0x107c41c
// > ??> @ 0x58960
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:07 +0000
//
__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_1552730, 46, 8, (__int64 (__fastcall *)(__int64, __int64))sub_107C210);
if ( v1 )
return *(_QWORD *)v1;
if ( !qword_1568528 )
return 0;
v3 = OPENSSL_sk_find(qword_1568528, (__int64)v5);
if ( v3 == -1 )
return 0;
else
return OPENSSL_sk_value(qword_1568528, v3);
}