#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 */
char EOF;
int /*<<< orphan*/ SEEK_SET;
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
void reconstruct(FILE *rec, FILE *out1, FILE *out2, FILE *out3, int gone) {
  char get, save[2];
  int i = 4;
  fseek(out1, 0, SEEK_SET);
  fseek(out2, 0, SEEK_SET);
  fseek(out3, 0, SEEK_SET);
  while ((get = fgetc(out1)) != EOF) {
    save[0] = get;
    if ((get = fgetc(out2)) != EOF) {
      save[1] = get;
      if ((get = fgetc(out3)) != EOF) {
        switch (gone) {
        case 1:
          switch (i) {
          case 1:
            fputc(save[0], rec);
            fputc(save[1], rec);
            fputc(get, rec);
            break;
          case 2:
            fputc((save[0] ^ save[1] ^ get), rec);
            fputc(save[1], rec);
            fputc(get, rec);
            break;
          case 3:
            fputc((save[0] ^ save[1] ^ get), rec);
            fputc(save[0], rec);
            fputc(get, rec);
            break;
          case 4:
            fputc((save[0] ^ save[1] ^ get), rec);
            fputc(save[0], rec);
            fputc(save[1], rec);
          }
          break;
        case 2:
          switch (i) {
          case 1:
            fputc((save[0] ^ save[1] ^ get), rec);
            fputc(save[1], rec);
            fputc(get, rec);
            break;
          case 2:
            fputc(save[0], rec);
            fputc(save[1], rec);
            fputc(get, rec);
            break;
          case 3:
            fputc(save[0], rec);
            fputc((save[0] ^ save[1] ^ get), rec);
            fputc(get, rec);
            break;
          case 4:
            fputc(save[0], rec);
            fputc((save[0] ^ save[1] ^ get), rec);
            fputc(save[1], rec);
          }
          break;
        case 3:
          switch (i) {
          case 1:
            fputc(save[1], rec);
            fputc((save[0] ^ save[1] ^ get), rec);
            fputc(get, rec);
            break;
          case 2:
            fputc(save[0], rec);
            fputc((save[0] ^ save[1] ^ get), rec);
            fputc(get, rec);
            break;
          case 3:
            fputc(save[0], rec);
            fputc(save[1], rec);
            fputc(get, rec);
            break;
          case 4:
            fputc(save[0], rec);
            fputc(save[1], rec);
            fputc((save[0] ^ save[1] ^ get), rec);
          }
          break;
        case 4:
          switch (i) {
          case 1:
            fputc(save[1], rec);
            fputc(get, rec);
            fputc((save[0] ^ save[1] ^ get), rec);
            break;
          case 2:
            fputc(save[0], rec);
            fputc(get, rec);
            fputc((save[0] ^ save[1] ^ get), rec);
            break;
          case 3:
            fputc(save[0], rec);
            fputc(save[1], rec);
            fputc((save[0] ^ save[1] ^ get), rec);
            break;
          case 4:
            fputc(save[0], rec);
            fputc(save[1], rec);
            fputc(get, rec);
          }
        }
      } else {
        if (i == gone || (gone < 3 && (i == 2 || i == 4)) ||
            (gone > 2 && i > 2)) {
          fputc(save[0], rec);
          fputc(save[1], rec);
        }
      }
    } else {
      if (i == gone || (gone > 1 && i > 1))
        fputc(save[0], rec);
    }
    i--;
    if (i == 0)
      i = 4;
  }
}


