#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*/ EnableInterrupts();
int /*<<< orphan*/ GENDelay100Us(int);
int /*<<< orphan*/ GENSendPacketIR(int, int, int, int);
int /*<<< orphan*/ InitPortsIO();
int /*<<< orphan*/ InitSystemClock();
int /*<<< orphan*/ InitTimers();
void main() {
  InitSystemClock();
  InitPortsIO();
  InitTimers();
  EnableInterrupts();
  while (1) {
    GENSendPacketIR(0x00, 0xF7, 0x20, 0xDF);
    GENDelay100Us(500);
    GENSendPacketIR(0x00, 0xF7, 0xA0, 0x5E);
    GENDelay100Us(500);
    GENSendPacketIR(0x00, 0xFC, 0xA1, 0x5E);
    GENDelay100Us(500);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1070 <InitSystemClock@plt>
mov    $0x0,%al
call   1050 <InitPortsIO@plt>
mov    $0x0,%al
call   1080 <InitTimers@plt>
mov    $0x0,%al
call   1060 <EnableInterrupts@plt>
xor    %edi,%edi
mov    $0xf7,%esi
mov    $0x20,%edx
mov    $0xdf,%ecx
call   1030 <GENSendPacketIR@plt>
mov    $0x1f4,%edi
call   1040 <GENDelay100Us@plt>
xor    %edi,%edi
mov    $0xf7,%esi
mov    $0xa0,%edx
mov    $0x5e,%ecx
call   1030 <GENSendPacketIR@plt>
mov    $0x1f4,%edi
call   1040 <GENDelay100Us@plt>
xor    %edi,%edi
mov    $0xfc,%esi
mov    $0xa1,%edx
mov    $0x5e,%ecx
call   1030 <GENSendPacketIR@plt>
mov    $0x1f4,%edi
call   1040 <GENDelay100Us@plt>
jmp    1180 <main+0x20>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1070 <InitSystemClock@plt>
xor    %eax,%eax
call   1050 <InitPortsIO@plt>
xor    %eax,%eax
call   1080 <InitTimers@plt>
xor    %eax,%eax
call   1060 <EnableInterrupts@plt>
nopl   (%rax)
xor    %edi,%edi
mov    $0xf7,%esi
mov    $0x20,%edx
mov    $0xdf,%ecx
call   1030 <GENSendPacketIR@plt>
mov    $0x1f4,%edi
call   1040 <GENDelay100Us@plt>
xor    %edi,%edi
mov    $0xf7,%esi
mov    $0xa0,%edx
mov    $0x5e,%ecx
call   1030 <GENSendPacketIR@plt>
mov    $0x1f4,%edi
call   1040 <GENDelay100Us@plt>
xor    %edi,%edi
mov    $0xfc,%esi
mov    $0xa1,%edx
mov    $0x5e,%ecx
call   1030 <GENSendPacketIR@plt>
mov    $0x1f4,%edi
call   1040 <GENDelay100Us@plt>
jmp    1180 <main+0x20>

LLVM IR (-O0):
define void @main() {
%1 = call i32 (...) @InitSystemClock()
%2 = call i32 (...) @InitPortsIO()
%3 = call i32 (...) @InitTimers()
%4 = call i32 (...) @EnableInterrupts()
br label %5
5: ; preds = %0, %5
%6 = call i32 @GENSendPacketIR(i32 0, i32 247, i32 32, i32 223)
%7 = call i32 @GENDelay100Us(i32 500)
%8 = call i32 @GENSendPacketIR(i32 0, i32 247, i32 160, i32 94)
%9 = call i32 @GENDelay100Us(i32 500)
%10 = call i32 @GENSendPacketIR(i32 0, i32 252, i32 161, i32 94)
%11 = call i32 @GENDelay100Us(i32 500)
br label %5
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 (...) @InitSystemClock()
%2 = tail call i32 (...) @InitPortsIO()
%3 = tail call i32 (...) @InitTimers()
%4 = tail call i32 (...) @EnableInterrupts()
br label %5
5: ; preds = %0, %5
%6 = tail call i32 @GENSendPacketIR(i32 0, i32 247, i32 32, i32 223)
%7 = tail call i32 @GENDelay100Us(i32 500)
%8 = tail call i32 @GENSendPacketIR(i32 0, i32 247, i32 160, i32 94)
%9 = tail call i32 @GENDelay100Us(i32 500)
%10 = tail call i32 @GENSendPacketIR(i32 0, i32 252, i32 161, i32 94)
%11 = tail call i32 @GENDelay100Us(i32 500)
br label %5
}