//
// tls1_ec_curve_id2nid from 0xfd3a74 to 0xfd3ab8 (68 bytes)
//
// 5 xrefs:
// > ssl_generate_pkey_curve @ 0xfb6b04
// > ssl3_ctrl @ 0xfb7100
// > tls_process_key_exchange @ 0xfc9914
// > tls1_shared_curve @ 0xfd3ddc
// > ??> @ 0x7e9b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:31 +0000
//
__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_11F43D8 + v5 + 8);
return *(unsigned int *)((char *)&unk_11F43D8 + v5);
}
return result;
}