//
// tls1_ec_nid2curve_id from 0xd55764 to 0xd557a4 (64 bytes)
//
// 6 xrefs:
// > tls_construct_server_key_exchange @ 0xd52474
// > tls1_set_curves @ 0xd55dac
// > tls12_check_peer_sigalg @ 0xd57ff4
// > tls1_check_chain @ 0xd5b290
// > tls1_check_chain @ 0xd5b480
// > ??> @ 0x41778
//
// 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_nid2curve_id(int a1)
{
__int64 v1; // x2
int *v2; // x1
int v3; // w3
v1 = 0;
v2 = (int *)&unk_F62ED8;
do
{
v3 = *v2;
v2 += 3;
if ( v3 == a1 )
return (unsigned int)(v1 + 1);
++v1;
}
while ( v1 != 29 );
return 0;
}