#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*/ displaySetDB0(char);
int /*<<< orphan*/ displaySetDB1(char);
int /*<<< orphan*/ displaySetDB2(char);
int /*<<< orphan*/ displaySetDB3(char);
int /*<<< orphan*/ displaySetDB4(char);
int /*<<< orphan*/ displaySetDB5(char);
int /*<<< orphan*/ displaySetDB6(char);
int /*<<< orphan*/ displaySetDB7(char);
int /*<<< orphan*/ displaySetE(int);
int /*<<< orphan*/ displaySetRS(char);
int /*<<< orphan*/ displaySetRW(char);
int /*<<< orphan*/ displayWriteData();
void displaySetPins(char rw, char rs, char db7, char db6, char db5, char db4,
                    char db3, char db2, char db1, char db0) {
  displaySetRW(rw);
  displaySetRS(rs);
  displaySetDB7(db7);
  displaySetDB6(db6);
  displaySetDB5(db5);
  displaySetDB4(db4);
  displaySetDB3(db3);
  displaySetDB2(db2);
  displaySetDB1(db1);
  displaySetDB0(db0);
  displaySetE(1);
  displayWriteData();
  displaySetE(0);
  displayWriteData();
}


x86 assembly (clang, -O0):
<displaySetPins>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %r8d,-0x18(%rbp)
mov    %ecx,%eax
mov    -0x18(%rbp),%ecx
mov    %eax,-0x14(%rbp)
mov    %edx,%eax
mov    -0x14(%rbp),%edx
mov    %eax,-0x10(%rbp)
mov    %esi,%eax
mov    -0x10(%rbp),%esi
mov    %eax,-0xc(%rbp)
mov    %edi,%r8d
mov    -0xc(%rbp),%edi
mov    %r9b,%al
mov    0x28(%rbp),%r9b
mov    0x20(%rbp),%r9b
mov    0x18(%rbp),%r9b
mov    0x10(%rbp),%r9b
mov    %r8b,-0x1(%rbp)
mov    %dil,-0x2(%rbp)
mov    %sil,-0x3(%rbp)
mov    %dl,-0x4(%rbp)
mov    %cl,-0x5(%rbp)
mov    %al,-0x6(%rbp)
movsbl -0x1(%rbp),%edi
call   10d0 <displaySetRW@plt>
movsbl -0x2(%rbp),%edi
call   10c0 <displaySetRS@plt>
movsbl -0x3(%rbp),%edi
call   1030 <displaySetDB7@plt>
movsbl -0x4(%rbp),%edi
call   10a0 <displaySetDB6@plt>
movsbl -0x5(%rbp),%edi
call   1060 <displaySetDB5@plt>
movsbl -0x6(%rbp),%edi
call   1080 <displaySetDB4@plt>
movsbl 0x10(%rbp),%edi
call   1040 <displaySetDB3@plt>
movsbl 0x18(%rbp),%edi
call   10b0 <displaySetDB2@plt>
movsbl 0x20(%rbp),%edi
call   1050 <displaySetDB1@plt>
movsbl 0x28(%rbp),%edi
call   1090 <displaySetDB0@plt>
mov    $0x1,%edi
call   1070 <displaySetE@plt>
mov    $0x0,%al
call   10e0 <displayWriteData@plt>
xor    %edi,%edi
call   1070 <displaySetE@plt>
mov    $0x0,%al
call   10e0 <displayWriteData@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<displaySetPins>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,0xc(%rsp)
mov    %r8d,%ebx
mov    %ecx,%ebp
mov    %edx,%r14d
mov    %esi,%r15d
movsbl 0x68(%rsp),%eax
mov    %eax,0x14(%rsp)
movsbl 0x60(%rsp),%eax
mov    %eax,0x10(%rsp)
movsbl 0x58(%rsp),%r13d
movsbl 0x50(%rsp),%r12d
call   10d0 <displaySetRW@plt>
mov    %r15d,%edi
call   10c0 <displaySetRS@plt>
mov    %r14d,%edi
call   1030 <displaySetDB7@plt>
mov    %ebp,%edi
call   10a0 <displaySetDB6@plt>
mov    %ebx,%edi
call   1060 <displaySetDB5@plt>
mov    0xc(%rsp),%edi
call   1080 <displaySetDB4@plt>
mov    %r12d,%edi
call   1040 <displaySetDB3@plt>
mov    %r13d,%edi
call   10b0 <displaySetDB2@plt>
mov    0x10(%rsp),%edi
call   1050 <displaySetDB1@plt>
mov    0x14(%rsp),%edi
call   1090 <displaySetDB0@plt>
mov    $0x1,%edi
call   1070 <displaySetE@plt>
xor    %eax,%eax
call   10e0 <displayWriteData@plt>
xor    %edi,%edi
call   1070 <displaySetE@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10e0 <displayWriteData@plt>

