#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_mov128(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);
  rte_mov16((uint8_t *)dst + 4 * 16, (const uint8_t *)src + 4 * 16);
  rte_mov16((uint8_t *)dst + 5 * 16, (const uint8_t *)src + 5 * 16);
  rte_mov16((uint8_t *)dst + 6 * 16, (const uint8_t *)src + 6 * 16);
  rte_mov16((uint8_t *)dst + 7 * 16, (const uint8_t *)src + 7 * 16);
}


x86 assembly (clang, -O0):
<rte_mov128>:
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>
mov    -0x8(%rbp),%rdi
add    $0x100,%rdi
mov    -0x10(%rbp),%rsi
add    $0x100,%rsi
call   1030 <rte_mov16@plt>
mov    -0x8(%rbp),%rdi
add    $0x140,%rdi
mov    -0x10(%rbp),%rsi
add    $0x140,%rsi
call   1030 <rte_mov16@plt>
mov    -0x8(%rbp),%rdi
add    $0x180,%rdi
mov    -0x10(%rbp),%rsi
add    $0x180,%rsi
call   1030 <rte_mov16@plt>
mov    -0x8(%rbp),%rdi
add    $0x1c0,%rdi
mov    -0x10(%rbp),%rsi
add    $0x1c0,%rsi
call   1030 <rte_mov16@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rte_mov128>:
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>
lea    0xc0(%rbx),%rdi
lea    0xc0(%r14),%rsi
call   1030 <rte_mov16@plt>
lea    0x100(%rbx),%rdi
lea    0x100(%r14),%rsi
call   1030 <rte_mov16@plt>
lea    0x140(%rbx),%rdi
lea    0x140(%r14),%rsi
call   1030 <rte_mov16@plt>
lea    0x180(%rbx),%rdi
lea    0x180(%r14),%rsi
call   1030 <rte_mov16@plt>
add    $0x1c0,%rbx
add    $0x1c0,%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_mov128(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)
%25 = load i32*, i32** %3
%26 = getelementptr inbounds i32, i32* %25, i64 64
%27 = load i32*, i32** %4
%28 = getelementptr inbounds i32, i32* %27, i64 64
%29 = call i32 @rte_mov16(i32* %26, i32* %28)
%30 = load i32*, i32** %3
%31 = getelementptr inbounds i32, i32* %30, i64 80
%32 = load i32*, i32** %4
%33 = getelementptr inbounds i32, i32* %32, i64 80
%34 = call i32 @rte_mov16(i32* %31, i32* %33)
%35 = load i32*, i32** %3
%36 = getelementptr inbounds i32, i32* %35, i64 96
%37 = load i32*, i32** %4
%38 = getelementptr inbounds i32, i32* %37, i64 96
%39 = call i32 @rte_mov16(i32* %36, i32* %38)
%40 = load i32*, i32** %3
%41 = getelementptr inbounds i32, i32* %40, i64 112
%42 = load i32*, i32** %4
%43 = getelementptr inbounds i32, i32* %42, i64 112
%44 = call i32 @rte_mov16(i32* %41, i32* %43)
ret void
}

LLVM IR (-O2):
define void @rte_mov128(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)
%13 = getelementptr inbounds i32, i32* %0, i64 64
%14 = getelementptr inbounds i32, i32* %1, i64 64
%15 = tail call i32 @rte_mov16(i32* %13, i32* %14)
%16 = getelementptr inbounds i32, i32* %0, i64 80
%17 = getelementptr inbounds i32, i32* %1, i64 80
%18 = tail call i32 @rte_mov16(i32* %16, i32* %17)
%19 = getelementptr inbounds i32, i32* %0, i64 96
%20 = getelementptr inbounds i32, i32* %1, i64 96
%21 = tail call i32 @rte_mov16(i32* %19, i32* %20)
%22 = getelementptr inbounds i32, i32* %0, i64 112
%23 = getelementptr inbounds i32, i32* %1, i64 112
%24 = tail call i32 @rte_mov16(i32* %22, i32* %23)
ret void
}