#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 /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int fwrite(char *, int, int, int /*<<< orphan*/ *);
int getc(int /*<<< orphan*/ *);
scalar_t__ write_bits(int /*<<< orphan*/ *, char *, int *, char *);
int encode_file(char **table, int n, FILE *f, FILE *f2, unsigned short tw,
                char *key) {
  char bitbuf[65536];
  int i, bits = 0;
  unsigned char cl, ch;
  int cx[2];
  union {
    char c[2];
    unsigned short word;
  } u;
  char *enc = key;
  fprintf(f2, "%s", (key ? "hz1" : "hz0"));
  cl = (unsigned char)(n & 0x00ff);
  ch = (unsigned char)(n >> 8);
  if (key) {
    unsigned char cs;
    for (cs = 0; *enc; enc++)
      cs ^= *enc;
    fprintf(f2, "%c", cs);
    enc = key;
    ch ^= *enc;
    if ((*(++enc)) == '\0')
      enc = key;
    cl ^= *enc;
  }
  fprintf(f2, "%c%c", ch, cl);
  for (i = 0; i < 65536; i++)
    bitbuf[i] = '\0';
  for (i = 0; i < 65536 + 1; i++)
    if (table[i]) {
      int nmemb;
      u.word = (unsigned short)i;
      if (i == 65536)
        u.word = tw;
      if (key) {
        if (*(++enc) == '\0')
          enc = key;
        u.c[0] ^= *enc;
        if (*(++enc) == '\0')
          enc = key;
        u.c[1] ^= *enc;
      }
      fprintf(f2, "%c%c", u.c[0], u.c[1]);
      bits = 0;
      if (write_bits(f2, bitbuf, &bits, table[i]) != 0)
        return 1;
      if (key) {
        if (*(++enc) == '\0')
          enc = key;
        fprintf(f2, "%c", ((unsigned char)bits) ^ *enc);
        for (cl = 0; cl <= bits / 8; cl++) {
          if (*(++enc) == '\0')
            enc = key;
          bitbuf[cl] ^= *enc;
        }
      } else
        fprintf(f2, "%c", (unsigned char)bits);
      nmemb = bits / 8 + 1;
      if (fwrite(bitbuf, 1, bits / 8 + 1, f2) != nmemb)
        return 1;
    }
  bits = 0;
  while ((cx[0] = getc(f)) != -1 && (cx[1] = getc(f)) != -1) {
    u.c[0] = cx[0];
    u.c[1] = cx[1];
    if (write_bits(f2, bitbuf, &bits, table[u.word]) != 0)
      return 1;
  }
  if (write_bits(f2, bitbuf, &bits, table[65536]) != 0)
    return 1;
  if (bits > 0) {
    int nmemb = bits / 8 + 1;
    if (fwrite(bitbuf, 1, nmemb, f2) != nmemb)
      return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<encode_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10080,%rsp
mov    %r8w,%ax
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %ax,-0x2a(%rbp)
mov    %r9,-0x38(%rbp)
movl   $0x0,-0x10048(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x10060(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rcx
lea    0xe7d(%rip),%rdx
lea    0xe72(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rdx
lea    0xe60(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
and    $0xff,%eax
mov    %al,-0x10049(%rbp)
mov    -0x14(%rbp),%eax
sar    $0x8,%eax
mov    %al,-0x1004a(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     1296 <encode_file+0x156>
movb   $0x0,-0x10061(%rbp)
mov    -0x10060(%rbp),%rax
cmpb   $0x0,(%rax)
je     1213 <encode_file+0xd3>
mov    -0x10060(%rbp),%rax
movsbl (%rax),%ecx
movzbl -0x10061(%rbp),%eax
xor    %ecx,%eax
mov    %al,-0x10061(%rbp)
mov    -0x10060(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10060(%rbp)
jmp    11d3 <encode_file+0x93>
mov    -0x28(%rbp),%rdi
movzbl -0x10061(%rbp),%edx
lea    0xde8(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rax
mov    %rax,-0x10060(%rbp)
mov    -0x10060(%rbp),%rax
movsbl (%rax),%ecx
movzbl -0x1004a(%rbp),%eax
xor    %ecx,%eax
mov    %al,-0x1004a(%rbp)
mov    -0x10060(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10060(%rbp)
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
jne    127d <encode_file+0x13d>
mov    -0x38(%rbp),%rax
mov    %rax,-0x10060(%rbp)
mov    -0x10060(%rbp),%rax
movsbl (%rax),%ecx
movzbl -0x10049(%rbp),%eax
xor    %ecx,%eax
mov    %al,-0x10049(%rbp)
mov    -0x28(%rbp),%rdi
movzbl -0x1004a(%rbp),%edx
movzbl -0x10049(%rbp),%ecx
lea    0xd5c(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x10044(%rbp)
cmpl   $0x10000,-0x10044(%rbp)
jge    12f3 <encode_file+0x1b3>
movslq -0x10044(%rbp),%rax
movb   $0x0,-0x10040(%rbp,%rax,1)
mov    -0x10044(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10044(%rbp)
jmp    12c0 <encode_file+0x180>
movl   $0x0,-0x10044(%rbp)
cmpl   $0x10001,-0x10044(%rbp)
jge    15d0 <encode_file+0x490>
mov    -0x10(%rbp),%rax
movslq -0x10044(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     15b7 <encode_file+0x477>
mov    -0x10044(%rbp),%eax
mov    %ax,-0x10058(%rbp)
cmpl   $0x10000,-0x10044(%rbp)
jne    134b <encode_file+0x20b>
mov    -0x2a(%rbp),%ax
mov    %ax,-0x10058(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     13e2 <encode_file+0x2a2>
mov    -0x10060(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10060(%rbp)
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
jne    1383 <encode_file+0x243>
mov    -0x38(%rbp),%rax
mov    %rax,-0x10060(%rbp)
mov    -0x10060(%rbp),%rax
movsbl (%rax),%ecx
movsbl -0x10058(%rbp),%eax
xor    %ecx,%eax
mov    %al,-0x10058(%rbp)
mov    -0x10060(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10060(%rbp)
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
jne    13c9 <encode_file+0x289>
mov    -0x38(%rbp),%rax
mov    %rax,-0x10060(%rbp)
mov    -0x10060(%rbp),%rax
movsbl (%rax),%ecx
movsbl -0x10057(%rbp),%eax
xor    %ecx,%eax
mov    %al,-0x10057(%rbp)
mov    -0x28(%rbp),%rdi
movsbl -0x10058(%rbp),%edx
movsbl -0x10057(%rbp),%ecx
lea    0xc10(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x10048(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x10040(%rbp),%rsi
mov    -0x10(%rbp),%rax
movslq -0x10044(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
lea    -0x10048(%rbp),%rdx
call   1030 <write_bits@plt>
cmp    $0x0,%rax
je     1448 <encode_file+0x308>
movl   $0x1,-0x4(%rbp)
jmp    171e <encode_file+0x5de>
cmpq   $0x0,-0x38(%rbp)
je     1540 <encode_file+0x400>
mov    -0x10060(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10060(%rbp)
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
jne    1480 <encode_file+0x340>
mov    -0x38(%rbp),%rax
mov    %rax,-0x10060(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x10048(%rbp),%eax
movzbl %al,%edx
mov    -0x10060(%rbp),%rax
movsbl (%rax),%eax
xor    %eax,%edx
lea    0xb6d(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movb   $0x0,-0x10049(%rbp)
movzbl -0x10049(%rbp),%eax
mov    %eax,-0x10070(%rbp)
mov    -0x10048(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10070(%rbp),%eax
cmp    %ecx,%eax
jg     153b <encode_file+0x3fb>
mov    -0x10060(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10060(%rbp)
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
jne    1506 <encode_file+0x3c6>
mov    -0x38(%rbp),%rax
mov    %rax,-0x10060(%rbp)
mov    -0x10060(%rbp),%rax
movsbl (%rax),%edx
movzbl -0x10049(%rbp),%eax
movsbl -0x10040(%rbp,%rax,1),%ecx
ff
xor    %edx,%ecx
mov    %cl,-0x10040(%rbp,%rax,1)
mov    -0x10049(%rbp),%al
add    $0x1,%al
mov    %al,-0x10049(%rbp)
jmp    14ae <encode_file+0x36e>
jmp    155b <encode_file+0x41b>
mov    -0x28(%rbp),%rdi
mov    -0x10048(%rbp),%eax
movzbl %al,%edx
lea    0xab9(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10048(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
mov    %eax,-0x10068(%rbp)
lea    -0x10040(%rbp),%rdi
mov    -0x10048(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
add    $0x1,%edx
mov    -0x28(%rbp),%rcx
mov    $0x1,%esi
call   1050 <fwrite@plt>
cmp    -0x10068(%rbp),%eax
je     15b2 <encode_file+0x472>
movl   $0x1,-0x4(%rbp)
jmp    171e <encode_file+0x5de>
jmp    15b7 <encode_file+0x477>
jmp    15bc <encode_file+0x47c>
mov    -0x10044(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10044(%rbp)
jmp    12fd <encode_file+0x1bd>
movl   $0x0,-0x10048(%rbp)
mov    -0x20(%rbp),%rdi
call   1060 <getc@plt>
mov    %eax,%ecx
mov    %ecx,-0x10054(%rbp)
xor    %eax,%eax
cmp    $0xffffffff,%ecx
mov    %al,-0x10071(%rbp)
je     1617 <encode_file+0x4d7>
mov    -0x20(%rbp),%rdi
call   1060 <getc@plt>
mov    %eax,-0x10050(%rbp)
cmp    $0xffffffff,%eax
setne  %al
mov    %al,-0x10071(%rbp)
mov    -0x10071(%rbp),%al
test   $0x1,%al
jne    162a <encode_file+0x4ea>
jmp    1683 <encode_file+0x543>
mov    -0x10054(%rbp),%eax
mov    %al,-0x10058(%rbp)
mov    -0x10050(%rbp),%eax
mov    %al,-0x10057(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x10040(%rbp),%rsi
mov    -0x10(%rbp),%rax
movzwl -0x10058(%rbp),%ecx
mov    (%rax,%rcx,8),%rcx
lea    -0x10048(%rbp),%rdx
call   1030 <write_bits@plt>
cmp    $0x0,%rax
je     167e <encode_file+0x53e>
movl   $0x1,-0x4(%rbp)
jmp    171e <encode_file+0x5de>
jmp    15da <encode_file+0x49a>
mov    -0x28(%rbp),%rdi
lea    -0x10040(%rbp),%rsi
mov    -0x10(%rbp),%rax
mov    0x80000(%rax),%rcx
lea    -0x10048(%rbp),%rdx
call   1030 <write_bits@plt>
cmp    $0x0,%rax
je     16bb <encode_file+0x57b>
movl   $0x1,-0x4(%rbp)
jmp    171e <encode_file+0x5de>
cmpl   $0x0,-0x10048(%rbp)
jle    1717 <encode_file+0x5d7>
mov    -0x10048(%rbp),%eax
mov    $0x8,%ecx
cltd
idiv   %ecx
add    $0x1,%eax
mov    %eax,-0x1006c(%rbp)
lea    -0x10040(%rbp),%rdi
mov    -0x1006c(%rbp),%edx
mov    -0x28(%rbp),%rcx
mov    $0x1,%esi
call   1050 <fwrite@plt>
cmp    -0x1006c(%rbp),%eax
je     1712 <encode_file+0x5d2>
movl   $0x1,-0x4(%rbp)
jmp    171e <encode_file+0x5de>
jmp    1717 <encode_file+0x5d7>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10080,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<encode_file>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10038,%rsp
mov    %r9,%r13
mov    %r8d,%r12d
mov    %rdx,%r15
mov    %esi,%r14d
mov    %rdi,0x18(%rsp)
movl   $0x0,0xc(%rsp)
test   %r9,%r9
lea    0xe70(%rip),%rax
lea    0xe65(%rip),%rdi
cmove  %rax,%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rcx,0x10(%rsp)
call   1070 <fwrite@plt>
mov    %r14d,%ebp
shr    $0x8,%ebp
xor    %ebx,%ebx
test   %r13,%r13
mov    %r15,0x28(%rsp)
je     122b <encode_file+0xcb>
mov    0x0(%r13),%al
test   %al,%al
je     11f0 <encode_file+0x90>
lea    0x1(%r13),%rdx
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %al,%cl
movzbl (%rdx),%eax
add    $0x1,%rdx
test   %al,%al
jne    11e0 <encode_file+0x80>
movzbl %cl,%ebx
mov    %ebx,%edi
mov    0x10(%rsp),%r15
mov    %r15,%rsi
call   1050 <fputc@plt>
movzbl 0x0(%r13),%eax
movzbl %bpl,%ebp
xor    %eax,%ebp
lea    0x1(%r13),%rbx
xor    %eax,%eax
cmpb   $0x0,0x1(%r13)
cmove  %r13,%rbx
setne  %al
movzbl 0x0(%r13,%rax,1),%eax
movzbl %r14b,%r14d
xor    %eax,%r14d
jmp    1230 <encode_file+0xd0>
mov    0x10(%rsp),%r15
movzbl %bpl,%edx
movzbl %r14b,%ecx
lea    0xdc9(%rip),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0x30(%rsp),%rdi
mov    $0x10000,%edx
xor    %esi,%esi
call   1040 <memset@plt>
mov    %r12d,%eax
shr    $0x8,%eax
movzbl %al,%eax
mov    %eax,0x24(%rsp)
movzbl %r12b,%eax
mov    %eax,0x20(%rsp)
xor    %r15d,%r15d
mov    0x18(%rsp),%r14
mov    0x10(%rsp),%rbp
mov    $0x1,%r12d
jmp    12e7 <encode_file+0x187>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl 0xc(%rsp),%edi
mov    %rbp,%rsi
call   1050 <fputc@plt>
mov    0xc(%rsp),%eax
lea    0x7(%rax),%r14d
test   %eax,%eax
cmovns %eax,%r14d
sar    $0x3,%r14d
add    $0x1,%r14d
lea    0x30(%rsp),%rdi
mov    $0x1,%esi
mov    %r14d,%edx
mov    %rbp,%rcx
call   1070 <fwrite@plt>
cmp    %r14d,%eax
mov    0x18(%rsp),%r14
jne    14aa <encode_file+0x34a>
add    $0x1,%r15
cmp    $0x10001,%r15
je     13e1 <encode_file+0x281>
cmpq   $0x0,(%r14,%r15,8)
je     12d6 <encode_file+0x176>
mov    %r15,%rax
shr    $0x8,%rax
cmp    $0x10000,%r15
cmove  0x24(%rsp),%eax
mov    %r15d,%ecx
cmove  0x20(%rsp),%ecx
test   %r13,%r13
je     132a <encode_file+0x1ca>
lea    0x1(%rbx),%rdx
cmpb   $0x0,0x1(%rbx)
cmove  %r13,%rdx
xor    (%rdx),%cl
lea    0x1(%rdx),%rbx
cmpb   $0x0,0x1(%rdx)
cmove  %r13,%rbx
xor    (%rbx),%al
movsbl %cl,%edx
movsbl %al,%ecx
mov    %rbp,%rdi
lea    0xcce(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
movl   $0x0,0xc(%rsp)
mov    (%r14,%r15,8),%rcx
mov    %rbp,%rdi
lea    0x30(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1030 <write_bits@plt>
test   %rax,%rax
jne    1446 <encode_file+0x2e6>
test   %r13,%r13
je     1290 <encode_file+0x130>
cmpb   $0x0,0x1(%rbx)
lea    0x1(%rbx),%rbx
cmove  %r13,%rbx
movzbl 0xc(%rsp),%eax
movsbl (%rbx),%edi
xor    %eax,%edi
mov    %rbp,%rsi
call   1050 <fputc@plt>
mov    0xc(%rsp),%eax
lea    0x7(%rax),%r14d
test   %eax,%eax
cmovns %eax,%r14d
sar    $0x3,%r14d
cmp    $0xfffffff9,%eax
jl     12af <encode_file+0x14f>
xor    %eax,%eax
jmp    13c7 <encode_file+0x267>
xchg   %ax,%ax
movzbl (%rcx),%edx
movzbl %al,%eax
xor    %dl,0x30(%rsp,%rax,1)
add    $0x1,%al
movzbl %al,%edx
mov    %rcx,%rbx
cmp    %edx,%r14d
jl     13d9 <encode_file+0x279>
cmpb   $0x0,0x1(%rbx)
mov    %r13,%rcx
je     13b0 <encode_file+0x250>
add    $0x1,%rbx
mov    %rbx,%rcx
jmp    13b0 <encode_file+0x250>
mov    %rcx,%rbx
jmp    12af <encode_file+0x14f>
movl   $0x0,0xc(%rsp)
lea    0x30(%rsp),%r14
lea    0xc(%rsp),%r15
mov    0x28(%rsp),%rbp
nopl   0x0(%rax,%rax,1)
mov    %rbp,%rdi
call   1080 <getc@plt>
cmp    $0xffffffff,%eax
je     144e <encode_file+0x2ee>
mov    %eax,%ebx
mov    %rbp,%rdi
call   1080 <getc@plt>
cmp    $0xffffffff,%eax
je     144e <encode_file+0x2ee>
shl    $0x8,%eax
movzbl %bl,%ecx
movzwl %ax,%eax
or     %rcx,%rax
mov    0x18(%rsp),%rcx
mov    (%rcx,%rax,8),%rcx
mov    0x10(%rsp),%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <write_bits@plt>
test   %rax,%rax
je     1400 <encode_file+0x2a0>
mov    $0x1,%r12d
jmp    14aa <encode_file+0x34a>
mov    0x18(%rsp),%rax
mov    0x80000(%rax),%rcx
lea    0x30(%rsp),%rsi
lea    0xc(%rsp),%rdx
mov    0x10(%rsp),%rdi
call   1030 <write_bits@plt>
mov    $0x1,%r12d
test   %rax,%rax
jne    14aa <encode_file+0x34a>
mov    0xc(%rsp),%ebx
test   %ebx,%ebx
jle    14a7 <encode_file+0x347>
shr    $0x3,%ebx
add    $0x1,%ebx
lea    0x30(%rsp),%rdi
mov    $0x1,%r12d
mov    $0x1,%esi
mov    %ebx,%edx
mov    0x10(%rsp),%rcx
call   1070 <fwrite@plt>
cmp    %ebx,%eax
jne    14aa <encode_file+0x34a>
xor    %r12d,%r12d
mov    %r12d,%eax
add    $0x10038,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%union.anon = type { i16 }
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"hz1\00"
@.str.2 = [4 x i8] c"hz0\00"
@.str.3 = [3 x i8] c"%c\00"
@.str.4 = [5 x i8] c"%c%c\00"
define i32 @encode_file(i8** %0, i32 %1, i32* %2, i32* %3, i16 zeroext %4, i8* %5) {
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i16
%13 = alloca i8*
%14 = alloca [65536 x i8]
%15 = alloca i32
%16 = alloca i32
%17 = alloca i8
%18 = alloca i8
%19 = alloca [2 x i32]
%20 = alloca %union.anon
%21 = alloca i8*
%22 = alloca i8
%23 = alloca i32
%24 = alloca i32
store i8** %0, i8*** %8
store i32 %1, i32* %9
store i32* %2, i32** %10
store i32* %3, i32** %11
store i16 %4, i16* %12
store i8* %5, i8** %13
store i32 0, i32* %16
%25 = load i8*, i8** %13
store i8* %25, i8** %21
%26 = load i32*, i32** %11
%27 = load i8*, i8** %13
%28 = icmp ne i8* %27, null
%29 = zext i1 %28 to i64
%30 = select i1 %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0)
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %30)
%32 = load i32, i32* %9
%33 = and i32 %32, 255
%34 = trunc i32 %33 to i8
store i8 %34, i8* %17
%35 = load i32, i32* %9
%36 = ashr i32 %35, 8
%37 = trunc i32 %36 to i8
store i8 %37, i8* %18
%38 = load i8*, i8** %13
%39 = icmp ne i8* %38, null
br i1 %39, label %40, label %84
40: ; preds = %6
store i8 0, i8* %22
br label %41
41: ; preds = %53, %40
%42 = load i8*, i8** %21
%43 = load i8, i8* %42
%44 = icmp ne i8 %43, 0
br i1 %44, label %45, label %56
45: ; preds = %41
%46 = load i8*, i8** %21
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = load i8, i8* %22
%50 = zext i8 %49 to i32
%51 = xor i32 %50, %48
%52 = trunc i32 %51 to i8
store i8 %52, i8* %22
br label %53
53: ; preds = %45
%54 = load i8*, i8** %21
%55 = getelementptr inbounds i8, i8* %54, i32 1
store i8* %55, i8** %21
br label %41
56: ; preds = %41
%57 = load i32*, i32** %11
%58 = load i8, i8* %22
%59 = zext i8 %58 to i32
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %59)
%61 = load i8*, i8** %13
store i8* %61, i8** %21
%62 = load i8*, i8** %21
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = load i8, i8* %18
%66 = zext i8 %65 to i32
%67 = xor i32 %66, %64
%68 = trunc i32 %67 to i8
store i8 %68, i8* %18
%69 = load i8*, i8** %21
%70 = getelementptr inbounds i8, i8* %69, i32 1
store i8* %70, i8** %21
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %56
%75 = load i8*, i8** %13
store i8* %75, i8** %21
br label %76
76: ; preds = %74, %56
%77 = load i8*, i8** %21
%78 = load i8, i8* %77
%79 = sext i8 %78 to i32
%80 = load i8, i8* %17
%81 = zext i8 %80 to i32
%82 = xor i32 %81, %79
%83 = trunc i32 %82 to i8
store i8 %83, i8* %17
br label %84
84: ; preds = %76, %6
%85 = load i32*, i32** %11
%86 = load i8, i8* %18
%87 = zext i8 %86 to i32
%88 = load i8, i8* %17
%89 = zext i8 %88 to i32
%90 = call i32 (i32*, i8*, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %87, i32 %89)
store i32 0, i32* %15
br label %91
91: ; preds = %98, %84
%92 = load i32, i32* %15
%93 = icmp slt i32 %92, 65536
br i1 %93, label %94, label %101
94: ; preds = %91
%95 = load i32, i32* %15
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [65536 x i8], [65536 x i8]* %14, i64 0, i64 %96
store i8 0, i8* %97
br label %98
98: ; preds = %94
%99 = load i32, i32* %15
%100 = add nsw i32 %99, 1
store i32 %100, i32* %15
br label %91
101: ; preds = %91
store i32 0, i32* %15
br label %102
102: ; preds = %251, %101
%103 = load i32, i32* %15
%104 = icmp slt i32 %103, 65537
br i1 %104, label %105, label %254
105: ; preds = %102
%106 = load i8**, i8*** %8
%107 = load i32, i32* %15
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds i8*, i8** %106, i64 %108
%110 = load i8*, i8** %109
%111 = icmp ne i8* %110, null
br i1 %111, label %112, label %250
112: ; preds = %105
%113 = load i32, i32* %15
%114 = trunc i32 %113 to i16
%115 = bitcast %union.anon* %20 to i16*
store i16 %114, i16* %115
%116 = load i32, i32* %15
%117 = icmp eq i32 %116, 65536
br i1 %117, label %118, label %121
118: ; preds = %112
%119 = load i16, i16* %12
%120 = bitcast %union.anon* %20 to i16*
store i16 %119, i16* %120
br label %121
121: ; preds = %118, %112
%122 = load i8*, i8** %13
%123 = icmp ne i8* %122, null
br i1 %123, label %124, label %159
124: ; preds = %121
%125 = load i8*, i8** %21
%126 = getelementptr inbounds i8, i8* %125, i32 1
store i8* %126, i8** %21
%127 = load i8, i8* %126
%128 = sext i8 %127 to i32
%129 = icmp eq i32 %128, 0
br i1 %129, label %130, label %132
130: ; preds = %124
%131 = load i8*, i8** %13
store i8* %131, i8** %21
br label %132
132: ; preds = %130, %124
%133 = load i8*, i8** %21
%134 = load i8, i8* %133
%135 = sext i8 %134 to i32
%136 = bitcast %union.anon* %20 to [2 x i8]*
%137 = getelementptr inbounds [2 x i8], [2 x i8]* %136, i64 0, i64 0
%138 = load i8, i8* %137
%139 = sext i8 %138 to i32
%140 = xor i32 %139, %135
%141 = trunc i32 %140 to i8
store i8 %141, i8* %137
%142 = load i8*, i8** %21
%143 = getelementptr inbounds i8, i8* %142, i32 1
store i8* %143, i8** %21
%144 = load i8, i8* %143
%145 = sext i8 %144 to i32
%146 = icmp eq i32 %145, 0
br i1 %146, label %147, label %149
147: ; preds = %132
%148 = load i8*, i8** %13
store i8* %148, i8** %21
br label %149
149: ; preds = %147, %132
%150 = load i8*, i8** %21
%151 = load i8, i8* %150
%152 = sext i8 %151 to i32
%153 = bitcast %union.anon* %20 to [2 x i8]*
%154 = getelementptr inbounds [2 x i8], [2 x i8]* %153, i64 0, i64 1
%155 = load i8, i8* %154
%156 = sext i8 %155 to i32
%157 = xor i32 %156, %152
%158 = trunc i32 %157 to i8
store i8 %158, i8* %154
br label %159
159: ; preds = %149, %121
%160 = load i32*, i32** %11
%161 = bitcast %union.anon* %20 to [2 x i8]*
%162 = getelementptr inbounds [2 x i8], [2 x i8]* %161, i64 0, i64 0
%163 = load i8, i8* %162
%164 = sext i8 %163 to i32
%165 = bitcast %union.anon* %20 to [2 x i8]*
%166 = getelementptr inbounds [2 x i8], [2 x i8]* %165, i64 0, i64 1
%167 = load i8, i8* %166
%168 = sext i8 %167 to i32
%169 = call i32 (i32*, i8*, ...) @fprintf(i32* %160, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %164, i32 %168)
store i32 0, i32* %16
%170 = load i32*, i32** %11
%171 = getelementptr inbounds [65536 x i8], [65536 x i8]* %14, i64 0, i64 0
%172 = load i8**, i8*** %8
%173 = load i32, i32* %15
%174 = sext i32 %173 to i64
%175 = getelementptr inbounds i8*, i8** %172, i64 %174
%176 = load i8*, i8** %175
%177 = call i64 @write_bits(i32* %170, i8* %171, i32* %16, i8* %176)
%178 = icmp ne i64 %177, 0
br i1 %178, label %179, label %180
179: ; preds = %159
store i32 1, i32* %7
br label %315
180: ; preds = %159
%181 = load i8*, i8** %13
%182 = icmp ne i8* %181, null
br i1 %182, label %183, label %230
183: ; preds = %180
%184 = load i8*, i8** %21
%185 = getelementptr inbounds i8, i8* %184, i32 1
store i8* %185, i8** %21
%186 = load i8, i8* %185
%187 = sext i8 %186 to i32
%188 = icmp eq i32 %187, 0
br i1 %188, label %189, label %191
189: ; preds = %183
%190 = load i8*, i8** %13
store i8* %190, i8** %21
br label %191
191: ; preds = %189, %183
%192 = load i32*, i32** %11
%193 = load i32, i32* %16
%194 = trunc i32 %193 to i8
%195 = zext i8 %194 to i32
%196 = load i8*, i8** %21
%197 = load i8, i8* %196
%198 = sext i8 %197 to i32
%199 = xor i32 %195, %198
%200 = call i32 (i32*, i8*, ...) @fprintf(i32* %192, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %199)
store i8 0, i8* %17
br label %201
201: ; preds = %226, %191
%202 = load i8, i8* %17
%203 = zext i8 %202 to i32
%204 = load i32, i32* %16
%205 = sdiv i32 %204, 8
%206 = icmp sle i32 %203, %205
br i1 %206, label %207, label %229
207: ; preds = %201
%208 = load i8*, i8** %21
%209 = getelementptr inbounds i8, i8* %208, i32 1
store i8* %209, i8** %21
%210 = load i8, i8* %209
%211 = sext i8 %210 to i32
%212 = icmp eq i32 %211, 0
br i1 %212, label %213, label %215
213: ; preds = %207
%214 = load i8*, i8** %13
store i8* %214, i8** %21
br label %215
215: ; preds = %213, %207
%216 = load i8*, i8** %21
%217 = load i8, i8* %216
%218 = sext i8 %217 to i32
%219 = load i8, i8* %17
%220 = zext i8 %219 to i64
%221 = getelementptr inbounds [65536 x i8], [65536 x i8]* %14, i64 0, i64 %220
%222 = load i8, i8* %221
%223 = sext i8 %222 to i32
%224 = xor i32 %223, %218
%225 = trunc i32 %224 to i8
store i8 %225, i8* %221
br label %226
226: ; preds = %215
%227 = load i8, i8* %17
%228 = add i8 %227, 1
store i8 %228, i8* %17
br label %201
229: ; preds = %201
br label %236
230: ; preds = %180
%231 = load i32*, i32** %11
%232 = load i32, i32* %16
%233 = trunc i32 %232 to i8
%234 = zext i8 %233 to i32
%235 = call i32 (i32*, i8*, ...) @fprintf(i32* %231, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32 %234)
br label %236
236: ; preds = %230, %229
%237 = load i32, i32* %16
%238 = sdiv i32 %237, 8
%239 = add nsw i32 %238, 1
store i32 %239, i32* %23
%240 = getelementptr inbounds [65536 x i8], [65536 x i8]* %14, i64 0, i64 0
%241 = load i32, i32* %16
%242 = sdiv i32 %241, 8
%243 = add nsw i32 %242, 1
%244 = load i32*, i32** %11
%245 = call i32 @fwrite(i8* %240, i32 1, i32 %243, i32* %244)
%246 = load i32, i32* %23
%247 = icmp ne i32 %245, %246
br i1 %247, label %248, label %249
248: ; preds = %236
store i32 1, i32* %7
br label %315
249: ; preds = %236
br label %250
250: ; preds = %249, %105
br label %251
251: ; preds = %250
%252 = load i32, i32* %15
%253 = add nsw i32 %252, 1
store i32 %253, i32* %15
br label %102
254: ; preds = %102
store i32 0, i32* %16
br label %255
255: ; preds = %289, %254
%256 = load i32*, i32** %10
%257 = call i32 @getc(i32* %256)
%258 = getelementptr inbounds [2 x i32], [2 x i32]* %19, i64 0, i64 0
store i32 %257, i32* %258
%259 = icmp ne i32 %257, -1
br i1 %259, label %260, label %265
260: ; preds = %255
%261 = load i32*, i32** %10
%262 = call i32 @getc(i32* %261)
%263 = getelementptr inbounds [2 x i32], [2 x i32]* %19, i64 0, i64 1
store i32 %262, i32* %263
%264 = icmp ne i32 %262, -1
br label %265
265: ; preds = %260, %255
%266 = phi i1 [ false, %255 ], [ %264, %260 ]
br i1 %266, label %267, label %290
267: ; preds = %265
%268 = getelementptr inbounds [2 x i32], [2 x i32]* %19, i64 0, i64 0
%269 = load i32, i32* %268
%270 = trunc i32 %269 to i8
%271 = bitcast %union.anon* %20 to [2 x i8]*
%272 = getelementptr inbounds [2 x i8], [2 x i8]* %271, i64 0, i64 0
store i8 %270, i8* %272
%273 = getelementptr inbounds [2 x i32], [2 x i32]* %19, i64 0, i64 1
%274 = load i32, i32* %273
%275 = trunc i32 %274 to i8
%276 = bitcast %union.anon* %20 to [2 x i8]*
%277 = getelementptr inbounds [2 x i8], [2 x i8]* %276, i64 0, i64 1
store i8 %275, i8* %277
%278 = load i32*, i32** %11
%279 = getelementptr inbounds [65536 x i8], [65536 x i8]* %14, i64 0, i64 0
%280 = load i8**, i8*** %8
%281 = bitcast %union.anon* %20 to i16*
%282 = load i16, i16* %281
%283 = zext i16 %282 to i64
%284 = getelementptr inbounds i8*, i8** %280, i64 %283
%285 = load i8*, i8** %284
%286 = call i64 @write_bits(i32* %278, i8* %279, i32* %16, i8* %285)
%287 = icmp ne i64 %286, 0
br i1 %287, label %288, label %289
288: ; preds = %267
store i32 1, i32* %7
br label %315
289: ; preds = %267
br label %255
290: ; preds = %265
%291 = load i32*, i32** %11
%292 = getelementptr inbounds [65536 x i8], [65536 x i8]* %14, i64 0, i64 0
%293 = load i8**, i8*** %8
%294 = getelementptr inbounds i8*, i8** %293, i64 65536
%295 = load i8*, i8** %294
%296 = call i64 @write_bits(i32* %291, i8* %292, i32* %16, i8* %295)
%297 = icmp ne i64 %296, 0
br i1 %297, label %298, label %299
298: ; preds = %290
store i32 1, i32* %7
br label %315
299: ; preds = %290
%300 = load i32, i32* %16
%301 = icmp sgt i32 %300, 0
br i1 %301, label %302, label %314
302: ; preds = %299
%303 = load i32, i32* %16
%304 = sdiv i32 %303, 8
%305 = add nsw i32 %304, 1
store i32 %305, i32* %24
%306 = getelementptr inbounds [65536 x i8], [65536 x i8]* %14, i64 0, i64 0
%307 = load i32, i32* %24
%308 = load i32*, i32** %11
%309 = call i32 @fwrite(i8* %306, i32 1, i32 %307, i32* %308)
%310 = load i32, i32* %24
%311 = icmp ne i32 %309, %310
br i1 %311, label %312, label %313
312: ; preds = %302
store i32 1, i32* %7
br label %315
313: ; preds = %302
br label %314
314: ; preds = %313, %299
store i32 0, i32* %7
br label %315
315: ; preds = %314, %312, %298, %288, %248, %179
%316 = load i32, i32* %7
ret i32 %316
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"hz1\00"
@.str.2 = [4 x i8] c"hz0\00"
@.str.4 = [5 x i8] c"%c%c\00"
define i32 @encode_file(i8** nocapture %0, i32 %1, i32* nocapture %2, i32* %3, i16 zeroext %4, i8* %5) {
%7 = alloca [65536 x i8]
%8 = getelementptr inbounds [65536 x i8], [65536 x i8]* %7, i64 0, i64 0
%9 = alloca i32
%10 = getelementptr inbounds [65536 x i8], [65536 x i8]* %7, i64 0, i64 0
%11 = bitcast i32* %9 to i8*
store i32 0, i32* %9
%12 = icmp eq i8* %5, null
%13 = select i1 %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0)
%14 = tail call i64 bitcast (i32 (i8*, i32, i32, i32*)* @fwrite to i64 (i8*, i64, i64, i32*)*)(i8* %13, i64 3, i64 1, i32* %3)
%15 = lshr i32 %1, 8
br i1 %12, label %44, label %16
16: ; preds = %6
%17 = load i8, i8* %5
%18 = icmp eq i8 %17, 0
br i1 %18, label %29, label %19
19: ; preds = %16, %19
%20 = phi i8 [ %25, %19 ], [ %17, %16 ]
%21 = phi i8 [ %23, %19 ], [ 0, %16 ]
%22 = phi i8* [ %24, %19 ], [ %5, %16 ]
%23 = xor i8 %20, %21
%24 = getelementptr inbounds i8, i8* %22, i64 1
%25 = load i8, i8* %24
%26 = icmp eq i8 %25, 0
br i1 %26, label %27, label %19
27: ; preds = %19
%28 = zext i8 %23 to i32
br label %29
29: ; preds = %27, %16
%30 = phi i32 [ 0, %16 ], [ %28, %27 ]
%31 = tail call i32 @fputc(i32 %30, i32* %3)
%32 = load i8, i8* %5
%33 = zext i8 %32 to i32
%34 = and i32 %15, 255
%35 = xor i32 %34, %33
%36 = getelementptr inbounds i8, i8* %5, i64 1
%37 = load i8, i8* %36
%38 = icmp eq i8 %37, 0
%39 = select i1 %38, i8* %5, i8* %36
%40 = load i8, i8* %39
%41 = zext i8 %40 to i32
%42 = and i32 %1, 255
%43 = xor i32 %42, %41
br label %44
44: ; preds = %29, %6
%45 = phi i32 [ %35, %29 ], [ %15, %6 ]
%46 = phi i32 [ %43, %29 ], [ %1, %6 ]
%47 = phi i8* [ %39, %29 ], [ null, %6 ]
%48 = and i32 %45, 255
%49 = and i32 %46, 255
%50 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %48, i32 %49)
%51 = trunc i16 %4 to i8
%52 = lshr i16 %4, 8
%53 = trunc i16 %52 to i8
br label %54
54: ; preds = %44, %132
%55 = phi i64 [ 0, %44 ], [ %134, %132 ]
%56 = phi i8* [ %47, %44 ], [ %133, %132 ]
%57 = getelementptr inbounds i8*, i8** %0, i64 %55
%58 = load i8*, i8** %57
%59 = icmp eq i8* %58, null
br i1 %59, label %132, label %60
60: ; preds = %54
%61 = trunc i64 %55 to i8
%62 = lshr i64 %55, 8
%63 = trunc i64 %62 to i8
%64 = icmp eq i64 %55, 65536
%65 = select i1 %64, i8 %53, i8 %63
%66 = select i1 %64, i8 %51, i8 %61
br i1 %12, label %80, label %67
67: ; preds = %60
%68 = getelementptr inbounds i8, i8* %56, i64 1
%69 = load i8, i8* %68
%70 = icmp eq i8 %69, 0
%71 = select i1 %70, i8* %5, i8* %68
%72 = load i8, i8* %71
%73 = xor i8 %72, %66
%74 = getelementptr inbounds i8, i8* %71, i64 1
%75 = load i8, i8* %74
%76 = icmp eq i8 %75, 0
%77 = select i1 %76, i8* %5, i8* %74
%78 = load i8, i8* %77
%79 = xor i8 %78, %65
br label %80
80: ; preds = %67, %60
%81 = phi i8 [ %79, %67 ], [ %65, %60 ]
%82 = phi i8 [ %73, %67 ], [ %66, %60 ]
%83 = phi i8* [ %77, %67 ], [ %56, %60 ]
%84 = sext i8 %82 to i32
%85 = sext i8 %81 to i32
%86 = call i32 (i32*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %84, i32 %85)
store i32 0, i32* %9
%87 = load i8*, i8** %57
%88 = call i64 @write_bits(i32* %3, i8* %10, i32* %9, i8* %87)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %168
90: ; preds = %80
br i1 %12, label %120, label %91
91: ; preds = %90
%92 = getelementptr inbounds i8, i8* %83, i64 1
%93 = load i8, i8* %92
%94 = icmp eq i8 %93, 0
%95 = select i1 %94, i8* %5, i8* %92
%96 = load i32, i32* %9
%97 = and i32 %96, 255
%98 = load i8, i8* %95
%99 = sext i8 %98 to i32
%100 = xor i32 %97, %99
%101 = call i32 @fputc(i32 %100, i32* %3)
%102 = load i32, i32* %9
%103 = sdiv i32 %102, 8
%104 = icmp slt i32 %102, -7
br i1 %104, label %126, label %105
105: ; preds = %91, %105
%106 = phi i8* [ %111, %105 ], [ %95, %91 ]
%107 = phi i8 [ %117, %105 ], [ 0, %91 ]
%108 = getelementptr inbounds i8, i8* %106, i64 1
%109 = load i8, i8* %108
%110 = icmp eq i8 %109, 0
%111 = select i1 %110, i8* %5, i8* %108
%112 = load i8, i8* %111
%113 = zext i8 %107 to i64
%114 = getelementptr inbounds [65536 x i8], [65536 x i8]* %7, i64 0, i64 %113
%115 = load i8, i8* %114
%116 = xor i8 %115, %112
store i8 %116, i8* %114
%117 = add i8 %107, 1
%118 = zext i8 %117 to i32
%119 = icmp slt i32 %103, %118
br i1 %119, label %126, label %105
120: ; preds = %90
%121 = load i32, i32* %9
%122 = and i32 %121, 255
%123 = call i32 @fputc(i32 %122, i32* %3)
%124 = load i32, i32* %9
%125 = sdiv i32 %124, 8
br label %126
126: ; preds = %105, %91, %120
%127 = phi i32 [ %103, %91 ], [ %125, %120 ], [ %103, %105 ]
%128 = phi i8* [ %95, %91 ], [ %83, %120 ], [ %111, %105 ]
%129 = add nsw i32 %127, 1
%130 = call i32 @fwrite(i8* %10, i32 1, i32 %129, i32* %3)
%131 = icmp eq i32 %130, %129
br i1 %131, label %132, label %168
132: ; preds = %54, %126
%133 = phi i8* [ %128, %126 ], [ %56, %54 ]
%134 = add nuw nsw i64 %55, 1
%135 = icmp eq i64 %134, 65537
br i1 %135, label %136, label %54
136: ; preds = %132
store i32 0, i32* %9
br label %137
137: ; preds = %143, %136
%138 = call i32 @getc(i32* %2)
%139 = icmp eq i32 %138, -1
br i1 %139, label %154, label %140
140: ; preds = %137
%141 = call i32 @getc(i32* %2)
%142 = icmp eq i32 %141, -1
br i1 %142, label %154, label %143
143: ; preds = %140
%144 = zext i32 %141 to i64
%145 = shl nuw nsw i64 %144, 8
%146 = and i32 %138, 255
%147 = zext i32 %146 to i64
%148 = and i64 %145, 65280
%149 = or i64 %148, %147
%150 = getelementptr inbounds i8*, i8** %0, i64 %149
%151 = load i8*, i8** %150
%152 = call i64 @write_bits(i32* %3, i8* %10, i32* %9, i8* %151)
%153 = icmp eq i64 %152, 0
br i1 %153, label %137, label %168
154: ; preds = %137, %140
%155 = getelementptr inbounds i8*, i8** %0, i64 65536
%156 = load i8*, i8** %155
%157 = call i64 @write_bits(i32* %3, i8* %10, i32* %9, i8* %156)
%158 = icmp eq i64 %157, 0
br i1 %158, label %159, label %168
159: ; preds = %154
%160 = load i32, i32* %9
%161 = icmp sgt i32 %160, 0
br i1 %161, label %162, label %167
162: ; preds = %159
%163 = lshr i32 %160, 3
%164 = add nuw nsw i32 %163, 1
%165 = call i32 @fwrite(i8* %10, i32 1, i32 %164, i32* %3)
%166 = icmp eq i32 %165, %164
br i1 %166, label %167, label %168
167: ; preds = %162, %159
br label %168
168: ; preds = %80, %126, %143, %154, %162, %167
%169 = phi i32 [ 0, %167 ], [ 1, %162 ], [ 1, %154 ], [ 1, %143 ], [ 1, %126 ], [ 1, %80 ]
ret i32 %169
}