#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int errno;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, unsigned int *, ...);
int /*<<< orphan*/ printf(char *, unsigned int, ...);
int /*<<< orphan*/ stderr;
int prepare_efuse(FILE *fp, char *efuse) {
  FILE *fe = NULL;
  unsigned int buf[20];
  fe = fopen(efuse, "r");
  if (fe == NULL) {
    fprintf(stderr, "Couldn't open e-Fuse file %s (err %d)\n", efuse, errno);
    return -1;
  }
  fscanf(fe, "SN[63:0] = %x_%x\n", &buf[1], &buf[0]);
  printf("SN[63:0] = %08x_%08x\n", buf[1], buf[0]);
  fprintf(fp, "w4 0x40084300 0x%08X\n", buf[0]);
  fprintf(fp, "w4 0x40084304 0x%08X\n", buf[1]);
  fscanf(fe, "PID[31:0] = %x\n", &buf[0]);
  printf("PID[31:0] = %08x\n", buf[0]);
  fprintf(fp, "w4 0x40000704 0x%08X\n", buf[0]);
  fscanf(fe, "VID[31:0] = %x\n", &buf[0]);
  printf("VID[31:0] = %08x\n", buf[0]);
  fprintf(fp, "w4 0x40000700 0x%08X\n", buf[0]);
  fscanf(fe, "CMS[215:0] = %x_%x_%x_%x_%x_%x_%x\n", &buf[6], &buf[5], &buf[4],
         &buf[3], &buf[2], &buf[1], &buf[0]);
  printf("CMS[215:0] = %x_%08x_%08x_%08x_%08x_%08x_%08x\n", buf[6], buf[5],
         buf[4], buf[3], buf[2], buf[1], buf[0]);
  fprintf(fp, "w4 0x40084200 0x%08X\n", buf[0]);
  fprintf(fp, "w4 0x40084204 0x%08X\n", buf[1]);
  fprintf(fp, "w4 0x40084208 0x%08X\n", buf[2]);
  fprintf(fp, "w4 0x4008420C 0x%08X\n", buf[3]);
  fprintf(fp, "w4 0x40084210 0x%08X\n", buf[4]);
  fprintf(fp, "w4 0x40084214 0x%08X\n", buf[5]);
  fprintf(fp, "w4 0x40084218 0x%08X\n", buf[6]);
  fscanf(fe, "SCR[7:0] = %x\n", &buf[0]);
  printf("SCR[7:0] = %x\n", buf[0]);
  fscanf(fe, "IMS[279:0] = %x_%x_%x_%x_%x_%x_%x_%x_%x\n", &buf[8], &buf[7],
         &buf[6], &buf[5], &buf[4], &buf[3], &buf[2], &buf[1], &buf[0]);
  printf("IMS[279:0] = %X_%08x_%08x_%08x_%08x_%08x_%08x_%08x_%08x\n", buf[8],
         buf[7], buf[6], buf[5], buf[4], buf[3], buf[2], buf[1], buf[0]);
  fprintf(fp, "w4 0x40084100 0x%08X\n", buf[0]);
  fprintf(fp, "w4 0x40084104 0x%08X\n", buf[1]);
  fprintf(fp, "w4 0x40084108 0x%08X\n", buf[2]);
  fprintf(fp, "w4 0x4008410C 0x%08X\n", buf[3]);
  fprintf(fp, "w4 0x40084110 0x%08X\n", buf[4]);
  fprintf(fp, "w4 0x40084114 0x%08X\n", buf[5]);
  fprintf(fp, "w4 0x40084118 0x%08X\n", buf[6]);
  fprintf(fp, "w4 0x4008411C 0x%08X\n", buf[7]);
  fprintf(fp, "w4 0x40084120 0x%08X\n", buf[8]);
  fclose(fe);
  return 0;
}


