//
// EC_GROUP_get_pentanomial_basis from 0x7e5a84 to 0x7e5b5c (216 bytes)
//
// 2 xrefs:
// > EC_GROUP_get_ecparameters @ 0x7e6410
// > ??> @ 0x6128c
//
// 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_pentanomial_basis(_DWORD *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4)
{
int v8; // r0
int v9; // r3
if ( !a1 )
return 0;
v8 = EC_GROUP_method_of();
if ( EC_METHOD_get_field_type(v8) == 407 && a1[10] && a1[11] && a1[12] && (v9 = a1[13]) != 0 && !a1[14] )
{
if ( a2 )
*a2 = v9;
if ( a3 )
*a3 = a1[12];
if ( a4 )
*a4 = a1[11];
return 1;
}
else
{
ERR_put_error(16, 193, 66, "crypto/ec/ec_asn1.c", 70);
return 0;
}
}