//
// EC_GROUP_get_basis_type from 0x100b328 to 0x100b39c (116 bytes)
//
// 3 xrefs:
// > EC_GROUP_get_ecparameters @ 0x100b6f8
// > ECPKParameters_print @ 0x10144fc
// > ??> @ 0xb1fa0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:15:59 +0000
//
__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;
}