x86 assembly (clang, -O0):
<prepare_efuse>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xa0,%rsp
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
lea    0xe87(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    11be <prepare_efuse+0x6e>
mov    0x2e4c(%rip),%rax
movslq (%rax),%rdi
mov    -0x28(%rbp),%rdx
mov    0x2e36(%rip),%rax
mov    (%rax),%ecx
lea    0xe57(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x14(%rbp)
jmp    1547 <prepare_efuse+0x3f7>
mov    -0x30(%rbp),%rdi
lea    -0x80(%rbp),%rdx
add    $0x4,%rdx
lea    -0x80(%rbp),%rcx
lea    0xe54(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x7c(%rbp),%esi
mov    -0x80(%rbp),%edx
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x80(%rbp),%edx
lea    0xe53(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x7c(%rbp),%edx
lea    0xe54(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    -0x80(%rbp),%rdx
lea    0xe54(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x80(%rbp),%esi
lea    0xe53(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x80(%rbp),%edx
lea    0xe50(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    -0x80(%rbp),%rdx
lea    0xe50(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x80(%rbp),%esi
lea    0xe4f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x80(%rbp),%edx
lea    0xe4c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    -0x80(%rbp),%rdx
add    $0x18,%rdx
lea    -0x80(%rbp),%rcx
add    $0x14,%rcx
lea    -0x80(%rbp),%r8
add    $0x10,%r8
lea    -0x80(%rbp),%r9
add    $0xc,%r9
lea    -0x80(%rbp),%r11
add    $0x8,%r11
lea    -0x80(%rbp),%r10
add    $0x4,%r10
lea    -0x80(%rbp),%rax
lea    0xe1c(%rip),%rsi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x68(%rbp),%esi
mov    -0x6c(%rbp),%edx
mov    -0x70(%rbp),%ecx
mov    -0x74(%rbp),%r8d
mov    -0x78(%rbp),%r9d
mov    -0x7c(%rbp),%r10d
mov    -0x80(%rbp),%eax
lea    0xe0b(%rip),%rdi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x80(%rbp),%edx
lea    0xe1d(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x7c(%rbp),%edx
lea    0xe1e(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x78(%rbp),%edx
lea    0xe1f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x74(%rbp),%edx
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x70(%rbp),%edx
lea    0xe21(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x6c(%rbp),%edx
lea    0xe22(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x68(%rbp),%edx
lea    0xe23(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    -0x80(%rbp),%rdx
lea    0xe23(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x80(%rbp),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rdi
lea    -0x80(%rbp),%rdx
add    $0x20,%rdx
lea    -0x80(%rbp),%rcx
add    $0x1c,%rcx
lea    -0x80(%rbp),%r8
add    $0x18,%r8
lea    -0x80(%rbp),%r9
add    $0x14,%r9
lea    -0x80(%rbp),%r14
add    $0x10,%r14
lea    -0x80(%rbp),%rbx
add    $0xc,%rbx
lea    -0x80(%rbp),%r11
add    $0x8,%r11
lea    -0x80(%rbp),%r10
add    $0x4,%r10
lea    -0x80(%rbp),%rax
lea    0xdcb(%rip),%rsi
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x60(%rbp),%esi
mov    -0x64(%rbp),%edx
mov    -0x68(%rbp),%ecx
mov    -0x6c(%rbp),%r8d
mov    -0x70(%rbp),%r9d
mov    -0x74(%rbp),%ebx
mov    -0x78(%rbp),%r11d
mov    -0x7c(%rbp),%r10d
mov    -0x80(%rbp),%eax
lea    0xdaf(%rip),%rdi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x80(%rbp),%edx
lea    0xdc2(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x7c(%rbp),%edx
lea    0xdc3(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x78(%rbp),%edx
lea    0xdc4(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x74(%rbp),%edx
lea    0xdc5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x70(%rbp),%edx
lea    0xdc6(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x6c(%rbp),%edx
lea    0xdc7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x68(%rbp),%edx
lea    0xdc8(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x64(%rbp),%edx
lea    0xdc9(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x60(%rbp),%edx
lea    0xdca(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<prepare_efuse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%rbp
mov    %rdi,%rbx
lea    0xe95(%rip),%rsi
mov    %rbp,%rdi
call   1070 <fopen@plt>
test   %rax,%rax
je     14bf <prepare_efuse+0x36f>
mov    %rax,%r14
lea    0x4(%rsp),%rdx
lea    0xe9e(%rip),%rsi
mov    %rsp,%r12
mov    %rax,%rdi
mov    %rdx,%r15
mov    %r12,%rcx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    (%rsp),%edx
mov    0x4(%rsp),%esi
lea    0xe8f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%edx
lea    0xe94(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x4(%rsp),%edx
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xe9a(%rip),%rsi
mov    %r14,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    (%rsp),%esi
lea    0xe93(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%edx
lea    0xe94(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xe99(%rip),%rsi
mov    %r14,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    (%rsp),%esi
lea    0xe92(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%edx
lea    0xe93(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x18(%rsp),%rdx
lea    0x14(%rsp),%r13
lea    0x10(%rsp),%r8
lea    0xc(%rsp),%r9
lea    0x8(%rsp),%rbp
sub    $0x8,%rsp
lea    0xe7b(%rip),%rsi
mov    %r14,%rdi
mov    %r13,%rcx
xor    %eax,%eax
push   %r12
push   %r15
push   %rbp
call   1050 <fscanf@plt>
add    $0x20,%rsp
mov    0x18(%rsp),%esi
mov    0x14(%rsp),%edx
mov    0x10(%rsp),%ecx
mov    0xc(%rsp),%r8d
mov    0x8(%rsp),%r9d
mov    (%rsp),%ebp
mov    0x4(%rsp),%r10d
lea    0xe63(%rip),%rdi
xor    %eax,%eax
push   %rbp
push   %r10
call   1040 <printf@plt>
add    $0x10,%rsp
mov    (%rsp),%edx
lea    0xe7a(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x4(%rsp),%edx
lea    0xe7b(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x8(%rsp),%edx
lea    0xe7c(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0xc(%rsp),%edx
lea    0xe7d(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x10(%rsp),%edx
lea    0xe7e(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x14(%rsp),%edx
lea    0xe7f(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x18(%rsp),%edx
lea    0xe80(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xe85(%rip),%r15
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    (%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x20(%rsp),%rdx
lea    0x1c(%rsp),%rcx
sub    $0x8,%rsp
lea    0xe62(%rip),%rsi
mov    %r14,%rdi
lea    0x20(%rsp),%r8
mov    %r13,%r9
xor    %eax,%eax
push   %r12
lea    0x14(%rsp),%rbp
push   %rbp
lea    0x20(%rsp),%rbp
push   %rbp
lea    0x2c(%rsp),%rbp
push   %rbp
lea    0x38(%rsp),%rbp
push   %rbp
call   1050 <fscanf@plt>
add    $0x30,%rsp
mov    0x20(%rsp),%esi
mov    0x1c(%rsp),%edx
mov    0x18(%rsp),%ecx
mov    0x14(%rsp),%r8d
mov    0x10(%rsp),%r9d
mov    0xc(%rsp),%r10d
mov    0x8(%rsp),%r11d
mov    (%rsp),%ebp
mov    0x4(%rsp),%r15d
lea    0xe2c(%rip),%rdi
xor    %eax,%eax
push   %rbp
push   %r15
push   %r11
push   %r10
call   1040 <printf@plt>
add    $0x20,%rsp
mov    (%rsp),%edx
lea    0xe49(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x4(%rsp),%edx
lea    0xe4a(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x8(%rsp),%edx
lea    0xe4b(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0xc(%rsp),%edx
lea    0xe4c(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x10(%rsp),%edx
lea    0xe4d(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x14(%rsp),%edx
lea    0xe4e(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x18(%rsp),%edx
lea    0xe4f(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x1c(%rsp),%edx
lea    0xe50(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x20(%rsp),%edx
lea    0xe51(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
jmp    14e8 <prepare_efuse+0x398>
mov    0x2b1a(%rip),%rax
movslq (%rax),%rdi
mov    0x2b08(%rip),%rax
mov    (%rax),%ecx
lea    0xb29(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0xffffffff,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [39 x i8] c"Couldn't open e-Fuse file %s (err %d)\0A\00"
@errno = global i32 0
@.str.2 = [18 x i8] c"SN[63:0] = %x_%x\0A\00"
@.str.3 = [22 x i8] c"SN[63:0] = %08x_%08x\0A\00"
@.str.4 = [22 x i8] c"w4 0x40084300 0x%08X\0A\00"
@.str.5 = [22 x i8] c"w4 0x40084304 0x%08X\0A\00"
@.str.6 = [16 x i8] c"PID[31:0] = %x\0A\00"
@.str.7 = [18 x i8] c"PID[31:0] = %08x\0A\00"
@.str.8 = [22 x i8] c"w4 0x40000704 0x%08X\0A\00"
@.str.9 = [16 x i8] c"VID[31:0] = %x\0A\00"
@.str.10 = [18 x i8] c"VID[31:0] = %08x\0A\00"
@.str.11 = [22 x i8] c"w4 0x40000700 0x%08X\0A\00"
@.str.12 = [35 x i8] c"CMS[215:0] = %x_%x_%x_%x_%x_%x_%x\0A\00"
@.str.13 = [47 x i8] c"CMS[215:0] = %x_%08x_%08x_%08x_%08x_%08x_%08x\0A\00"
@.str.14 = [22 x i8] c"w4 0x40084200 0x%08X\0A\00"
@.str.15 = [22 x i8] c"w4 0x40084204 0x%08X\0A\00"
@.str.16 = [22 x i8] c"w4 0x40084208 0x%08X\0A\00"
@.str.17 = [22 x i8] c"w4 0x4008420C 0x%08X\0A\00"
@.str.18 = [22 x i8] c"w4 0x40084210 0x%08X\0A\00"
@.str.19 = [22 x i8] c"w4 0x40084214 0x%08X\0A\00"
@.str.20 = [22 x i8] c"w4 0x40084218 0x%08X\0A\00"
@.str.21 = [15 x i8] c"SCR[7:0] = %x\0A\00"
@.str.22 = [41 x i8] c"IMS[279:0] = %x_%x_%x_%x_%x_%x_%x_%x_%x\0A\00"
@.str.23 = [57 x i8] c"IMS[279:0] = %X_%08x_%08x_%08x_%08x_%08x_%08x_%08x_%08x\0A\00"
@.str.24 = [22 x i8] c"w4 0x40084100 0x%08X\0A\00"
@.str.25 = [22 x i8] c"w4 0x40084104 0x%08X\0A\00"
@.str.26 = [22 x i8] c"w4 0x40084108 0x%08X\0A\00"
@.str.27 = [22 x i8] c"w4 0x4008410C 0x%08X\0A\00"
@.str.28 = [22 x i8] c"w4 0x40084110 0x%08X\0A\00"
@.str.29 = [22 x i8] c"w4 0x40084114 0x%08X\0A\00"
@.str.30 = [22 x i8] c"w4 0x40084118 0x%08X\0A\00"
@.str.31 = [22 x i8] c"w4 0x4008411C 0x%08X\0A\00"
@.str.32 = [22 x i8] c"w4 0x40084120 0x%08X\0A\00"
define i32 @prepare_efuse(i32* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca [20 x i32]
store i32* %0, i32** %4
store i8* %1, i8** %5
store i32* null, i32** %6
%8 = load i8*, i8** %5
%9 = call i32* @fopen(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %9, i32** %6
%10 = load i32*, i32** %6
%11 = icmp eq i32* %10, null
br i1 %11, label %12, label %19
12: ; preds = %2
%13 = load i32, i32* @stderr
%14 = sext i32 %13 to i64
%15 = inttoptr i64 %14 to i32*
%16 = load i8*, i8** %5
%17 = load i32, i32* @errno
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* %16, i32 %17)
store i32 -1, i32* %3
br label %183
19: ; preds = %2
%20 = load i32*, i32** %6
%21 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 1
%22 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%23 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %20, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* %21, i32* %22)
%24 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 1
%25 = load i32, i32* %24
%26 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%27 = load i32, i32* %26
%28 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %25, i32 %27)
%29 = load i32*, i32** %4
%30 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%31 = load i32, i32* %30
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %31)
%33 = load i32*, i32** %4
%34 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 1
%35 = load i32, i32* %34
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %35)
%37 = load i32*, i32** %6
%38 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%39 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %37, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32* %38)
%40 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%41 = load i32, i32* %40
%42 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %41)
%43 = load i32*, i32** %4
%44 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%45 = load i32, i32* %44
%46 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %45)
%47 = load i32*, i32** %6
%48 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%49 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %47, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32* %48)
%50 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%51 = load i32, i32* %50
%52 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %51)
%53 = load i32*, i32** %4
%54 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%55 = load i32, i32* %54
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %55)
%57 = load i32*, i32** %6
%58 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 6
%59 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 5
%60 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 4
%61 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 3
%62 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 2
%63 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 1
%64 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%65 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %57, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i32* %58, i32* %59, i32* %60, i32* %61, i32* %62, i32* %63, i32* %64)
%66 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 6
%67 = load i32, i32* %66
%68 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 5
%69 = load i32, i32* %68
%70 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 4
%71 = load i32, i32* %70
%72 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 3
%73 = load i32, i32* %72
%74 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 2
%75 = load i32, i32* %74
%76 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 1
%77 = load i32, i32* %76
%78 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%79 = load i32, i32* %78
%80 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.13, i64 0, i64 0), i32 %67, i32 %69, i32 %71, i32 %73, i32 %75, i32 %77, i32 %79)
%81 = load i32*, i32** %4
%82 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%83 = load i32, i32* %82
%84 = call i32 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i32 %83)
%85 = load i32*, i32** %4
%86 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 1
%87 = load i32, i32* %86
%88 = call i32 (i32*, i8*, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i32 %87)
%89 = load i32*, i32** %4
%90 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 2
%91 = load i32, i32* %90
%92 = call i32 (i32*, i8*, ...) @fprintf(i32* %89, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i32 %91)
%93 = load i32*, i32** %4
%94 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 3
%95 = load i32, i32* %94
%96 = call i32 (i32*, i8*, ...) @fprintf(i32* %93, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0), i32 %95)
%97 = load i32*, i32** %4
%98 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 4
%99 = load i32, i32* %98
%100 = call i32 (i32*, i8*, ...) @fprintf(i32* %97, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0), i32 %99)
%101 = load i32*, i32** %4
%102 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 5
%103 = load i32, i32* %102
%104 = call i32 (i32*, i8*, ...) @fprintf(i32* %101, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0), i32 %103)
%105 = load i32*, i32** %4
%106 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 6
%107 = load i32, i32* %106
%108 = call i32 (i32*, i8*, ...) @fprintf(i32* %105, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.20, i64 0, i64 0), i32 %107)
%109 = load i32*, i32** %6
%110 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%111 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %109, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32* %110)
%112 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%113 = load i32, i32* %112
%114 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %113)
%115 = load i32*, i32** %6
%116 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 8
%117 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 7
%118 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 6
%119 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 5
%120 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 4
%121 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 3
%122 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 2
%123 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 1
%124 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%125 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %115, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0), i32* %116, i32* %117, i32* %118, i32* %119, i32* %120, i32* %121, i32* %122, i32* %123, i32* %124)
%126 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 8
%127 = load i32, i32* %126
%128 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 7
%129 = load i32, i32* %128
%130 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 6
%131 = load i32, i32* %130
%132 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 5
%133 = load i32, i32* %132
%134 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 4
%135 = load i32, i32* %134
%136 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 3
%137 = load i32, i32* %136
%138 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 2
%139 = load i32, i32* %138
%140 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 1
%141 = load i32, i32* %140
%142 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%143 = load i32, i32* %142
%144 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.23, i64 0, i64 0), i32 %127, i32 %129, i32 %131, i32 %133, i32 %135, i32 %137, i32 %139, i32 %141, i32 %143)
%145 = load i32*, i32** %4
%146 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 0
%147 = load i32, i32* %146
%148 = call i32 (i32*, i8*, ...) @fprintf(i32* %145, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.24, i64 0, i64 0), i32 %147)
%149 = load i32*, i32** %4
%150 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 1
%151 = load i32, i32* %150
%152 = call i32 (i32*, i8*, ...) @fprintf(i32* %149, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0), i32 %151)
%153 = load i32*, i32** %4
%154 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 2
%155 = load i32, i32* %154
%156 = call i32 (i32*, i8*, ...) @fprintf(i32* %153, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.26, i64 0, i64 0), i32 %155)
%157 = load i32*, i32** %4
%158 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 3
%159 = load i32, i32* %158
%160 = call i32 (i32*, i8*, ...) @fprintf(i32* %157, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0), i32 %159)
%161 = load i32*, i32** %4
%162 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 4
%163 = load i32, i32* %162
%164 = call i32 (i32*, i8*, ...) @fprintf(i32* %161, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0), i32 %163)
%165 = load i32*, i32** %4
%166 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 5
%167 = load i32, i32* %166
%168 = call i32 (i32*, i8*, ...) @fprintf(i32* %165, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.29, i64 0, i64 0), i32 %167)
%169 = load i32*, i32** %4
%170 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 6
%171 = load i32, i32* %170
%172 = call i32 (i32*, i8*, ...) @fprintf(i32* %169, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.30, i64 0, i64 0), i32 %171)
%173 = load i32*, i32** %4
%174 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 7
%175 = load i32, i32* %174
%176 = call i32 (i32*, i8*, ...) @fprintf(i32* %173, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.31, i64 0, i64 0), i32 %175)
%177 = load i32*, i32** %4
%178 = getelementptr inbounds [20 x i32], [20 x i32]* %7, i64 0, i64 8
%179 = load i32, i32* %178
%180 = call i32 (i32*, i8*, ...) @fprintf(i32* %177, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.32, i64 0, i64 0), i32 %179)
%181 = load i32*, i32** %6
%182 = call i32 @fclose(i32* %181)
store i32 0, i32* %3
br label %183
183: ; preds = %19, %12
%184 = load i32, i32* %3
ret i32 %184
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [39 x i8] c"Couldn't open e-Fuse file %s (err %d)\0A\00"
@errno = global i32 0
@.str.2 = [18 x i8] c"SN[63:0] = %x_%x\0A\00"
@.str.3 = [22 x i8] c"SN[63:0] = %08x_%08x\0A\00"
@.str.4 = [22 x i8] c"w4 0x40084300 0x%08X\0A\00"
@.str.5 = [22 x i8] c"w4 0x40084304 0x%08X\0A\00"
@.str.6 = [16 x i8] c"PID[31:0] = %x\0A\00"
@.str.7 = [18 x i8] c"PID[31:0] = %08x\0A\00"
@.str.8 = [22 x i8] c"w4 0x40000704 0x%08X\0A\00"
@.str.9 = [16 x i8] c"VID[31:0] = %x\0A\00"
@.str.10 = [18 x i8] c"VID[31:0] = %08x\0A\00"
@.str.11 = [22 x i8] c"w4 0x40000700 0x%08X\0A\00"
@.str.12 = [35 x i8] c"CMS[215:0] = %x_%x_%x_%x_%x_%x_%x\0A\00"
@.str.13 = [47 x i8] c"CMS[215:0] = %x_%08x_%08x_%08x_%08x_%08x_%08x\0A\00"
@.str.14 = [22 x i8] c"w4 0x40084200 0x%08X\0A\00"
@.str.15 = [22 x i8] c"w4 0x40084204 0x%08X\0A\00"
@.str.16 = [22 x i8] c"w4 0x40084208 0x%08X\0A\00"
@.str.17 = [22 x i8] c"w4 0x4008420C 0x%08X\0A\00"
@.str.18 = [22 x i8] c"w4 0x40084210 0x%08X\0A\00"
@.str.19 = [22 x i8] c"w4 0x40084214 0x%08X\0A\00"
@.str.20 = [22 x i8] c"w4 0x40084218 0x%08X\0A\00"
@.str.21 = [15 x i8] c"SCR[7:0] = %x\0A\00"
@.str.22 = [41 x i8] c"IMS[279:0] = %x_%x_%x_%x_%x_%x_%x_%x_%x\0A\00"
@.str.23 = [57 x i8] c"IMS[279:0] = %X_%08x_%08x_%08x_%08x_%08x_%08x_%08x_%08x\0A\00"
@.str.24 = [22 x i8] c"w4 0x40084100 0x%08X\0A\00"
@.str.25 = [22 x i8] c"w4 0x40084104 0x%08X\0A\00"
@.str.26 = [22 x i8] c"w4 0x40084108 0x%08X\0A\00"
@.str.27 = [22 x i8] c"w4 0x4008410C 0x%08X\0A\00"
@.str.28 = [22 x i8] c"w4 0x40084110 0x%08X\0A\00"
@.str.29 = [22 x i8] c"w4 0x40084114 0x%08X\0A\00"
@.str.30 = [22 x i8] c"w4 0x40084118 0x%08X\0A\00"
@.str.31 = [22 x i8] c"w4 0x4008411C 0x%08X\0A\00"
@.str.32 = [22 x i8] c"w4 0x40084120 0x%08X\0A\00"
define i32 @prepare_efuse(i32* nocapture %0, i8* %1) {
%3 = alloca [20 x i32]
%4 = bitcast [20 x i32]* %3 to i8*
%5 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, i32* @stderr
%9 = sext i32 %8 to i64
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* @errno
%12 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %10, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i8* %1, i32 %11)
br label %97
13: ; preds = %2
%14 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 1
%15 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 0
%16 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32* %14, i32* %15)
%17 = load i32, i32* %14
%18 = load i32, i32* %15
%19 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i32 %17, i32 %18)
%20 = load i32, i32* %15
%21 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 %20)
%22 = load i32, i32* %14
%23 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %22)
%24 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32* %15)
%25 = load i32, i32* %15
%26 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 %25)
%27 = load i32, i32* %15
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %27)
%29 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32* %15)
%30 = load i32, i32* %15
%31 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %15
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %32)
%34 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 6
%35 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 5
%36 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 4
%37 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 3
%38 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 2
%39 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %5, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i32* %34, i32* %35, i32* %36, i32* %37, i32* %38, i32* %14, i32* %15)
%40 = load i32, i32* %34
%41 = load i32, i32* %35
%42 = load i32, i32* %36
%43 = load i32, i32* %37
%44 = load i32, i32* %38
%45 = load i32, i32* %14
%46 = load i32, i32* %15
%47 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.13, i64 0, i64 0), i32 %40, i32 %41, i32 %42, i32 %43, i32 %44, i32 %45, i32 %46)
%48 = load i32, i32* %15
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i32 %48)
%50 = load i32, i32* %14
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %38
%53 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %37
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0), i32 %54)
%56 = load i32, i32* %36
%57 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %35
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.19, i64 0, i64 0), i32 %58)
%60 = load i32, i32* %34
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.20, i64 0, i64 0), i32 %60)
%62 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32* %15)
%63 = load i32, i32* %15
%64 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %63)
%65 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 8
%66 = getelementptr inbounds [20 x i32], [20 x i32]* %3, i64 0, i64 7
%67 = call i32 (i32*, i8*, i32*, ...) @fscanf(i32* %5, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0), i32* %65, i32* %66, i32* %34, i32* %35, i32* %36, i32* %37, i32* %38, i32* %14, i32* %15)
%68 = load i32, i32* %65
%69 = load i32, i32* %66
%70 = load i32, i32* %34
%71 = load i32, i32* %35
%72 = load i32, i32* %36
%73 = load i32, i32* %37
%74 = load i32, i32* %38
%75 = load i32, i32* %14
%76 = load i32, i32* %15
%77 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.23, i64 0, i64 0), i32 %68, i32 %69, i32 %70, i32 %71, i32 %72, i32 %73, i32 %74, i32 %75, i32 %76)
%78 = load i32, i32* %15
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.24, i64 0, i64 0), i32 %78)
%80 = load i32, i32* %14
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.25, i64 0, i64 0), i32 %80)
%82 = load i32, i32* %38
%83 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.26, i64 0, i64 0), i32 %82)
%84 = load i32, i32* %37
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.27, i64 0, i64 0), i32 %84)
%86 = load i32, i32* %36
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0), i32 %86)
%88 = load i32, i32* %35
%89 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.29, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %34
%91 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.30, i64 0, i64 0), i32 %90)
%92 = load i32, i32* %66
%93 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.31, i64 0, i64 0), i32 %92)
%94 = load i32, i32* %65
%95 = call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.32, i64 0, i64 0), i32 %94)
%96 = call i32 @fclose(i32* %5)
br label %97
97: ; preds = %13, %7
%98 = phi i32 [ -1, %7 ], [ 0, %13 ]
ret i32 %98
}