//
// X509v3_asid_add_inherit from 0xa672f8 to 0xa673a0 (168 bytes)
//
// 2 xrefs:
// > sub_A67680 @ 0xa678a8
// > ??> @ 0x8254c
//
// 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:36 +0000
//
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;
}