//
// PEM_read_bio_ECPrivateKey from 0xa35a40 to 0xa35a9c (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x7ebec
//
// 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:07 +0000
//
int __fastcall PEM_read_bio_ECPrivateKey(int a1, int *a2, int a3, int a4)
{
_DWORD *bio_PrivateKey; // r0
int v6; // r6
int v7; // r4
bio_PrivateKey = (_DWORD *)PEM_read_bio_PrivateKey(a1, 0, a3, a4);
v6 = (int)bio_PrivateKey;
if ( !bio_PrivateKey )
return 0;
v7 = EVP_PKEY_get1_EC_KEY(bio_PrivateKey);
EVP_PKEY_free(v6);
if ( !v7 )
return 0;
if ( a2 )
{
EC_KEY_free(*a2);
*a2 = v7;
}
return v7;
}