//
// i2d_DSA_PUBKEY from 0x1070710 to 0x1070790 (128 bytes)
//
// 6 xrefs:
// > ??> @ 0x86f38
// > PEM_write_bio_DSA_PUBKEY @ 0x10449a4
// > PEM_write_DSA_PUBKEY @ 0x10449f0
// > i2d_DSA_PUBKEY_fp @ 0x106e534
// > i2d_DSA_PUBKEY_bio @ 0x106e594
// > ??> @ 0x15438a0
//
// 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 i2d_DSA_PUBKEY(__int64 result, __int64 *a2)
{
__int64 v2; // x19
_DWORD *v4; // x0
__int64 v5; // x20
unsigned int v6; // w19
v2 = result;
if ( result )
{
v4 = EVP_PKEY_new();
v5 = (__int64)v4;
if ( v4 )
{
EVP_PKEY_set1_DSA((__int64)v4, v2);
v6 = i2d_PUBKEY(v5, a2);
EVP_PKEY_free(v5);
return v6;
}
else
{
ERR_put_error(13, 161, 65, (__int64)"crypto/x509/x_pubkey.c", 288);
return 0;
}
}
return result;
}