//
// BN_swap from 0xd79eb8 to 0xd79f24 (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x65490
//
// 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_swap(__int64 *result, __int64 *a2)
{
int v2; // w10
int v3; // w9
int v4; // w8
__int64 v5; // x7
int v6; // w4
int v7; // w6
int v8; // w2
int v9; // w5
int v10; // w3
v2 = *((_DWORD *)a2 + 2);
v3 = *((_DWORD *)a2 + 3);
v4 = *((_DWORD *)a2 + 4);
v5 = *result;
v6 = *((_DWORD *)a2 + 5) & 2 | *((_DWORD *)result + 5) & 1;
v7 = *((_DWORD *)result + 2);
v8 = *((_DWORD *)result + 5) & 2 | *((_DWORD *)a2 + 5) & 1;
v9 = *((_DWORD *)result + 3);
v10 = *((_DWORD *)result + 4);
*result = *a2;
*((_DWORD *)result + 2) = v2;
*((_DWORD *)result + 3) = v3;
*((_DWORD *)result + 4) = v4;
*a2 = v5;
*((_DWORD *)a2 + 2) = v7;
*((_DWORD *)a2 + 3) = v9;
*((_DWORD *)a2 + 4) = v10;
*((_DWORD *)result + 5) = v6;
*((_DWORD *)a2 + 5) = v8;
return result;
}