#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
void Swap(uint8_t block[8]) {
  uint8_t temp[4];
  temp[3] = block[3];
  temp[2] = block[2];
  temp[1] = block[1];
  temp[0] = block[0];
  block[3] = block[7];
  block[2] = block[6];
  block[1] = block[5];
  block[0] = block[4];
  block[7] = temp[3];
  block[6] = temp[2];
  block[5] = temp[1];
  block[4] = temp[0];
}


x86 assembly (clang, -O0):
<Swap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x14(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x1c(%rax)
mov    -0x18(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x18(%rax)
mov    -0x1c(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x14(%rax)
mov    -0x20(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x10(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<Swap>:
movups (%rdi),%xmm0
movups 0x10(%rdi),%xmm1
movups %xmm1,(%rdi)
movups %xmm0,0x10(%rdi)
ret

LLVM IR (-O0):
define void @Swap(i32* %0) {
%2 = alloca i32*
%3 = alloca [4 x i32]
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = getelementptr inbounds i32, i32* %4, i64 3
%6 = load i32, i32* %5
%7 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 3
store i32 %6, i32* %7
%8 = load i32*, i32** %2
%9 = getelementptr inbounds i32, i32* %8, i64 2
%10 = load i32, i32* %9
%11 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 2
store i32 %10, i32* %11
%12 = load i32*, i32** %2
%13 = getelementptr inbounds i32, i32* %12, i64 1
%14 = load i32, i32* %13
%15 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 1
store i32 %14, i32* %15
%16 = load i32*, i32** %2
%17 = getelementptr inbounds i32, i32* %16, i64 0
%18 = load i32, i32* %17
%19 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
store i32 %18, i32* %19
%20 = load i32*, i32** %2
%21 = getelementptr inbounds i32, i32* %20, i64 7
%22 = load i32, i32* %21
%23 = load i32*, i32** %2
%24 = getelementptr inbounds i32, i32* %23, i64 3
store i32 %22, i32* %24
%25 = load i32*, i32** %2
%26 = getelementptr inbounds i32, i32* %25, i64 6
%27 = load i32, i32* %26
%28 = load i32*, i32** %2
%29 = getelementptr inbounds i32, i32* %28, i64 2
store i32 %27, i32* %29
%30 = load i32*, i32** %2
%31 = getelementptr inbounds i32, i32* %30, i64 5
%32 = load i32, i32* %31
%33 = load i32*, i32** %2
%34 = getelementptr inbounds i32, i32* %33, i64 1
store i32 %32, i32* %34
%35 = load i32*, i32** %2
%36 = getelementptr inbounds i32, i32* %35, i64 4
%37 = load i32, i32* %36
%38 = load i32*, i32** %2
%39 = getelementptr inbounds i32, i32* %38, i64 0
store i32 %37, i32* %39
%40 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 3
%41 = load i32, i32* %40
%42 = load i32*, i32** %2
%43 = getelementptr inbounds i32, i32* %42, i64 7
store i32 %41, i32* %43
%44 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 2
%45 = load i32, i32* %44
%46 = load i32*, i32** %2
%47 = getelementptr inbounds i32, i32* %46, i64 6
store i32 %45, i32* %47
%48 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 1
%49 = load i32, i32* %48
%50 = load i32*, i32** %2
%51 = getelementptr inbounds i32, i32* %50, i64 5
store i32 %49, i32* %51
%52 = getelementptr inbounds [4 x i32], [4 x i32]* %3, i64 0, i64 0
%53 = load i32, i32* %52
%54 = load i32*, i32** %2
%55 = getelementptr inbounds i32, i32* %54, i64 4
store i32 %53, i32* %55
ret void
}

LLVM IR (-O2):
define void @Swap(i32* nocapture %0) {
%2 = bitcast i32* %0 to <4 x i32>*
%3 = load <4 x i32>, <4 x i32>* %2
%4 = getelementptr inbounds i32, i32* %0, i64 4
%5 = bitcast i32* %4 to <4 x i32>*
%6 = load <4 x i32>, <4 x i32>* %5
%7 = bitcast i32* %0 to <4 x i32>*
store <4 x i32> %6, <4 x i32>* %7
%8 = bitcast i32* %4 to <4 x i32>*
store <4 x i32> %3, <4 x i32>* %8
ret void
}