//
// tls1_ec_nid2curve_id from 0x9c2cf4 to 0x9c2d38 (68 bytes)
//
// 6 xrefs:
// > tls_construct_server_key_exchange @ 0x9bf6c4
// > tls1_set_curves @ 0x9c3388
// > tls12_check_peer_sigalg @ 0x9c5680
// > tls1_check_chain @ 0x9c9084
// > tls1_check_chain @ 0x9c92d4
// > ??> @ 0x7704c
//
// 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_nid2curve_id(int a1)
{
int v1; // r3
int i; // r2
int v3; // r1
v1 = 0;
for ( i = 0; i != 29; ++i )
{
v3 = *(_DWORD *)((char *)&unk_C5181C + v1);
v1 += 12;
if ( v3 == a1 )
return i + 1;
}
return 0;
}