#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 initialize_buf8(uint8_t x0, uint8_t x1, uint8_t x2, uint8_t x3, uint8_t x4,
                     uint8_t x5, uint8_t x6, uint8_t x7, uint8_t x8, uint8_t x9,
                     uint8_t x10, uint8_t x11, uint8_t x12, uint8_t x13,
                     uint8_t x14, uint8_t x15, uint8_t buf[16]) {
  buf[0] = x0;
  buf[1] = x1;
  buf[2] = x2;
  buf[3] = x3;
  buf[4] = x4;
  buf[5] = x5;
  buf[6] = x6;
  buf[7] = x7;
  buf[8] = x8;
  buf[9] = x9;
  buf[10] = x10;
  buf[11] = x11;
  buf[12] = x12;
  buf[13] = x13;
  buf[14] = x14;
  buf[15] = x15;
}


x86 assembly (clang, -O0):
<initialize_buf8>:
push   %rbp
mov    %rsp,%rbp
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%eax
mov    0x50(%rbp),%eax
mov    0x48(%rbp),%eax
mov    0x40(%rbp),%eax
mov    0x38(%rbp),%eax
mov    0x30(%rbp),%eax
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x4(%rax)
mov    -0xc(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x8(%rax)
mov    -0x10(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0xc(%rax)
mov    -0x14(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x10(%rax)
mov    -0x18(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x14(%rax)
mov    0x10(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x18(%rax)
mov    0x18(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x1c(%rax)
mov    0x20(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x20(%rax)
mov    0x28(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x24(%rax)
mov    0x30(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x28(%rax)
mov    0x38(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x2c(%rax)
mov    0x40(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x30(%rax)
mov    0x48(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x34(%rax)
mov    0x50(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x38(%rax)
mov    0x58(%rbp),%ecx
mov    0x60(%rbp),%rax
mov    %ecx,0x3c(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialize_buf8>:
mov    0x58(%rsp),%rax
mov    %edi,(%rax)
mov    %esi,0x4(%rax)
mov    %edx,0x8(%rax)
mov    %ecx,0xc(%rax)
mov    %r8d,0x10(%rax)
mov    %r9d,0x14(%rax)
mov    0x8(%rsp),%ecx
mov    %ecx,0x18(%rax)
mov    0x10(%rsp),%ecx
mov    %ecx,0x1c(%rax)
mov    0x18(%rsp),%ecx
mov    %ecx,0x20(%rax)
mov    0x20(%rsp),%ecx
mov    %ecx,0x24(%rax)
mov    0x28(%rsp),%ecx
mov    %ecx,0x28(%rax)
mov    0x30(%rsp),%ecx
mov    %ecx,0x2c(%rax)
mov    0x38(%rsp),%ecx
mov    %ecx,0x30(%rax)
mov    0x40(%rsp),%ecx
mov    %ecx,0x34(%rax)
mov    0x48(%rsp),%ecx
mov    %ecx,0x38(%rax)
mov    0x50(%rsp),%ecx
mov    %ecx,0x3c(%rax)
ret

LLVM IR (-O0):
define void @initialize_buf8(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, i32 %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %14, i32 %15, i32* %16) {
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
%29 = alloca i32
%30 = alloca i32
%31 = alloca i32
%32 = alloca i32
%33 = alloca i32
%34 = alloca i32*
store i32 %0, i32* %18
store i32 %1, i32* %19
store i32 %2, i32* %20
store i32 %3, i32* %21
store i32 %4, i32* %22
store i32 %5, i32* %23
store i32 %6, i32* %24
store i32 %7, i32* %25
store i32 %8, i32* %26
store i32 %9, i32* %27
store i32 %10, i32* %28
store i32 %11, i32* %29
store i32 %12, i32* %30
store i32 %13, i32* %31
store i32 %14, i32* %32
store i32 %15, i32* %33
store i32* %16, i32** %34
%35 = load i32, i32* %18
%36 = load i32*, i32** %34
%37 = getelementptr inbounds i32, i32* %36, i64 0
store i32 %35, i32* %37
%38 = load i32, i32* %19
%39 = load i32*, i32** %34
%40 = getelementptr inbounds i32, i32* %39, i64 1
store i32 %38, i32* %40
%41 = load i32, i32* %20
%42 = load i32*, i32** %34
%43 = getelementptr inbounds i32, i32* %42, i64 2
store i32 %41, i32* %43
%44 = load i32, i32* %21
%45 = load i32*, i32** %34
%46 = getelementptr inbounds i32, i32* %45, i64 3
store i32 %44, i32* %46
%47 = load i32, i32* %22
%48 = load i32*, i32** %34
%49 = getelementptr inbounds i32, i32* %48, i64 4
store i32 %47, i32* %49
%50 = load i32, i32* %23
%51 = load i32*, i32** %34
%52 = getelementptr inbounds i32, i32* %51, i64 5
store i32 %50, i32* %52
%53 = load i32, i32* %24
%54 = load i32*, i32** %34
%55 = getelementptr inbounds i32, i32* %54, i64 6
store i32 %53, i32* %55
%56 = load i32, i32* %25
%57 = load i32*, i32** %34
%58 = getelementptr inbounds i32, i32* %57, i64 7
store i32 %56, i32* %58
%59 = load i32, i32* %26
%60 = load i32*, i32** %34
%61 = getelementptr inbounds i32, i32* %60, i64 8
store i32 %59, i32* %61
%62 = load i32, i32* %27
%63 = load i32*, i32** %34
%64 = getelementptr inbounds i32, i32* %63, i64 9
store i32 %62, i32* %64
%65 = load i32, i32* %28
%66 = load i32*, i32** %34
%67 = getelementptr inbounds i32, i32* %66, i64 10
store i32 %65, i32* %67
%68 = load i32, i32* %29
%69 = load i32*, i32** %34
%70 = getelementptr inbounds i32, i32* %69, i64 11
store i32 %68, i32* %70
%71 = load i32, i32* %30
%72 = load i32*, i32** %34
%73 = getelementptr inbounds i32, i32* %72, i64 12
store i32 %71, i32* %73
%74 = load i32, i32* %31
%75 = load i32*, i32** %34
%76 = getelementptr inbounds i32, i32* %75, i64 13
store i32 %74, i32* %76
%77 = load i32, i32* %32
%78 = load i32*, i32** %34
%79 = getelementptr inbounds i32, i32* %78, i64 14
store i32 %77, i32* %79
%80 = load i32, i32* %33
%81 = load i32*, i32** %34
%82 = getelementptr inbounds i32, i32* %81, i64 15
store i32 %80, i32* %82
ret void
}

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