//
// sub_7E4BB4 from 0x7e4bb4 to 0x7e4c20 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0xa30d68
//
// 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
//
int __fastcall sub_7E4BB4(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;
}