//
// X509_ATTRIBUTE_get0_data from 0x106474c to 0x10647ac (96 bytes)
//
// 2 xrefs:
// > X509at_get0_data_by_OBJ @ 0x1064818
// > ??> @ 0x61858
//
// 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:16:52 +0000
//
__int64 __fastcall X509_ATTRIBUTE_get0_data(__int64 a1, int a2, int a3)
{
__int64 result; // x0
__int64 v5; // x19
result = X509_ATTRIBUTE_get0_type(a1, a2);
v5 = result;
if ( result )
{
if ( (unsigned int)ASN1_TYPE_get(result) == a3 )
{
return *(_QWORD *)(v5 + 8);
}
else
{
ERR_put_error(11, 139, 122, (__int64)"crypto/x509/x509_att.c", 318);
return 0;
}
}
return result;
}