#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 */
int /*<<< orphan*/ rte_mov16(int /*<<< orphan*/ *, int /*<<< orphan*/ const *);
void rte_mov64(uint8_t *dst, const uint8_t *src) {
  rte_mov16((uint8_t *)dst + 0 * 16, (const uint8_t *)src + 0 * 16);
  rte_mov16((uint8_t *)dst + 1 * 16, (const uint8_t *)src + 1 * 16);
  rte_mov16((uint8_t *)dst + 2 * 16, (const uint8_t *)src + 2 * 16);
  rte_mov16((uint8_t *)dst + 3 * 16, (const uint8_t *)src + 3 * 16);
}


x86 assembly (clang, -O0):
<rte_mov64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <rte_mov16@plt>
mov    -0x8(%rbp),%rdi
add    $0x40,%rdi
mov    -0x10(%rbp),%rsi
add    $0x40,%rsi
call   1030 <rte_mov16@plt>
mov    -0x8(%rbp),%rdi
add    $0x80,%rdi
mov    -0x10(%rbp),%rsi
add    $0x80,%rsi
call   1030 <rte_mov16@plt>
mov    -0x8(%rbp),%rdi
add    $0xc0,%rdi
mov    -0x10(%rbp),%rsi
add    $0xc0,%rsi
call   1030 <rte_mov16@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rte_mov64>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <rte_mov16@plt>
lea    0x40(%rbx),%rdi
lea    0x40(%r14),%rsi
call   1030 <rte_mov16@plt>
lea    0x80(%rbx),%rdi
lea    0x80(%r14),%rsi
call   1030 <rte_mov16@plt>
add    $0xc0,%rbx
add    $0xc0,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <rte_mov16@plt>

LLVM IR (-O0):
define void @rte_mov64(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %3
%6 = getelementptr inbounds i32, i32* %5, i64 0
%7 = load i32*, i32** %4
%8 = getelementptr inbounds i32, i32* %7, i64 0
%9 = call i32 @rte_mov16(i32* %6, i32* %8)
%10 = load i32*, i32** %3
%11 = getelementptr inbounds i32, i32* %10, i64 16
%12 = load i32*, i32** %4
%13 = getelementptr inbounds i32, i32* %12, i64 16
%14 = call i32 @rte_mov16(i32* %11, i32* %13)
%15 = load i32*, i32** %3
%16 = getelementptr inbounds i32, i32* %15, i64 32
%17 = load i32*, i32** %4
%18 = getelementptr inbounds i32, i32* %17, i64 32
%19 = call i32 @rte_mov16(i32* %16, i32* %18)
%20 = load i32*, i32** %3
%21 = getelementptr inbounds i32, i32* %20, i64 48
%22 = load i32*, i32** %4
%23 = getelementptr inbounds i32, i32* %22, i64 48
%24 = call i32 @rte_mov16(i32* %21, i32* %23)
ret void
}

LLVM IR (-O2):
define void @rte_mov64(i32* %0, i32* %1) {
%3 = tail call i32 @rte_mov16(i32* %0, i32* %1)
%4 = getelementptr inbounds i32, i32* %0, i64 16
%5 = getelementptr inbounds i32, i32* %1, i64 16
%6 = tail call i32 @rte_mov16(i32* %4, i32* %5)
%7 = getelementptr inbounds i32, i32* %0, i64 32
%8 = getelementptr inbounds i32, i32* %1, i64 32
%9 = tail call i32 @rte_mov16(i32* %7, i32* %8)
%10 = getelementptr inbounds i32, i32* %0, i64 48
%11 = getelementptr inbounds i32, i32* %1, i64 48
%12 = tail call i32 @rte_mov16(i32* %10, i32* %11)
ret void
}