//
// sub_D85D44 from 0xd85d44 to 0xd85dd8 (148 bytes)
//
// 2 xrefs:
// > ??> @ 0x11226b8
// > ??> @ 0x1122790
//
// 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_D85D44(__int64 a1, __int64 a2, int a3)
{
__int64 v4; // x19
if ( *(_UNKNOWN **)(a1 + 16) == &dhx_asn1_meth )
{
v4 = d2i_DHxparams(0, a2, a3);
if ( v4 )
goto LABEL_3;
}
else
{
v4 = d2i_DHparams(0, a2, a3);
if ( v4 )
{
LABEL_3:
EVP_PKEY_assign(a1, **(unsigned int **)(a1 + 16), v4);
return 1;
}
}
ERR_put_error(5, 107, 5, "crypto/dh/dh_ameth.c", 255);
return (unsigned int)v4;
}