//
// X509v3_asid_add_inherit from 0x8526f8 to 0x8527a0 (168 bytes)
//
// 2 xrefs:
// > sub_852A80 @ 0x852ca8
// > ??> @ 0x68acc
//
// 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
//
bool __fastcall X509v3_asid_add_inherit(_DWORD *a1, int a2)
{
_DWORD *v2; // r5
_DWORD *v3; // r4
_DWORD *v5; // r0
_DWORD *v6; // r6
void *v7; // r0
if ( !a1 )
return 0;
if ( a2 )
{
if ( a2 == 1 )
{
v2 = (_DWORD *)a1[1];
v3 = a1 + 1;
goto LABEL_5;
}
return 0;
}
v3 = a1;
v2 = (_DWORD *)*a1;
LABEL_5:
if ( v2 )
return *v2 == 0;
v5 = ASIdentifierChoice_new();
v6 = v5;
*v3 = v5;
if ( !v5 )
return 0;
if ( v5[1] )
OPENSSL_die("assertion failed: (*choice)->u.inherit == NULL", "crypto/x509v3/v3_asid.c", 170);
v7 = ASN1_NULL_new();
v6[1] = v7;
if ( !v7 )
return 0;
*(_DWORD *)*v3 = 0;
return 1;
}