#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*/ uint16_t;

/* Variables and functions */
void transfer_YUVA16161616_to_YUVA16161616(uint16_t *(*output),
                                           uint16_t *input) {
  (*output)[0] = input[0];
  (*output)[1] = input[1];
  (*output)[2] = input[2];
  (*output)[3] = input[3];
  (*output) += 4;
}


x86 assembly (clang, -O0):
<transfer_YUVA16161616_to_YUVA16161616>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    0x4(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %ecx,0x4(%rax)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %ecx,0x8(%rax)
mov    -0x10(%rbp),%rax
mov    0xc(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %ecx,0xc(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x10,%rcx
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<transfer_YUVA16161616_to_YUVA16161616>:
mov    (%rsi),%eax
mov    (%rdi),%rcx
mov    %eax,(%rcx)
mov    0x4(%rsi),%eax
mov    %eax,0x4(%rcx)
mov    0x8(%rsi),%eax
mov    %eax,0x8(%rcx)
mov    0xc(%rsi),%eax
mov    %eax,0xc(%rcx)
add    $0x10,%rcx
mov    %rcx,(%rdi)
ret

LLVM IR (-O0):
define void @transfer_YUVA16161616_to_YUVA16161616(i32** %0, i32* %1) {
%3 = alloca i32**
%4 = alloca i32*
store i32** %0, i32*** %3
store i32* %1, i32** %4
%5 = load i32*, i32** %4
%6 = getelementptr inbounds i32, i32* %5, i64 0
%7 = load i32, i32* %6
%8 = load i32**, i32*** %3
%9 = load i32*, i32** %8
%10 = getelementptr inbounds i32, i32* %9, i64 0
store i32 %7, i32* %10
%11 = load i32*, i32** %4
%12 = getelementptr inbounds i32, i32* %11, i64 1
%13 = load i32, i32* %12
%14 = load i32**, i32*** %3
%15 = load i32*, i32** %14
%16 = getelementptr inbounds i32, i32* %15, i64 1
store i32 %13, i32* %16
%17 = load i32*, i32** %4
%18 = getelementptr inbounds i32, i32* %17, i64 2
%19 = load i32, i32* %18
%20 = load i32**, i32*** %3
%21 = load i32*, i32** %20
%22 = getelementptr inbounds i32, i32* %21, i64 2
store i32 %19, i32* %22
%23 = load i32*, i32** %4
%24 = getelementptr inbounds i32, i32* %23, i64 3
%25 = load i32, i32* %24
%26 = load i32**, i32*** %3
%27 = load i32*, i32** %26
%28 = getelementptr inbounds i32, i32* %27, i64 3
store i32 %25, i32* %28
%29 = load i32**, i32*** %3
%30 = load i32*, i32** %29
%31 = getelementptr inbounds i32, i32* %30, i64 4
store i32* %31, i32** %29
ret void
}

LLVM IR (-O2):
define void @transfer_YUVA16161616_to_YUVA16161616(i32** nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %1
%4 = load i32*, i32** %0
store i32 %3, i32* %4
%5 = getelementptr inbounds i32, i32* %1, i64 1
%6 = load i32, i32* %5
%7 = getelementptr inbounds i32, i32* %4, i64 1
store i32 %6, i32* %7
%8 = getelementptr inbounds i32, i32* %1, i64 2
%9 = load i32, i32* %8
%10 = getelementptr inbounds i32, i32* %4, i64 2
store i32 %9, i32* %10
%11 = getelementptr inbounds i32, i32* %1, i64 3
%12 = load i32, i32* %11
%13 = getelementptr inbounds i32, i32* %4, i64 3
store i32 %12, i32* %13
%14 = getelementptr inbounds i32, i32* %4, i64 4
store i32* %14, i32** %0
ret void
}