//
// X509_PUBKEY_get0 from 0x10703dc to 0x1070454 (120 bytes)
//
// 4 xrefs:
// > X509_get0_pubkey @ 0x1064db0
// > X509_PUBKEY_get @ 0x1070460
// > X509_REQ_get0_pubkey @ 0x10ed0d0
// > ??> @ 0x4f678
//
// 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:00 +0000
//
__int64 __fastcall X509_PUBKEY_get0(__int64 a1)
{
__int64 v1; // x19
__int64 v3; // [xsp+28h] [xbp+28h] BYREF
v3 = 0;
if ( !a1 || !*(_QWORD *)(a1 + 8) )
return 0;
v1 = *(_QWORD *)(a1 + 16);
if ( !v1 )
{
sub_1070120(&v3, (__int64 **)a1);
if ( v3 )
{
ERR_put_error(11, 119, 68, (__int64)"crypto/x509/x_pubkey.c", 161);
EVP_PKEY_free(v3);
return v1;
}
return 0;
}
return v1;
}