//
// EC_curve_nist2nid from 0x7e8658 to 0x7e884c (500 bytes)
//
// 4 xrefs:
// > sub_7AD920 @ 0x7ad988
// > sub_7BB73C @ 0x7bb74c
// > sub_88A824 @ 0x88a934
// > ??> @ 0x5d80c
//
// 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
//
char *__fastcall EC_curve_nist2nid(char *a1)
{
int v2; // r0
v2 = strcmp("B-163", a1);
if ( v2 )
{
if ( !strcmp("B-233", a1) )
{
v2 = 1;
}
else if ( !strcmp("B-283", a1) )
{
v2 = 2;
}
else if ( !strcmp("B-409", a1) )
{
v2 = 3;
}
else if ( !strcmp("B-571", a1) )
{
v2 = 4;
}
else if ( !strcmp("K-163", a1) )
{
v2 = 5;
}
else if ( !strcmp("K-233", a1) )
{
v2 = 6;
}
else if ( !strcmp("K-283", a1) )
{
v2 = 7;
}
else if ( !strcmp("K-409", a1) )
{
v2 = 8;
}
else if ( !strcmp("K-571", a1) )
{
v2 = 9;
}
else if ( !strcmp("P-192", a1) )
{
v2 = 10;
}
else if ( !strcmp("P-224", a1) )
{
v2 = 11;
}
else if ( !strcmp("P-256", a1) )
{
v2 = 12;
}
else if ( !strcmp("P-384", a1) )
{
v2 = 13;
}
else
{
if ( strcmp("P-521", a1) )
return nullptr;
v2 = 14;
}
}
return (&off_A30EB8)[2 * v2 + 1];
}