//
// sub_DD2224 from 0xdd2224 to 0xdd22f8 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x1130710
//
// 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
//
__int64 __fastcall sub_DD2224(_QWORD *a1, __int64 a2)
{
int v3; // w0
char **v4; // x0
int v6; // [xsp+28h] [xbp+28h]
v3 = i2d_RSAPrivateKey(*(_QWORD *)(a2 + 32));
if ( v3 <= 0 )
{
ERR_put_error(4, 138, 65, (__int64)"crypto/rsa/rsa_ameth.c", 91);
return 0;
}
else
{
v6 = v3;
v4 = OBJ_nid2obj(6u);
if ( (unsigned int)PKCS8_pkey_set0(a1, (__int64)v4, 0, 5u, 0, 0, v6) )
{
return 1;
}
else
{
ERR_put_error(4, 138, 65, (__int64)"crypto/rsa/rsa_ameth.c", 97);
return 0;
}
}
}