//
// DH_security_bits from 0x7e080c to 0x7e084c (64 bytes)
//
// 3 xrefs:
// > tls_process_key_exchange @ 0x7a3e78
// > sub_7DDFB8 @ 0x7ddfbc
// > ??> @ 0x5d30c
//
// 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 DH_security_bits(int a1)
{
_DWORD *v2; // r0
int v3; // r5
int v4; // r0
v2 = *(_DWORD **)(a1 + 36);
if ( v2 )
{
v3 = BN_num_bits(v2);
}
else
{
v3 = *(_DWORD *)(a1 + 16);
if ( !v3 )
v3 = -1;
}
v4 = BN_num_bits(*(_DWORD **)(a1 + 8));
return BN_security_bits(v4, v3);
}