//
// X509V3_EXT_nconf_nid from 0xa68b70 to 0xa68ce0 (368 bytes)
//
// 2 xrefs:
// > X509V3_EXT_conf_nid @ 0xa6919c
// > ??> @ 0x8262c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:08:37 +0000
//
const char ***__fastcall X509V3_EXT_nconf_nid(int a1, int a2, unsigned int a3, char *a4)
{
char *v5; // r4
size_t v8; // r9
const char *v9; // r0
int v10; // t1
int v11; // r7
const char *v12; // r4
int v13; // r8
int v14; // t1
char *v15; // r0
v5 = a4;
v8 = strlen(a4);
if ( v8 <= 8 )
{
v11 = 0;
}
else
{
if ( strncmp(v5, "critical,", 9u) )
{
v11 = 0;
goto LABEL_7;
}
v9 = v5 + 9;
if ( (*(_BYTE *)(ctype_ + (unsigned __int8)v5[9] + 1) & 8) != 0 )
{
do
v10 = *(unsigned __int8 *)++v9;
while ( (*(_BYTE *)(ctype_ + v10 + 1) & 8) != 0 );
}
v5 = (char *)v9;
v11 = 1;
v8 = strlen(v9);
}
if ( v8 <= 3 )
return sub_A685DC(a1, a2, a3, v11, v5);
LABEL_7:
if ( !strncmp(v5, "DER:", 4u) )
{
v12 = v5 + 4;
v13 = 1;
}
else
{
if ( v8 == 4 || strncmp(v5, "ASN1:", 5u) )
return sub_A685DC(a1, a2, a3, v11, v5);
v12 = v5 + 5;
v13 = 2;
}
if ( (*(_BYTE *)(ctype_ + *(unsigned __int8 *)v12 + 1) & 8) != 0 )
{
do
v14 = *(unsigned __int8 *)++v12;
while ( (*(_BYTE *)(ctype_ + v14 + 1) & 8) != 0 );
}
v15 = OBJ_nid2sn(a3);
return sub_A68410(v15, v12, v11, v13, a2);
}