//
// EC_GROUP_get_pentanomial_basis from 0x100b424 to 0x100b4e4 (192 bytes)
//
// 2 xrefs:
// > EC_GROUP_get_ecparameters @ 0x100bca4
// > ??> @ 0x69c58
//
// 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_pentanomial_basis(_DWORD *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4)
{
__int64 v5; // x0
int v6; // w0
if ( !a1 )
return 0;
v5 = EC_GROUP_method_of();
if ( (unsigned int)EC_METHOD_get_field_type(v5) != 407
|| !a1[18]
|| !a1[19]
|| !a1[20]
|| (v6 = a1[21]) == 0
|| a1[22] )
{
ERR_put_error(16, 193, 66, "crypto/ec/ec_asn1.c", 70);
return 0;
}
if ( a2 )
*a2 = v6;
if ( a3 )
*a3 = a1[20];
if ( a4 )
*a4 = a1[19];
return 1;
}