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


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

x86 assembly (clang, -O2):
<displaySetCurPos>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %ecx,%ebx
mov    %edx,%r12d
mov    %esi,%r15d
mov    %edi,%r14d
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   $0x0
call   1030 <displaySetPins@plt>
add    $0x20,%rsp
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   %rbx
push   %r12
push   %r15
push   %r14
call   1030 <displaySetPins@plt>
add    $0x20,%rsp
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1040 <displayWriteData@plt>

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

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