//
// i2d_PUBKEY from 0xa5f450 to 0xa5f4b0 (96 bytes)
//
// 10 xrefs:
// > CTLOG_new @ 0x9f0054
// > i2d_RSA_PUBKEY @ 0xa5f55c
// > i2d_DSA_PUBKEY @ 0xa5f650
// > i2d_EC_PUBKEY @ 0xa5f744
// > ??> @ 0x79edc
// > PEM_write_bio_PUBKEY @ 0xa35f94
// > PEM_write_PUBKEY @ 0xa35fe4
// > i2d_PUBKEY_fp @ 0xa5d6b4
// > i2d_PUBKEY_bio @ 0xa5d7c0
// > ??> @ 0xd1d6ac
//
// 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 i2d_PUBKEY(int a1, int *a2)
{
int v4; // r4
size_t *v5; // [sp+4h] [bp-4h] BYREF
v5 = nullptr;
if ( !a1 || !X509_PUBKEY_set((int)&v5, a1) )
return 0;
v4 = i2d_X509_PUBKEY(v5, a2);
X509_PUBKEY_free(v5);
return v4;
}