//
// sub_D8C298 from 0xd8c298 to 0xd8c300 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x1122ec0
//
// 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_D8C298(__int64 a1)
{
__int64 v1; // x0
int v2; // w0
unsigned int v3; // w2
v1 = EC_KEY_get0_group(*(_QWORD *)(a1 + 32));
v2 = EC_GROUP_order_bits(v1);
v3 = 256;
if ( v2 <= 511 )
{
v3 = 192;
if ( v2 <= 383 )
{
v3 = 128;
if ( v2 <= 255 )
{
v3 = 112;
if ( v2 <= 223 )
{
v3 = 80;
if ( v2 <= 159 )
return (unsigned int)(v2 / 2);
}
}
}
}
return v3;
}