#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, char, char, char, char);
void displayWriteDisplayData(char DB7, char DB6, char DB5, char DB4, char DB3,
                             char DB2, char DB1, char DB0) {
  displaySetPins(0, 1, 0, 0, 0, 0, 1, 1, 0, 0);
  DB0 -= '0';
  DB1 -= '0';
  DB2 -= '0';
  DB3 -= '0';
  DB4 -= '0';
  DB5 -= '0';
  DB6 -= '0';
  DB7 -= '0';
  displaySetPins(0, 0, DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7);
}


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

x86 assembly (clang, -O2):
<displayWriteDisplayData>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9d,(%rsp)
mov    %r8d,0x4(%rsp)
mov    %ecx,%r12d
mov    %edx,%r13d
mov    %esi,%ebx
mov    %edi,%ebp
mov    0x40(%rsp),%r14b
mov    0x48(%rsp),%r15b
xor    %edi,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
push   $0x1
push   $0x1
call   1030 <displaySetPins@plt>
add    $0x20,%rsp
add    $0xd0,%r15b
add    $0xd0,%r14b
mov    (%rsp),%edi
add    $0xd0,%dil
mov    0x4(%rsp),%esi
add    $0xd0,%sil
add    $0xd0,%r12b
add    $0xd0,%r13b
add    $0xd0,%bl
add    $0xd0,%bpl
movsbl %bpl,%eax
movsbl %bl,%ebp
movsbl %r13b,%ebx
movsbl %r12b,%r10d
movsbl %r15b,%edx
movsbl %r14b,%ecx
movsbl %dil,%r8d
movsbl %sil,%r9d
xor    %edi,%edi
xor    %esi,%esi
push   %rax
push   %rbp
push   %rbx
push   %r10
call   1030 <displaySetPins@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @displayWriteDisplayData(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6, i8 signext %7) {
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8
%14 = alloca i8
%15 = alloca i8
%16 = alloca i8
store i8 %0, i8* %9
store i8 %1, i8* %10
store i8 %2, i8* %11
store i8 %3, i8* %12
store i8 %4, i8* %13
store i8 %5, i8* %14
store i8 %6, i8* %15
store i8 %7, i8* %16
%17 = call i32 @displaySetPins(i32 0, i32 1, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 1, i8 signext 1, i8 signext 0, i8 signext 0)
%18 = load i8, i8* %16
%19 = sext i8 %18 to i32
%20 = sub nsw i32 %19, 48
%21 = trunc i32 %20 to i8
store i8 %21, i8* %16
%22 = load i8, i8* %15
%23 = sext i8 %22 to i32
%24 = sub nsw i32 %23, 48
%25 = trunc i32 %24 to i8
store i8 %25, i8* %15
%26 = load i8, i8* %14
%27 = sext i8 %26 to i32
%28 = sub nsw i32 %27, 48
%29 = trunc i32 %28 to i8
store i8 %29, i8* %14
%30 = load i8, i8* %13
%31 = sext i8 %30 to i32
%32 = sub nsw i32 %31, 48
%33 = trunc i32 %32 to i8
store i8 %33, i8* %13
%34 = load i8, i8* %12
%35 = sext i8 %34 to i32
%36 = sub nsw i32 %35, 48
%37 = trunc i32 %36 to i8
store i8 %37, i8* %12
%38 = load i8, i8* %11
%39 = sext i8 %38 to i32
%40 = sub nsw i32 %39, 48
%41 = trunc i32 %40 to i8
store i8 %41, i8* %11
%42 = load i8, i8* %10
%43 = sext i8 %42 to i32
%44 = sub nsw i32 %43, 48
%45 = trunc i32 %44 to i8
store i8 %45, i8* %10
%46 = load i8, i8* %9
%47 = sext i8 %46 to i32
%48 = sub nsw i32 %47, 48
%49 = trunc i32 %48 to i8
store i8 %49, i8* %9
%50 = load i8, i8* %16
%51 = load i8, i8* %15
%52 = load i8, i8* %14
%53 = load i8, i8* %13
%54 = load i8, i8* %12
%55 = load i8, i8* %11
%56 = load i8, i8* %10
%57 = load i8, i8* %9
%58 = call i32 @displaySetPins(i32 0, i32 0, i8 signext %50, i8 signext %51, i8 signext %52, i8 signext %53, i8 signext %54, i8 signext %55, i8 signext %56, i8 signext %57)
ret void
}

LLVM IR (-O2):
define void @displayWriteDisplayData(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6, i8 signext %7) {
%9 = tail call i32 @displaySetPins(i32 0, i32 1, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 0, i8 signext 1, i8 signext 1, i8 signext 0, i8 signext 0)
%10 = add i8 %7, -48
%11 = add i8 %6, -48
%12 = add i8 %5, -48
%13 = add i8 %4, -48
%14 = add i8 %3, -48
%15 = add i8 %2, -48
%16 = add i8 %1, -48
%17 = add i8 %0, -48
%18 = tail call i32 @displaySetPins(i32 0, i32 0, i8 signext %10, i8 signext %11, i8 signext %12, i8 signext %13, i8 signext %14, i8 signext %15, i8 signext %16, i8 signext %17)
ret void
}