#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 ReadEeprom(int /*<<< orphan*/);
int ReadEepromWord(int);
int readVAC(int);
int /*<<< orphan*/ readVACEPROM();
int /*<<< orphan*/ writeVAC(int, int);
int /*<<< orphan*/ writeVIC(int, int);
void setupVICVAC(void) {
  int i = 0, j;
  readVACEPROM();
  writeVIC(0x27, j = ReadEeprom(i++));
  writeVIC(0x47, j = ReadEeprom(i++));
  writeVIC(0x57, j = ReadEeprom(i++));
  writeVIC(0xA7, j = ReadEeprom(i++));
  writeVIC(0xB3, j = ReadEeprom(i++));
  writeVIC(0xB7, j = ReadEeprom(i++));
  writeVIC(0xC3, j = ReadEeprom(i++));
  writeVIC(0xC7, j = ReadEeprom(i++));
  writeVIC(0xCB, j = ReadEeprom(i++));
  writeVIC(0xCF, j = ReadEeprom(i++));
  i++;
  writeVAC(0x0, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x1, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x2, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x3, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x4, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x5, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x6, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x7, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x8, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x9, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0xA, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0xB, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0xC, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0xD, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0xE, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0xF, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x10, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x11, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x12, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x13, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x14, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x16, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x1a, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x1b, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x1c, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x1d, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x1f, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x23, j = ReadEepromWord(i));
  i += 2;
  writeVAC(0x29, readVAC(0x29));
}


