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


x86 assembly (clang, -O0):
<displaySetChPitch>:
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    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)
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   $0x1,0x18(%rsp)
call   1030 <displaySetPins@plt>
mov    -0x1(%rbp),%dl
mov    -0x2(%rbp),%cl
mov    -0x3(%rbp),%r8b
mov    -0x4(%rbp),%r9b
mov    -0x5(%rbp),%r10b
mov    -0x6(%rbp),%al
xor    %esi,%esi
mov    %esi,%edi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movl   $0x0,(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x8(%rsp)
movsbl %al,%eax
mov    %eax,0x10(%rsp)
movsbl 0x10(%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):
<displaySetChPitch>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,%r15d
mov    %r8,(%rsp)
mov    %ecx,%r12d
mov    %edx,%r13d
mov    %esi,%ebp
mov    %edi,%ebx
movsbl 0x40(%rsp),%r14d
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x1
push   $0x0
push   $0x0
push   $0x0
call   1030 <displaySetPins@plt>
add    $0x20,%rsp
xor    %edi,%edi
xor    %esi,%esi
mov    %ebx,%edx
mov    %ebp,%ecx
mov    %r13d,%r8d
mov    %r12d,%r9d
push   %r14
push   %r15
push   0x10(%rsp)
push   $0x0
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 @displaySetChPitch(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6) {
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8
%14 = alloca i8
store i8 %0, i8* %8
store i8 %1, i8* %9
store i8 %2, i8* %10
store i8 %3, i8* %11
store i8 %4, i8* %12
store i8 %5, i8* %13
store i8 %6, i8* %14
%15 = call i32 @displaySetPins(i32 0, i32 1, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 0, i32 0, i8 signext 0, i8 signext 0, i8 signext 1)
%16 = load i8, i8* %8
%17 = load i8, i8* %9
%18 = load i8, i8* %10
%19 = load i8, i8* %11
%20 = load i8, i8* %12
%21 = load i8, i8* %13
%22 = load i8, i8* %14
%23 = call i32 @displaySetPins(i32 0, i32 0, i8 signext %16, i8 signext %17, i8 signext %18, i8 signext %19, i32 0, i8 signext %20, i8 signext %21, i8 signext %22)
%24 = call i32 (...) @displayWriteData()
ret void
}

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