//
// tls1_ec_curve_id2nid from 0xd55720 to 0xd55764 (68 bytes)
//
// 5 xrefs:
// > ssl_generate_pkey_curve @ 0xd387b0
// > ssl3_ctrl @ 0xd38dac
// > tls_process_key_exchange @ 0xd4b5c0
// > tls1_shared_curve @ 0xd55a88
// > ??> @ 0x5c6a0
//
// 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 tls1_ec_curve_id2nid(int a1, _DWORD *a2)
{
unsigned int v2; // w3
__int64 result; // x0
__int64 v5; // x2
v2 = a1 - 1;
result = 0;
if ( v2 <= 0x1C )
{
v5 = 12LL * a1 - 12;
if ( a2 )
*a2 = *(_DWORD *)((char *)&unk_F62ED8 + v5 + 8);
return *(unsigned int *)((char *)&unk_F62ED8 + v5);
}
return result;
}