x86 assembly (clang, -O0):
<reconstruct>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
movl   $0x4,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2e7a(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <fseek@plt>
mov    -0x18(%rbp),%rdi
mov    0x2e66(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <fseek@plt>
mov    -0x20(%rbp),%rdi
mov    0x2e52(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1050 <fseek@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %al,-0x25(%rbp)
movsbl %al,%eax
mov    0x2e43(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     1745 <reconstruct+0x615>
mov    -0x25(%rbp),%al
mov    %al,-0x27(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %al,-0x25(%rbp)
movsbl %al,%eax
mov    0x2e1c(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     16f2 <reconstruct+0x5c2>
mov    -0x25(%rbp),%al
mov    %al,-0x26(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <fgetc@plt>
mov    %al,-0x25(%rbp)
movsbl %al,%eax
mov    0x2df5(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     168c <reconstruct+0x55c>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x3,%eax
ja     1687 <reconstruct+0x557>
mov    -0x38(%rbp),%rax
lea    0xde2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x3,%eax
ja     133a <reconstruct+0x20a>
mov    -0x40(%rbp),%rax
lea    0xdf9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    133a <reconstruct+0x20a>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    133a <reconstruct+0x20a>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    133a <reconstruct+0x20a>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1687 <reconstruct+0x557>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x3,%eax
ja     1452 <reconstruct+0x322>
mov    -0x48(%rbp),%rax
lea    0xcd1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1452 <reconstruct+0x322>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1452 <reconstruct+0x322>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1452 <reconstruct+0x322>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1687 <reconstruct+0x557>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0x3,%eax
ja     156a <reconstruct+0x43a>
mov    -0x50(%rbp),%rax
lea    0xba9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    156a <reconstruct+0x43a>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    156a <reconstruct+0x43a>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    156a <reconstruct+0x43a>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1687 <reconstruct+0x557>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x58(%rbp)
sub    $0x3,%eax
ja     1682 <reconstruct+0x552>
mov    -0x58(%rbp),%rax
lea    0xa81(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1682 <reconstruct+0x552>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1682 <reconstruct+0x552>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
movsbl -0x27(%rbp),%eax
movsbl -0x26(%rbp),%ecx
xor    %ecx,%eax
movsbl -0x25(%rbp),%ecx
xor    %ecx,%eax
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1682 <reconstruct+0x552>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x25(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1687 <reconstruct+0x557>
jmp    16ed <reconstruct+0x5bd>
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     16ca <reconstruct+0x59a>
cmpl   $0x3,-0x24(%rbp)
jge    16b6 <reconstruct+0x586>
cmpl   $0x2,-0x2c(%rbp)
je     16ca <reconstruct+0x59a>
cmpl   $0x4,-0x2c(%rbp)
je     16ca <reconstruct+0x59a>
cmpl   $0x2,-0x24(%rbp)
jle    16e8 <reconstruct+0x5b8>
cmpl   $0x2,-0x2c(%rbp)
jle    16e8 <reconstruct+0x5b8>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
mov    -0x26(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    16ed <reconstruct+0x5bd>
jmp    1726 <reconstruct+0x5f6>
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     1712 <reconstruct+0x5e2>
cmpl   $0x1,-0x24(%rbp)
jle    1721 <reconstruct+0x5f1>
cmpl   $0x1,-0x2c(%rbp)
jle    1721 <reconstruct+0x5f1>
mov    -0x27(%rbp),%al
mov    -0x8(%rbp),%rsi
movsbl %al,%edi
call   1040 <fputc@plt>
jmp    1726 <reconstruct+0x5f6>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jne    1740 <reconstruct+0x610>
movl   $0x4,-0x2c(%rbp)
jmp    118f <reconstruct+0x5f>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reconstruct>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r8d,%r12d
mov    %rcx,%r15
mov    %rdx,%rbx
mov    %rsi,%rbp
mov    %rdi,0x8(%rsp)
mov    0x2e82(%rip),%r14
mov    (%r14),%edx
mov    %rsi,%rdi
xor    %esi,%esi
call   1050 <fseek@plt>
mov    (%r14),%edx
mov    %rbx,0x20(%rsp)
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <fseek@plt>
mov    (%r14),%edx
mov    %r15,0x10(%rsp)
mov    %r15,%rdi
xor    %esi,%esi
call   1050 <fseek@plt>
mov    %rbp,0x18(%rsp)
mov    %rbp,%rdi
call   1030 <fgetc@plt>
mov    0x2e4d(%rip),%rbp
cmp    0x0(%rbp),%al
jne    11af <reconstruct+0x7f>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %eax,%ebx
mov    $0x4,%r13d
jmp    120f <reconstruct+0xdf>
movsbl %r14b,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
movsbl %r15b,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
xor    %r14b,%bl
xor    %r15b,%bl
nopl   0x0(%rax,%rax,1)
mov    %ebx,%r14d
movsbl %r14b,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
add    $0xffffffff,%r13d
mov    $0x4,%eax
cmove  %eax,%r13d
mov    0x18(%rsp),%rdi
call   1030 <fgetc@plt>
mov    %eax,%ebx
cmp    0x0(%rbp),%al
je     11a0 <reconstruct+0x70>
mov    0x20(%rsp),%rdi
call   1030 <fgetc@plt>
cmp    0x0(%rbp),%al
jne    1240 <reconstruct+0x110>
cmp    %r12d,%r13d
je     11e0 <reconstruct+0xb0>
cmp    $0x2,%r12d
jl     11f1 <reconstruct+0xc1>
mov    %ebx,%r14d
cmp    $0x2,%r13d
jge    11e3 <reconstruct+0xb3>
jmp    11f1 <reconstruct+0xc1>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %eax,%r14d
mov    0x10(%rsp),%rdi
call   1030 <fgetc@plt>
cmp    0x0(%rbp),%al
jne    1270 <reconstruct+0x140>
cmp    %r12d,%r13d
je     12da <reconstruct+0x1aa>
cmp    $0x2,%r12d
jg     12d0 <reconstruct+0x1a0>
cmp    $0x2,%r13d
je     12da <reconstruct+0x1aa>
cmp    $0x4,%r13d
je     12da <reconstruct+0x1aa>
jmp    11f1 <reconstruct+0xc1>
nop
mov    %eax,%r15d
lea    -0x1(%r12),%eax
cmp    $0x3,%eax
ja     11f1 <reconstruct+0xc1>
lea    0xd78(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x1(%r13),%eax
cmp    $0x3,%eax
ja     11f1 <reconstruct+0xc1>
lea    0xd9b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %bl,%r14b
xor    %r15b,%r14b
movsbl %r14b,%edi
mov    0x8(%rsp),%r14
mov    %r14,%rsi
call   1040 <fputc@plt>
movsbl %bl,%edi
mov    %r14,%rsi
jmp    13ac <reconstruct+0x27c>
cmp    $0x3,%r13d
jl     11f1 <reconstruct+0xc1>
movsbl %bl,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
jmp    11e3 <reconstruct+0xb3>
lea    -0x1(%r13),%eax
cmp    $0x3,%eax
ja     11f1 <reconstruct+0xc1>
lea    0xd30(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %r14b,%bl
xor    %r15b,%bl
jmp    1377 <reconstruct+0x247>
lea    -0x1(%r13),%eax
cmp    $0x3,%eax
ja     11f1 <reconstruct+0xc1>
lea    0xcfb(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsbl %r14b,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
xor    %r14b,%bl
xor    %r15b,%bl
movsbl %bl,%edi
jmp    13a7 <reconstruct+0x277>
lea    -0x1(%r13),%eax
cmp    $0x3,%eax
ja     11f1 <reconstruct+0xc1>
lea    0xcb5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsbl %bl,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
movsbl %r15b,%edi
jmp    13ca <reconstruct+0x29a>
movsbl %bl,%edi
mov    0x8(%rsp),%rbx
mov    %rbx,%rsi
call   1040 <fputc@plt>
movsbl %r14b,%edi
mov    %rbx,%rsi
jmp    13ac <reconstruct+0x27c>
movsbl %bl,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
xor    %bl,%r14b
xor    %r15b,%r14b
movsbl %r14b,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
mov    %r15d,%r14d
jmp    11e3 <reconstruct+0xb3>
movsbl %bl,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
movsbl %r14b,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
xor    %bl,%r14b
xor    %r15b,%r14b
jmp    11e3 <reconstruct+0xb3>
mov    %r14d,%eax
xor    %bl,%al
xor    %r15b,%al
movsbl %al,%edi
mov    0x8(%rsp),%r15
mov    %r15,%rsi
call   1040 <fputc@plt>
movsbl %bl,%edi
mov    %r15,%rsi
call   1040 <fputc@plt>
jmp    11e3 <reconstruct+0xb3>
movsbl %bl,%edi
mov    0x8(%rsp),%rsi
call   1040 <fputc@plt>
mov    %r14d,%eax
xor    %bl,%al
xor    %r15b,%al
movsbl %al,%edi
jmp    12dd <reconstruct+0x1ad>

LLVM IR (-O0):
@SEEK_SET = global i32 0
@EOF = global i8 0
define void @reconstruct(i32* %0, i32* %1, i32* %2, i32* %3, i32 %4) {
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i8
%12 = alloca [2 x i8]
%13 = alloca i32
store i32* %0, i32** %6
store i32* %1, i32** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store i32 %4, i32* %10
store i32 4, i32* %13
%14 = load i32*, i32** %7
%15 = load i32, i32* @SEEK_SET
%16 = call i32 @fseek(i32* %14, i32 0, i32 %15)
%17 = load i32*, i32** %8
%18 = load i32, i32* @SEEK_SET
%19 = call i32 @fseek(i32* %17, i32 0, i32 %18)
%20 = load i32*, i32** %9
%21 = load i32, i32* @SEEK_SET
%22 = call i32 @fseek(i32* %20, i32 0, i32 %21)
br label %23
23: ; preds = %419, %5
%24 = load i32*, i32** %7
%25 = call signext i8 @fgetc(i32* %24)
store i8 %25, i8* %11
%26 = sext i8 %25 to i32
%27 = load i8, i8* @EOF
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %26, %28
br i1 %29, label %30, label %420
30: ; preds = %23
%31 = load i8, i8* %11
%32 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
store i8 %31, i8* %32
%33 = load i32*, i32** %8
%34 = call signext i8 @fgetc(i32* %33)
store i8 %34, i8* %11
%35 = sext i8 %34 to i32
%36 = load i8, i8* @EOF
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %35, %37
br i1 %38, label %39, label %397
39: ; preds = %30
%40 = load i8, i8* %11
%41 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
store i8 %40, i8* %41
%42 = load i32*, i32** %9
%43 = call signext i8 @fgetc(i32* %42)
store i8 %43, i8* %11
%44 = sext i8 %43 to i32
%45 = load i8, i8* @EOF
%46 = sext i8 %45 to i32
%47 = icmp ne i32 %44, %46
br i1 %47, label %48, label %367
48: ; preds = %39
%49 = load i32, i32* %10
switch i32 %49, label %366 [
i32 1, label %50
i32 2, label %129
i32 3, label %208
i32 4, label %287
]
50: ; preds = %48
%51 = load i32, i32* %13
switch i32 %51, label %128 [
i32 1, label %52
i32 2, label %64
i32 3, label %85
i32 4, label %106
]
52: ; preds = %50
%53 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%54 = load i8, i8* %53
%55 = load i32*, i32** %6
%56 = call i32 @fputc(i8 signext %54, i32* %55)
%57 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%58 = load i8, i8* %57
%59 = load i32*, i32** %6
%60 = call i32 @fputc(i8 signext %58, i32* %59)
%61 = load i8, i8* %11
%62 = load i32*, i32** %6
%63 = call i32 @fputc(i8 signext %61, i32* %62)
br label %128
64: ; preds = %50
%65 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%66 = load i8, i8* %65
%67 = sext i8 %66 to i32
%68 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = xor i32 %67, %70
%72 = load i8, i8* %11
%73 = sext i8 %72 to i32
%74 = xor i32 %71, %73
%75 = trunc i32 %74 to i8
%76 = load i32*, i32** %6
%77 = call i32 @fputc(i8 signext %75, i32* %76)
%78 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%79 = load i8, i8* %78
%80 = load i32*, i32** %6
%81 = call i32 @fputc(i8 signext %79, i32* %80)
%82 = load i8, i8* %11
%83 = load i32*, i32** %6
%84 = call i32 @fputc(i8 signext %82, i32* %83)
br label %128
85: ; preds = %50
%86 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%87 = load i8, i8* %86
%88 = sext i8 %87 to i32
%89 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = xor i32 %88, %91
%93 = load i8, i8* %11
%94 = sext i8 %93 to i32
%95 = xor i32 %92, %94
%96 = trunc i32 %95 to i8
%97 = load i32*, i32** %6
%98 = call i32 @fputc(i8 signext %96, i32* %97)
%99 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%100 = load i8, i8* %99
%101 = load i32*, i32** %6
%102 = call i32 @fputc(i8 signext %100, i32* %101)
%103 = load i8, i8* %11
%104 = load i32*, i32** %6
%105 = call i32 @fputc(i8 signext %103, i32* %104)
br label %128
106: ; preds = %50
%107 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%108 = load i8, i8* %107
%109 = sext i8 %108 to i32
%110 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%111 = load i8, i8* %110
%112 = sext i8 %111 to i32
%113 = xor i32 %109, %112
%114 = load i8, i8* %11
%115 = sext i8 %114 to i32
%116 = xor i32 %113, %115
%117 = trunc i32 %116 to i8
%118 = load i32*, i32** %6
%119 = call i32 @fputc(i8 signext %117, i32* %118)
%120 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%121 = load i8, i8* %120
%122 = load i32*, i32** %6
%123 = call i32 @fputc(i8 signext %121, i32* %122)
%124 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%125 = load i8, i8* %124
%126 = load i32*, i32** %6
%127 = call i32 @fputc(i8 signext %125, i32* %126)
br label %128
128: ; preds = %106, %50, %85, %64, %52
br label %366
129: ; preds = %48
%130 = load i32, i32* %13
switch i32 %130, label %207 [
i32 1, label %131
i32 2, label %152
i32 3, label %164
i32 4, label %185
]
131: ; preds = %129
%132 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%136 = load i8, i8* %135
%137 = sext i8 %136 to i32
%138 = xor i32 %134, %137
%139 = load i8, i8* %11
%140 = sext i8 %139 to i32
%141 = xor i32 %138, %140
%142 = trunc i32 %141 to i8
%143 = load i32*, i32** %6
%144 = call i32 @fputc(i8 signext %142, i32* %143)
%145 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%146 = load i8, i8* %145
%147 = load i32*, i32** %6
%148 = call i32 @fputc(i8 signext %146, i32* %147)
%149 = load i8, i8* %11
%150 = load i32*, i32** %6
%151 = call i32 @fputc(i8 signext %149, i32* %150)
br label %207
152: ; preds = %129
%153 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%154 = load i8, i8* %153
%155 = load i32*, i32** %6
%156 = call i32 @fputc(i8 signext %154, i32* %155)
%157 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%158 = load i8, i8* %157
%159 = load i32*, i32** %6
%160 = call i32 @fputc(i8 signext %158, i32* %159)
%161 = load i8, i8* %11
%162 = load i32*, i32** %6
%163 = call i32 @fputc(i8 signext %161, i32* %162)
br label %207
164: ; preds = %129
%165 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%166 = load i8, i8* %165
%167 = load i32*, i32** %6
%168 = call i32 @fputc(i8 signext %166, i32* %167)
%169 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%170 = load i8, i8* %169
%171 = sext i8 %170 to i32
%172 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%173 = load i8, i8* %172
%174 = sext i8 %173 to i32
%175 = xor i32 %171, %174
%176 = load i8, i8* %11
%177 = sext i8 %176 to i32
%178 = xor i32 %175, %177
%179 = trunc i32 %178 to i8
%180 = load i32*, i32** %6
%181 = call i32 @fputc(i8 signext %179, i32* %180)
%182 = load i8, i8* %11
%183 = load i32*, i32** %6
%184 = call i32 @fputc(i8 signext %182, i32* %183)
br label %207
185: ; preds = %129
%186 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%187 = load i8, i8* %186
%188 = load i32*, i32** %6
%189 = call i32 @fputc(i8 signext %187, i32* %188)
%190 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%191 = load i8, i8* %190
%192 = sext i8 %191 to i32
%193 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%194 = load i8, i8* %193
%195 = sext i8 %194 to i32
%196 = xor i32 %192, %195
%197 = load i8, i8* %11
%198 = sext i8 %197 to i32
%199 = xor i32 %196, %198
%200 = trunc i32 %199 to i8
%201 = load i32*, i32** %6
%202 = call i32 @fputc(i8 signext %200, i32* %201)
%203 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%204 = load i8, i8* %203
%205 = load i32*, i32** %6
%206 = call i32 @fputc(i8 signext %204, i32* %205)
br label %207
207: ; preds = %185, %129, %164, %152, %131
br label %366
208: ; preds = %48
%209 = load i32, i32* %13
switch i32 %209, label %286 [
i32 1, label %210
i32 2, label %231
i32 3, label %252
i32 4, label %264
]
210: ; preds = %208
%211 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%212 = load i8, i8* %211
%213 = load i32*, i32** %6
%214 = call i32 @fputc(i8 signext %212, i32* %213)
%215 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%216 = load i8, i8* %215
%217 = sext i8 %216 to i32
%218 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%219 = load i8, i8* %218
%220 = sext i8 %219 to i32
%221 = xor i32 %217, %220
%222 = load i8, i8* %11
%223 = sext i8 %222 to i32
%224 = xor i32 %221, %223
%225 = trunc i32 %224 to i8
%226 = load i32*, i32** %6
%227 = call i32 @fputc(i8 signext %225, i32* %226)
%228 = load i8, i8* %11
%229 = load i32*, i32** %6
%230 = call i32 @fputc(i8 signext %228, i32* %229)
br label %286
231: ; preds = %208
%232 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%233 = load i8, i8* %232
%234 = load i32*, i32** %6
%235 = call i32 @fputc(i8 signext %233, i32* %234)
%236 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%237 = load i8, i8* %236
%238 = sext i8 %237 to i32
%239 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%240 = load i8, i8* %239
%241 = sext i8 %240 to i32
%242 = xor i32 %238, %241
%243 = load i8, i8* %11
%244 = sext i8 %243 to i32
%245 = xor i32 %242, %244
%246 = trunc i32 %245 to i8
%247 = load i32*, i32** %6
%248 = call i32 @fputc(i8 signext %246, i32* %247)
%249 = load i8, i8* %11
%250 = load i32*, i32** %6
%251 = call i32 @fputc(i8 signext %249, i32* %250)
br label %286
252: ; preds = %208
%253 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%254 = load i8, i8* %253
%255 = load i32*, i32** %6
%256 = call i32 @fputc(i8 signext %254, i32* %255)
%257 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%258 = load i8, i8* %257
%259 = load i32*, i32** %6
%260 = call i32 @fputc(i8 signext %258, i32* %259)
%261 = load i8, i8* %11
%262 = load i32*, i32** %6
%263 = call i32 @fputc(i8 signext %261, i32* %262)
br label %286
264: ; preds = %208
%265 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%266 = load i8, i8* %265
%267 = load i32*, i32** %6
%268 = call i32 @fputc(i8 signext %266, i32* %267)
%269 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%270 = load i8, i8* %269
%271 = load i32*, i32** %6
%272 = call i32 @fputc(i8 signext %270, i32* %271)
%273 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%274 = load i8, i8* %273
%275 = sext i8 %274 to i32
%276 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%277 = load i8, i8* %276
%278 = sext i8 %277 to i32
%279 = xor i32 %275, %278
%280 = load i8, i8* %11
%281 = sext i8 %280 to i32
%282 = xor i32 %279, %281
%283 = trunc i32 %282 to i8
%284 = load i32*, i32** %6
%285 = call i32 @fputc(i8 signext %283, i32* %284)
br label %286
286: ; preds = %264, %208, %252, %231, %210
br label %366
287: ; preds = %48
%288 = load i32, i32* %13
switch i32 %288, label %365 [
i32 1, label %289
i32 2, label %310
i32 3, label %331
i32 4, label %353
]
289: ; preds = %287
%290 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%291 = load i8, i8* %290
%292 = load i32*, i32** %6
%293 = call i32 @fputc(i8 signext %291, i32* %292)
%294 = load i8, i8* %11
%295 = load i32*, i32** %6
%296 = call i32 @fputc(i8 signext %294, i32* %295)
%297 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%298 = load i8, i8* %297
%299 = sext i8 %298 to i32
%300 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%301 = load i8, i8* %300
%302 = sext i8 %301 to i32
%303 = xor i32 %299, %302
%304 = load i8, i8* %11
%305 = sext i8 %304 to i32
%306 = xor i32 %303, %305
%307 = trunc i32 %306 to i8
%308 = load i32*, i32** %6
%309 = call i32 @fputc(i8 signext %307, i32* %308)
br label %365
310: ; preds = %287
%311 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%312 = load i8, i8* %311
%313 = load i32*, i32** %6
%314 = call i32 @fputc(i8 signext %312, i32* %313)
%315 = load i8, i8* %11
%316 = load i32*, i32** %6
%317 = call i32 @fputc(i8 signext %315, i32* %316)
%318 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%319 = load i8, i8* %318
%320 = sext i8 %319 to i32
%321 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%322 = load i8, i8* %321
%323 = sext i8 %322 to i32
%324 = xor i32 %320, %323
%325 = load i8, i8* %11
%326 = sext i8 %325 to i32
%327 = xor i32 %324, %326
%328 = trunc i32 %327 to i8
%329 = load i32*, i32** %6
%330 = call i32 @fputc(i8 signext %328, i32* %329)
br label %365
331: ; preds = %287
%332 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%333 = load i8, i8* %332
%334 = load i32*, i32** %6
%335 = call i32 @fputc(i8 signext %333, i32* %334)
%336 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%337 = load i8, i8* %336
%338 = load i32*, i32** %6
%339 = call i32 @fputc(i8 signext %337, i32* %338)
%340 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%341 = load i8, i8* %340
%342 = sext i8 %341 to i32
%343 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%344 = load i8, i8* %343
%345 = sext i8 %344 to i32
%346 = xor i32 %342, %345
%347 = load i8, i8* %11
%348 = sext i8 %347 to i32
%349 = xor i32 %346, %348
%350 = trunc i32 %349 to i8
%351 = load i32*, i32** %6
%352 = call i32 @fputc(i8 signext %350, i32* %351)
br label %365
353: ; preds = %287
%354 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%355 = load i8, i8* %354
%356 = load i32*, i32** %6
%357 = call i32 @fputc(i8 signext %355, i32* %356)
%358 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%359 = load i8, i8* %358
%360 = load i32*, i32** %6
%361 = call i32 @fputc(i8 signext %359, i32* %360)
%362 = load i8, i8* %11
%363 = load i32*, i32** %6
%364 = call i32 @fputc(i8 signext %362, i32* %363)
br label %365
365: ; preds = %353, %287, %331, %310, %289
br label %366
366: ; preds = %365, %48, %286, %207, %128
br label %396
367: ; preds = %39
%368 = load i32, i32* %13
%369 = load i32, i32* %10
%370 = icmp eq i32 %368, %369
br i1 %370, label %386, label %371
371: ; preds = %367
%372 = load i32, i32* %10
%373 = icmp slt i32 %372, 3
br i1 %373, label %374, label %380
374: ; preds = %371
%375 = load i32, i32* %13
%376 = icmp eq i32 %375, 2
br i1 %376, label %386, label %377
377: ; preds = %374
%378 = load i32, i32* %13
%379 = icmp eq i32 %378, 4
br i1 %379, label %386, label %380
380: ; preds = %377, %371
%381 = load i32, i32* %10
%382 = icmp sgt i32 %381, 2
br i1 %382, label %383, label %395
383: ; preds = %380
%384 = load i32, i32* %13
%385 = icmp sgt i32 %384, 2
br i1 %385, label %386, label %395
386: ; preds = %383, %377, %374, %367
%387 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%388 = load i8, i8* %387
%389 = load i32*, i32** %6
%390 = call i32 @fputc(i8 signext %388, i32* %389)
%391 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 1
%392 = load i8, i8* %391
%393 = load i32*, i32** %6
%394 = call i32 @fputc(i8 signext %392, i32* %393)
br label %395
395: ; preds = %386, %383, %380
br label %396
396: ; preds = %395, %366
br label %413
397: ; preds = %30
%398 = load i32, i32* %13
%399 = load i32, i32* %10
%400 = icmp eq i32 %398, %399
br i1 %400, label %407, label %401
401: ; preds = %397
%402 = load i32, i32* %10
%403 = icmp sgt i32 %402, 1
br i1 %403, label %404, label %412
404: ; preds = %401
%405 = load i32, i32* %13
%406 = icmp sgt i32 %405, 1
br i1 %406, label %407, label %412
407: ; preds = %404, %397
%408 = getelementptr inbounds [2 x i8], [2 x i8]* %12, i64 0, i64 0
%409 = load i8, i8* %408
%410 = load i32*, i32** %6
%411 = call i32 @fputc(i8 signext %409, i32* %410)
br label %412
412: ; preds = %407, %404, %401
br label %413
413: ; preds = %412, %396
%414 = load i32, i32* %13
%415 = add nsw i32 %414, -1
store i32 %415, i32* %13
%416 = load i32, i32* %13
%417 = icmp eq i32 %416, 0
br i1 %417, label %418, label %419
418: ; preds = %413
store i32 4, i32* %13
br label %419
419: ; preds = %418, %413
br label %23
420: ; preds = %23
ret void
}

LLVM IR (-O2):
@SEEK_SET = global i32 0
@EOF = global i8 0
define void @reconstruct(i32* %0, i32* nocapture %1, i32* nocapture %2, i32* nocapture %3, i32 %4) {
%6 = load i32, i32* @SEEK_SET
%7 = tail call i32 @fseek(i32* %1, i32 0, i32 %6)
%8 = load i32, i32* @SEEK_SET
%9 = tail call i32 @fseek(i32* %2, i32 0, i32 %8)
%10 = load i32, i32* @SEEK_SET
%11 = tail call i32 @fseek(i32* %3, i32 0, i32 %10)
%12 = tail call signext i8 @fgetc(i32* %1)
%13 = load i8, i8* @EOF
%14 = icmp eq i8 %12, %13
br i1 %14, label %128, label %15
15: ; preds = %5
%16 = icmp slt i32 %4, 3
%17 = icmp sgt i32 %4, 1
br label %18
18: ; preds = %15, %121
%19 = phi i8 [ %12, %15 ], [ %125, %121 ]
%20 = phi i32 [ 4, %15 ], [ %124, %121 ]
%21 = tail call signext i8 @fgetc(i32* %2)
%22 = load i8, i8* @EOF
%23 = icmp eq i8 %21, %22
br i1 %23, label %113, label %24
24: ; preds = %18
%25 = tail call signext i8 @fgetc(i32* %3)
%26 = load i8, i8* @EOF
%27 = icmp eq i8 %25, %26
br i1 %27, label %105, label %28
28: ; preds = %24
switch i32 %4, label %121 [
i32 1, label %29
i32 2, label %48
i32 3, label %67
i32 4, label %86
]
29: ; preds = %28
switch i32 %20, label %121 [
i32 1, label %30
i32 2, label %33
i32 3, label %38
i32 4, label %43
]
30: ; preds = %29
%31 = tail call i32 @fputc(i8 signext %19, i32* %0)
%32 = tail call i32 @fputc(i8 signext %21, i32* %0)
br label %118
33: ; preds = %29
%34 = xor i8 %21, %19
%35 = xor i8 %34, %25
%36 = tail call i32 @fputc(i8 signext %35, i32* %0)
%37 = tail call i32 @fputc(i8 signext %21, i32* %0)
br label %118
38: ; preds = %29
%39 = xor i8 %21, %19
%40 = xor i8 %39, %25
%41 = tail call i32 @fputc(i8 signext %40, i32* %0)
%42 = tail call i32 @fputc(i8 signext %19, i32* %0)
br label %118
43: ; preds = %29
%44 = xor i8 %21, %19
%45 = xor i8 %44, %25
%46 = tail call i32 @fputc(i8 signext %45, i32* %0)
%47 = tail call i32 @fputc(i8 signext %19, i32* %0)
br label %118
48: ; preds = %28
switch i32 %20, label %121 [
i32 1, label %49
i32 2, label %54
i32 3, label %57
i32 4, label %62
]
49: ; preds = %48
%50 = xor i8 %21, %19
%51 = xor i8 %50, %25
%52 = tail call i32 @fputc(i8 signext %51, i32* %0)
%53 = tail call i32 @fputc(i8 signext %21, i32* %0)
br label %118
54: ; preds = %48
%55 = tail call i32 @fputc(i8 signext %19, i32* %0)
%56 = tail call i32 @fputc(i8 signext %21, i32* %0)
br label %118
57: ; preds = %48
%58 = tail call i32 @fputc(i8 signext %19, i32* %0)
%59 = xor i8 %21, %19
%60 = xor i8 %59, %25
%61 = tail call i32 @fputc(i8 signext %60, i32* %0)
br label %118
62: ; preds = %48
%63 = tail call i32 @fputc(i8 signext %19, i32* %0)
%64 = xor i8 %21, %19
%65 = xor i8 %64, %25
%66 = tail call i32 @fputc(i8 signext %65, i32* %0)
br label %118
67: ; preds = %28
switch i32 %20, label %121 [
i32 1, label %68
i32 2, label %73
i32 3, label %78
i32 4, label %81
]
68: ; preds = %67
%69 = tail call i32 @fputc(i8 signext %21, i32* %0)
%70 = xor i8 %21, %19
%71 = xor i8 %70, %25
%72 = tail call i32 @fputc(i8 signext %71, i32* %0)
br label %118
73: ; preds = %67
%74 = tail call i32 @fputc(i8 signext %19, i32* %0)
%75 = xor i8 %21, %19
%76 = xor i8 %75, %25
%77 = tail call i32 @fputc(i8 signext %76, i32* %0)
br label %118
78: ; preds = %67
%79 = tail call i32 @fputc(i8 signext %19, i32* %0)
%80 = tail call i32 @fputc(i8 signext %21, i32* %0)
br label %118
81: ; preds = %67
%82 = tail call i32 @fputc(i8 signext %19, i32* %0)
%83 = tail call i32 @fputc(i8 signext %21, i32* %0)
%84 = xor i8 %21, %19
%85 = xor i8 %84, %25
br label %118
86: ; preds = %28
switch i32 %20, label %121 [
i32 1, label %87
i32 2, label %92
i32 3, label %97
i32 4, label %102
]
87: ; preds = %86
%88 = tail call i32 @fputc(i8 signext %21, i32* %0)
%89 = tail call i32 @fputc(i8 signext %25, i32* %0)
%90 = xor i8 %21, %19
%91 = xor i8 %90, %25
br label %118
92: ; preds = %86
%93 = tail call i32 @fputc(i8 signext %19, i32* %0)
%94 = tail call i32 @fputc(i8 signext %25, i32* %0)
%95 = xor i8 %21, %19
%96 = xor i8 %95, %25
br label %118
97: ; preds = %86
%98 = tail call i32 @fputc(i8 signext %19, i32* %0)
%99 = tail call i32 @fputc(i8 signext %21, i32* %0)
%100 = xor i8 %21, %19
%101 = xor i8 %100, %25
br label %118
102: ; preds = %86
%103 = tail call i32 @fputc(i8 signext %19, i32* %0)
%104 = tail call i32 @fputc(i8 signext %21, i32* %0)
br label %118
105: ; preds = %24
%106 = icmp eq i32 %20, %4
br i1 %106, label %111, label %107
107: ; preds = %105
br i1 %16, label %108, label %109
108: ; preds = %107
switch i32 %20, label %121 [
i32 4, label %111
i32 2, label %111
]
109: ; preds = %107
%110 = icmp sgt i32 %20, 2
br i1 %110, label %111, label %121
111: ; preds = %108, %108, %109, %105
%112 = tail call i32 @fputc(i8 signext %19, i32* %0)
br label %118
113: ; preds = %18
%114 = icmp eq i32 %20, %4
br i1 %114, label %118, label %115
115: ; preds = %113
%116 = icmp sgt i32 %20, 1
%117 = select i1 %17, i1 %116, i1 false
br i1 %117, label %118, label %121
118: ; preds = %113, %115, %111, %43, %38, %33, %30, %62, %57, %54, %49, %81, %78, %73, %68, %102, %97, %92, %87
%119 = phi i8 [ %91, %87 ], [ %96, %92 ], [ %101, %97 ], [ %25, %102 ], [ %25, %68 ], [ %25, %73 ], [ %25, %78 ], [ %85, %81 ], [ %25, %49 ], [ %25, %54 ], [ %25, %57 ], [ %21, %62 ], [ %25, %30 ], [ %25, %33 ], [ %25, %38 ], [ %21, %43 ], [ %21, %111 ], [ %19, %115 ], [ %19, %113 ]
%120 = tail call i32 @fputc(i8 signext %119, i32* %0)
br label %121
121: ; preds = %118, %108, %115, %86, %67, %48, %29, %28, %109
%122 = add nsw i32 %20, -1
%123 = icmp eq i32 %122, 0
%124 = select i1 %123, i32 4, i32 %122
%125 = tail call signext i8 @fgetc(i32* %1)
%126 = load i8, i8* @EOF
%127 = icmp eq i8 %125, %126
br i1 %127, label %128, label %18
128: ; preds = %121, %5
ret void
}