#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 PinGetPIN_A();
int PinGetPIN_D();
scalar_t__ PinGetPIN__IORQ();
scalar_t__ PinGetPIN__M1();
scalar_t__ PinGetPIN__MREQ();
scalar_t__ PinGetPIN__RD();
scalar_t__ PinGetPIN__RFSH();
scalar_t__ PinGetPIN__WR();
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *, char *,
                          char *, int, int);
void SHOW_PINS() {
  printf("%s %s %s %s %s %s %04X %02X\n", PinGetPIN__M1() ? "  " : "M1",
         PinGetPIN__MREQ() ? "    " : "MREQ", PinGetPIN__RD() ? "  " : "RD",
         PinGetPIN__WR() ? "  " : "WR", PinGetPIN__RFSH() ? "    " : "RFSH",
         PinGetPIN__IORQ() ? "    " : "IORQ", PinGetPIN_A(), PinGetPIN_D());
}


x86 assembly (clang, -O0):
<SHOW_PINS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    $0x0,%al
call   1080 <PinGetPIN__M1@plt>
mov    %rax,%rdx
lea    0xe74(%rip),%rax
lea    0xe72(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   1030 <PinGetPIN__MREQ@plt>
mov    %rax,%rdx
lea    0xe58(%rip),%rax
lea    0xe4c(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    $0x0,%al
call   1090 <PinGetPIN__RD@plt>
mov    %rax,%rdx
lea    0xe39(%rip),%rax
lea    0xe2a(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x28(%rbp)
mov    $0x0,%al
call   1050 <PinGetPIN__WR@plt>
mov    %rax,%rdx
lea    0xe18(%rip),%rax
lea    0xe06(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1040 <PinGetPIN__RFSH@plt>
mov    %rax,%rdx
lea    0xdf7(%rip),%rax
lea    0xde0(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   10a0 <PinGetPIN__IORQ@plt>
mov    %rax,%rdx
lea    0xdd8(%rip),%rax
lea    0xdbc(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    $0x0,%al
call   1070 <PinGetPIN_A@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   10b0 <PinGetPIN_D@plt>
mov    -0x38(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x28(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    -0x10(%rbp),%r11
mov    -0x4(%rbp),%r10d
lea    0xd5c(%rip),%rdi
mov    %r11,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1060 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SHOW_PINS>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1080 <PinGetPIN__M1@plt>
test   %rax,%rax
lea    0xe71(%rip),%rax
lea    0xe6f(%rip),%rbx
cmovne %rbx,%rax
mov    %rax,(%rsp)
xor    %eax,%eax
call   1030 <PinGetPIN__MREQ@plt>
test   %rax,%rax
lea    0xe59(%rip),%r15
lea    0xe4d(%rip),%rbp
cmovne %rbp,%r15
xor    %eax,%eax
call   1090 <PinGetPIN__RD@plt>
test   %rax,%rax
lea    0xe42(%rip),%r12
cmovne %rbx,%r12
xor    %eax,%eax
call   1050 <PinGetPIN__WR@plt>
test   %rax,%rax
lea    0xe30(%rip),%r13
cmovne %rbx,%r13
xor    %eax,%eax
call   1040 <PinGetPIN__RFSH@plt>
test   %rax,%rax
lea    0xe1e(%rip),%rbx
cmovne %rbp,%rbx
xor    %eax,%eax
call   10a0 <PinGetPIN__IORQ@plt>
test   %rax,%rax
lea    0xe0e(%rip),%r14
cmovne %rbp,%r14
xor    %eax,%eax
call   1070 <PinGetPIN_A@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   10b0 <PinGetPIN_D@plt>
sub    $0x8,%rsp
lea    0xdba(%rip),%rdi
mov    0x8(%rsp),%rsi
mov    %r15,%rdx
mov    %r12,%rcx
mov    %r13,%r8
mov    %rbx,%r9
push   %rax
push   %rbp
push   %r14
call   1060 <printf@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [29 x i8] c"%s %s %s %s %s %s %04X %02X\0A\00"
@.str.1 = [3 x i8] c" \00"
@.str.2 = [3 x i8] c"M1\00"
@.str.3 = [5 x i8] c" \00"
@.str.4 = [5 x i8] c"MREQ\00"
@.str.5 = [3 x i8] c"RD\00"
@.str.6 = [3 x i8] c"WR\00"
@.str.7 = [5 x i8] c"RFSH\00"
@.str.8 = [5 x i8] c"IORQ\00"
define void @SHOW_PINS() {
%1 = call i64 (...) @PinGetPIN__M1()
%2 = icmp ne i64 %1, 0
%3 = zext i1 %2 to i64
%4 = select i1 %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%5 = call i64 (...) @PinGetPIN__MREQ()
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0)
%9 = call i64 (...) @PinGetPIN__RD()
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i64
%12 = select i1 %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0)
%13 = call i64 (...) @PinGetPIN__WR()
%14 = icmp ne i64 %13, 0
%15 = zext i1 %14 to i64
%16 = select i1 %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0)
%17 = call i64 (...) @PinGetPIN__RFSH()
%18 = icmp ne i64 %17, 0
%19 = zext i1 %18 to i64
%20 = select i1 %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0)
%21 = call i64 (...) @PinGetPIN__IORQ()
%22 = icmp ne i64 %21, 0
%23 = zext i1 %22 to i64
%24 = select i1 %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0)
%25 = call i32 (...) @PinGetPIN_A()
%26 = call i32 (...) @PinGetPIN_D()
%27 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %8, i8* %12, i8* %16, i8* %20, i8* %24, i32 %25, i32 %26)
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"%s %s %s %s %s %s %04X %02X\0A\00"
@.str.1 = [3 x i8] c" \00"
@.str.2 = [3 x i8] c"M1\00"
@.str.3 = [5 x i8] c" \00"
@.str.4 = [5 x i8] c"MREQ\00"
@.str.5 = [3 x i8] c"RD\00"
@.str.6 = [3 x i8] c"WR\00"
@.str.7 = [5 x i8] c"RFSH\00"
@.str.8 = [5 x i8] c"IORQ\00"
define void @SHOW_PINS() {
%1 = tail call i64 (...) @PinGetPIN__M1()
%2 = icmp eq i64 %1, 0
%3 = select i1 %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%4 = tail call i64 (...) @PinGetPIN__MREQ()
%5 = icmp eq i64 %4, 0
%6 = select i1 %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%7 = tail call i64 (...) @PinGetPIN__RD()
%8 = icmp eq i64 %7, 0
%9 = select i1 %8, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%10 = tail call i64 (...) @PinGetPIN__WR()
%11 = icmp eq i64 %10, 0
%12 = select i1 %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%13 = tail call i64 (...) @PinGetPIN__RFSH()
%14 = icmp eq i64 %13, 0
%15 = select i1 %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%16 = tail call i64 (...) @PinGetPIN__IORQ()
%17 = icmp eq i64 %16, 0
%18 = select i1 %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%19 = tail call i32 (...) @PinGetPIN_A()
%20 = tail call i32 (...) @PinGetPIN_D()
%21 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %6, i8* %9, i8* %12, i8* %15, i8* %18, i32 %19, i32 %20)
ret void
}