//
// EC_GROUP_get_trinomial_basis from 0x7e59dc to 0x7e5a7c (160 bytes)
//
// 2 xrefs:
// > EC_GROUP_get_ecparameters @ 0x7e6474
// > ??> @ 0x6127c
//
// 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_trinomial_basis(_DWORD *a1, _DWORD *a2)
{
int v4; // r0
int v5; // r3
if ( !a1 )
return 0;
v4 = EC_GROUP_method_of();
if ( EC_METHOD_get_field_type(v4) == 407 && a1[10] && (v5 = a1[11]) != 0 && !a1[12] )
{
if ( a2 )
*a2 = v5;
return 1;
}
else
{
ERR_put_error(16, 194, 66, "crypto/ec/ec_asn1.c", 48);
return 0;
}
}