#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*/ WriteLDI_LTE246(int, int);
int /*<<< orphan*/ mdelay(int);
void S6D2101_PowerOn(void) {
  WriteLDI_LTE246(0x11, 0x2000);
  WriteLDI_LTE246(0x14, 0x1946);
  WriteLDI_LTE246(0x10, 0x4d00);
  WriteLDI_LTE246(0x13, 0x0040);
  mdelay(50);
  WriteLDI_LTE246(0x13, 0x0060);
  mdelay(20);
  WriteLDI_LTE246(0x13, 0x0062);
  mdelay(15);
  WriteLDI_LTE246(0x13, 0x0063);
  mdelay(20);
  WriteLDI_LTE246(0x13, 0x0073);
  mdelay(150);
}


x86 assembly (clang, -O0):
<S6D2101_PowerOn>:
push   %rbp
mov    %rsp,%rbp
mov    $0x11,%edi
mov    $0x2000,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x14,%edi
mov    $0x1946,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x10,%edi
mov    $0x4d00,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x13,%edi
mov    $0x40,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x32,%edi
call   1030 <mdelay@plt>
mov    $0x13,%edi
mov    $0x60,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x14,%edi
call   1030 <mdelay@plt>
mov    $0x13,%edi
mov    $0x62,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0xf,%edi
call   1030 <mdelay@plt>
mov    $0x13,%edi
mov    $0x63,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x14,%edi
call   1030 <mdelay@plt>
mov    $0x13,%edi
mov    $0x73,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x96,%edi
call   1030 <mdelay@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<S6D2101_PowerOn>:
push   %rax
mov    $0x11,%edi
mov    $0x2000,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x14,%edi
mov    $0x1946,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x10,%edi
mov    $0x4d00,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x13,%edi
mov    $0x40,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x32,%edi
call   1030 <mdelay@plt>
mov    $0x13,%edi
mov    $0x60,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x14,%edi
call   1030 <mdelay@plt>
mov    $0x13,%edi
mov    $0x62,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0xf,%edi
call   1030 <mdelay@plt>
mov    $0x13,%edi
mov    $0x63,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x14,%edi
call   1030 <mdelay@plt>
mov    $0x13,%edi
mov    $0x73,%esi
call   1040 <WriteLDI_LTE246@plt>
mov    $0x96,%edi
pop    %rax
jmp    1030 <mdelay@plt>

LLVM IR (-O0):
define void @S6D2101_PowerOn() {
%1 = call i32 @WriteLDI_LTE246(i32 17, i32 8192)
%2 = call i32 @WriteLDI_LTE246(i32 20, i32 6470)
%3 = call i32 @WriteLDI_LTE246(i32 16, i32 19712)
%4 = call i32 @WriteLDI_LTE246(i32 19, i32 64)
%5 = call i32 @mdelay(i32 50)
%6 = call i32 @WriteLDI_LTE246(i32 19, i32 96)
%7 = call i32 @mdelay(i32 20)
%8 = call i32 @WriteLDI_LTE246(i32 19, i32 98)
%9 = call i32 @mdelay(i32 15)
%10 = call i32 @WriteLDI_LTE246(i32 19, i32 99)
%11 = call i32 @mdelay(i32 20)
%12 = call i32 @WriteLDI_LTE246(i32 19, i32 115)
%13 = call i32 @mdelay(i32 150)
ret void
}

LLVM IR (-O2):
define void @S6D2101_PowerOn() {
%1 = tail call i32 @WriteLDI_LTE246(i32 17, i32 8192)
%2 = tail call i32 @WriteLDI_LTE246(i32 20, i32 6470)
%3 = tail call i32 @WriteLDI_LTE246(i32 16, i32 19712)
%4 = tail call i32 @WriteLDI_LTE246(i32 19, i32 64)
%5 = tail call i32 @mdelay(i32 50)
%6 = tail call i32 @WriteLDI_LTE246(i32 19, i32 96)
%7 = tail call i32 @mdelay(i32 20)
%8 = tail call i32 @WriteLDI_LTE246(i32 19, i32 98)
%9 = tail call i32 @mdelay(i32 15)
%10 = tail call i32 @WriteLDI_LTE246(i32 19, i32 99)
%11 = tail call i32 @mdelay(i32 20)
%12 = tail call i32 @WriteLDI_LTE246(i32 19, i32 115)
%13 = tail call i32 @mdelay(i32 150)
ret void
}