//
// EC_GROUP_get_basis_type from 0x9fa55c to 0x9fa5d0 (116 bytes)
//
// 3 xrefs:
// > EC_GROUP_get_ecparameters @ 0x9fa9ac
// > ECPKParameters_print @ 0xa044cc
// > ??> @ 0x7accc
//
// 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:34 +0000
//
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;
}