//
// BN_GF2m_arr2poly from 0xe76bd4 to 0xe76c20 (76 bytes)
//
// 3 xrefs:
// > BN_GF2m_mod_inv_arr @ 0xe76c64
// > BN_GF2m_mod_div_arr @ 0xe76d0c
// > ??> @ 0x2c418
//
// 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 BN_GF2m_arr2poly(int *a1, __int64 a2)
{
__int64 result; // x0
int v5; // w1
int v6; // t1
BN_set_word(a2, 0);
while ( 1 )
{
v6 = *a1++;
v5 = v6;
if ( v6 == -1 )
break;
result = BN_set_bit(a2, v5);
if ( !(_DWORD)result )
return result;
}
return 1;
}