//
// sub_D9B568 from 0xd9b568 to 0xd9b678 (272 bytes)
//
// 1 xrefs:
// > ??> @ 0x1123348
//
// 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_D9B568(__int64 a1, __int64 a2)
{
__int64 v3; // x21
__int64 v4; // x0
unsigned int v5; // w19
if ( *(_QWORD *)(a2 + 32) )
{
v3 = CRYPTO_memdup(*(_QWORD *)(a2 + 32), 32, "crypto/ec/ecx_meth.c", 102);
if ( !v3 )
{
v5 = 0;
ERR_put_error(16, 268, 65, "crypto/ec/ecx_meth.c", 104);
return v5;
}
v4 = OBJ_nid2obj(1034);
if ( (unsigned int)X509_PUBKEY_set0_param(a1, v4, 0xFFFFFFFFLL, 0, v3, 32) )
return 1;
CRYPTO_free(v3, "crypto/ec/ecx_meth.c", 110);
ERR_put_error(16, 268, 65, "crypto/ec/ecx_meth.c", 111);
return 0;
}
else
{
ERR_put_error(16, 268, 116, "crypto/ec/ecx_meth.c", 98);
return 0;
}
}