//
// X509v3_addr_add_inherit from 0xdf5dd8 to 0xdf5e68 (144 bytes)
//
// 2 xrefs:
// > sub_DF6EDC @ 0xdf7038
// > ??> @ 0xc33f0
//
// 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
//
__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_DF58B4(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;
}