//
// EC_curve_nist2nid from 0xd8f6cc to 0xd8f8b0 (484 bytes)
//
// 4 xrefs:
// > sub_D55028 @ 0xd55078
// > sub_D61FA4 @ 0xd61fbc
// > sub_E34118 @ 0xe34210
// > ??> @ 0x3f510
//
// 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 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_1123160)[2 * v3 + 1]);
}