//
// tls1_ec_nid2curve_id from 0x7ae0f0 to 0x7ae134 (68 bytes)
//
// 6 xrefs:
// > tls_construct_server_key_exchange @ 0x7aaac0
// > tls1_set_curves @ 0x7ae784
// > tls12_check_peer_sigalg @ 0x7b0a7c
// > tls1_check_chain @ 0x7b4480
// > tls1_check_chain @ 0x7b46d0
// > ??> @ 0x5d5cc
//
// 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
//
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_A0CB4C + v1);
v1 += 12;
if ( v3 == a1 )
return i + 1;
}
return 0;
}