//
// EC_curve_nist2nid from 0x100da2c to 0x100dc10 (484 bytes)
//
// 4 xrefs:
// > sub_FD337C @ 0xfd33cc
// > sub_FE02F8 @ 0xfe0310
// > sub_10B2418 @ 0x10b2510
// > ??> @ 0x5b360
//
// 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:16:00 +0000
//
__int64 __fastcall EC_curve_nist2nid(char *a1)
{
__int64 v3; // x0
if ( !strcmp("B-163", a1) )
{
v3 = 0;
}
else if ( !strcmp("B-233", a1) )
{
v3 = 1;
}
else if ( !strcmp("B-283", a1) )
{
v3 = 2;
}
else if ( !strcmp("B-409", a1) )
{
v3 = 3;
}
else if ( !strcmp("B-571", a1) )
{
v3 = 4;
}
else if ( !strcmp("K-163", a1) )
{
v3 = 5;
}
else if ( !strcmp("K-233", a1) )
{
v3 = 6;
}
else if ( !strcmp("K-283", a1) )
{
v3 = 7;
}
else if ( !strcmp("K-409", a1) )
{
v3 = 8;
}
else if ( !strcmp("K-571", a1) )
{
v3 = 9;
}
else if ( !strcmp("P-192", a1) )
{
v3 = 10;
}
else if ( !strcmp("P-224", a1) )
{
v3 = 11;
}
else if ( !strcmp("P-256", a1) )
{
v3 = 12;
}
else if ( !strcmp("P-384", a1) )
{
v3 = 13;
}
else
{
if ( strcmp("P-521", a1) )
return 0;
v3 = 14;
}
return LODWORD((&off_14006F0)[2 * v3 + 1]);
}