//
// sub_9F97B4 from 0x9f97b4 to 0x9f9820 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77fe8
//
// 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_9F97B4(int a1)
{
int v1; // r0
int v2; // r0
v1 = EC_KEY_get0_group(*(_DWORD *)(a1 + 20));
v2 = EC_GROUP_order_bits(v1);
if ( v2 >= 512 )
return 256;
if ( v2 >= 384 )
return 192;
if ( v2 > 255 )
return 128;
if ( v2 > 223 )
return 112;
if ( v2 <= 159 )
return v2 / 2;
return 80;
}