//
// bn_GF2m_mul_2x2 from 0xaf55e0 to 0xaf5674 (148 bytes)
//
// 2 xrefs:
// > BN_GF2m_mod_mul_arr @ 0xade6fc
// > ??> @ 0x8545c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:11:02 +0000
//
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_AF54C0();
a1[2] = v2;
a1[3] = v1;
sub_AF54C0();
*a1 = v2;
a1[1] = v1;
sub_AF54C0();
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} }
}