x86 assembly (clang, -O0):
<setupVICVAC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <readVACEPROM@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x27,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x47,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x57,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xa7,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xb3,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xb7,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xc3,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xc7,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xcb,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
call   1080 <ReadEeprom@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xcf,%edi
call   1070 <writeVIC@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
xor    %edi,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x1,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x2,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x3,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x4,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x5,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x6,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x7,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x8,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x9,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xa,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xb,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xc,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xd,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xe,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0xf,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x10,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x11,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x12,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x13,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x14,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x16,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x1a,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x1b,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x1c,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x1d,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x1f,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ReadEepromWord@plt>
mov    %eax,%esi
mov    %esi,-0x8(%rbp)
mov    $0x23,%edi
call   1060 <writeVAC@plt>
mov    -0x4(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x4(%rbp)
mov    $0x29,%edi
call   1050 <readVAC@plt>
mov    %eax,%esi
mov    $0x29,%edi
call   1060 <writeVAC@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setupVICVAC>:
push   %rax
xor    %eax,%eax
call   1040 <readVACEPROM@plt>
xor    %edi,%edi
call   1080 <ReadEeprom@plt>
mov    $0x27,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0x1,%edi
call   1080 <ReadEeprom@plt>
mov    $0x47,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0x2,%edi
call   1080 <ReadEeprom@plt>
mov    $0x57,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0x3,%edi
call   1080 <ReadEeprom@plt>
mov    $0xa7,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0x4,%edi
call   1080 <ReadEeprom@plt>
mov    $0xb3,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0x5,%edi
call   1080 <ReadEeprom@plt>
mov    $0xb7,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0x6,%edi
call   1080 <ReadEeprom@plt>
mov    $0xc3,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0x7,%edi
call   1080 <ReadEeprom@plt>
mov    $0xc7,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0x8,%edi
call   1080 <ReadEeprom@plt>
mov    $0xcb,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0x9,%edi
call   1080 <ReadEeprom@plt>
mov    $0xcf,%edi
mov    %eax,%esi
call   1070 <writeVIC@plt>
mov    $0xb,%edi
call   1030 <ReadEepromWord@plt>
xor    %edi,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0xd,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x1,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0xf,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x2,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x11,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x3,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x13,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x4,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x15,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x5,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x17,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x6,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x19,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x7,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x1b,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x8,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x1d,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x9,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x1f,%edi
call   1030 <ReadEepromWord@plt>
mov    $0xa,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x21,%edi
call   1030 <ReadEepromWord@plt>
mov    $0xb,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x23,%edi
call   1030 <ReadEepromWord@plt>
mov    $0xc,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x25,%edi
call   1030 <ReadEepromWord@plt>
mov    $0xd,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x27,%edi
call   1030 <ReadEepromWord@plt>
mov    $0xe,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x29,%edi
call   1030 <ReadEepromWord@plt>
mov    $0xf,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x2b,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x10,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x2d,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x11,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x2f,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x12,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x31,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x13,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x33,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x14,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x35,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x16,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x37,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x1a,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x39,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x1b,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x3b,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x1c,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x3d,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x1d,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x3f,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x1f,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x41,%edi
call   1030 <ReadEepromWord@plt>
mov    $0x23,%edi
mov    %eax,%esi
call   1060 <writeVAC@plt>
mov    $0x29,%edi
call   1050 <readVAC@plt>
mov    $0x29,%edi
mov    %eax,%esi
pop    %rax
jmp    1060 <writeVAC@plt>

LLVM IR (-O0):
define void @setupVICVAC() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @readVACEPROM()
%4 = load i32, i32* %1
%5 = add nsw i32 %4, 1
store i32 %5, i32* %1
%6 = call i32 @ReadEeprom(i32 %4)
store i32 %6, i32* %2
%7 = call i32 @writeVIC(i32 39, i32 %6)
%8 = load i32, i32* %1
%9 = add nsw i32 %8, 1
store i32 %9, i32* %1
%10 = call i32 @ReadEeprom(i32 %8)
store i32 %10, i32* %2
%11 = call i32 @writeVIC(i32 71, i32 %10)
%12 = load i32, i32* %1
%13 = add nsw i32 %12, 1
store i32 %13, i32* %1
%14 = call i32 @ReadEeprom(i32 %12)
store i32 %14, i32* %2
%15 = call i32 @writeVIC(i32 87, i32 %14)
%16 = load i32, i32* %1
%17 = add nsw i32 %16, 1
store i32 %17, i32* %1
%18 = call i32 @ReadEeprom(i32 %16)
store i32 %18, i32* %2
%19 = call i32 @writeVIC(i32 167, i32 %18)
%20 = load i32, i32* %1
%21 = add nsw i32 %20, 1
store i32 %21, i32* %1
%22 = call i32 @ReadEeprom(i32 %20)
store i32 %22, i32* %2
%23 = call i32 @writeVIC(i32 179, i32 %22)
%24 = load i32, i32* %1
%25 = add nsw i32 %24, 1
store i32 %25, i32* %1
%26 = call i32 @ReadEeprom(i32 %24)
store i32 %26, i32* %2
%27 = call i32 @writeVIC(i32 183, i32 %26)
%28 = load i32, i32* %1
%29 = add nsw i32 %28, 1
store i32 %29, i32* %1
%30 = call i32 @ReadEeprom(i32 %28)
store i32 %30, i32* %2
%31 = call i32 @writeVIC(i32 195, i32 %30)
%32 = load i32, i32* %1
%33 = add nsw i32 %32, 1
store i32 %33, i32* %1
%34 = call i32 @ReadEeprom(i32 %32)
store i32 %34, i32* %2
%35 = call i32 @writeVIC(i32 199, i32 %34)
%36 = load i32, i32* %1
%37 = add nsw i32 %36, 1
store i32 %37, i32* %1
%38 = call i32 @ReadEeprom(i32 %36)
store i32 %38, i32* %2
%39 = call i32 @writeVIC(i32 203, i32 %38)
%40 = load i32, i32* %1
%41 = add nsw i32 %40, 1
store i32 %41, i32* %1
%42 = call i32 @ReadEeprom(i32 %40)
store i32 %42, i32* %2
%43 = call i32 @writeVIC(i32 207, i32 %42)
%44 = load i32, i32* %1
%45 = add nsw i32 %44, 1
store i32 %45, i32* %1
%46 = load i32, i32* %1
%47 = call i32 @ReadEepromWord(i32 %46)
store i32 %47, i32* %2
%48 = call i32 @writeVAC(i32 0, i32 %47)
%49 = load i32, i32* %1
%50 = add nsw i32 %49, 2
store i32 %50, i32* %1
%51 = load i32, i32* %1
%52 = call i32 @ReadEepromWord(i32 %51)
store i32 %52, i32* %2
%53 = call i32 @writeVAC(i32 1, i32 %52)
%54 = load i32, i32* %1
%55 = add nsw i32 %54, 2
store i32 %55, i32* %1
%56 = load i32, i32* %1
%57 = call i32 @ReadEepromWord(i32 %56)
store i32 %57, i32* %2
%58 = call i32 @writeVAC(i32 2, i32 %57)
%59 = load i32, i32* %1
%60 = add nsw i32 %59, 2
store i32 %60, i32* %1
%61 = load i32, i32* %1
%62 = call i32 @ReadEepromWord(i32 %61)
store i32 %62, i32* %2
%63 = call i32 @writeVAC(i32 3, i32 %62)
%64 = load i32, i32* %1
%65 = add nsw i32 %64, 2
store i32 %65, i32* %1
%66 = load i32, i32* %1
%67 = call i32 @ReadEepromWord(i32 %66)
store i32 %67, i32* %2
%68 = call i32 @writeVAC(i32 4, i32 %67)
%69 = load i32, i32* %1
%70 = add nsw i32 %69, 2
store i32 %70, i32* %1
%71 = load i32, i32* %1
%72 = call i32 @ReadEepromWord(i32 %71)
store i32 %72, i32* %2
%73 = call i32 @writeVAC(i32 5, i32 %72)
%74 = load i32, i32* %1
%75 = add nsw i32 %74, 2
store i32 %75, i32* %1
%76 = load i32, i32* %1
%77 = call i32 @ReadEepromWord(i32 %76)
store i32 %77, i32* %2
%78 = call i32 @writeVAC(i32 6, i32 %77)
%79 = load i32, i32* %1
%80 = add nsw i32 %79, 2
store i32 %80, i32* %1
%81 = load i32, i32* %1
%82 = call i32 @ReadEepromWord(i32 %81)
store i32 %82, i32* %2
%83 = call i32 @writeVAC(i32 7, i32 %82)
%84 = load i32, i32* %1
%85 = add nsw i32 %84, 2
store i32 %85, i32* %1
%86 = load i32, i32* %1
%87 = call i32 @ReadEepromWord(i32 %86)
store i32 %87, i32* %2
%88 = call i32 @writeVAC(i32 8, i32 %87)
%89 = load i32, i32* %1
%90 = add nsw i32 %89, 2
store i32 %90, i32* %1
%91 = load i32, i32* %1
%92 = call i32 @ReadEepromWord(i32 %91)
store i32 %92, i32* %2
%93 = call i32 @writeVAC(i32 9, i32 %92)
%94 = load i32, i32* %1
%95 = add nsw i32 %94, 2
store i32 %95, i32* %1
%96 = load i32, i32* %1
%97 = call i32 @ReadEepromWord(i32 %96)
store i32 %97, i32* %2
%98 = call i32 @writeVAC(i32 10, i32 %97)
%99 = load i32, i32* %1
%100 = add nsw i32 %99, 2
store i32 %100, i32* %1
%101 = load i32, i32* %1
%102 = call i32 @ReadEepromWord(i32 %101)
store i32 %102, i32* %2
%103 = call i32 @writeVAC(i32 11, i32 %102)
%104 = load i32, i32* %1
%105 = add nsw i32 %104, 2
store i32 %105, i32* %1
%106 = load i32, i32* %1
%107 = call i32 @ReadEepromWord(i32 %106)
store i32 %107, i32* %2
%108 = call i32 @writeVAC(i32 12, i32 %107)
%109 = load i32, i32* %1
%110 = add nsw i32 %109, 2
store i32 %110, i32* %1
%111 = load i32, i32* %1
%112 = call i32 @ReadEepromWord(i32 %111)
store i32 %112, i32* %2
%113 = call i32 @writeVAC(i32 13, i32 %112)
%114 = load i32, i32* %1
%115 = add nsw i32 %114, 2
store i32 %115, i32* %1
%116 = load i32, i32* %1
%117 = call i32 @ReadEepromWord(i32 %116)
store i32 %117, i32* %2
%118 = call i32 @writeVAC(i32 14, i32 %117)
%119 = load i32, i32* %1
%120 = add nsw i32 %119, 2
store i32 %120, i32* %1
%121 = load i32, i32* %1
%122 = call i32 @ReadEepromWord(i32 %121)
store i32 %122, i32* %2
%123 = call i32 @writeVAC(i32 15, i32 %122)
%124 = load i32, i32* %1
%125 = add nsw i32 %124, 2
store i32 %125, i32* %1
%126 = load i32, i32* %1
%127 = call i32 @ReadEepromWord(i32 %126)
store i32 %127, i32* %2
%128 = call i32 @writeVAC(i32 16, i32 %127)
%129 = load i32, i32* %1
%130 = add nsw i32 %129, 2
store i32 %130, i32* %1
%131 = load i32, i32* %1
%132 = call i32 @ReadEepromWord(i32 %131)
store i32 %132, i32* %2
%133 = call i32 @writeVAC(i32 17, i32 %132)
%134 = load i32, i32* %1
%135 = add nsw i32 %134, 2
store i32 %135, i32* %1
%136 = load i32, i32* %1
%137 = call i32 @ReadEepromWord(i32 %136)
store i32 %137, i32* %2
%138 = call i32 @writeVAC(i32 18, i32 %137)
%139 = load i32, i32* %1
%140 = add nsw i32 %139, 2
store i32 %140, i32* %1
%141 = load i32, i32* %1
%142 = call i32 @ReadEepromWord(i32 %141)
store i32 %142, i32* %2
%143 = call i32 @writeVAC(i32 19, i32 %142)
%144 = load i32, i32* %1
%145 = add nsw i32 %144, 2
store i32 %145, i32* %1
%146 = load i32, i32* %1
%147 = call i32 @ReadEepromWord(i32 %146)
store i32 %147, i32* %2
%148 = call i32 @writeVAC(i32 20, i32 %147)
%149 = load i32, i32* %1
%150 = add nsw i32 %149, 2
store i32 %150, i32* %1
%151 = load i32, i32* %1
%152 = call i32 @ReadEepromWord(i32 %151)
store i32 %152, i32* %2
%153 = call i32 @writeVAC(i32 22, i32 %152)
%154 = load i32, i32* %1
%155 = add nsw i32 %154, 2
store i32 %155, i32* %1
%156 = load i32, i32* %1
%157 = call i32 @ReadEepromWord(i32 %156)
store i32 %157, i32* %2
%158 = call i32 @writeVAC(i32 26, i32 %157)
%159 = load i32, i32* %1
%160 = add nsw i32 %159, 2
store i32 %160, i32* %1
%161 = load i32, i32* %1
%162 = call i32 @ReadEepromWord(i32 %161)
store i32 %162, i32* %2
%163 = call i32 @writeVAC(i32 27, i32 %162)
%164 = load i32, i32* %1
%165 = add nsw i32 %164, 2
store i32 %165, i32* %1
%166 = load i32, i32* %1
%167 = call i32 @ReadEepromWord(i32 %166)
store i32 %167, i32* %2
%168 = call i32 @writeVAC(i32 28, i32 %167)
%169 = load i32, i32* %1
%170 = add nsw i32 %169, 2
store i32 %170, i32* %1
%171 = load i32, i32* %1
%172 = call i32 @ReadEepromWord(i32 %171)
store i32 %172, i32* %2
%173 = call i32 @writeVAC(i32 29, i32 %172)
%174 = load i32, i32* %1
%175 = add nsw i32 %174, 2
store i32 %175, i32* %1
%176 = load i32, i32* %1
%177 = call i32 @ReadEepromWord(i32 %176)
store i32 %177, i32* %2
%178 = call i32 @writeVAC(i32 31, i32 %177)
%179 = load i32, i32* %1
%180 = add nsw i32 %179, 2
store i32 %180, i32* %1
%181 = load i32, i32* %1
%182 = call i32 @ReadEepromWord(i32 %181)
store i32 %182, i32* %2
%183 = call i32 @writeVAC(i32 35, i32 %182)
%184 = load i32, i32* %1
%185 = add nsw i32 %184, 2
store i32 %185, i32* %1
%186 = call i32 @readVAC(i32 41)
%187 = call i32 @writeVAC(i32 41, i32 %186)
ret void
}

