//
// EVP_PKEY_security_bits from 0x804edc to 0x804f10 (52 bytes)
//
// 9 xrefs:
// > ssl3_ctrl @ 0x78f59c
// > ssl3_ctx_ctrl @ 0x79021c
// > tls_construct_server_key_exchange @ 0x7aa1d4
// > ssl_get_auto_dh @ 0x7b4bb8
// > ssl_security_cert @ 0x7b4cd4
// > ssl_security_cert @ 0x7b4d78
// > sub_843DE0 @ 0x8445d4
// > X509_verify_cert @ 0x845174
// > ??> @ 0x5af2c
//
// 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 EVP_PKEY_security_bits(int a1)
{
int v1; // r3
int (*v2)(void); // r3
if ( !a1 )
return 0;
v1 = *(_DWORD *)(a1 + 12);
if ( v1 && (v2 = *(int (**)(void))(v1 + 56)) != nullptr )
return v2();
else
return -2;
}