#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*/ DelayMS(int);
int /*<<< orphan*/ HDMITX_WriteI2C_Byte(int, int);
void InitCAT6611(void) {
  ;
  HDMITX_WriteI2C_Byte(0x0f, (0) & 1);
  HDMITX_WriteI2C_Byte(0x05, 0);
  HDMITX_WriteI2C_Byte(0x04,
                       (1 << 5) | (1 << 3) | (1 << 2) | (1 << 4) | (1 << 0));
  DelayMS(1);
  HDMITX_WriteI2C_Byte(0x04, (1 << 3) | (1 << 2) | (1 << 4) | (1 << 0));
  HDMITX_WriteI2C_Byte(0x61, (1 << 4));
  HDMITX_WriteI2C_Byte(0x09, 0xFE);
  HDMITX_WriteI2C_Byte(0x0A, 0xFF);
  HDMITX_WriteI2C_Byte(0x0B, 0xFF);
  HDMITX_WriteI2C_Byte(0x59, (1 << 3));
  {
    HDMITX_WriteI2C_Byte(0x0f, (0) & 1);
    HDMITX_WriteI2C_Byte(0xC9, 0);
  };
  {
    HDMITX_WriteI2C_Byte(0x0f, (0) & 1);
    HDMITX_WriteI2C_Byte(0xCA, 0);
  };
  {
    HDMITX_WriteI2C_Byte(0x0f, (0) & 1);
    HDMITX_WriteI2C_Byte(0xCB, 0);
  };
  {
    HDMITX_WriteI2C_Byte(0x0f, (0) & 1);
    HDMITX_WriteI2C_Byte(0xCC, 0);
  };
  {
    HDMITX_WriteI2C_Byte(0x0f, (0) & 1);
    HDMITX_WriteI2C_Byte(0xCD, 0);
  };
  {
    HDMITX_WriteI2C_Byte(0x0f, (0) & 1);
    HDMITX_WriteI2C_Byte(0xCE, 0);
  };
  {
    HDMITX_WriteI2C_Byte(0x0f, (0) & 1);
    HDMITX_WriteI2C_Byte(0xCF, 0);
  };
  {
    HDMITX_WriteI2C_Byte(0x0f, (0) & 1);
    HDMITX_WriteI2C_Byte(0xD0, 0);
  };
}


x86 assembly (clang, -O0):
<InitCAT6611>:
push   %rbp
mov    %rsp,%rbp
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x4,%edi
mov    $0x3d,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x1,%edi
call   1040 <DelayMS@plt>
mov    $0x4,%edi
mov    $0x1d,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x61,%edi
mov    $0x10,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x9,%edi
mov    $0xfe,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xa,%edi
mov    $0xff,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xb,%edi
mov    $0xff,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x59,%edi
mov    $0x8,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xc9,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xca,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xcb,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xcc,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xcd,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xce,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xcf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xd0,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<InitCAT6611>:
push   %rax
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x5,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x4,%edi
mov    $0x3d,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x1,%edi
call   1040 <DelayMS@plt>
mov    $0x4,%edi
mov    $0x1d,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x61,%edi
mov    $0x10,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x9,%edi
mov    $0xfe,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xa,%edi
mov    $0xff,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xb,%edi
mov    $0xff,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0x59,%edi
mov    $0x8,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xc9,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xca,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xcb,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xcc,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xcd,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xce,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xcf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xf,%edi
xor    %esi,%esi
call   1030 <HDMITX_WriteI2C_Byte@plt>
mov    $0xd0,%edi
xor    %esi,%esi
pop    %rax
jmp    1030 <HDMITX_WriteI2C_Byte@plt>

LLVM IR (-O0):
define void @InitCAT6611() {
%1 = call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%2 = call i32 @HDMITX_WriteI2C_Byte(i32 5, i32 0)
%3 = call i32 @HDMITX_WriteI2C_Byte(i32 4, i32 61)
%4 = call i32 @DelayMS(i32 1)
%5 = call i32 @HDMITX_WriteI2C_Byte(i32 4, i32 29)
%6 = call i32 @HDMITX_WriteI2C_Byte(i32 97, i32 16)
%7 = call i32 @HDMITX_WriteI2C_Byte(i32 9, i32 254)
%8 = call i32 @HDMITX_WriteI2C_Byte(i32 10, i32 255)
%9 = call i32 @HDMITX_WriteI2C_Byte(i32 11, i32 255)
%10 = call i32 @HDMITX_WriteI2C_Byte(i32 89, i32 8)
%11 = call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%12 = call i32 @HDMITX_WriteI2C_Byte(i32 201, i32 0)
%13 = call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%14 = call i32 @HDMITX_WriteI2C_Byte(i32 202, i32 0)
%15 = call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%16 = call i32 @HDMITX_WriteI2C_Byte(i32 203, i32 0)
%17 = call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%18 = call i32 @HDMITX_WriteI2C_Byte(i32 204, i32 0)
%19 = call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%20 = call i32 @HDMITX_WriteI2C_Byte(i32 205, i32 0)
%21 = call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%22 = call i32 @HDMITX_WriteI2C_Byte(i32 206, i32 0)
%23 = call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%24 = call i32 @HDMITX_WriteI2C_Byte(i32 207, i32 0)
%25 = call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%26 = call i32 @HDMITX_WriteI2C_Byte(i32 208, i32 0)
ret void
}

LLVM IR (-O2):
define void @InitCAT6611() {
%1 = tail call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%2 = tail call i32 @HDMITX_WriteI2C_Byte(i32 5, i32 0)
%3 = tail call i32 @HDMITX_WriteI2C_Byte(i32 4, i32 61)
%4 = tail call i32 @DelayMS(i32 1)
%5 = tail call i32 @HDMITX_WriteI2C_Byte(i32 4, i32 29)
%6 = tail call i32 @HDMITX_WriteI2C_Byte(i32 97, i32 16)
%7 = tail call i32 @HDMITX_WriteI2C_Byte(i32 9, i32 254)
%8 = tail call i32 @HDMITX_WriteI2C_Byte(i32 10, i32 255)
%9 = tail call i32 @HDMITX_WriteI2C_Byte(i32 11, i32 255)
%10 = tail call i32 @HDMITX_WriteI2C_Byte(i32 89, i32 8)
%11 = tail call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%12 = tail call i32 @HDMITX_WriteI2C_Byte(i32 201, i32 0)
%13 = tail call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%14 = tail call i32 @HDMITX_WriteI2C_Byte(i32 202, i32 0)
%15 = tail call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%16 = tail call i32 @HDMITX_WriteI2C_Byte(i32 203, i32 0)
%17 = tail call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%18 = tail call i32 @HDMITX_WriteI2C_Byte(i32 204, i32 0)
%19 = tail call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%20 = tail call i32 @HDMITX_WriteI2C_Byte(i32 205, i32 0)
%21 = tail call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%22 = tail call i32 @HDMITX_WriteI2C_Byte(i32 206, i32 0)
%23 = tail call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%24 = tail call i32 @HDMITX_WriteI2C_Byte(i32 207, i32 0)
%25 = tail call i32 @HDMITX_WriteI2C_Byte(i32 15, i32 0)
%26 = tail call i32 @HDMITX_WriteI2C_Byte(i32 208, i32 0)
ret void
}