//
// EC_GROUP_get_basis_type from 0xd8cfc8 to 0xd8d03c (116 bytes)
//
// 3 xrefs:
// > EC_GROUP_get_ecparameters @ 0xd8d398
// > ECPKParameters_print @ 0xd9619c
// > ??> @ 0x86118
//
// 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_GROUP_get_basis_type(unsigned int *a1)
{
__int64 v2; // x0
bool v3; // zf
__int64 result; // x0
v2 = EC_GROUP_method_of();
v3 = (unsigned int)EC_METHOD_get_field_type(v2) == 407;
result = 0;
if ( v3 )
{
result = a1[18];
if ( (_DWORD)result )
{
result = a1[19];
if ( (_DWORD)result )
{
if ( a1[20] )
{
result = a1[21];
if ( (_DWORD)result )
{
if ( a1[22] )
return 0;
else
return 683;
}
}
else
{
return 682;
}
}
}
}
return result;
}