LLVM IR (-O2):
define void @setupVICVAC() {
%1 = tail call i32 (...) @readVACEPROM()
%2 = tail call i32 @ReadEeprom(i32 0)
%3 = tail call i32 @writeVIC(i32 39, i32 %2)
%4 = tail call i32 @ReadEeprom(i32 1)
%5 = tail call i32 @writeVIC(i32 71, i32 %4)
%6 = tail call i32 @ReadEeprom(i32 2)
%7 = tail call i32 @writeVIC(i32 87, i32 %6)
%8 = tail call i32 @ReadEeprom(i32 3)
%9 = tail call i32 @writeVIC(i32 167, i32 %8)
%10 = tail call i32 @ReadEeprom(i32 4)
%11 = tail call i32 @writeVIC(i32 179, i32 %10)
%12 = tail call i32 @ReadEeprom(i32 5)
%13 = tail call i32 @writeVIC(i32 183, i32 %12)
%14 = tail call i32 @ReadEeprom(i32 6)
%15 = tail call i32 @writeVIC(i32 195, i32 %14)
%16 = tail call i32 @ReadEeprom(i32 7)
%17 = tail call i32 @writeVIC(i32 199, i32 %16)
%18 = tail call i32 @ReadEeprom(i32 8)
%19 = tail call i32 @writeVIC(i32 203, i32 %18)
%20 = tail call i32 @ReadEeprom(i32 9)
%21 = tail call i32 @writeVIC(i32 207, i32 %20)
%22 = tail call i32 @ReadEepromWord(i32 11)
%23 = tail call i32 @writeVAC(i32 0, i32 %22)
%24 = tail call i32 @ReadEepromWord(i32 13)
%25 = tail call i32 @writeVAC(i32 1, i32 %24)
%26 = tail call i32 @ReadEepromWord(i32 15)
%27 = tail call i32 @writeVAC(i32 2, i32 %26)
%28 = tail call i32 @ReadEepromWord(i32 17)
%29 = tail call i32 @writeVAC(i32 3, i32 %28)
%30 = tail call i32 @ReadEepromWord(i32 19)
%31 = tail call i32 @writeVAC(i32 4, i32 %30)
%32 = tail call i32 @ReadEepromWord(i32 21)
%33 = tail call i32 @writeVAC(i32 5, i32 %32)
%34 = tail call i32 @ReadEepromWord(i32 23)
%35 = tail call i32 @writeVAC(i32 6, i32 %34)
%36 = tail call i32 @ReadEepromWord(i32 25)
%37 = tail call i32 @writeVAC(i32 7, i32 %36)
%38 = tail call i32 @ReadEepromWord(i32 27)
%39 = tail call i32 @writeVAC(i32 8, i32 %38)
%40 = tail call i32 @ReadEepromWord(i32 29)
%41 = tail call i32 @writeVAC(i32 9, i32 %40)
%42 = tail call i32 @ReadEepromWord(i32 31)
%43 = tail call i32 @writeVAC(i32 10, i32 %42)
%44 = tail call i32 @ReadEepromWord(i32 33)
%45 = tail call i32 @writeVAC(i32 11, i32 %44)
%46 = tail call i32 @ReadEepromWord(i32 35)
%47 = tail call i32 @writeVAC(i32 12, i32 %46)
%48 = tail call i32 @ReadEepromWord(i32 37)
%49 = tail call i32 @writeVAC(i32 13, i32 %48)
%50 = tail call i32 @ReadEepromWord(i32 39)
%51 = tail call i32 @writeVAC(i32 14, i32 %50)
%52 = tail call i32 @ReadEepromWord(i32 41)
%53 = tail call i32 @writeVAC(i32 15, i32 %52)
%54 = tail call i32 @ReadEepromWord(i32 43)
%55 = tail call i32 @writeVAC(i32 16, i32 %54)
%56 = tail call i32 @ReadEepromWord(i32 45)
%57 = tail call i32 @writeVAC(i32 17, i32 %56)
%58 = tail call i32 @ReadEepromWord(i32 47)
%59 = tail call i32 @writeVAC(i32 18, i32 %58)
%60 = tail call i32 @ReadEepromWord(i32 49)
%61 = tail call i32 @writeVAC(i32 19, i32 %60)
%62 = tail call i32 @ReadEepromWord(i32 51)
%63 = tail call i32 @writeVAC(i32 20, i32 %62)
%64 = tail call i32 @ReadEepromWord(i32 53)
%65 = tail call i32 @writeVAC(i32 22, i32 %64)
%66 = tail call i32 @ReadEepromWord(i32 55)
%67 = tail call i32 @writeVAC(i32 26, i32 %66)
%68 = tail call i32 @ReadEepromWord(i32 57)
%69 = tail call i32 @writeVAC(i32 27, i32 %68)
%70 = tail call i32 @ReadEepromWord(i32 59)
%71 = tail call i32 @writeVAC(i32 28, i32 %70)
%72 = tail call i32 @ReadEepromWord(i32 61)
%73 = tail call i32 @writeVAC(i32 29, i32 %72)
%74 = tail call i32 @ReadEepromWord(i32 63)
%75 = tail call i32 @writeVAC(i32 31, i32 %74)
%76 = tail call i32 @ReadEepromWord(i32 65)
%77 = tail call i32 @writeVAC(i32 35, i32 %76)
%78 = tail call i32 @readVAC(i32 41)
%79 = tail call i32 @writeVAC(i32 41, i32 %78)
ret void
}