//
// d2i_PKCS8PrivateKey_fp from 0x8ba8d0 to 0x8ba944 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x6b28c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall d2i_PKCS8PrivateKey_fp(
int a1,
int *a2,
int (__fastcall *a3)(char *, int, _DWORD, const char *),
const char *a4)
{
_DWORD *v7; // r0
_DWORD *v8; // r5
int v9; // r4
v7 = BIO_new_fp(a1, 0);
v8 = v7;
if ( v7 )
{
v9 = d2i_PKCS8PrivateKey_bio((int)v7, a2, a3, a4);
BIO_free(v8);
return v9;
}
else
{
ERR_put_error(9, 121, 7, (int)"crypto/pem/pem_pk8.c", 199);
return 0;
}
}