#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*/ LCD_CtrlWrite_ILI9325(int, int);
int /*<<< orphan*/ LCD_WRITE_CMD(int);
void LCD_set_Window_ILI9325(int xs, int xe, int ys, int ye) {
  LCD_CtrlWrite_ILI9325(0x0050, xs);
  LCD_CtrlWrite_ILI9325(0x0051, xe);
  LCD_CtrlWrite_ILI9325(0x0052, ys);
  LCD_CtrlWrite_ILI9325(0x0053, ye);
  LCD_CtrlWrite_ILI9325(0x0020, xs);
  LCD_CtrlWrite_ILI9325(0x0021, ys);
  LCD_WRITE_CMD(0x0022);
}


x86 assembly (clang, -O0):
<LCD_set_Window_ILI9325>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%esi
mov    $0x50,%edi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    -0x8(%rbp),%esi
mov    $0x51,%edi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    -0xc(%rbp),%esi
mov    $0x52,%edi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    -0x10(%rbp),%esi
mov    $0x53,%edi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    -0x4(%rbp),%esi
mov    $0x20,%edi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    -0xc(%rbp),%esi
mov    $0x21,%edi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x22,%edi
call   1040 <LCD_WRITE_CMD@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LCD_set_Window_ILI9325>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0x50,%edi
mov    %ebx,%esi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x51,%edi
mov    %ebp,%esi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x52,%edi
mov    %r15d,%esi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x53,%edi
mov    %r14d,%esi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x20,%edi
mov    %ebx,%esi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x21,%edi
mov    %r15d,%esi
call   1030 <LCD_CtrlWrite_ILI9325@plt>
mov    $0x22,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <LCD_WRITE_CMD@plt>

LLVM IR (-O0):
define void @LCD_set_Window_ILI9325(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = call i32 @LCD_CtrlWrite_ILI9325(i32 80, i32 %9)
%11 = load i32, i32* %6
%12 = call i32 @LCD_CtrlWrite_ILI9325(i32 81, i32 %11)
%13 = load i32, i32* %7
%14 = call i32 @LCD_CtrlWrite_ILI9325(i32 82, i32 %13)
%15 = load i32, i32* %8
%16 = call i32 @LCD_CtrlWrite_ILI9325(i32 83, i32 %15)
%17 = load i32, i32* %5
%18 = call i32 @LCD_CtrlWrite_ILI9325(i32 32, i32 %17)
%19 = load i32, i32* %7
%20 = call i32 @LCD_CtrlWrite_ILI9325(i32 33, i32 %19)
%21 = call i32 @LCD_WRITE_CMD(i32 34)
ret void
}

LLVM IR (-O2):
define void @LCD_set_Window_ILI9325(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 80, i32 %0)
%6 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 81, i32 %1)
%7 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 82, i32 %2)
%8 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 83, i32 %3)
%9 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 32, i32 %0)
%10 = tail call i32 @LCD_CtrlWrite_ILI9325(i32 33, i32 %2)
%11 = tail call i32 @LCD_WRITE_CMD(i32 34)
ret void
}