//
// bn_GF2m_mul_2x2 from 0x8e05e0 to 0x8e0674 (148 bytes)
//
// 2 xrefs:
// > BN_GF2m_mod_mul_arr @ 0x8c96fc
// > ??> @ 0x6b9dc
//
// 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
//
void __fastcall bn_GF2m_mul_2x2(_DWORD *a1)
{
int v1; // r4
int v2; // r5
int v3; // r7
int v5; // r9
int v6; // r5
int v7; // r4
_DWORD savedregs[8]; // [sp+40h] [bp+24h] BYREF
*(int *)((char *)&dword_20 + (v3 & 0xFFFFFFE0)) = (int)savedregs;
sub_8E04C0();
a1[2] = v2;
a1[3] = v1;
sub_8E04C0();
*a1 = v2;
a1[1] = v1;
sub_8E04C0();
v5 = a1[3];
v6 = v2 ^ v1 ^ *a1 ^ v5;
v7 = v1 ^ a1[1] ^ a1[2] ^ v5;
a1[2] = v7;
a1[1] = v6 ^ v7;
__asm { POP {R4-R10,PC} }
}