//
// X509_NAME_get_entry from 0x847704 to 0x847754 (80 bytes)
//
// 13 xrefs:
// > sub_642BAC @ 0x64344e
// > X509_NAME_print_ex @ 0x7c0368
// > X509_NAME_print_ex_fp @ 0x7c089c
// > sub_843DE0 @ 0x844fac
// > sub_843DE0 @ 0x844fc0
// > X509_NAME_get_text_by_OBJ @ 0x847e6c
// > sub_851538 @ 0x8516b0
// > sub_851538 @ 0x851798
// > NAME_CONSTRAINTS_check @ 0x8582e4
// > NAME_CONSTRAINTS_check_CN @ 0x8583f4
// > sub_85C3A0 @ 0x85c5d0
// > sub_85DCC8 @ 0x85dd0c
// > ??> @ 0x54fec
//
// 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 X509_NAME_get_entry(int *a1, unsigned int a2)
{
if ( !a1 )
return 0;
if ( ((int)a2 >= OPENSSL_sk_num(*a1)) | (a2 >> 31) )
return 0;
return OPENSSL_sk_value((_DWORD *)*a1, a2);
}