//
// sub_D8C794 from 0xd8c794 to 0xd8c8b0 (284 bytes)
//
// 1 xrefs:
// > ??> @ 0x1122ef0
//
// 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_D8C794(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v5; // x20
unsigned int v6; // w20
int v8; // w0
if ( *(_QWORD *)(a2 + 32) && (v5 = EC_KEY_get0_group(*(_QWORD *)(a2 + 32))) != 0 )
{
if ( (unsigned int)BIO_indent(a1, a3, 128)
&& (v8 = EC_GROUP_order_bits(v5), (int)BIO_printf(a1, "%s: (%d bit)\n", "ECDSA-Parameters", v8) > 0)
&& (unsigned int)ECPKParameters_print(a1, v5, a3) )
{
v6 = 1;
}
else
{
v6 = 0;
ERR_put_error(16, 221, 16, "crypto/ec/ec_ameth.c", 392);
}
CRYPTO_clear_free(0, 0, "crypto/ec/ec_ameth.c", 393);
CRYPTO_free(0, "crypto/ec/ec_ameth.c", 394);
return v6;
}
else
{
ERR_put_error(16, 221, 67, "crypto/ec/ec_ameth.c", 344);
return 0;
}
}