//
// sub_1050514 from 0x1050514 to 0x1050584 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x140dd10
//
// 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:16:38 +0000
//
__int64 __fastcall sub_1050514(__int64 a1, __int64 a2)
{
__int64 v3; // x0
v3 = d2i_RSAPrivateKey(0, a2);
if ( v3 )
{
EVP_PKEY_assign(a1, 6u, v3);
return 1;
}
else
{
ERR_put_error(4, 147, 4, (__int64)"crypto/rsa/rsa_ameth.c", 72);
return 0;
}
}