//
// X509_NAME_get_index_by_NID from 0x8476d0 to 0x847704 (52 bytes)
//
// 8 xrefs:
// > sub_642BAC @ 0x64343c
// > sub_851538 @ 0x85169c
// > sub_851538 @ 0x851784
// > NAME_CONSTRAINTS_check @ 0x858320
// > NAME_CONSTRAINTS_check_CN @ 0x8583dc
// > sub_85C3A0 @ 0x85c5bc
// > sub_85DCC8 @ 0x85dcf8
// > ??> @ 0x54fdc
//
// 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_index_by_NID(int *a1, unsigned int a2, int a3)
{
char **v5; // r1
v5 = OBJ_nid2obj(a2);
if ( v5 )
return X509_NAME_get_index_by_OBJ(a1, (int)v5, a3);
else
return -2;
}