//
// X509v3_asid_add_inherit from 0x1077d98 to 0x1077e4c (180 bytes)
//
// 2 xrefs:
// > sub_1078130 @ 0x10783a4
// > ??> @ 0xe7550
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:05 +0000
//
bool __fastcall X509v3_asid_add_inherit(__int64 *a1, int a2)
{
_DWORD *v3; // x20
__int64 *v4; // x19
__int64 v5; // x0
__int64 v6; // x21
__int64 v7; // x0
if ( !a1 )
return 0;
if ( a2 )
{
if ( a2 != 1 )
return 0;
v3 = (_DWORD *)a1[1];
v4 = a1 + 1;
}
else
{
v4 = a1;
v3 = (_DWORD *)*a1;
}
if ( v3 )
return *v3 == 0;
v5 = ASIdentifierChoice_new();
*v4 = v5;
v6 = v5;
if ( v5 )
{
if ( *(_QWORD *)(v5 + 8) )
OPENSSL_die("assertion failed: (*choice)->u.inherit == NULL", "crypto/x509v3/v3_asid.c", 170);
v7 = ASN1_NULL_new();
*(_QWORD *)(v6 + 8) = v7;
if ( v7 )
{
*(_DWORD *)*v4 = 0;
return 1;
}
}
return 0;
}