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

/* Variables and functions */
int /*<<< orphan*/ write(int, int *, int);
outport(int fdSer, int one, int two, int three, int four, int opcode) {
  write(fdSer, &one, 1);
  write(fdSer, &two, 1);
  write(fdSer, &three, 1);
  write(fdSer, &four, 1);
  write(fdSer, &opcode, 1);
}


x86 assembly (clang, -O0):
<outport>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9d,-0x1c(%rbp)
mov    -0x8(%rbp),%edi
lea    -0xc(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    -0x8(%rbp),%edi
lea    -0x10(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    -0x8(%rbp),%edi
lea    -0x14(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    -0x8(%rbp),%edi
lea    -0x18(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    -0x8(%rbp),%edi
lea    -0x1c(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<outport>:
push   %rbx
sub    $0x20,%rsp
mov    %edi,%ebx
mov    %esi,0x1c(%rsp)
mov    %edx,0x18(%rsp)
mov    %ecx,0x14(%rsp)
mov    %r8d,0x10(%rsp)
mov    %r9d,0xc(%rsp)
lea    0x1c(%rsp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
lea    0x18(%rsp),%rsi
mov    %ebx,%edi
mov    $0x1,%edx
call   1030 <write@plt>
lea    0x14(%rsp),%rsi
mov    %ebx,%edi
mov    $0x1,%edx
call   1030 <write@plt>
lea    0x10(%rsp),%rsi
mov    %ebx,%edi
mov    $0x1,%edx
call   1030 <write@plt>
lea    0xc(%rsp),%rsi
mov    %ebx,%edi
mov    $0x1,%edx
call   1030 <write@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @outport(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
%14 = load i32, i32* %8
%15 = call i32 @write(i32 %14, i32* %9, i32 1)
%16 = load i32, i32* %8
%17 = call i32 @write(i32 %16, i32* %10, i32 1)
%18 = load i32, i32* %8
%19 = call i32 @write(i32 %18, i32* %11, i32 1)
%20 = load i32, i32* %8
%21 = call i32 @write(i32 %20, i32* %12, i32 1)
%22 = load i32, i32* %8
%23 = call i32 @write(i32 %22, i32* %13, i32 1)
%24 = load i32, i32* %7
ret i32 %24
}

LLVM IR (-O2):
define i32 @outport(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
store i32 %5, i32* %11
%12 = call i32 @write(i32 %0, i32* %7, i32 1)
%13 = call i32 @write(i32 %0, i32* %8, i32 1)
%14 = call i32 @write(i32 %0, i32* %9, i32 1)
%15 = call i32 @write(i32 %0, i32* %10, i32 1)
%16 = call i32 @write(i32 %0, i32* %11, i32 1)
ret i32 undef
}