//
// sub_9F2F74 from 0x9f2f74 to 0x9f3004 (144 bytes)
//
// 2 xrefs:
// > ??> @ 0xc77bb8
// > ??> @ 0xc77c28
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:30 +0000
//
int __fastcall sub_9F2F74(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;
}