//
// tls1_ec_nid2curve_id from 0xfd3ab8 to 0xfd3af8 (64 bytes)
//
// 6 xrefs:
// > tls_construct_server_key_exchange @ 0xfd07c8
// > tls1_set_curves @ 0xfd4100
// > tls12_check_peer_sigalg @ 0xfd6348
// > tls1_check_chain @ 0xfd95e4
// > tls1_check_chain @ 0xfd97d4
// > ??> @ 0x5dd48
//
// 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_nid2curve_id(int a1)
{
__int64 v1; // x2
int *v2; // x1
int v3; // w3
v1 = 0;
v2 = (int *)&unk_11F43D8;
do
{
v3 = *v2;
v2 += 3;
if ( v3 == a1 )
return (unsigned int)(v1 + 1);
++v1;
}
while ( v1 != 29 );
return 0;
}