//
// EC_GROUP_get_trinomial_basis from 0xd8d03c to 0xd8d0c4 (136 bytes)
//
// 2 xrefs:
// > EC_GROUP_get_ecparameters @ 0xd8d9cc
// > ??> @ 0x33c30
//
// 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
//
__int64 __fastcall EC_GROUP_get_trinomial_basis(_DWORD *a1, _DWORD *a2)
{
__int64 v3; // x0
int v4; // w0
if ( !a1 )
return 0;
v3 = EC_GROUP_method_of();
if ( (unsigned int)EC_METHOD_get_field_type(v3) != 407 || !a1[18] || (v4 = a1[19]) == 0 || a1[20] )
{
ERR_put_error(16, 194, 66, "crypto/ec/ec_asn1.c", 48);
return 0;
}
if ( a2 )
*a2 = v4;
return 1;
}