#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_Delay(int);
int /*<<< orphan*/ spfd5408_WriteReg(int, int);
void spfd5408_DisplayOff(void) {
  spfd5408_WriteReg(0x17, 0x0000);
  spfd5408_WriteReg(0x18, 0x0000);
  spfd5408_WriteReg(0x19, 0x0000);
  spfd5408_WriteReg(0x1C, 0x0000);
  spfd5408_WriteReg(0x1F, 0x0000);
  spfd5408_WriteReg(0x36, 0x0000);
  spfd5408_WriteReg(0x28, 0x38);
  LCD_Delay(60);
  spfd5408_WriteReg(0x28, 0x04);
}


x86 assembly (clang, -O0):
<spfd5408_DisplayOff>:
push   %rbp
mov    %rsp,%rbp
mov    $0x17,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x18,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x19,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x1c,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x1f,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x36,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x28,%edi
mov    $0x38,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x3c,%edi
call   1030 <LCD_Delay@plt>
mov    $0x28,%edi
mov    $0x4,%esi
call   1040 <spfd5408_WriteReg@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<spfd5408_DisplayOff>:
push   %rax
mov    $0x17,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x18,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x19,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x1c,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x1f,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x36,%edi
xor    %esi,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x28,%edi
mov    $0x38,%esi
call   1040 <spfd5408_WriteReg@plt>
mov    $0x3c,%edi
call   1030 <LCD_Delay@plt>
mov    $0x28,%edi
mov    $0x4,%esi
pop    %rax
jmp    1040 <spfd5408_WriteReg@plt>

LLVM IR (-O0):
define void @spfd5408_DisplayOff() {
%1 = call i32 @spfd5408_WriteReg(i32 23, i32 0)
%2 = call i32 @spfd5408_WriteReg(i32 24, i32 0)
%3 = call i32 @spfd5408_WriteReg(i32 25, i32 0)
%4 = call i32 @spfd5408_WriteReg(i32 28, i32 0)
%5 = call i32 @spfd5408_WriteReg(i32 31, i32 0)
%6 = call i32 @spfd5408_WriteReg(i32 54, i32 0)
%7 = call i32 @spfd5408_WriteReg(i32 40, i32 56)
%8 = call i32 @LCD_Delay(i32 60)
%9 = call i32 @spfd5408_WriteReg(i32 40, i32 4)
ret void
}

LLVM IR (-O2):
define void @spfd5408_DisplayOff() {
%1 = tail call i32 @spfd5408_WriteReg(i32 23, i32 0)
%2 = tail call i32 @spfd5408_WriteReg(i32 24, i32 0)
%3 = tail call i32 @spfd5408_WriteReg(i32 25, i32 0)
%4 = tail call i32 @spfd5408_WriteReg(i32 28, i32 0)
%5 = tail call i32 @spfd5408_WriteReg(i32 31, i32 0)
%6 = tail call i32 @spfd5408_WriteReg(i32 54, i32 0)
%7 = tail call i32 @spfd5408_WriteReg(i32 40, i32 56)
%8 = tail call i32 @LCD_Delay(i32 60)
%9 = tail call i32 @spfd5408_WriteReg(i32 40, i32 4)
ret void
}