//
// sub_100A5F8 from 0x100a5f8 to 0x100a660 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0x1400450
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:59 +0000
//
__int64 __fastcall sub_100A5F8(__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;
}