//
// PEM_read_ECPrivateKey from 0xa35d74 to 0xa35dd0 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x7ecbc
//
// 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_ECPrivateKey(int a1, int *a2)
{
_DWORD *PrivateKey; // r0
int v4; // r6
int v5; // r4
PrivateKey = (_DWORD *)PEM_read_PrivateKey(a1, 0);
v4 = (int)PrivateKey;
if ( !PrivateKey )
return 0;
v5 = EVP_PKEY_get1_EC_KEY(PrivateKey);
EVP_PKEY_free(v4);
if ( !v5 )
return 0;
if ( a2 )
{
EC_KEY_free(*a2);
*a2 = v5;
}
return v5;
}