//
// BN_swap from 0x7d3f28 to 0x7d3f98 (112 bytes)
//
// 1 xrefs:
// > ??> @ 0x5fa9c
//
// 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
//
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;
}