//
// EC_curve_nist2nid from 0x9fd258 to 0x9fd44c (500 bytes)
//
// 4 xrefs:
// > sub_9C2524 @ 0x9c258c
// > sub_9D0340 @ 0x9d0350
// > sub_A9F424 @ 0xa9f534
// > ??> @ 0x7728c
//
// 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:36 +0000
//
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_C78138)[2 * v2 + 1];
}