//
// X509v3_addr_add_inherit from 0x1074118 to 0x10741a8 (144 bytes)
//
// 2 xrefs:
// > sub_107521C @ 0x1075378
// > ??> @ 0xfe398
//
// 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:03 +0000
//
__int64 __fastcall X509v3_addr_add_inherit(unsigned int *a1, __int16 a2, _DWORD *a3)
{
__int64 *v3; // x0
__int64 *v4; // x20
__int64 v5; // x19
__int64 result; // x0
__int64 v7; // x0
v3 = sub_1073BF4(a1, a2, a3);
v4 = v3;
if ( !v3 )
return 0;
v5 = v3[1];
if ( !v5 )
return 0;
if ( *(_DWORD *)v5 == 1 )
{
if ( *(_QWORD *)(v5 + 8) )
return 0;
goto LABEL_11;
}
if ( *(_DWORD *)v5 )
{
if ( *(_QWORD *)(v5 + 8) )
{
LABEL_8:
*(_DWORD *)v5 = 0;
return 1;
}
goto LABEL_11;
}
result = 1;
if ( !*(_QWORD *)(v5 + 8) )
{
LABEL_11:
v7 = ASN1_NULL_new();
*(_QWORD *)(v5 + 8) = v7;
if ( v7 )
{
v5 = v4[1];
goto LABEL_8;
}
return 0;
}
return result;
}