#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ bin_append(int, int, char *);
int posn(char *, char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int micro_qr_intermediate(char binary[], const int jisdata[], const char mode[],
                          const size_t length, int *kanji_used,
                          int *alphanum_used, int *byte_used, const int debug) {
  int position = 0;
  int i;
  char buffer[2];
  strcpy(binary, "");
  if (debug) {
    for (i = 0; i < length; i++) {
      printf("%c", mode[i]);
    }
    printf("\n");
  }
  do {
    char data_block;
    int short_data_block_length = 0;
    if (strlen(binary) > 128) {
      return 5;
    }
    data_block = mode[position];
    do {
      short_data_block_length++;
    } while (((short_data_block_length + position) < length) &&
             (mode[position + short_data_block_length] == data_block));
    switch (data_block) {
    case 'K':
      strcat(binary, "K");
      *kanji_used = 1;
      buffer[0] = short_data_block_length;
      buffer[1] = '\0';
      strcat(binary, buffer);
      if (debug) {
        printf("Kanji block (length %d)\n\t", short_data_block_length);
      }
      for (i = 0; i < short_data_block_length; i++) {
        int jis = jisdata[position + i];
        int prod;
        if (jis >= 0x8140 && jis <= 0x9ffc)
          jis -= 0x8140;
        else if (jis >= 0xe040 && jis <= 0xebbf)
          jis -= 0xc140;
        prod = ((jis >> 8) * 0xc0) + (jis & 0xff);
        bin_append(prod, 13, binary);
        if (debug) {
          printf("0x%4X ", prod);
        }
        if (strlen(binary) > 128) {
          return 5;
        }
      }
      if (debug) {
        printf("\n");
      }
      break;
    case 'B':
      strcat(binary, "B");
      *byte_used = 1;
      buffer[0] = short_data_block_length;
      buffer[1] = '\0';
      strcat(binary, buffer);
      if (debug) {
        printf("Byte block (length %d)\n\t", short_data_block_length);
      }
      for (i = 0; i < short_data_block_length; i++) {
        int byte = jisdata[position + i];
        bin_append(byte, 8, binary);
        if (debug) {
          printf("0x%4X ", byte);
        }
        if (strlen(binary) > 128) {
          return 5;
        }
      }
      if (debug) {
        printf("\n");
      }
      break;
    case 'A':
      strcat(binary, "A");
      *alphanum_used = 1;
      buffer[0] = short_data_block_length;
      buffer[1] = '\0';
      strcat(binary, buffer);
      if (debug) {
        printf("Alpha block (length %d)\n\t", short_data_block_length);
      }
      i = 0;
      while (i < short_data_block_length) {
        int count;
        int first = 0, prod;
        first = posn("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",
                     (char)jisdata[position + i]);
        count = 1;
        prod = first;
        if (i + 1 < short_data_block_length && mode[position + i + 1] == 'A') {
          int second = posn("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",
                            (char)jisdata[position + i + 1]);
          count = 2;
          prod = (first * 45) + second;
        }
        bin_append(prod, 1 + (5 * count), binary);
        if (debug) {
          printf("0x%4X ", prod);
        }
        if (strlen(binary) > 128) {
          return 5;
        }
        i += 2;
      };
      if (debug) {
        printf("\n");
      }
      break;
    case 'N':
      strcat(binary, "N");
      buffer[0] = short_data_block_length;
      buffer[1] = '\0';
      strcat(binary, buffer);
      if (debug) {
        printf("Number block (length %d)\n\t", short_data_block_length);
      }
      i = 0;
      while (i < short_data_block_length) {
        int count;
        int first = 0, prod;
        first = posn("0123456789", (char)jisdata[position + i]);
        count = 1;
        prod = first;
        if (i + 1 < short_data_block_length && mode[position + i + 1] == 'N') {
          int second = posn("0123456789", (char)jisdata[position + i + 1]);
          count = 2;
          prod = (prod * 10) + second;
        }
        if (i + 2 < short_data_block_length && mode[position + i + 2] == 'N') {
          int third = posn("0123456789", (char)jisdata[position + i + 2]);
          count = 3;
          prod = (prod * 10) + third;
        }
        bin_append(prod, 1 + (3 * count), binary);
        if (debug) {
          printf("0x%4X (%d)", prod, prod);
        }
        if (strlen(binary) > 128) {
          return 5;
        }
        i += 3;
      };
      if (debug) {
        printf("\n");
      }
      break;
    }
    position += short_data_block_length;
  } while (position < length - 1);
  return 0;
}


x86 assembly (clang, -O0):
<micro_qr_intermediate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xefa(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x0,0x18(%rbp)
je     11f6 <micro_qr_intermediate+0x96>
movl   $0x0,-0x40(%rbp)
movslq -0x40(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    11e8 <micro_qr_intermediate+0x88>
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe65(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11b2 <micro_qr_intermediate+0x52>
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    11fb <micro_qr_intermediate+0x9b>
movl   $0x0,-0x48(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    1222 <micro_qr_intermediate+0xc2>
movl   $0x5,-0x4(%rbp)
jmp    1853 <micro_qr_intermediate+0x6f3>
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,-0x43(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%eax
add    -0x3c(%rbp),%eax
movslq %eax,%rcx
xor    %eax,%eax
cmp    -0x28(%rbp),%rcx
mov    %al,-0x79(%rbp)
jae    126e <micro_qr_intermediate+0x10e>
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x48(%rbp),%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
movsbl -0x43(%rbp),%ecx
cmp    %ecx,%eax
sete   %al
mov    %al,-0x79(%rbp)
mov    -0x79(%rbp),%al
test   $0x1,%al
jne    1230 <micro_qr_intermediate+0xd0>
movsbl -0x43(%rbp),%eax
add    $0xffffffbf,%eax
mov    %eax,%ecx
mov    %rcx,-0x88(%rbp)
sub    $0xd,%eax
ja     182e <micro_qr_intermediate+0x6ce>
mov    -0x88(%rbp),%rax
lea    0xd60(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rdi
lea    0xd89(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x30(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x48(%rbp),%eax
mov    %al,-0x42(%rbp)
movb   $0x0,-0x41(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x42(%rbp),%rsi
call   1080 <strcat@plt>
cmpl   $0x0,0x18(%rbp)
je     12f5 <micro_qr_intermediate+0x195>
mov    -0x48(%rbp),%esi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    13e8 <micro_qr_intermediate+0x288>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x4c(%rbp)
cmpl   $0x8140,-0x4c(%rbp)
jl     1345 <micro_qr_intermediate+0x1e5>
cmpl   $0x9ffc,-0x4c(%rbp)
jg     1345 <micro_qr_intermediate+0x1e5>
mov    -0x4c(%rbp),%eax
sub    $0x8140,%eax
mov    %eax,-0x4c(%rbp)
jmp    136f <micro_qr_intermediate+0x20f>
cmpl   $0xe040,-0x4c(%rbp)
jl     136a <micro_qr_intermediate+0x20a>
cmpl   $0xebbf,-0x4c(%rbp)
jg     136a <micro_qr_intermediate+0x20a>
mov    -0x4c(%rbp),%eax
sub    $0xc140,%eax
mov    %eax,-0x4c(%rbp)
jmp    136f <micro_qr_intermediate+0x20f>
mov    -0x4c(%rbp),%eax
sar    $0x8,%eax
imul   $0xc0,%eax,%eax
mov    -0x4c(%rbp),%ecx
and    $0xff,%ecx
add    %ecx,%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%edi
mov    -0x10(%rbp),%rdx
mov    $0xd,%esi
call   1060 <bin_append@plt>
cmpl   $0x0,0x18(%rbp)
je     13b5 <micro_qr_intermediate+0x255>
mov    -0x50(%rbp),%esi
lea    0xcab(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    13d5 <micro_qr_intermediate+0x275>
movl   $0x5,-0x4(%rbp)
jmp    1853 <micro_qr_intermediate+0x6f3>
jmp    13da <micro_qr_intermediate+0x27a>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12fc <micro_qr_intermediate+0x19c>
cmpl   $0x0,0x18(%rbp)
je     1400 <micro_qr_intermediate+0x2a0>
lea    0xc42(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    182e <micro_qr_intermediate+0x6ce>
mov    -0x10(%rbp),%rdi
lea    0xc50(%rip),%rsi
call   1080 <strcat@plt>
mov    0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x48(%rbp),%eax
mov    %al,-0x42(%rbp)
movb   $0x0,-0x41(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x42(%rbp),%rsi
call   1080 <strcat@plt>
cmpl   $0x0,0x18(%rbp)
je     1451 <micro_qr_intermediate+0x2f1>
mov    -0x48(%rbp),%esi
lea    0xc18(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    14d6 <micro_qr_intermediate+0x376>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%edi
mov    -0x10(%rbp),%rdx
mov    $0x8,%esi
call   1060 <bin_append@plt>
cmpl   $0x0,0x18(%rbp)
je     14a3 <micro_qr_intermediate+0x343>
mov    -0x54(%rbp),%esi
lea    0xbbd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    14c3 <micro_qr_intermediate+0x363>
movl   $0x5,-0x4(%rbp)
jmp    1853 <micro_qr_intermediate+0x6f3>
jmp    14c8 <micro_qr_intermediate+0x368>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1458 <micro_qr_intermediate+0x2f8>
cmpl   $0x0,0x18(%rbp)
je     14ee <micro_qr_intermediate+0x38e>
lea    0xb54(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    182e <micro_qr_intermediate+0x6ce>
mov    -0x10(%rbp),%rdi
lea    0xb7d(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x38(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x48(%rbp),%eax
mov    %al,-0x42(%rbp)
movb   $0x0,-0x41(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x42(%rbp),%rsi
call   1080 <strcat@plt>
cmpl   $0x0,0x18(%rbp)
je     153f <micro_qr_intermediate+0x3df>
mov    -0x48(%rbp),%esi
lea    0xb45(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    1646 <micro_qr_intermediate+0x4e6>
movl   $0x0,-0x5c(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0xb27(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x5c(%rbp)
movl   $0x1,-0x58(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
cmp    -0x48(%rbp),%eax
jge    15ea <micro_qr_intermediate+0x48a>
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x41,%eax
jne    15ea <micro_qr_intermediate+0x48a>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0xac9(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x64(%rbp)
movl   $0x2,-0x58(%rbp)
imul   $0x2d,-0x5c(%rbp),%eax
add    -0x64(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%edi
imul   $0x5,-0x58(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%rdx
call   1060 <bin_append@plt>
cmpl   $0x0,0x18(%rbp)
je     1618 <micro_qr_intermediate+0x4b8>
mov    -0x60(%rbp),%esi
lea    0xa48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    1638 <micro_qr_intermediate+0x4d8>
movl   $0x5,-0x4(%rbp)
jmp    1853 <micro_qr_intermediate+0x6f3>
mov    -0x40(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x40(%rbp)
jmp    1546 <micro_qr_intermediate+0x3e6>
cmpl   $0x0,0x18(%rbp)
je     165e <micro_qr_intermediate+0x4fe>
lea    0x9e4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    182e <micro_qr_intermediate+0x6ce>
mov    -0x10(%rbp),%rdi
lea    0xa57(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x48(%rbp),%eax
mov    %al,-0x42(%rbp)
movb   $0x0,-0x41(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x42(%rbp),%rsi
call   1080 <strcat@plt>
cmpl   $0x0,0x18(%rbp)
je     16a5 <micro_qr_intermediate+0x545>
mov    -0x48(%rbp),%esi
lea    0xa29(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    1811 <micro_qr_intermediate+0x6b1>
movl   $0x0,-0x6c(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0xa0c(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x6c(%rbp)
movl   $0x1,-0x68(%rbp)
mov    -0x6c(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
cmp    -0x48(%rbp),%eax
jge    1750 <micro_qr_intermediate+0x5f0>
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4e,%eax
jne    1750 <micro_qr_intermediate+0x5f0>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0x9ae(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x74(%rbp)
movl   $0x2,-0x68(%rbp)
imul   $0xa,-0x70(%rbp),%eax
add    -0x74(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x40(%rbp),%eax
add    $0x2,%eax
cmp    -0x48(%rbp),%eax
jge    17b2 <micro_qr_intermediate+0x652>
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x4e,%eax
jne    17b2 <micro_qr_intermediate+0x652>
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    -0x40(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
lea    0x94c(%rip),%rdi
movsbl %al,%esi
call   1070 <posn@plt>
mov    %eax,-0x78(%rbp)
movl   $0x3,-0x68(%rbp)
imul   $0xa,-0x70(%rbp),%eax
add    -0x78(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x70(%rbp),%edi
imul   $0x3,-0x68(%rbp),%esi
add    $0x1,%esi
mov    -0x10(%rbp),%rdx
call   1060 <bin_append@plt>
cmpl   $0x0,0x18(%rbp)
je     17e3 <micro_qr_intermediate+0x683>
mov    -0x70(%rbp),%esi
mov    -0x70(%rbp),%edx
lea    0x911(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x80,%eax
jle    1803 <micro_qr_intermediate+0x6a3>
movl   $0x5,-0x4(%rbp)
jmp    1853 <micro_qr_intermediate+0x6f3>
mov    -0x40(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x40(%rbp)
jmp    16ac <micro_qr_intermediate+0x54c>
cmpl   $0x0,0x18(%rbp)
je     1829 <micro_qr_intermediate+0x6c9>
lea    0x819(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    182e <micro_qr_intermediate+0x6ce>
mov    -0x48(%rbp),%eax
add    -0x3c(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movslq -0x3c(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
cmp    %rcx,%rax
jb     11fb <micro_qr_intermediate+0x9b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<micro_qr_intermediate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r9,0x48(%rsp)
mov    %r8,0x40(%rsp)
mov    %rcx,%rbp
mov    %rdx,%r14
mov    %rsi,%r15
lea    0xef9(%rip),%rsi
mov    %rdi,0x8(%rsp)
call   1040 <strcpy@plt>
cmpl   $0x0,0xa8(%rsp)
je     11dd <micro_qr_intermediate+0x6d>
test   %rbp,%rbp
je     11d3 <micro_qr_intermediate+0x63>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsbl (%r14,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    11c0 <micro_qr_intermediate+0x50>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    -0x1(%rbp),%rax
mov    %rax,0x50(%rsp)
lea    0x8(%r15),%rax
mov    %rax,0x38(%rsp)
lea    0x2(%r14),%rax
mov    %rax,0x30(%rsp)
mov    %r15,0x18(%rsp)
lea    0x4(%r15),%rax
mov    %rax,0x28(%rsp)
lea    0x1(%r14),%rax
mov    %rax,0x20(%rsp)
xor    %r15d,%r15d
mov    %rbp,0x60(%rsp)
mov    %r14,0x58(%rsp)
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
mov    $0x5,%ecx
cmp    $0x80,%eax
jg     16bf <micro_qr_intermediate+0x54f>
mov    %r15d,%r12d
lea    (%r14,%r12,1),%rcx
movsbl (%r14,%r12,1),%eax
mov    $0x1,%edx
mov    $0x1,%esi
nopl   0x0(%rax)
mov    %rdx,%r13
mov    %esi,%ebx
lea    (%r12,%rdx,1),%r15
cmp    %rbp,%r15
jae    126b <micro_qr_intermediate+0xfb>
lea    0x1(%r13),%rdx
lea    0x1(%rbx),%esi
cmp    %al,(%rcx,%r13,1)
je     1250 <micro_qr_intermediate+0xe0>
add    $0xffffffbf,%eax
cmp    $0xd,%eax
ja     155b <micro_qr_intermediate+0x3eb>
lea    -0x1(%r13),%rbp
lea    0xd7e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
lea    0xddc(%rip),%rsi
call   1090 <strcat@plt>
mov    0x48(%rsp),%rax
movl   $0x1,(%rax)
mov    %r13b,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    %rbx,%rdi
lea    0x6(%rsp),%rsi
call   1090 <strcat@plt>
cmpl   $0x0,0xa8(%rsp)
je     12dc <micro_qr_intermediate+0x16c>
lea    0xda6(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebp,%ebp
mov    0x28(%rsp),%rax
lea    (%rax,%r12,4),%r14
add    0x20(%rsp),%r12
xor    %r13d,%r13d
jmp    1319 <micro_qr_intermediate+0x1a9>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
add    $0x2,%r13
cmp    $0x80,%eax
jg     16ba <micro_qr_intermediate+0x54a>
cmp    %rbp,%r13
ja     1547 <micro_qr_intermediate+0x3d7>
movsbl -0x4(%r14,%r13,4),%esi
lea    0xd63(%rip),%rdi
call   1080 <posn@plt>
mov    %eax,%ebx
mov    $0x6,%esi
cmp    %rbp,%r13
jae    1365 <micro_qr_intermediate+0x1f5>
cmpb   $0x41,(%r12,%r13,1)
jne    1365 <micro_qr_intermediate+0x1f5>
movsbl (%r14,%r13,4),%esi
lea    0xd3f(%rip),%rdi
call   1080 <posn@plt>
lea    (%rbx,%rbx,8),%ecx
lea    (%rcx,%rcx,4),%ebx
add    %eax,%ebx
mov    $0xb,%esi
mov    %ebx,%edi
mov    0x8(%rsp),%rdx
call   1070 <bin_append@plt>
cmpl   $0x0,0xa8(%rsp)
je     1300 <micro_qr_intermediate+0x190>
lea    0xcd2(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1300 <micro_qr_intermediate+0x190>
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
lea    0xcbc(%rip),%rsi
call   1090 <strcat@plt>
mov    0xa0(%rsp),%rax
movl   $0x1,(%rax)
mov    %r13b,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    %rbp,%rdi
lea    0x6(%rsp),%rsi
call   1090 <strcat@plt>
cmpl   $0x0,0xa8(%rsp)
je     13e4 <micro_qr_intermediate+0x274>
lea    0xc83(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%rsp),%rax
lea    (%rax,%r12,4),%r12
mov    %ebx,%r14d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r12,%rbp,4),%ebx
mov    %ebx,%edi
mov    $0x8,%esi
mov    0x8(%rsp),%rdx
call   1070 <bin_append@plt>
cmpl   $0x0,0xa8(%rsp)
je     142f <micro_qr_intermediate+0x2bf>
lea    0xc2e(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
cmp    $0x80,%eax
jg     16ba <micro_qr_intermediate+0x54a>
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1400 <micro_qr_intermediate+0x290>
jmp    1547 <micro_qr_intermediate+0x3d7>
mov    0x8(%rsp),%rbp
mov    %rbp,%rdi
lea    0xbd7(%rip),%rsi
call   1090 <strcat@plt>
mov    0x40(%rsp),%rax
movl   $0x1,(%rax)
mov    %r13b,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    %rbp,%rdi
lea    0x6(%rsp),%rsi
call   1090 <strcat@plt>
cmpl   $0x0,0xa8(%rsp)
je     14a3 <micro_qr_intermediate+0x333>
lea    0xba1(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x18(%rsp),%rax
lea    (%rax,%r12,4),%r13
mov    %ebx,%r12d
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13,%rbp,4),%eax
lea    -0x8140(%rax),%ecx
lea    -0xe040(%rax),%edx
lea    -0xc140(%rax),%esi
cmp    $0xb80,%edx
cmovae %eax,%esi
cmp    $0x1ebd,%ecx
cmovb  %ecx,%esi
movzbl %sil,%ebx
mov    %esi,%eax
sar    $0x8,%eax
lea    (%rax,%rax,2),%eax
shl    $0x6,%eax
add    %eax,%ebx
mov    %ebx,%edi
mov    $0xd,%esi
mov    0x8(%rsp),%rdx
call   1070 <bin_append@plt>
cmpl   $0x0,0xa8(%rsp)
je     1525 <micro_qr_intermediate+0x3b5>
lea    0xb38(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
cmp    $0x80,%eax
jg     16ba <micro_qr_intermediate+0x54a>
add    $0x1,%rbp
cmp    %rbp,%r12
jne    14c0 <micro_qr_intermediate+0x350>
cmpl   $0x0,0xa8(%rsp)
je     155b <micro_qr_intermediate+0x3eb>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r15d,%eax
cmp    %rax,0x50(%rsp)
mov    0x60(%rsp),%rbp
mov    0x58(%rsp),%r14
ja     121c <micro_qr_intermediate+0xac>
jmp    16d0 <micro_qr_intermediate+0x560>
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
lea    0xb39(%rip),%rsi
call   1090 <strcat@plt>
mov    %r13b,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    %rbx,%rdi
lea    0x6(%rsp),%rsi
call   1090 <strcat@plt>
cmpl   $0x0,0xa8(%rsp)
je     15be <micro_qr_intermediate+0x44e>
lea    0xb0e(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebp,%ebp
mov    0x38(%rsp),%rax
lea    (%rax,%r12,4),%rax
mov    %rax,0x10(%rsp)
add    0x30(%rsp),%r12
xor    %r13d,%r13d
jmp    15fc <micro_qr_intermediate+0x48c>
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%rdi
call   1050 <strlen@plt>
add    $0x1,%r14
mov    %r14,%r13
cmp    $0x80,%eax
jg     16ba <micro_qr_intermediate+0x54a>
cmp    %rbp,%r13
ja     1547 <micro_qr_intermediate+0x3d7>
mov    0x10(%rsp),%rax
movsbl -0x8(%rax,%r13,4),%esi
lea    0xac6(%rip),%rdi
call   1080 <posn@plt>
mov    %eax,%ebx
mov    $0x1,%eax
cmp    %rbp,%r13
jae    1652 <micro_qr_intermediate+0x4e2>
cmpb   $0x4e,-0x1(%r12,%r13,1)
jne    1652 <micro_qr_intermediate+0x4e2>
mov    0x10(%rsp),%rax
movsbl -0x4(%rax,%r13,4),%esi
lea    0xa9b(%rip),%rdi
call   1080 <posn@plt>
lea    (%rbx,%rbx,4),%ecx
lea    (%rax,%rcx,2),%ebx
mov    $0x2,%eax
lea    0x2(%r13),%r14
cmp    %rbp,%r14
ja     1683 <micro_qr_intermediate+0x513>
cmpb   $0x4e,(%r12,%r13,1)
jne    1683 <micro_qr_intermediate+0x513>
mov    0x10(%rsp),%rax
movsbl (%rax,%r13,4),%esi
lea    0xa6a(%rip),%rdi
call   1080 <posn@plt>
lea    (%rbx,%rbx,4),%ecx
lea    (%rax,%rcx,2),%ebx
mov    $0x3,%eax
lea    (%rax,%rax,2),%esi
add    $0x1,%esi
mov    %ebx,%edi
mov    0x8(%rsp),%rdx
call   1070 <bin_append@plt>
cmpl   $0x0,0xa8(%rsp)
je     15e0 <micro_qr_intermediate+0x470>
lea    0xa3e(%rip),%rdi
mov    %ebx,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1060 <printf@plt>
jmp    15e0 <micro_qr_intermediate+0x470>
mov    $0x5,%ecx
mov    %ecx,%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %ecx,%ecx
jmp    16bf <micro_qr_intermediate+0x54f>

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

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.3 = [2 x i8] c"K\00"
@.str.4 = [26 x i8] c"Kanji block (length %d)\0A\09\00"
@.str.5 = [7 x i8] c"0x%4X \00"
@.str.6 = [2 x i8] c"B\00"
@.str.7 = [25 x i8] c"Byte block (length %d)\0A\09\00"
@.str.8 = [2 x i8] c"A\00"
@.str.9 = [26 x i8] c"Alpha block (length %d)\0A\09\00"
@.str.10 = [46 x i8] c"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:\00"
@.str.11 = [2 x i8] c"N\00"
@.str.12 = [27 x i8] c"Number block (length %d)\0A\09\00"
@.str.13 = [11 x i8] c"0123456789\00"
@.str.14 = [11 x i8] c"0x%4X (%d)\00"
define i32 @micro_qr_intermediate(i8* %0, i32* nocapture %1, i8* nocapture %2, i64 %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5, i32* nocapture writeonly %6, i32 %7) {
%9 = alloca [2 x i8]
%10 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 0
%11 = tail call i32 @strcpy(i8* %0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i32 %7, 0
br i1 %12, label %25, label %13
13: ; preds = %8
%14 = icmp eq i64 %3, 0
br i1 %14, label %23, label %15
15: ; preds = %13, %15
%16 = phi i64 [ %21, %15 ], [ 0, %13 ]
%17 = getelementptr inbounds i8, i8* %2, i64 %16
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = tail call i32 @putchar(i32 %19)
%21 = add nuw i64 %16, 1
%22 = icmp eq i64 %21, %3
br i1 %22, label %23, label %15
23: ; preds = %15, %13
%24 = tail call i32 @putchar(i32 10)
br label %25
25: ; preds = %23, %8
%26 = getelementptr inbounds [2 x i8], [2 x i8]* %9, i64 0, i64 1
%27 = add i64 %3, -1
br label %28
28: ; preds = %210, %25
%29 = phi i64 [ 0, %25 ], [ %39, %210 ]
%30 = call i32 @strlen(i8* %0)
%31 = icmp sgt i32 %30, 128
br i1 %31, label %213, label %32
32: ; preds = %28
%33 = and i64 %29, 4294967295
%34 = getelementptr inbounds i8, i8* %2, i64 %33
%35 = load i8, i8* %34
br label %36
36: ; preds = %41, %32
%37 = phi i64 [ %38, %41 ], [ 0, %32 ]
%38 = add nuw i64 %37, 1
%39 = add nuw nsw i64 %38, %33
%40 = icmp ult i64 %39, %3
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = getelementptr inbounds i8, i8* %2, i64 %39
%43 = load i8, i8* %42
%44 = icmp eq i8 %43, %35
br i1 %44, label %36, label %45
45: ; preds = %36, %41
%46 = trunc i64 %38 to i32
%47 = sext i8 %35 to i32
switch i32 %47, label %210 [
i32 75, label %48
i32 66, label %83
i32 65, label %107
i32 78, label %148
]
48: ; preds = %45
%49 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %4
%50 = trunc i64 %38 to i8
store i8 %50, i8* %10
store i8 0, i8* %26
%51 = call i32 @strcat(i8* %0, i8* %10)
br i1 %12, label %54, label %52
52: ; preds = %48
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %46)
br label %54
54: ; preds = %52, %48
%55 = add i64 %37, 1
%56 = and i64 %55, 4294967295
br label %60
57: ; preds = %79
%58 = add nuw nsw i64 %61, 1
%59 = icmp eq i64 %58, %56
br i1 %59, label %82, label %60
60: ; preds = %54, %57
%61 = phi i64 [ 0, %54 ], [ %58, %57 ]
%62 = add nuw nsw i64 %61, %33
%63 = getelementptr inbounds i32, i32* %1, i64 %62
%64 = load i32, i32* %63
%65 = add i32 %64, -33088
%66 = icmp ult i32 %65, 7869
%67 = add i32 %64, -57408
%68 = icmp ult i32 %67, 2944
%69 = add nsw i32 %64, -49472
%70 = select i1 %68, i32 %69, i32 %64
%71 = select i1 %66, i32 %65, i32 %70
%72 = ashr i32 %71, 8
%73 = mul nsw i32 %72, 192
%74 = and i32 %71, 255
%75 = add nsw i32 %73, %74
%76 = call i32 @bin_append(i32 %75, i32 13, i8* %0)
br i1 %12, label %79, label %77
77: ; preds = %60
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %75)
br label %79
79: ; preds = %77, %60
%80 = call i32 @strlen(i8* %0)
%81 = icmp sgt i32 %80, 128
br i1 %81, label %213, label %57
82: ; preds = %57
br i1 %12, label %210, label %208
83: ; preds = %45
%84 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %6
%85 = trunc i64 %38 to i8
store i8 %85, i8* %10
store i8 0, i8* %26
%86 = call i32 @strcat(i8* %0, i8* %10)
br i1 %12, label %89, label %87
87: ; preds = %83
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %46)
br label %89
89: ; preds = %87, %83
%90 = add i64 %37, 1
%91 = and i64 %90, 4294967295
br label %95
92: ; preds = %103
%93 = add nuw nsw i64 %96, 1
%94 = icmp eq i64 %93, %91
br i1 %94, label %106, label %95
95: ; preds = %89, %92
%96 = phi i64 [ 0, %89 ], [ %93, %92 ]
%97 = add nuw nsw i64 %96, %33
%98 = getelementptr inbounds i32, i32* %1, i64 %97
%99 = load i32, i32* %98
%100 = call i32 @bin_append(i32 %99, i32 8, i8* %0)
br i1 %12, label %103, label %101
101: ; preds = %95
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %99)
br label %103
103: ; preds = %101, %95
%104 = call i32 @strlen(i8* %0)
%105 = icmp sgt i32 %104, 128
br i1 %105, label %213, label %92
106: ; preds = %92
br i1 %12, label %210, label %208
107: ; preds = %45
%108 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32 1, i32* %5
%109 = trunc i64 %38 to i8
store i8 %109, i8* %10
store i8 0, i8* %26
%110 = call i32 @strcat(i8* %0, i8* %10)
br i1 %12, label %113, label %111
111: ; preds = %107
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0), i32 %46)
br label %113
113: ; preds = %111, %107
%114 = and i64 %37, 4294967295
br label %115
115: ; preds = %143, %113
%116 = phi i64 [ %146, %143 ], [ 0, %113 ]
%117 = icmp ugt i64 %116, %114
br i1 %117, label %147, label %118
118: ; preds = %115
%119 = add nuw nsw i64 %116, %33
%120 = getelementptr inbounds i32, i32* %1, i64 %119
%121 = load i32, i32* %120
%122 = trunc i32 %121 to i8
%123 = call i32 @posn(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i8 signext %122)
%124 = icmp ult i64 %116, %114
br i1 %124, label %125, label %137
125: ; preds = %118
%126 = add nuw nsw i64 %119, 1
%127 = getelementptr inbounds i8, i8* %2, i64 %126
%128 = load i8, i8* %127
%129 = icmp eq i8 %128, 65
br i1 %129, label %130, label %137
130: ; preds = %125
%131 = getelementptr inbounds i32, i32* %1, i64 %126
%132 = load i32, i32* %131
%133 = trunc i32 %132 to i8
%134 = call i32 @posn(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i8 signext %133)
%135 = mul nsw i32 %123, 45
%136 = add nsw i32 %134, %135
br label %137
137: ; preds = %130, %125, %118
%138 = phi i32 [ 11, %130 ], [ 6, %125 ], [ 6, %118 ]
%139 = phi i32 [ %136, %130 ], [ %123, %125 ], [ %123, %118 ]
%140 = call i32 @bin_append(i32 %139, i32 %138, i8* %0)
br i1 %12, label %143, label %141
141: ; preds = %137
%142 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %139)
br label %143
143: ; preds = %141, %137
%144 = call i32 @strlen(i8* %0)
%145 = icmp sgt i32 %144, 128
%146 = add nuw nsw i64 %116, 2
br i1 %145, label %213, label %115
147: ; preds = %115
br i1 %12, label %210, label %208
148: ; preds = %45
%149 = call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%150 = trunc i64 %38 to i8
store i8 %150, i8* %10
store i8 0, i8* %26
%151 = call i32 @strcat(i8* %0, i8* %10)
br i1 %12, label %154, label %152
152: ; preds = %148
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.12, i64 0, i64 0), i32 %46)
br label %154
154: ; preds = %152, %148
%155 = and i64 %37, 4294967295
br label %156
156: ; preds = %203, %154
%157 = phi i64 [ %206, %203 ], [ 0, %154 ]
%158 = icmp ugt i64 %157, %155
br i1 %158, label %207, label %159
159: ; preds = %156
%160 = add nuw nsw i64 %157, %33
%161 = getelementptr inbounds i32, i32* %1, i64 %160
%162 = load i32, i32* %161
%163 = trunc i32 %162 to i8
%164 = call i32 @posn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8 signext %163)
%165 = icmp ult i64 %157, %155
br i1 %165, label %166, label %178
166: ; preds = %159
%167 = add nuw nsw i64 %160, 1
%168 = getelementptr inbounds i8, i8* %2, i64 %167
%169 = load i8, i8* %168
%170 = icmp eq i8 %169, 78
br i1 %170, label %171, label %178
171: ; preds = %166
%172 = getelementptr inbounds i32, i32* %1, i64 %167
%173 = load i32, i32* %172
%174 = trunc i32 %173 to i8
%175 = call i32 @posn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8 signext %174)
%176 = mul nsw i32 %164, 10
%177 = add nsw i32 %175, %176
br label %178
178: ; preds = %171, %166, %159
%179 = phi i32 [ 2, %171 ], [ 1, %166 ], [ 1, %159 ]
%180 = phi i32 [ %177, %171 ], [ %164, %166 ], [ %164, %159 ]
%181 = add nuw nsw i64 %157, 2
%182 = icmp ugt i64 %181, %155
br i1 %182, label %195, label %183
183: ; preds = %178
%184 = add nuw nsw i64 %160, 2
%185 = getelementptr inbounds i8, i8* %2, i64 %184
%186 = load i8, i8* %185
%187 = icmp eq i8 %186, 78
br i1 %187, label %188, label %195
188: ; preds = %183
%189 = getelementptr inbounds i32, i32* %1, i64 %184
%190 = load i32, i32* %189
%191 = trunc i32 %190 to i8
%192 = call i32 @posn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8 signext %191)
%193 = mul nsw i32 %180, 10
%194 = add nsw i32 %192, %193
br label %195
195: ; preds = %188, %183, %178
%196 = phi i32 [ 3, %188 ], [ %179, %183 ], [ %179, %178 ]
%197 = phi i32 [ %194, %188 ], [ %180, %183 ], [ %180, %178 ]
%198 = mul nuw nsw i32 %196, 3
%199 = add nuw nsw i32 %198, 1
%200 = call i32 @bin_append(i32 %197, i32 %199, i8* %0)
br i1 %12, label %203, label %201
201: ; preds = %195
%202 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %197, i32 %197)
br label %203
203: ; preds = %201, %195
%204 = call i32 @strlen(i8* %0)
%205 = icmp sgt i32 %204, 128
%206 = add nuw nsw i64 %157, 3
br i1 %205, label %213, label %156
207: ; preds = %156
br i1 %12, label %210, label %208
208: ; preds = %207, %147, %106, %82
%209 = call i32 @putchar(i32 10)
br label %210
210: ; preds = %208, %207, %147, %106, %82, %45
%211 = and i64 %39, 4294967295
%212 = icmp ugt i64 %27, %211
br i1 %212, label %28, label %213
213: ; preds = %28, %210, %203, %143, %103, %79
%214 = phi i32 [ 5, %79 ], [ 5, %103 ], [ 5, %143 ], [ 5, %203 ], [ 5, %28 ], [ 0, %210 ]
ret i32 %214
}