//
// X509_ATTRIBUTE_get0_data from 0xa5319c to 0xa531fc (96 bytes)
//
// 2 xrefs:
// > X509at_get0_data_by_OBJ @ 0xa53254
// > ??> @ 0x8072c
//
// 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:24 +0000
//
int __fastcall X509_ATTRIBUTE_get0_data(int a1, unsigned int a2, int a3)
{
int v4; // r0
int v5; // r4
v4 = X509_ATTRIBUTE_get0_type(a1, a2);
v5 = v4;
if ( !v4 )
return 0;
if ( ASN1_TYPE_get(v4) == a3 )
return *(_DWORD *)(v5 + 4);
ERR_put_error(11, 139, 122, (int)"crypto/x509/x509_att.c", 318);
return 0;
}