//
// sub_DD29B0 from 0xdd29b0 to 0xdd2a94 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x1130798
//
// 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_DD29B0(__int64 a1, __int64 a2, __int64 a3, __int64 *a4, __int64 *a5)
{
__int64 *v7; // x19
__int64 result; // x0
__int64 v9; // x0
__int64 v10; // x22
__int64 v11; // x19
char **v12; // x0
char **v13; // x0
int v14; // [xsp+3Ch] [xbp+3Ch]
v7 = (__int64 *)EVP_MD_CTX_pkey_ctx(a1);
if ( (int)EVP_PKEY_CTX_ctrl(v7, 6, -1) <= 0 )
return 0;
result = 2;
if ( v14 == 6 )
{
v9 = sub_DD2808(v7);
v10 = v9;
if ( v9 )
{
if ( a5 )
{
v11 = ASN1_STRING_dup(v9);
if ( !v11 )
{
ASN1_STRING_free(v10);
return 0;
}
v12 = OBJ_nid2obj(0x390u);
X509_ALGOR_set0(a5, (__int64)v12, 0x10u, v11);
}
v13 = OBJ_nid2obj(0x390u);
X509_ALGOR_set0(a4, (__int64)v13, 0x10u, v10);
return 3;
}
return 0;
}
return result;
}