//
// tls1_ec_curve_id2nid from 0x9c2cac to 0x9c2cf0 (68 bytes)
//
// 5 xrefs:
// > ssl_generate_pkey_curve @ 0x9a3c9c
// > ssl3_ctrl @ 0x9a42b8
// > tls_process_key_exchange @ 0x9b7f44
// > tls1_shared_curve @ 0x9c3100
// > ??> @ 0x748ec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:05 +0000
//
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_C5181C + v2 + 8);
return *(_DWORD *)((char *)&unk_C5181C + v2);
}