#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*/ displaySetPins(int /*<<< orphan*/, int, int /*<<< orphan*/,
                                  int /*<<< orphan*/, char, char, char, char,
                                  char, char);
int /*<<< orphan*/ displayWriteData();
void displaySetMode(char DB5, char DB4, char DB3, char DB2, char DB1,
                    char DB0) {
  displaySetPins(0, 1, 0, 0, 0, 0, 0, 0, 0, 0);
  displaySetPins(0, 0, 0, 0, DB5, DB4, DB3, DB2, DB1, DB0);
  displayWriteData();
}


x86 assembly (clang, -O0):
<displaySetMode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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    %r8b,-0x1(%rbp)
mov    %dil,-0x2(%rbp)
mov    %sil,-0x3(%rbp)
mov    %dl,-0x4(%rbp)
mov    %cl,-0x5(%rbp)
mov    %al,-0x6(%rbp)
xor    %r9d,%r9d
mov    $0x1,%esi
mov    %r9d,%edi
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x18(%rsp)
call   1030 <displaySetPins@plt>
mov    -0x1(%rbp),%r8b
mov    -0x2(%rbp),%r9b
mov    -0x3(%rbp),%r11b
mov    -0x4(%rbp),%r10b
mov    -0x5(%rbp),%al
xor    %ecx,%ecx
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movsbl %r11b,%r11d
mov    %r11d,(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x8(%rsp)
movsbl %al,%eax
mov    %eax,0x10(%rsp)
movsbl -0x6(%rbp),%eax
mov    %eax,0x18(%rsp)
call   1030 <displaySetPins@plt>
mov    $0x0,%al
call   1040 <displayWriteData@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<displaySetMode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r13d
mov    %r8d,%r12d
mov    %ecx,%r15d
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
push   $0x0
push   $0x0
call   1030 <displaySetPins@plt>
add    $0x20,%rsp
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    %ebx,%r8d
mov    %ebp,%r9d
push   %r13
push   %r12
push   %r15
push   %r14
call   1030 <displaySetPins@plt>
add    $0x20,%rsp
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <displayWriteData@plt>

LLVM IR (-O0):
define void @displaySetMode(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5) {
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
store i8 %0, i8* %7
store i8 %1, i8* %8
store i8 %2, i8* %9
store i8 %3, i8* %10
store i8 %4, i8* %11
store i8 %5, i8* %12
%13 = call i32 @displaySetPins(i32 0, i32 1, i32 0, i32 0, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 0)
%14 = load i8, i8* %7
%15 = load i8, i8* %8
%16 = load i8, i8* %9
%17 = load i8, i8* %10
%18 = load i8, i8* %11
%19 = load i8, i8* %12
%20 = call i32 @displaySetPins(i32 0, i32 0, i32 0, i32 0, i8 signext %14, i8 signext %15, i8 signext %16, i8 signext %17, i8 signext %18, i8 signext %19)
%21 = call i32 (...) @displayWriteData()
ret void
}

LLVM IR (-O2):
define void @displaySetMode(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5) {
%7 = tail call i32 @displaySetPins(i32 0, i32 1, i32 0, i32 0, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 0)
%8 = tail call i32 @displaySetPins(i32 0, i32 0, i32 0, i32 0, i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5)
%9 = tail call i32 (...) @displayWriteData()
ret void
}