//
// sub_9F9DA0 from 0x9f9da0 to 0x9f9f40 (416 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77fd0
//
// 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:34 +0000
//
int __fastcall sub_9F9DA0(int a1, int a2, int a3)
{
int v3; // r4
int v6; // r8
int conv_form; // r0
int v8; // r4
int v9; // r5
int v11; // r0
int v12; // [sp+Ch] [bp-4h] BYREF
v3 = *(_DWORD *)(a2 + 20);
v12 = 0;
if ( v3 )
{
v6 = EC_KEY_get0_group(v3);
if ( v6 )
{
if ( EC_KEY_get0_public_key(v3) )
{
conv_form = EC_KEY_get_conv_form(v3);
v8 = EC_KEY_key2buf(v3, conv_form, &v12, 0);
if ( !v8 )
goto LABEL_5;
}
else
{
v8 = 0;
}
if ( BIO_indent(a1, a3, 128) )
{
v11 = EC_GROUP_order_bits(v6);
if ( BIO_printf(a1, "%s: (%d bit)\n", "Public-Key", v11) > 0
&& (!v8 || BIO_printf(a1, "%*spub:\n", a3, &byte_BF4ECA) > 0 && ASN1_buf_print(a1, v12, v8, a3 + 4)) )
{
if ( ECPKParameters_print(a1, v6, a3) )
{
v9 = 1;
goto LABEL_6;
}
}
}
LABEL_5:
ERR_put_error(16, 221, 16, "crypto/ec/ec_ameth.c", 392);
v9 = 0;
LABEL_6:
CRYPTO_clear_free(0, 0, "crypto/ec/ec_ameth.c", 393);
CRYPTO_free(v12, "crypto/ec/ec_ameth.c", 394);
return v9;
}
}
ERR_put_error(16, 221, 67, "crypto/ec/ec_ameth.c", 344);
return 0;
}