LLVM IR (-O0):
define void @displaySetPins(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6, i8 signext %7, i8 signext %8, i8 signext %9) {
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8
%14 = alloca i8
%15 = alloca i8
%16 = alloca i8
%17 = alloca i8
%18 = alloca i8
%19 = alloca i8
%20 = alloca i8
store i8 %0, i8* %11
store i8 %1, i8* %12
store i8 %2, i8* %13
store i8 %3, i8* %14
store i8 %4, i8* %15
store i8 %5, i8* %16
store i8 %6, i8* %17
store i8 %7, i8* %18
store i8 %8, i8* %19
store i8 %9, i8* %20
%21 = load i8, i8* %11
%22 = call i32 @displaySetRW(i8 signext %21)
%23 = load i8, i8* %12
%24 = call i32 @displaySetRS(i8 signext %23)
%25 = load i8, i8* %13
%26 = call i32 @displaySetDB7(i8 signext %25)
%27 = load i8, i8* %14
%28 = call i32 @displaySetDB6(i8 signext %27)
%29 = load i8, i8* %15
%30 = call i32 @displaySetDB5(i8 signext %29)
%31 = load i8, i8* %16
%32 = call i32 @displaySetDB4(i8 signext %31)
%33 = load i8, i8* %17
%34 = call i32 @displaySetDB3(i8 signext %33)
%35 = load i8, i8* %18
%36 = call i32 @displaySetDB2(i8 signext %35)
%37 = load i8, i8* %19
%38 = call i32 @displaySetDB1(i8 signext %37)
%39 = load i8, i8* %20
%40 = call i32 @displaySetDB0(i8 signext %39)
%41 = call i32 @displaySetE(i32 1)
%42 = call i32 (...) @displayWriteData()
%43 = call i32 @displaySetE(i32 0)
%44 = call i32 (...) @displayWriteData()
ret void
}

LLVM IR (-O2):
define void @displaySetPins(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6, i8 signext %7, i8 signext %8, i8 signext %9) {
%11 = tail call i32 @displaySetRW(i8 signext %0)
%12 = tail call i32 @displaySetRS(i8 signext %1)
%13 = tail call i32 @displaySetDB7(i8 signext %2)
%14 = tail call i32 @displaySetDB6(i8 signext %3)
%15 = tail call i32 @displaySetDB5(i8 signext %4)
%16 = tail call i32 @displaySetDB4(i8 signext %5)
%17 = tail call i32 @displaySetDB3(i8 signext %6)
%18 = tail call i32 @displaySetDB2(i8 signext %7)
%19 = tail call i32 @displaySetDB1(i8 signext %8)
%20 = tail call i32 @displaySetDB0(i8 signext %9)
%21 = tail call i32 @displaySetE(i32 1)
%22 = tail call i32 (...) @displayWriteData()
%23 = tail call i32 @displaySetE(i32 0)
%24 = tail call i32 (...) @displayWriteData()
ret void
}