//
// EC_GROUP_get_basis_type from 0x7e595c to 0x7e59d0 (116 bytes)
//
// 3 xrefs:
// > EC_GROUP_get_ecparameters @ 0x7e5dac
// > ECPKParameters_print @ 0x7ef8cc
// > ??> @ 0x6124c
//
// 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
//
int __fastcall EC_GROUP_get_basis_type(_DWORD *a1)
{
int v2; // r0
int result; // r0
v2 = EC_GROUP_method_of();
if ( EC_METHOD_get_field_type(v2) != 407 )
return 0;
result = a1[10];
if ( result )
{
result = a1[11];
if ( result )
{
if ( a1[12] )
{
result = a1[13];
if ( result )
{
if ( a1[14] )
return 0;
else
return 683;
}
}
else
{
return 682;
}
}
}
return result;
}