//
// tls1_ec_curve_id2nid from 0x7ae0a8 to 0x7ae0ec (68 bytes)
//
// 5 xrefs:
// > ssl_generate_pkey_curve @ 0x78f098
// > ssl3_ctrl @ 0x78f6b4
// > tls_process_key_exchange @ 0x7a3340
// > tls1_shared_curve @ 0x7ae4fc
// > ??> @ 0x5ae6c
//
// 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 tls1_ec_curve_id2nid(int a1, _DWORD *a2)
{
int v2; // r0
if ( (unsigned int)(a1 - 1) > 0x1C )
return 0;
v2 = 12 * a1 - 12;
if ( a2 )
*a2 = *(_DWORD *)((char *)&unk_A0CB4C + v2 + 8);
return *(_DWORD *)((char *)&unk_A0CB4C + v2);
}