//
// sub_1050DF4 from 0x1050df4 to 0x1050e8c (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x140dc98
//
// 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:39 +0000
//
__int64 __fastcall sub_1050DF4(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v4; // x0
int v5; // [xsp+24h] [xbp+24h] BYREF
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
result = PKCS8_pkey_get0(nullptr, &v6, &v5, nullptr, a2);
if ( (_DWORD)result )
{
v4 = d2i_RSAPrivateKey(0, &v6);
if ( v4 )
{
EVP_PKEY_assign(a1, 6u, v4);
return 1;
}
else
{
ERR_put_error(4, 147, 4, (__int64)"crypto/rsa/rsa_ameth.c", 72);
return 0;
}
}
return result;
}