//
// BN_swap from 0x9e8b28 to 0x9e8b98 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x7951c
//
// 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:07:25 +0000
//
int *__fastcall BN_swap(int *result, int *a2)
{
int v2; // r10
int v3; // r2
int v4; // r12
int v5; // r3
int v6; // r6
int v7; // r9
int v8; // r5
int v9; // r8
int v10; // r4
int v11; // r7
int v12; // lr
v2 = a2[4] & 2;
v3 = a2[4] & 1;
v4 = result[4] & 1;
v5 = result[4] & 2;
v6 = *result;
v7 = *a2;
v8 = result[1];
v9 = a2[1];
v10 = result[2];
v11 = a2[2];
v12 = result[3];
result[3] = a2[3];
*result = v7;
result[1] = v9;
result[2] = v11;
*a2 = v6;
a2[1] = v8;
a2[2] = v10;
a2[3] = v12;
result[4] = v2 | v4;
a2[4] = v5 | v3;
return result;
}