//
// sub_7DE374 from 0x7de374 to 0x7de404 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0xa30938
// > ??> @ 0xa309a8
//
// 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
//
int __fastcall sub_7DE374(int a1, int a2, int a3)
{
int v4; // r4
if ( *(_UNKNOWN **)(a1 + 12) == &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, **(_DWORD **)(a1 + 12), v4);
return 1;
}
}
ERR_put_error(5, 107, 5, "crypto/dh/dh_ameth.c", 255);
return v4;
}