//
// SSL_CIPHER_get_kx_nid from 0x7957f0 to 0x795890 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x5b75c
//
// 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 SSL_CIPHER_get_kx_nid(int a1)
{
int v1; // r3
v1 = *(_DWORD *)(a1 + 12);
if ( v1 == 1 )
{
v1 = 0;
}
else if ( v1 == 4 )
{
v1 = 1;
}
else if ( v1 != 2 )
{
switch ( v1 )
{
case 128:
v1 = 3;
break;
case 256:
v1 = 4;
break;
case 64:
v1 = 5;
break;
case 8:
v1 = 6;
break;
case 32:
v1 = 7;
break;
case 16:
v1 = 8;
break;
default:
return 0;
}
}
return dword_A0C8C8[2 * v1 + 65];
}