//
// sub_9F59F4 from 0x9f59f4 to 0x9f5b1c (296 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77eb4
//
// 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:32 +0000
//
bool __fastcall sub_9F59F4(int a1, int a2, int a3)
{
int v3; // r4
int v4; // r6
int v6; // r8
int v9; // r0
v3 = *(_DWORD *)(a2 + 20);
v4 = *(_DWORD *)(v3 + 24);
v6 = *(_DWORD *)(v3 + 20);
if ( (!v4
|| BIO_indent(a1, a3, 128)
&& (v9 = BN_num_bits(*(_DWORD **)(v3 + 8)), BIO_printf(a1, "%s: (%d bit)\n", "Private-Key", v9) > 0))
&& ASN1_bn_print(a1, "priv:", v4, 0, a3)
&& ASN1_bn_print(a1, "pub: ", v6, 0, a3)
&& ASN1_bn_print(a1, "P: ", *(_DWORD *)(v3 + 8), 0, a3)
&& ASN1_bn_print(a1, "Q: ", *(_DWORD *)(v3 + 12), 0, a3) )
{
return ASN1_bn_print(a1, "G: ", *(_DWORD *)(v3 + 16), 0, a3) != 0;
}
else
{
return 0;
}
}