//
// X509_PUBKEY_get0 from 0xa5f330 to 0xa5f3b8 (136 bytes)
//
// 4 xrefs:
// > X509_get0_pubkey @ 0xa53780
// > X509_PUBKEY_get @ 0xa5f3c0
// > X509_REQ_get0_pubkey @ 0xad83ac
// > ??> @ 0x8081c
//
// 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:32 +0000
//
int __fastcall X509_PUBKEY_get0(int a1)
{
int v1; // r4
int v3; // [sp+Ch] [bp-4h] BYREF
v3 = 0;
if ( !a1 || !*(_DWORD *)(a1 + 4) )
return 0;
v1 = *(_DWORD *)(a1 + 8);
if ( !v1 )
{
sub_A5F068(&v3, (int **)a1);
if ( v3 )
{
ERR_put_error(11, 119, 68, (int)"crypto/x509/x_pubkey.c", 161);
EVP_PKEY_free(v3);
return v1;
}
return 0;
}
return v1;
}