int gm_encode(int gbdata[], int length, char binary[], int reader) {
  int sp, current_mode, next_mode, last_mode, glyph = 0;
  int c1, c2, done;
  int p = 0, ppos;
  int numbuf[3], punt = 0;
  int number_pad_posn, debug = 0;
  int byte_count_posn = 0, byte_count = 0;
  int shift, i;
  strcpy(binary, "");
  sp = 0;
  current_mode = 0;
  last_mode = 0;
  number_pad_posn = 0;
  if (reader) {
    concat(binary, "1010");
  }
  do {
    next_mode = seek_forward(gbdata, length, sp, current_mode);
    if (next_mode != current_mode) {
      switch (current_mode) {
      case 0:
        switch (next_mode) {
        case 7:
          concat(binary, "0001");
          break;
        case 1:
          concat(binary, "0010");
          break;
        case 2:
          concat(binary, "0011");
          break;
        case 3:
          concat(binary, "0100");
          break;
        case 4:
          concat(binary, "0101");
          break;
        case 6:
          concat(binary, "0111");
          break;
        }
        break;
      case 7:
        switch (next_mode) {
        case 1:
          concat(binary, "1111111100001");
          break;
        case 2:
          concat(binary, "1111111100010");
          break;
        case 3:
          concat(binary, "1111111100011");
          break;
        case 4:
          concat(binary, "1111111100100");
          break;
        case 6:
          concat(binary, "1111111100101");
          break;
        }
        break;
      case 1:
        switch (p) {
        case 1:
          binary[number_pad_posn] = '1';
          binary[number_pad_posn + 1] = '0';
          break;
        case 2:
          binary[number_pad_posn] = '0';
          binary[number_pad_posn + 1] = '1';
          break;
        case 3:
          binary[number_pad_posn] = '0';
          binary[number_pad_posn + 1] = '0';
          break;
        }
        switch (next_mode) {
        case 7:
          concat(binary, "1111111011");
          break;
        case 2:
          concat(binary, "1111111100");
          break;
        case 3:
          concat(binary, "1111111101");
          break;
        case 4:
          concat(binary, "1111111110");
          break;
        case 6:
          concat(binary, "1111111111");
          break;
        }
        break;
      case 2:
      case 3:
        switch (next_mode) {
        case 7:
          concat(binary, "11100");
          break;
        case 1:
          concat(binary, "11101");
          break;
        case 2:
        case 3:
          concat(binary, "11110");
          break;
        case 4:
          concat(binary, "1111100");
          break;
        case 6:
          concat(binary, "1111110");
          break;
        }
        break;
      case 4:
        switch (next_mode) {
        case 7:
          concat(binary, "1111110001");
          break;
        case 1:
          concat(binary, "1111110010");
          break;
        case 2:
          concat(binary, "1111110011");
          break;
        case 3:
          concat(binary, "1111110100");
          break;
        case 6:
          concat(binary, "1111110111");
          break;
        }
        break;
      case 6:
        add_byte_count(binary, byte_count_posn, byte_count);
        byte_count = 0;
        switch (next_mode) {
        case 7:
          concat(binary, "0001");
          break;
        case 1:
          concat(binary, "0010");
          break;
        case 2:
          concat(binary, "0011");
          break;
        case 3:
          concat(binary, "0100");
          break;
        case 4:
          concat(binary, "0101");
          break;
        }
        break;
      }
      if (debug) {
        switch (next_mode) {
        case 7:
          printf("CHIN ");
          break;
        case 1:
          printf("NUMB ");
          break;
        case 2:
          printf("LOWR ");
          break;
        case 3:
          printf("UPPR ");
          break;
        case 4:
          printf("MIXD ");
          break;
        case 6:
          printf("BYTE ");
          break;
        }
      }
    }
    last_mode = current_mode;
    current_mode = next_mode;
    switch (current_mode) {
    case 7:
      done = 0;
      if (gbdata[sp] > 0xff) {
        c1 = (gbdata[sp] >> 8) & 0xff;
        c2 = gbdata[sp] & 0xff;
        if ((c1 >= 0xa0) && (c1 <= 0xa9)) {
          glyph = (0x60 * (c1 - 0xa1)) + (c2 - 0xa0);
        }
        if ((c1 >= 0xb0) && (c1 <= 0xf7)) {
          glyph = (0x60 * (c1 - 0xb0 + 9)) + (c2 - 0xa0);
        }
        done = 1;
      }
      if (!(done)) {
        if (sp != (length - 1)) {
          if ((gbdata[sp] == 0x13) && (gbdata[sp + 1] == 0x10)) {
            glyph = 7776;
            sp++;
          }
          done = 1;
        }
      }
      if (!(done)) {
        if (sp != (length - 1)) {
          if (((gbdata[sp] >= '0') && (gbdata[sp] <= '9')) &&
              ((gbdata[sp + 1] >= '0') && (gbdata[sp + 1] <= '9'))) {
            glyph = 8033 + (10 * (gbdata[sp] - '0')) + (gbdata[sp + 1] - '0');
            sp++;
          }
        }
      }
      if (!(done)) {
        glyph = 7777 + gbdata[sp];
      }
      if (debug) {
        printf("[%d] ", glyph);
      }
      diran(binary, glyph, 0x1000);
      sp++;
      break;
    case 1:
      if (last_mode != current_mode) {
        number_pad_posn = strlen(binary);
        concat(binary, "XX");
      }
      p = 0;
      ppos = -1;
      numbuf[0] = '0';
      numbuf[1] = '0';
      numbuf[2] = '0';
      do {
        if ((gbdata[sp] >= '0') && (gbdata[sp] <= '9')) {
          numbuf[p] = gbdata[sp];
          sp++;
          p++;
        }
        switch (gbdata[sp]) {
        case ' ':
        case '+':
        case '-':
        case '.':
        case ',':
          punt = gbdata[sp];
          sp++;
          ppos = p;
          break;
        }
        if (sp < (length - 1)) {
          if ((gbdata[sp] == 0x13) && (gbdata[sp + 1] == 0x10)) {
            punt = gbdata[sp];
            sp += 2;
            ppos = p;
          }
        }
      } while ((p < 3) && (sp < length));
      if (ppos != -1) {
        switch (punt) {
        case ' ':
          glyph = 0;
          break;
        case '+':
          glyph = 3;
          break;
        case '-':
          glyph = 6;
          break;
        case '.':
          glyph = 9;
          break;
        case ',':
          glyph = 12;
          break;
        case 0x13:
          glyph = 15;
          break;
        }
        glyph += ppos;
        glyph += 1000;
        if (debug) {
          printf("[%d] ", glyph);
        }
        diran(binary, glyph, 0x200);
      }
      glyph = (100 * (numbuf[0] - '0')) + (10 * (numbuf[1] - '0')) +
              (numbuf[2] - '0');
      if (debug) {
        printf("[%d] ", glyph);
      }
      diran(binary, glyph, 0x200);
      break;
    case 6:
      if (last_mode != current_mode) {
        byte_count_posn = strlen(binary);
        concat(binary, "LLLLLLLLL");
      }
      if (byte_count == 512) {
        add_byte_count(binary, byte_count_posn, byte_count);
        concat(binary, "0111");
        byte_count_posn = strlen(binary);
        concat(binary, "LLLLLLLLL");
        byte_count = 0;
      }
      glyph = gbdata[sp];
      if (debug) {
        printf("[%d] ", glyph);
      }
      diran(binary, glyph, 0x80);
      sp++;
      byte_count++;
      break;
    case 4:
      shift = 1;
      if ((gbdata[sp] >= '0') && (gbdata[sp] <= '9')) {
        shift = 0;
      }
      if ((gbdata[sp] >= 'A') && (gbdata[sp] <= 'Z')) {
        shift = 0;
      }
      if ((gbdata[sp] >= 'a') && (gbdata[sp] <= 'z')) {
        shift = 0;
      }
      if (gbdata[sp] == ' ') {
        shift = 0;
      }
      if (shift == 0) {
        glyph = posn(
            "0123456789ABCDEFGHIJKLMOPRSTUVWXYZabcdefghijklmnopqrstuvwxyz ",
            gbdata[sp]);
        if (debug) {
          printf("[%d] ", glyph);
        }
        diran(binary, glyph, 0x20);
      } else {
        concat(binary, "1111110110");
        add_shift_char(binary, gbdata[sp]);
      }
      sp++;
      break;
    case 3:
      shift = 1;
      if ((gbdata[sp] >= 'A') && (gbdata[sp] <= 'Z')) {
        shift = 0;
      }
      if (gbdata[sp] == ' ') {
        shift = 0;
      }
      if (shift == 0) {
        glyph = posn("ABCDEFGHIJKLMNOPQRSTUVWXYZ ", gbdata[sp]);
        if (debug) {
          printf("[%d] ", glyph);
        }
        diran(binary, glyph, 0x10);
      } else {
        concat(binary, "1111101");
        add_shift_char(binary, gbdata[sp]);
      }
      sp++;
      break;
    case 2:
      shift = 1;
      if ((gbdata[sp] >= 'a') && (gbdata[sp] <= 'z')) {
        shift = 0;
      }
      if (gbdata[sp] == ' ') {
        shift = 0;
      }
      if (shift == 0) {
        glyph = posn("abcdefghijklmnopqrstuvwxyz ", gbdata[sp]);
        if (debug) {
          printf("[%d] ", glyph);
        }
        diran(binary, glyph, 0x10);
      } else {
        concat(binary, "1111101");
        add_shift_char(binary, gbdata[sp]);
      }
      sp++;
      break;
    }
    if (strlen(binary) > 9191) {
      return 5;
    }
  } while (sp < length);
  if (current_mode == 1) {
    switch (p) {
    case 1:
      binary[number_pad_posn] = '1';
      binary[number_pad_posn + 1] = '0';
      break;
    case 2:
      binary[number_pad_posn] = '0';
      binary[number_pad_posn + 1] = '1';
      break;
    case 3:
      binary[number_pad_posn] = '0';
      binary[number_pad_posn + 1] = '0';
      break;
    }
  }
  if (current_mode == 6) {
    add_byte_count(binary, byte_count_posn, byte_count);
  }
  switch (current_mode) {
  case 7:
    concat(binary, "1111111100000");
    break;
  case 1:
    concat(binary, "1111111010");
    break;
  case 2:
  case 3:
    concat(binary, "11011");
    break;
  case 4:
    concat(binary, "1111110000");
    break;
  case 6:
    concat(binary, "0000");
    break;
  }
  p = 7 - (strlen(binary) % 7);
  if (p == 7) {
    p = 0;
  }
  for (i = 0; i < p; i++) {
    concat(binary, "0");
  }
  if (strlen(binary) > 9191) {
    return 5;
  }
  return 0;
}


x86 assembly (clang, -O0):
<gm_encode>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x5c(%rbp)
movl   $0x0,-0x64(%rbp)
movl   $0x0,-0x68(%rbp)
movl   $0x0,-0x6c(%rbp)
mov    -0x20(%rbp),%rdi
lea    0x2065(%rip),%rsi
call   1040 <strcpy@plt>
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x60(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     121b <gm_encode+0x8b>
mov    -0x20(%rbp),%rdi
lea    0x20d4(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1220 <gm_encode+0x90>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    -0x28(%rbp),%edx
mov    -0x2c(%rbp),%ecx
mov    $0x0,%al
call   1080 <seek_forward@plt>
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
je     17b3 <gm_encode+0x623>
mov    -0x2c(%rbp),%eax
mov    %rax,-0x80(%rbp)
sub    $0x7,%rax
ja     1703 <gm_encode+0x573>
mov    -0x80(%rbp),%rax
lea    0x1da1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x88(%rbp)
sub    $0x6,%eax
ja     131c <gm_encode+0x18c>
mov    -0x88(%rbp),%rax
lea    0x1e16(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%rdi
lea    0x1eeb(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    131c <gm_encode+0x18c>
mov    -0x20(%rbp),%rdi
lea    0x1ee2(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    131c <gm_encode+0x18c>
mov    -0x20(%rbp),%rdi
lea    0x1ed9(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    131c <gm_encode+0x18c>
mov    -0x20(%rbp),%rdi
lea    0x1ed0(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    131c <gm_encode+0x18c>
mov    -0x20(%rbp),%rdi
lea    0x1ec7(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    131c <gm_encode+0x18c>
mov    -0x20(%rbp),%rdi
lea    0x1f1e(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1703 <gm_encode+0x573>
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x90(%rbp)
sub    $0x5,%eax
ja     13be <gm_encode+0x22e>
mov    -0x90(%rbp),%rax
lea    0x1d45(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%rdi
lea    0x1e29(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    13be <gm_encode+0x22e>
mov    -0x20(%rbp),%rdi
lea    0x1e20(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    13be <gm_encode+0x22e>
mov    -0x20(%rbp),%rdi
lea    0x1e17(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    13be <gm_encode+0x22e>
mov    -0x20(%rbp),%rdi
lea    0x1e0e(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    13be <gm_encode+0x22e>
mov    -0x20(%rbp),%rdi
lea    0x1e05(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1703 <gm_encode+0x573>
mov    -0x48(%rbp),%eax
mov    %eax,-0x94(%rbp)
sub    $0x1,%eax
je     1402 <gm_encode+0x272>
jmp    13da <gm_encode+0x24a>
mov    -0x94(%rbp),%eax
sub    $0x2,%eax
je     1424 <gm_encode+0x294>
jmp    13ee <gm_encode+0x25e>
mov    -0x94(%rbp),%eax
sub    $0x3,%eax
je     1446 <gm_encode+0x2b6>
jmp    1463 <gm_encode+0x2d3>
mov    -0x20(%rbp),%rax
movslq -0x60(%rbp),%rcx
movb   $0x31,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x60(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x30,(%rax,%rcx,1)
jmp    1463 <gm_encode+0x2d3>
mov    -0x20(%rbp),%rax
movslq -0x60(%rbp),%rcx
movb   $0x30,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x60(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x31,(%rax,%rcx,1)
jmp    1463 <gm_encode+0x2d3>
mov    -0x20(%rbp),%rax
movslq -0x60(%rbp),%rcx
movb   $0x30,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x60(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x30,(%rax,%rcx,1)
mov    -0x30(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0xa0(%rbp)
sub    $0x5,%eax
ja     1500 <gm_encode+0x370>
mov    -0xa0(%rbp),%rax
lea    0x1beb(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%rdi
lea    0x1d2d(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1500 <gm_encode+0x370>
mov    -0x20(%rbp),%rdi
lea    0x1d21(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1500 <gm_encode+0x370>
mov    -0x20(%rbp),%rdi
lea    0x1d15(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1500 <gm_encode+0x370>
mov    -0x20(%rbp),%rdi
lea    0x1d09(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1500 <gm_encode+0x370>
mov    -0x20(%rbp),%rdi
lea    0x1cfd(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1703 <gm_encode+0x573>
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0xa8(%rbp)
sub    $0x6,%eax
ja     15a2 <gm_encode+0x412>
mov    -0xa8(%rbp),%rax
lea    0x1b2d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%rdi
lea    0x1c9b(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    15a2 <gm_encode+0x412>
mov    -0x20(%rbp),%rdi
lea    0x1c8f(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    15a2 <gm_encode+0x412>
mov    -0x20(%rbp),%rdi
lea    0x1c83(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    15a2 <gm_encode+0x412>
mov    -0x20(%rbp),%rdi
lea    0x1c54(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    15a2 <gm_encode+0x412>
mov    -0x20(%rbp),%rdi
lea    0x1c53(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1703 <gm_encode+0x573>
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0xb0(%rbp)
sub    $0x6,%eax
ja     1644 <gm_encode+0x4b4>
mov    -0xb0(%rbp),%rax
lea    0x1a6f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%rdi
lea    0x1c20(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1644 <gm_encode+0x4b4>
mov    -0x20(%rbp),%rdi
lea    0x1c14(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1644 <gm_encode+0x4b4>
mov    -0x20(%rbp),%rdi
lea    0x1c08(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1644 <gm_encode+0x4b4>
mov    -0x20(%rbp),%rdi
lea    0x1bfc(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1644 <gm_encode+0x4b4>
mov    -0x20(%rbp),%rdi
lea    0x1bf0(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1703 <gm_encode+0x573>
mov    -0x20(%rbp),%rdi
mov    -0x68(%rbp),%esi
mov    -0x6c(%rbp),%edx
xor    %eax,%eax
call   10a0 <add_byte_count@plt>
movl   $0x0,-0x6c(%rbp)
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0xb8(%rbp)
sub    $0x6,%eax
ja     16fe <gm_encode+0x56e>
mov    -0xb8(%rbp),%rax
lea    0x1999(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%rdi
lea    0x1af2(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    16fe <gm_encode+0x56e>
mov    -0x20(%rbp),%rdi
lea    0x1ae9(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    16fe <gm_encode+0x56e>
mov    -0x20(%rbp),%rdi
lea    0x1ae0(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    16fe <gm_encode+0x56e>
mov    -0x20(%rbp),%rdi
lea    0x1ad7(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    16fe <gm_encode+0x56e>
mov    -0x20(%rbp),%rdi
lea    0x1ace(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    1703 <gm_encode+0x573>
cmpl   $0x0,-0x64(%rbp)
je     17ae <gm_encode+0x61e>
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0xc0(%rbp)
sub    $0x6,%eax
ja     17a9 <gm_encode+0x619>
mov    -0xc0(%rbp),%rax
lea    0x198d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1af5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    17a9 <gm_encode+0x619>
lea    0x1ae8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    17a9 <gm_encode+0x619>
lea    0x1adb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    17a9 <gm_encode+0x619>
lea    0x1ace(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    17a9 <gm_encode+0x619>
lea    0x1ac1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    17a9 <gm_encode+0x619>
lea    0x1ab4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    17ae <gm_encode+0x61e>
jmp    17b3 <gm_encode+0x623>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0xc8(%rbp)
sub    $0x6,%eax
ja     2044 <gm_encode+0xeb4>
mov    -0xc8(%rbp),%rax
lea    0x18f7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x0,-0x44(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0xff,(%rax,%rcx,4)
jle    18a3 <gm_encode+0x713>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
sar    $0x8,%eax
and    $0xff,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
and    $0xff,%eax
mov    %eax,-0x40(%rbp)
cmpl   $0xa0,-0x3c(%rbp)
jl     1866 <gm_encode+0x6d6>
cmpl   $0xa9,-0x3c(%rbp)
jg     1866 <gm_encode+0x6d6>
mov    -0x3c(%rbp),%eax
sub    $0xa1,%eax
imul   $0x60,%eax,%eax
mov    -0x40(%rbp),%ecx
sub    $0xa0,%ecx
add    %ecx,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0xb0,-0x3c(%rbp)
jl     189c <gm_encode+0x70c>
cmpl   $0xf7,-0x3c(%rbp)
jg     189c <gm_encode+0x70c>
mov    -0x3c(%rbp),%eax
sub    $0xb0,%eax
add    $0x9,%eax
imul   $0x60,%eax,%eax
mov    -0x40(%rbp),%ecx
sub    $0xa0,%ecx
add    %ecx,%eax
mov    %eax,-0x38(%rbp)
movl   $0x1,-0x44(%rbp)
cmpl   $0x0,-0x44(%rbp)
jne    1903 <gm_encode+0x773>
mov    -0x28(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     18fe <gm_encode+0x76e>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x13,(%rax,%rcx,4)
jne    18f7 <gm_encode+0x767>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x10,(%rax,%rcx,4)
jne    18f7 <gm_encode+0x767>
movl   $0x1e60,-0x38(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
movl   $0x1,-0x44(%rbp)
jmp    1903 <gm_encode+0x773>
cmpl   $0x0,-0x44(%rbp)
jne    19b1 <gm_encode+0x821>
mov    -0x28(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     19ac <gm_encode+0x81c>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x30,(%rax,%rcx,4)
jl     19a7 <gm_encode+0x817>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x39,(%rax,%rcx,4)
jg     19a7 <gm_encode+0x817>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x30,(%rax,%rcx,4)
jl     19a7 <gm_encode+0x817>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x39,(%rax,%rcx,4)
jg     19a7 <gm_encode+0x817>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
sub    $0x30,%eax
imul   $0xa,%eax,%eax
add    $0x1f61,%eax
mov    -0x10(%rbp),%rcx
mov    -0x28(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
mov    (%rcx,%rdx,4),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x38(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    19ac <gm_encode+0x81c>
jmp    19b1 <gm_encode+0x821>
cmpl   $0x0,-0x44(%rbp)
jne    19ce <gm_encode+0x83e>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
add    $0x1e61,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     19e9 <gm_encode+0x859>
mov    -0x38(%rbp),%esi
lea    0x187a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    $0x1000,%edx
mov    $0x0,%al
call   1030 <diran@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    2044 <gm_encode+0xeb4>
mov    -0x34(%rbp),%eax
cmp    -0x2c(%rbp),%eax
je     1a34 <gm_encode+0x8a4>
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x60(%rbp)
mov    -0x20(%rbp),%rdi
lea    0x1835(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
movl   $0x0,-0x48(%rbp)
movl   $0xffffffff,-0x4c(%rbp)
movl   $0x30,-0x58(%rbp)
movl   $0x30,-0x54(%rbp)
movl   $0x30,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x30,(%rax,%rcx,4)
jl     1aa0 <gm_encode+0x910>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x39,(%rax,%rcx,4)
jg     1aa0 <gm_encode+0x910>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
movslq -0x48(%rbp),%rax
mov    %ecx,-0x58(%rbp,%rax,4)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0xcc(%rbp)
sub    $0x20,%eax
je     1ad6 <gm_encode+0x946>
jmp    1abf <gm_encode+0x92f>
mov    -0xcc(%rbp),%eax
add    $0xffffffd5,%eax
sub    $0x3,%eax
ja     1af3 <gm_encode+0x963>
jmp    1ad6 <gm_encode+0x946>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1b4f <gm_encode+0x9bf>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x13,(%rax,%rcx,4)
jne    1b4a <gm_encode+0x9ba>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmpl   $0x10,(%rax,%rcx,4)
jne    1b4a <gm_encode+0x9ba>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x28(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x28(%rbp)
mov    -0x48(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    1b4f <gm_encode+0x9bf>
jmp    1b54 <gm_encode+0x9c4>
xor    %eax,%eax
cmpl   $0x3,-0x48(%rbp)
mov    %al,-0xcd(%rbp)
jge    1b75 <gm_encode+0x9e5>
mov    -0x28(%rbp),%eax
cmp    -0x14(%rbp),%eax
setl   %al
mov    %al,-0xcd(%rbp)
mov    -0xcd(%rbp),%al
test   $0x1,%al
jne    1a57 <gm_encode+0x8c7>
cmpl   $0xffffffff,-0x4c(%rbp)
je     1c41 <gm_encode+0xab1>
mov    -0x5c(%rbp),%eax
add    $0xffffffed,%eax
mov    %eax,%ecx
mov    %rcx,-0xd8(%rbp)
sub    $0x1b,%eax
ja     1bff <gm_encode+0xa6f>
mov    -0xd8(%rbp),%rax
lea    0x1545(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x0,-0x38(%rbp)
jmp    1bff <gm_encode+0xa6f>
movl   $0x3,-0x38(%rbp)
jmp    1bff <gm_encode+0xa6f>
movl   $0x6,-0x38(%rbp)
jmp    1bff <gm_encode+0xa6f>
movl   $0x9,-0x38(%rbp)
jmp    1bff <gm_encode+0xa6f>
movl   $0xc,-0x38(%rbp)
jmp    1bff <gm_encode+0xa6f>
movl   $0xf,-0x38(%rbp)
mov    -0x4c(%rbp),%eax
add    -0x38(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
add    $0x3e8,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     1c2e <gm_encode+0xa9e>
mov    -0x38(%rbp),%esi
lea    0x1635(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    $0x200,%edx
mov    $0x0,%al
call   1030 <diran@plt>
mov    -0x58(%rbp),%eax
sub    $0x30,%eax
imul   $0x64,%eax,%eax
mov    -0x54(%rbp),%ecx
sub    $0x30,%ecx
imul   $0xa,%ecx,%ecx
add    %ecx,%eax
mov    -0x50(%rbp),%ecx
sub    $0x30,%ecx
add    %ecx,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     1c7b <gm_encode+0xaeb>
mov    -0x38(%rbp),%esi
lea    0x15e8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    $0x200,%edx
mov    $0x0,%al
call   1030 <diran@plt>
jmp    2044 <gm_encode+0xeb4>
mov    -0x34(%rbp),%eax
cmp    -0x2c(%rbp),%eax
je     1cbd <gm_encode+0xb2d>
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x68(%rbp)
mov    -0x20(%rbp),%rdi
lea    0x15af(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
cmpl   $0x200,-0x6c(%rbp)
jne    1d12 <gm_encode+0xb82>
mov    -0x20(%rbp),%rdi
mov    -0x68(%rbp),%esi
mov    -0x6c(%rbp),%edx
mov    $0x0,%al
call   10a0 <add_byte_count@plt>
mov    -0x20(%rbp),%rdi
lea    0x154d(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0x68(%rbp)
mov    -0x20(%rbp),%rdi
lea    0x1561(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
movl   $0x0,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     1d3b <gm_encode+0xbab>
mov    -0x38(%rbp),%esi
lea    0x1528(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    $0x80,%edx
mov    $0x0,%al
call   1030 <diran@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    2044 <gm_encode+0xeb4>
movl   $0x1,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x30,(%rax,%rcx,4)
jl     1d97 <gm_encode+0xc07>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x39,(%rax,%rcx,4)
jg     1d97 <gm_encode+0xc07>
movl   $0x0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x41,(%rax,%rcx,4)
jl     1dc2 <gm_encode+0xc32>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x5a,(%rax,%rcx,4)
jg     1dc2 <gm_encode+0xc32>
movl   $0x0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x61,(%rax,%rcx,4)
jl     1ded <gm_encode+0xc5d>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x7a,(%rax,%rcx,4)
jg     1ded <gm_encode+0xc5d>
movl   $0x0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x20,(%rax,%rcx,4)
jne    1e06 <gm_encode+0xc76>
movl   $0x0,-0x70(%rbp)
cmpl   $0x0,-0x70(%rbp)
jne    1e5f <gm_encode+0xccf>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0x144d(%rip),%rdi
mov    $0x0,%al
call   1090 <posn@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     1e47 <gm_encode+0xcb7>
mov    -0x38(%rbp),%esi
lea    0x141c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    $0x20,%edx
mov    $0x0,%al
call   1030 <diran@plt>
jmp    1e87 <gm_encode+0xcf7>
mov    -0x20(%rbp),%rdi
lea    0x1443(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    $0x0,%al
call   10b0 <add_shift_char@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    2044 <gm_encode+0xeb4>
movl   $0x1,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x41,(%rax,%rcx,4)
jl     1ec7 <gm_encode+0xd37>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x5a,(%rax,%rcx,4)
jg     1ec7 <gm_encode+0xd37>
movl   $0x0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x20,(%rax,%rcx,4)
jne    1ee0 <gm_encode+0xd50>
movl   $0x0,-0x70(%rbp)
cmpl   $0x0,-0x70(%rbp)
jne    1f39 <gm_encode+0xda9>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0x13bc(%rip),%rdi
mov    $0x0,%al
call   1090 <posn@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     1f21 <gm_encode+0xd91>
mov    -0x38(%rbp),%esi
lea    0x1342(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    $0x10,%edx
mov    $0x0,%al
call   1030 <diran@plt>
jmp    1f61 <gm_encode+0xdd1>
mov    -0x20(%rbp),%rdi
lea    0x129f(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    $0x0,%al
call   10b0 <add_shift_char@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    2044 <gm_encode+0xeb4>
movl   $0x1,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x61,(%rax,%rcx,4)
jl     1fa1 <gm_encode+0xe11>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x7a,(%rax,%rcx,4)
jg     1fa1 <gm_encode+0xe11>
movl   $0x0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
cmpl   $0x20,(%rax,%rcx,4)
jne    1fba <gm_encode+0xe2a>
movl   $0x0,-0x70(%rbp)
cmpl   $0x0,-0x70(%rbp)
jne    2013 <gm_encode+0xe83>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0x12bb(%rip),%rdi
mov    $0x0,%al
call   1090 <posn@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     1ffb <gm_encode+0xe6b>
mov    -0x38(%rbp),%esi
lea    0x1268(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    $0x10,%edx
mov    $0x0,%al
call   1030 <diran@plt>
jmp    203b <gm_encode+0xeab>
mov    -0x20(%rbp),%rdi
lea    0x11c5(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
mov    $0x0,%al
call   10b0 <add_shift_char@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x23e7,%rax
jbe    2065 <gm_encode+0xed5>
movl   $0x5,-0x4(%rbp)
jmp    2267 <gm_encode+0x10d7>
jmp    206a <gm_encode+0xeda>
mov    -0x28(%rbp),%eax
cmp    -0x14(%rbp),%eax
jl     1220 <gm_encode+0x90>
cmpl   $0x1,-0x2c(%rbp)
jne    2125 <gm_encode+0xf95>
mov    -0x48(%rbp),%eax
mov    %eax,-0xdc(%rbp)
sub    $0x1,%eax
je     20bf <gm_encode+0xf2f>
jmp    2097 <gm_encode+0xf07>
mov    -0xdc(%rbp),%eax
sub    $0x2,%eax
je     20e1 <gm_encode+0xf51>
jmp    20ab <gm_encode+0xf1b>
mov    -0xdc(%rbp),%eax
sub    $0x3,%eax
je     2103 <gm_encode+0xf73>
jmp    2120 <gm_encode+0xf90>
mov    -0x20(%rbp),%rax
movslq -0x60(%rbp),%rcx
movb   $0x31,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x60(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x30,(%rax,%rcx,1)
jmp    2120 <gm_encode+0xf90>
mov    -0x20(%rbp),%rax
movslq -0x60(%rbp),%rcx
movb   $0x30,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x60(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x31,(%rax,%rcx,1)
jmp    2120 <gm_encode+0xf90>
mov    -0x20(%rbp),%rax
movslq -0x60(%rbp),%rcx
movb   $0x30,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x60(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x30,(%rax,%rcx,1)
jmp    2125 <gm_encode+0xf95>
cmpl   $0x6,-0x2c(%rbp)
jne    2140 <gm_encode+0xfb0>
mov    -0x20(%rbp),%rdi
mov    -0x68(%rbp),%esi
mov    -0x6c(%rbp),%edx
mov    $0x0,%al
call   10a0 <add_byte_count@plt>
mov    -0x2c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0xe8(%rbp)
sub    $0x6,%eax
ja     21dd <gm_encode+0x104d>
mov    -0xe8(%rbp),%rax
lea    0x1002(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%rdi
lea    0x115a(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    21dd <gm_encode+0x104d>
mov    -0x20(%rbp),%rdi
lea    0x1151(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    21dd <gm_encode+0x104d>
mov    -0x20(%rbp),%rdi
lea    0x1027(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    21dd <gm_encode+0x104d>
mov    -0x20(%rbp),%rdi
lea    0x112e(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
jmp    21dd <gm_encode+0x104d>
mov    -0x20(%rbp),%rdi
lea    0x1107(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
mov    $0x7,%ecx
xor    %edx,%edx
div    %rcx
mov    $0x7,%eax
sub    %rdx,%rax
mov    %eax,-0x48(%rbp)
cmpl   $0x7,-0x48(%rbp)
jne    220c <gm_encode+0x107c>
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x74(%rbp)
mov    -0x74(%rbp),%eax
cmp    -0x48(%rbp),%eax
jge    223f <gm_encode+0x10af>
mov    -0x20(%rbp),%rdi
lea    0x10b6(%rip),%rsi
mov    $0x0,%al
call   1070 <concat@plt>
mov    -0x74(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    2213 <gm_encode+0x1083>
mov    -0x20(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x23e7,%rax
jbe    2260 <gm_encode+0x10d0>
movl   $0x5,-0x4(%rbp)
jmp    2267 <gm_encode+0x10d7>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gm_encode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rdx,%rbp
mov    %esi,%r15d
mov    %rdi,%rbx
movb   $0x0,(%rdx)
test   %ecx,%ecx
je     119f <gm_encode+0x2f>
lea    0x110d(%rip),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <concat@plt>
mov    %rbp,(%rsp)
lea    -0x1(%r15),%eax
mov    %eax,0x1c(%rsp)
cltq
mov    %rax,0x50(%rsp)
xor    %eax,%eax
mov    %rax,0x10(%rsp)
xor    %r14d,%r14d
xor    %r12d,%r12d
xor    %r13d,%r13d
xor    %eax,%eax
mov    %rax,0x38(%rsp)
xor    %eax,%eax
mov    %rax,0x30(%rsp)
xor    %eax,%eax
mov    %rax,0x20(%rsp)
movl   $0x0,0xc(%rsp)
nop
mov    %rbx,%rdi
mov    %r15d,%esi
mov    %r12d,%edx
mov    %r14d,%ecx
xor    %eax,%eax
call   1060 <seek_forward@plt>
mov    %eax,%edi
cmp    %r14d,%eax
mov    %rdi,0x28(%rsp)
jne    1240 <gm_encode+0xd0>
lea    -0x1(%rdi),%eax
cmp    $0x6,%eax
ja     1860 <gm_encode+0x6f0>
lea    0xeae(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cmp    %r14d,0x28(%rsp)
mov    (%rsp),%r14
mov    0x1c(%rsp),%ebp
jne    1556 <gm_encode+0x3e6>
jmp    1574 <gm_encode+0x404>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0x7,%r14d
ja     11ff <gm_encode+0x8f>
mov    %r14d,%eax
lea    0xdb0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x1(%rdi),%eax
cmp    $0x6,%eax
ja     11ff <gm_encode+0x8f>
lea    0xdf0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
lea    0xf48(%rip),%rsi
lea    0xf4c(%rip),%r8
lea    0xf4e(%rip),%rcx
lea    0xf31(%rip),%rdx
jmp    *%rax
mov    (%rsp),%rdi
lea    0xf3c(%rip),%rsi
xor    %eax,%eax
call   1050 <concat@plt>
mov    0x28(%rsp),%rdi
jmp    11ff <gm_encode+0x8f>
cmp    %r14d,0x28(%rsp)
mov    (%rsp),%rbp
mov    0xc(%rsp),%r14d
jne    16df <gm_encode+0x56f>
cmp    $0x200,%r14d
jne    130c <gm_encode+0x19c>
xor    %r14d,%r14d
mov    %rbp,%rdi
mov    0x20(%rsp),%rsi
mov    $0x200,%edx
xor    %eax,%eax
call   1080 <add_byte_count@plt>
mov    %rbp,%rdi
lea    0xf30(%rip),%rsi
xor    %eax,%eax
call   1050 <concat@plt>
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    %rax,0x20(%rsp)
mov    %rbp,%rdi
lea    0xf1a(%rip),%rsi
xor    %eax,%eax
call   1050 <concat@plt>
movslq %r12d,%rax
mov    (%rbx,%rax,4),%esi
mov    %rbp,%rdi
mov    %rsi,0x10(%rsp)
mov    $0x80,%edx
xor    %eax,%eax
call   1030 <diran@plt>
add    $0x1,%r12d
add    $0x1,%r14d
mov    %r14d,0xc(%rsp)
jmp    1860 <gm_encode+0x6f0>
lea    -0x1(%rdi),%eax
cmp    $0x6,%eax
ja     11ff <gm_encode+0x8f>
lea    0xd59(%rip),%rcx
movslq (%rcx,%rax,4),%r9
add    %rcx,%r9
lea    0xe18(%rip),%rsi
lea    0xe1f(%rip),%r8
lea    0xeb0(%rip),%rcx
lea    0xe3b(%rip),%rdx
lea    0xe26(%rip),%rbp
lea    0xe11(%rip),%rax
jmp    *%r9
lea    -0x1(%r13),%ecx
cmp    $0x2,%ecx
ja     13a9 <gm_encode+0x239>
shl    $0x3,%ecx
mov    $0x303031,%eax
shr    %cl,%eax
mov    $0x303130,%edx
shr    %cl,%edx
movslq 0x30(%rsp),%rcx
mov    (%rsp),%rsi
mov    %al,(%rsi,%rcx,1)
mov    %dl,0x1(%rsi,%rcx,1)
lea    -0x2(%rdi),%eax
cmp    $0x5,%eax
ja     11ff <gm_encode+0x8f>
lea    0xcb8(%rip),%rcx
movslq (%rcx,%rax,4),%r8
add    %rcx,%r8
lea    0xde4(%rip),%rsi
lea    0xe09(%rip),%rcx
lea    0xdf7(%rip),%rdx
lea    0xde5(%rip),%rbp
lea    0xdd3(%rip),%rax
jmp    *%r8
lea    -0x1(%rdi),%eax
cmp    $0x6,%eax
ja     11ff <gm_encode+0x8f>
lea    0xc40(%rip),%rcx
movslq (%rcx,%rax,4),%rdx
add    %rcx,%rdx
lea    0xddb(%rip),%rsi
lea    0xddf(%rip),%r8
lea    0xdf9(%rip),%rcx
lea    0xde7(%rip),%rbp
lea    0xdd5(%rip),%rax
jmp    *%rdx
mov    (%rsp),%rdi
mov    0x20(%rsp),%rsi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1080 <add_byte_count@plt>
mov    0x28(%rsp),%rdi
lea    -0x1(%rdi),%eax
cmp    $0x6,%eax
ja     1884 <gm_encode+0x714>
lea    0xbcc(%rip),%rdx
movslq (%rdx,%rax,4),%rcx
add    %rdx,%rcx
movl   $0x0,0xc(%rsp)
lea    0xd07(%rip),%rsi
lea    0xd0e(%rip),%r8
lea    0xd31(%rip),%rdx
lea    0xd1c(%rip),%rbp
lea    0xd07(%rip),%rax
jmp    *%rcx
mov    (%rsp),%rdi
xor    %eax,%eax
call   1050 <concat@plt>
movslq %r12d,%rax
mov    (%rbx,%rax,4),%ecx
cmp    $0x100,%ecx
jl     14de <gm_encode+0x36e>
movzbl %ch,%eax
movzbl %cl,%ecx
lea    -0xa0(%rax),%edx
lea    (%rax,%rax,2),%esi
shl    $0x5,%esi
cmp    $0xa,%edx
lea    -0x3d00(%rsi,%rcx,1),%edx
mov    0x10(%rsp),%rdi
cmovb  %edx,%edi
add    $0xffffff50,%eax
cmp    $0x48,%eax
lea    -0x3f40(%rsi,%rcx,1),%eax
cmovae %edi,%eax
mov    %eax,%esi
jmp    17c1 <gm_encode+0x651>
mov    0x1c(%rsp),%edx
cmp    %edx,%r12d
jne    179e <gm_encode+0x62e>
mov    0x50(%rsp),%rax
mov    (%rbx,%rax,4),%esi
mov    $0x1e61,%eax
add    %eax,%esi
mov    %edx,%r12d
jmp    17c1 <gm_encode+0x651>
lea    -0x1(%rdi),%eax
cmp    $0x5,%eax
ja     11ff <gm_encode+0x8f>
lea    0xb77(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
lea    0xc45(%rip),%r8
lea    0xc76(%rip),%rcx
lea    0xc61(%rip),%rdx
lea    0xc4c(%rip),%rbp
lea    0xc37(%rip),%rax
jmp    *%rsi
mov    (%rsp),%r14
mov    %r14,%rdi
mov    %r8,%rsi
xor    %eax,%eax
call   1050 <concat@plt>
mov    0x1c(%rsp),%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rax,0x30(%rsp)
mov    %r14,%rdi
lea    0xcaf(%rip),%rsi
xor    %eax,%eax
call   1050 <concat@plt>
movabs $0x3000000030,%rax
mov    %rax,0x44(%rsp)
movl   $0x30,0x4c(%rsp)
mov    $0xffffffff,%eax
xor    %r13d,%r13d
mov    0x38(%rsp),%rdi
mov    0x10(%rsp),%r8
jmp    15ad <gm_encode+0x43d>
nop
mov    %ecx,%edi
cmp    $0x2,%r13d
jg     1619 <gm_encode+0x4a9>
cmp    %r15d,%r12d
jge    1619 <gm_encode+0x4a9>
movslq %r12d,%rdx
mov    (%rbx,%rdx,4),%ecx
lea    -0x30(%rcx),%esi
cmp    $0x9,%esi
ja     15cf <gm_encode+0x45f>
movslq %r13d,%r13
mov    %ecx,0x44(%rsp,%r13,4)
lea    0x1(%rdx),%r12d
add    $0x1,%r13d
mov    0x4(%rbx,%rdx,4),%ecx
lea    -0x2b(%rcx),%edx
cmp    $0x4,%edx
jb     15e0 <gm_encode+0x470>
cmp    $0x20,%ecx
jne    1610 <gm_encode+0x4a0>
nopl   0x0(%rax)
add    $0x1,%r12d
mov    %r13d,%eax
cmp    %ebp,%r12d
jge    15a0 <gm_encode+0x430>
movslq %r12d,%rdx
cmpl   $0x13,(%rbx,%rdx,4)
jne    15a0 <gm_encode+0x430>
cmpl   $0x10,0x4(%rbx,%rdx,4)
jne    15a0 <gm_encode+0x430>
add    $0x2,%r12d
mov    $0x13,%edi
mov    %r13d,%eax
cmp    $0x2,%r13d
jle    15a8 <gm_encode+0x438>
jmp    1619 <gm_encode+0x4a9>
mov    %edi,%ecx
cmp    %ebp,%r12d
jl     15ec <gm_encode+0x47c>
jmp    15a0 <gm_encode+0x430>
mov    %rdi,0x38(%rsp)
cmp    $0xffffffff,%eax
je     1826 <gm_encode+0x6b6>
mov    0x38(%rsp),%rcx
add    $0xffffffed,%ecx
cmp    $0x1b,%ecx
ja     180d <gm_encode+0x69d>
lea    0xa9d(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    $0xf,%r8d
jmp    180d <gm_encode+0x69d>
mov    (%rsp),%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1050 <concat@plt>
movslq %r12d,%r14
mov    (%rbx,%r14,4),%esi
cmp    $0x20,%esi
je     16a6 <gm_encode+0x536>
lea    -0x7b(%rsi),%eax
cmp    $0xffffffe5,%eax
ja     16a6 <gm_encode+0x536>
lea    -0x5b(%rsi),%eax
cmp    $0xffffffe5,%eax
ja     16a6 <gm_encode+0x536>
lea    -0x3a(%rsi),%eax
cmp    $0xfffffff6,%eax
jae    16a6 <gm_encode+0x536>
mov    (%rsp),%rbp
mov    %rbp,%rdi
lea    0xbd4(%rip),%rsi
xor    %eax,%eax
call   1050 <concat@plt>
mov    (%rbx,%r14,4),%esi
mov    %rbp,%rdi
jmp    1775 <gm_encode+0x605>
lea    0xb7c(%rip),%rdi
xor    %eax,%eax
call   1070 <posn@plt>
mov    (%rsp),%rdi
mov    %rax,0x10(%rsp)
mov    %eax,%esi
mov    $0x20,%edx
jmp    17cf <gm_encode+0x65f>
mov    (%rsp),%rbp
mov    %rbp,%rdi
mov    %rcx,%rsi
xor    %eax,%eax
call   1050 <concat@plt>
mov    0xc(%rsp),%r14d
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    %rax,0x20(%rsp)
mov    %rbp,%rdi
lea    0xb29(%rip),%rsi
xor    %eax,%eax
call   1050 <concat@plt>
cmp    $0x200,%r14d
je     12c6 <gm_encode+0x156>
jmp    130c <gm_encode+0x19c>
mov    (%rsp),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <concat@plt>
movslq %r12d,%rbp
mov    (%rbx,%rbp,4),%esi
cmp    $0x20,%esi
je     1730 <gm_encode+0x5c0>
lea    -0x61(%rsi),%eax
cmp    $0x19,%eax
ja     175a <gm_encode+0x5ea>
lea    0xb14(%rip),%rdi
jmp    1785 <gm_encode+0x615>
mov    (%rsp),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <concat@plt>
movslq %r12d,%rbp
mov    (%rbx,%rbp,4),%esi
cmp    $0x20,%esi
je     177e <gm_encode+0x60e>
lea    -0x41(%rsi),%eax
cmp    $0x19,%eax
jbe    177e <gm_encode+0x60e>
mov    (%rsp),%r14
mov    %r14,%rdi
lea    0xa5f(%rip),%rsi
xor    %eax,%eax
call   1050 <concat@plt>
mov    (%rbx,%rbp,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1090 <add_shift_char@plt>
jmp    17d6 <gm_encode+0x666>
lea    0xaed(%rip),%rdi
xor    %eax,%eax
call   1070 <posn@plt>
mov    (%rsp),%rdi
mov    %rax,0x10(%rsp)
mov    %eax,%esi
mov    $0x10,%edx
jmp    17cf <gm_encode+0x65f>
cmp    $0x13,%ecx
jne    17df <gm_encode+0x66f>
lea    0x1(%r12),%ecx
cmpl   $0x10,0x4(%rbx,%rax,4)
mov    $0x1e60,%eax
mov    0x10(%rsp),%rsi
cmove  %eax,%esi
cmovne %r12d,%ecx
mov    %ecx,%r12d
mov    (%rsp),%rdi
mov    %rsi,0x10(%rsp)
mov    $0x1000,%edx
xor    %eax,%eax
call   1030 <diran@plt>
add    $0x1,%r12d
jmp    1860 <gm_encode+0x6f0>
mov    (%rsp),%rdi
mov    0x10(%rsp),%rsi
jmp    17c5 <gm_encode+0x655>
xor    %r8d,%r8d
jmp    180d <gm_encode+0x69d>
mov    $0x3,%r8d
jmp    180d <gm_encode+0x69d>
mov    $0xc,%r8d
jmp    180d <gm_encode+0x69d>
mov    $0x6,%r8d
jmp    180d <gm_encode+0x69d>
mov    $0x9,%r8d
lea    (%rax,%r8,1),%esi
add    $0x3e8,%esi
mov    %r14,%rdi
mov    $0x200,%edx
xor    %eax,%eax
call   1030 <diran@plt>
imul   $0x64,0x44(%rsp),%eax
mov    0x48(%rsp),%ecx
mov    0x4c(%rsp),%edx
lea    (%rcx,%rcx,4),%ecx
lea    (%rax,%rcx,2),%eax
lea    -0x14d0(%rdx,%rax,1),%esi
mov    %r14,%rdi
mov    %rsi,0x10(%rsp)
mov    $0x200,%edx
xor    %eax,%eax
call   1030 <diran@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rsp),%rdi
call   1040 <strlen@plt>
cmp    $0x23e7,%rax
ja     1891 <gm_encode+0x721>
mov    0x28(%rsp),%rcx
mov    %ecx,%r14d
cmp    %r15d,%r12d
jl     11e0 <gm_encode+0x70>
jmp    189b <gm_encode+0x72b>
movl   $0x0,0xc(%rsp)
jmp    11ff <gm_encode+0x8f>
mov    $0x5,%eax
jmp    1998 <gm_encode+0x828>
add    $0xffffffff,%ecx
cmp    $0x6,%ecx
mov    (%rsp),%r14
ja     192e <gm_encode+0x7be>
lea    0x9dc(%rip),%rsi
lea    0x893(%rip),%rax
movslq (%rax,%rcx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
lea    0x8ea(%rip),%rsi
jmp    1924 <gm_encode+0x7b4>
mov    %r14,%rdi
mov    0x20(%rsp),%rsi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1080 <add_byte_count@plt>
lea    0x9b2(%rip),%rsi
jmp    1924 <gm_encode+0x7b4>
add    $0xffffffff,%r13d
lea    0x9aa(%rip),%rsi
cmp    $0x2,%r13d
ja     1924 <gm_encode+0x7b4>
shl    $0x3,%r13d
mov    $0x303031,%eax
mov    %r13d,%ecx
shr    %cl,%eax
mov    $0x303130,%edx
shr    %cl,%edx
movslq 0x30(%rsp),%rcx
mov    %al,(%r14,%rcx,1)
mov    %dl,0x1(%r14,%rcx,1)
jmp    1924 <gm_encode+0x7b4>
lea    0x983(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <concat@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %rax,%rbx
movabs $0x2492492492492493,%rcx
49 92 24
mul    %rcx
mov    %rbx,%rax
sub    %rdx,%rax
shr    %rax
add    %rdx,%rax
shr    $0x2,%rax
lea    0x0(,%rax,8),%ecx
sub    %ecx,%eax
add    %eax,%ebx
je     1982 <gm_encode+0x812>
xor    $0x7,%ebx
je     1982 <gm_encode+0x812>
lea    0x92b(%rip),%rbp
nop
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <concat@plt>
add    $0xffffffff,%ebx
jne    1970 <gm_encode+0x800>
mov    %r14,%rdi
call   1040 <strlen@plt>
xor    %ecx,%ecx
cmp    $0x23e8,%rax
setae  %cl
lea    (%rcx,%rcx,4),%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [5 x i8] c"1010\00"
@.str.2 = [5 x i8] c"0001\00"
@.str.3 = [5 x i8] c"0010\00"
@.str.4 = [5 x i8] c"0011\00"
@.str.5 = [5 x i8] c"0100\00"
@.str.6 = [5 x i8] c"0101\00"
@.str.7 = [5 x i8] c"0111\00"
@.str.8 = [14 x i8] c"1111111100001\00"
@.str.9 = [14 x i8] c"1111111100010\00"
@.str.10 = [14 x i8] c"1111111100011\00"
@.str.11 = [14 x i8] c"1111111100100\00"
@.str.12 = [14 x i8] c"1111111100101\00"
@.str.13 = [11 x i8] c"1111111011\00"
@.str.14 = [11 x i8] c"1111111100\00"
@.str.15 = [11 x i8] c"1111111101\00"
@.str.16 = [11 x i8] c"1111111110\00"
@.str.17 = [11 x i8] c"1111111111\00"
@.str.18 = [6 x i8] c"11100\00"
@.str.19 = [6 x i8] c"11101\00"
@.str.20 = [6 x i8] c"11110\00"
@.str.21 = [8 x i8] c"1111100\00"
@.str.22 = [8 x i8] c"1111110\00"
@.str.23 = [11 x i8] c"1111110001\00"
@.str.24 = [11 x i8] c"1111110010\00"
@.str.25 = [11 x i8] c"1111110011\00"
@.str.26 = [11 x i8] c"1111110100\00"
@.str.27 = [11 x i8] c"1111110111\00"
@.str.28 = [6 x i8] c"CHIN \00"
@.str.29 = [6 x i8] c"NUMB \00"
@.str.30 = [6 x i8] c"LOWR \00"
@.str.31 = [6 x i8] c"UPPR \00"
@.str.32 = [6 x i8] c"MIXD \00"
@.str.33 = [6 x i8] c"BYTE \00"
@.str.34 = [6 x i8] c"[%d] \00"
@.str.35 = [3 x i8] c"XX\00"
@.str.36 = [10 x i8] c"LLLLLLLLL\00"
@.str.37 = [62 x i8] c"0123456789ABCDEFGHIJKLMOPRSTUVWXYZabcdefghijklmnopqrstuvwxyz \00"
@.str.38 = [11 x i8] c"1111110110\00"
@.str.39 = [28 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZ \00"
@.str.40 = [8 x i8] c"1111101\00"
@.str.41 = [28 x i8] c"abcdefghijklmnopqrstuvwxyz \00"
@.str.42 = [14 x i8] c"1111111100000\00"
@.str.43 = [11 x i8] c"1111111010\00"
@.str.44 = [6 x i8] c"11011\00"
@.str.45 = [11 x i8] c"1111110000\00"
@.str.46 = [5 x i8] c"0000\00"
@.str.47 = [2 x i8] c"0\00"
define i32 @gm_encode(i32* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca [3 x i32]
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
store i32* %0, i32** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i32 0, i32* %14
store i32 0, i32* %18
store i32 0, i32* %21
store i32 0, i32* %23
store i32 0, i32* %24
store i32 0, i32* %25
%28 = load i8*, i8** %8
%29 = call i8* @strcpy(i8* %28, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %13
store i32 0, i32* %22
%30 = load i32, i32* %9
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %4
%33 = load i8*, i8** %8
%34 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %35
35: ; preds = %32, %4
br label %36
36: ; preds = %764, %35
%37 = load i32*, i32** %6
%38 = load i32, i32* %7
%39 = load i32, i32* %10
%40 = load i32, i32* %11
%41 = call i32 (i32*, i32, i32, i32, ...) bitcast (i32 (...)* @seek_forward to i32 (i32*, i32, i32, i32, ...)*)(i32* %37, i32 %38, i32 %39, i32 %40)
store i32 %41, i32* %12
%42 = load i32, i32* %12
%43 = load i32, i32* %11
%44 = icmp ne i32 %42, %43
br i1 %44, label %45, label %213
45: ; preds = %36
%46 = load i32, i32* %11
switch i32 %46, label %194 [
i32 0, label %47
i32 7, label %68
i32 1, label %86
i32 2, label %136
i32 3, label %136
i32 4, label %154
i32 6, label %172
]
47: ; preds = %45
%48 = load i32, i32* %12
switch i32 %48, label %67 [
i32 7, label %49
i32 1, label %52
i32 2, label %55
i32 3, label %58
i32 4, label %61
i32 6, label %64
]
49: ; preds = %47
%50 = load i8*, i8** %8
%51 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %50, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %67
52: ; preds = %47
%53 = load i8*, i8** %8
%54 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %67
55: ; preds = %47
%56 = load i8*, i8** %8
%57 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %56, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %67
58: ; preds = %47
%59 = load i8*, i8** %8
%60 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %59, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %67
61: ; preds = %47
%62 = load i8*, i8** %8
%63 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %62, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %67
64: ; preds = %47
%65 = load i8*, i8** %8
%66 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %65, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %67
67: ; preds = %47, %64, %61, %58, %55, %52, %49
br label %194
68: ; preds = %45
%69 = load i32, i32* %12
switch i32 %69, label %85 [
i32 1, label %70
i32 2, label %73
i32 3, label %76
i32 4, label %79
i32 6, label %82
]
70: ; preds = %68
%71 = load i8*, i8** %8
%72 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %71, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %85
73: ; preds = %68
%74 = load i8*, i8** %8
%75 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %74, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
br label %85
76: ; preds = %68
%77 = load i8*, i8** %8
%78 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %77, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0))
br label %85
79: ; preds = %68
%80 = load i8*, i8** %8
%81 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %80, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
br label %85
82: ; preds = %68
%83 = load i8*, i8** %8
%84 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %83, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
br label %85
85: ; preds = %68, %82, %79, %76, %73, %70
br label %194
86: ; preds = %45
%87 = load i32, i32* %18
switch i32 %87, label %118 [
i32 1, label %88
i32 2, label %98
i32 3, label %108
]
88: ; preds = %86
%89 = load i8*, i8** %8
%90 = load i32, i32* %22
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds i8, i8* %89, i64 %91
store i8 49, i8* %92
%93 = load i8*, i8** %8
%94 = load i32, i32* %22
%95 = add nsw i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i8, i8* %93, i64 %96
store i8 48, i8* %97
br label %118
98: ; preds = %86
%99 = load i8*, i8** %8
%100 = load i32, i32* %22
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i8, i8* %99, i64 %101
store i8 48, i8* %102
%103 = load i8*, i8** %8
%104 = load i32, i32* %22
%105 = add nsw i32 %104, 1
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8, i8* %103, i64 %106
store i8 49, i8* %107
br label %118
108: ; preds = %86
%109 = load i8*, i8** %8
%110 = load i32, i32* %22
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds i8, i8* %109, i64 %111
store i8 48, i8* %112
%113 = load i8*, i8** %8
%114 = load i32, i32* %22
%115 = add nsw i32 %114, 1
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds i8, i8* %113, i64 %116
store i8 48, i8* %117
br label %118
118: ; preds = %86, %108, %98, %88
%119 = load i32, i32* %12
switch i32 %119, label %135 [
i32 7, label %120
i32 2, label %123
i32 3, label %126
i32 4, label %129
i32 6, label %132
]
120: ; preds = %118
%121 = load i8*, i8** %8
%122 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %121, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0))
br label %135
123: ; preds = %118
%124 = load i8*, i8** %8
%125 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %124, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0))
br label %135
126: ; preds = %118
%127 = load i8*, i8** %8
%128 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %127, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0))
br label %135
129: ; preds = %118
%130 = load i8*, i8** %8
%131 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %130, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0))
br label %135
132: ; preds = %118
%133 = load i8*, i8** %8
%134 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %133, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
br label %135
135: ; preds = %118, %132, %129, %126, %123, %120
br label %194
136: ; preds = %45, %45
%137 = load i32, i32* %12
switch i32 %137, label %153 [
i32 7, label %138
i32 1, label %141
i32 2, label %144
i32 3, label %144
i32 4, label %147
i32 6, label %150
]
138: ; preds = %136
%139 = load i8*, i8** %8
%140 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %139, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
br label %153
141: ; preds = %136
%142 = load i8*, i8** %8
%143 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %142, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
br label %153
144: ; preds = %136, %136
%145 = load i8*, i8** %8
%146 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %145, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
br label %153
147: ; preds = %136
%148 = load i8*, i8** %8
%149 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %148, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0))
br label %153
150: ; preds = %136
%151 = load i8*, i8** %8
%152 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %151, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0))
br label %153
153: ; preds = %136, %150, %147, %144, %141, %138
br label %194
154: ; preds = %45
%155 = load i32, i32* %12
switch i32 %155, label %171 [
i32 7, label %156
i32 1, label %159
i32 2, label %162
i32 3, label %165
i32 6, label %168
]
156: ; preds = %154
%157 = load i8*, i8** %8
%158 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %157, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0))
br label %171
159: ; preds = %154
%160 = load i8*, i8** %8
%161 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %160, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0))
br label %171
162: ; preds = %154
%163 = load i8*, i8** %8
%164 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %163, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0))
br label %171
165: ; preds = %154
%166 = load i8*, i8** %8
%167 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %166, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0))
br label %171
168: ; preds = %154
%169 = load i8*, i8** %8
%170 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %169, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0))
br label %171
171: ; preds = %154, %168, %165, %162, %159, %156
br label %194
172: ; preds = %45
%173 = load i8*, i8** %8
%174 = load i32, i32* %24
%175 = load i32, i32* %25
%176 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @add_byte_count to i32 (i8*, i32, i32, ...)*)(i8* %173, i32 %174, i32 %175)
store i32 0, i32* %25
%177 = load i32, i32* %12
switch i32 %177, label %193 [
i32 7, label %178
i32 1, label %181
i32 2, label %184
i32 3, label %187
i32 4, label %190
]
178: ; preds = %172
%179 = load i8*, i8** %8
%180 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %179, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %193
181: ; preds = %172
%182 = load i8*, i8** %8
%183 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %182, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %193
184: ; preds = %172
%185 = load i8*, i8** %8
%186 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %185, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %193
187: ; preds = %172
%188 = load i8*, i8** %8
%189 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %188, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %193
190: ; preds = %172
%191 = load i8*, i8** %8
%192 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %191, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %193
193: ; preds = %172, %190, %187, %184, %181, %178
br label %194
194: ; preds = %45, %193, %171, %153, %135, %85, %67
%195 = load i32, i32* %23
%196 = icmp ne i32 %195, 0
br i1 %196, label %197, label %212
197: ; preds = %194
%198 = load i32, i32* %12
switch i32 %198, label %211 [
i32 7, label %199
i32 1, label %201
i32 2, label %203
i32 3, label %205
i32 4, label %207
i32 6, label %209
]
199: ; preds = %197
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0))
br label %211
201: ; preds = %197
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.29, i64 0, i64 0))
br label %211
203: ; preds = %197
%204 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0))
br label %211
205: ; preds = %197
%206 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0))
br label %211
207: ; preds = %197
%208 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0))
br label %211
209: ; preds = %197
%210 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.33, i64 0, i64 0))
br label %211
211: ; preds = %197, %209, %207, %205, %203, %201, %199
br label %212
212: ; preds = %211, %194
br label %213
213: ; preds = %212, %36
%214 = load i32, i32* %11
store i32 %214, i32* %13
%215 = load i32, i32* %12
store i32 %215, i32* %11
%216 = load i32, i32* %11
switch i32 %216, label %758 [
i32 7, label %217
i32 1, label %374
i32 6, label %519
i32 4, label %563
i32 3, label %648
i32 2, label %703
]
217: ; preds = %213
store i32 0, i32* %17
%218 = load i32*, i32** %6
%219 = load i32, i32* %10
%220 = sext i32 %219 to i64
%221 = getelementptr inbounds i32, i32* %218, i64 %220
%222 = load i32, i32* %221
%223 = icmp sgt i32 %222, 255
br i1 %223, label %224, label %265
224: ; preds = %217
%225 = load i32*, i32** %6
%226 = load i32, i32* %10
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds i32, i32* %225, i64 %227
%229 = load i32, i32* %228
%230 = ashr i32 %229, 8
%231 = and i32 %230, 255
store i32 %231, i32* %15
%232 = load i32*, i32** %6
%233 = load i32, i32* %10
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds i32, i32* %232, i64 %234
%236 = load i32, i32* %235
%237 = and i32 %236, 255
store i32 %237, i32* %16
%238 = load i32, i32* %15
%239 = icmp sge i32 %238, 160
br i1 %239, label %240, label %250
240: ; preds = %224
%241 = load i32, i32* %15
%242 = icmp sle i32 %241, 169
br i1 %242, label %243, label %250
243: ; preds = %240
%244 = load i32, i32* %15
%245 = sub nsw i32 %244, 161
%246 = mul nsw i32 96, %245
%247 = load i32, i32* %16
%248 = sub nsw i32 %247, 160
%249 = add nsw i32 %246, %248
store i32 %249, i32* %14
br label %250
250: ; preds = %243, %240, %224
%251 = load i32, i32* %15
%252 = icmp sge i32 %251, 176
br i1 %252, label %253, label %264
253: ; preds = %250
%254 = load i32, i32* %15
%255 = icmp sle i32 %254, 247
br i1 %255, label %256, label %264
256: ; preds = %253
%257 = load i32, i32* %15
%258 = sub nsw i32 %257, 176
%259 = add nsw i32 %258, 9
%260 = mul nsw i32 96, %259
%261 = load i32, i32* %16
%262 = sub nsw i32 %261, 160
%263 = add nsw i32 %260, %262
store i32 %263, i32* %14
br label %264
264: ; preds = %256, %253, %250
store i32 1, i32* %17
br label %265
265: ; preds = %264, %217
%266 = load i32, i32* %17
%267 = icmp ne i32 %266, 0
br i1 %267, label %293, label %268
268: ; preds = %265
%269 = load i32, i32* %10
%270 = load i32, i32* %7
%271 = sub nsw i32 %270, 1
%272 = icmp ne i32 %269, %271
br i1 %272, label %273, label %292
273: ; preds = %268
%274 = load i32*, i32** %6
%275 = load i32, i32* %10
%276 = sext i32 %275 to i64
%277 = getelementptr inbounds i32, i32* %274, i64 %276
%278 = load i32, i32* %277
%279 = icmp eq i32 %278, 19
br i1 %279, label %280, label %291
280: ; preds = %273
%281 = load i32*, i32** %6
%282 = load i32, i32* %10
%283 = add nsw i32 %282, 1
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds i32, i32* %281, i64 %284
%286 = load i32, i32* %285
%287 = icmp eq i32 %286, 16
br i1 %287, label %288, label %291
288: ; preds = %280
store i32 7776, i32* %14
%289 = load i32, i32* %10
%290 = add nsw i32 %289, 1
store i32 %290, i32* %10
br label %291
291: ; preds = %288, %280, %273
store i32 1, i32* %17
br label %292
292: ; preds = %291, %268
br label %293
293: ; preds = %292, %265
%294 = load i32, i32* %17
%295 = icmp ne i32 %294, 0
br i1 %295, label %352, label %296
296: ; preds = %293
%297 = load i32, i32* %10
%298 = load i32, i32* %7
%299 = sub nsw i32 %298, 1
%300 = icmp ne i32 %297, %299
br i1 %300, label %301, label %351
301: ; preds = %296
%302 = load i32*, i32** %6
%303 = load i32, i32* %10
%304 = sext i32 %303 to i64
%305 = getelementptr inbounds i32, i32* %302, i64 %304
%306 = load i32, i32* %305
%307 = icmp sge i32 %306, 48
br i1 %307, label %308, label %350
308: ; preds = %301
%309 = load i32*, i32** %6
%310 = load i32, i32* %10
%311 = sext i32 %310 to i64
%312 = getelementptr inbounds i32, i32* %309, i64 %311
%313 = load i32, i32* %312
%314 = icmp sle i32 %313, 57
br i1 %314, label %315, label %350
315: ; preds = %308
%316 = load i32*, i32** %6
%317 = load i32, i32* %10
%318 = add nsw i32 %317, 1
%319 = sext i32 %318 to i64
%320 = getelementptr inbounds i32, i32* %316, i64 %319
%321 = load i32, i32* %320
%322 = icmp sge i32 %321, 48
br i1 %322, label %323, label %350
323: ; preds = %315
%324 = load i32*, i32** %6
%325 = load i32, i32* %10
%326 = add nsw i32 %325, 1
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds i32, i32* %324, i64 %327
%329 = load i32, i32* %328
%330 = icmp sle i32 %329, 57
br i1 %330, label %331, label %350
331: ; preds = %323
%332 = load i32*, i32** %6
%333 = load i32, i32* %10
%334 = sext i32 %333 to i64
%335 = getelementptr inbounds i32, i32* %332, i64 %334
%336 = load i32, i32* %335
%337 = sub nsw i32 %336, 48
%338 = mul nsw i32 10, %337
%339 = add nsw i32 8033, %338
%340 = load i32*, i32** %6
%341 = load i32, i32* %10
%342 = add nsw i32 %341, 1
%343 = sext i32 %342 to i64
%344 = getelementptr inbounds i32, i32* %340, i64 %343
%345 = load i32, i32* %344
%346 = sub nsw i32 %345, 48
%347 = add nsw i32 %339, %346
store i32 %347, i32* %14
%348 = load i32, i32* %10
%349 = add nsw i32 %348, 1
store i32 %349, i32* %10
br label %350
350: ; preds = %331, %323, %315, %308, %301
br label %351
351: ; preds = %350, %296
br label %352
352: ; preds = %351, %293
%353 = load i32, i32* %17
%354 = icmp ne i32 %353, 0
br i1 %354, label %362, label %355
355: ; preds = %352
%356 = load i32*, i32** %6
%357 = load i32, i32* %10
%358 = sext i32 %357 to i64
%359 = getelementptr inbounds i32, i32* %356, i64 %358
%360 = load i32, i32* %359
%361 = add nsw i32 7777, %360
store i32 %361, i32* %14
br label %362
362: ; preds = %355, %352
%363 = load i32, i32* %23
%364 = icmp ne i32 %363, 0
br i1 %364, label %365, label %368
365: ; preds = %362
%366 = load i32, i32* %14
%367 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i32 %366)
br label %368
368: ; preds = %365, %362
%369 = load i8*, i8** %8
%370 = load i32, i32* %14
%371 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %369, i32 %370, i32 4096)
%372 = load i32, i32* %10
%373 = add nsw i32 %372, 1
store i32 %373, i32* %10
br label %758
374: ; preds = %213
%375 = load i32, i32* %13
%376 = load i32, i32* %11
%377 = icmp ne i32 %375, %376
br i1 %377, label %378, label %384
378: ; preds = %374
%379 = load i8*, i8** %8
%380 = call i64 @strlen(i8* %379)
%381 = trunc i64 %380 to i32
store i32 %381, i32* %22
%382 = load i8*, i8** %8
%383 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %382, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0))
br label %384
384: ; preds = %378, %374
store i32 0, i32* %18
store i32 -1, i32* %19
%385 = getelementptr inbounds [3 x i32], [3 x i32]* %20, i64 0, i64 0
store i32 48, i32* %385
%386 = getelementptr inbounds [3 x i32], [3 x i32]* %20, i64 0, i64 1
store i32 48, i32* %386
%387 = getelementptr inbounds [3 x i32], [3 x i32]* %20, i64 0, i64 2
store i32 48, i32* %387
br label %388
388: ; preds = %468, %384
%389 = load i32*, i32** %6
%390 = load i32, i32* %10
%391 = sext i32 %390 to i64
%392 = getelementptr inbounds i32, i32* %389, i64 %391
%393 = load i32, i32* %392
%394 = icmp sge i32 %393, 48
br i1 %394, label %395, label %415
395: ; preds = %388
%396 = load i32*, i32** %6
%397 = load i32, i32* %10
%398 = sext i32 %397 to i64
%399 = getelementptr inbounds i32, i32* %396, i64 %398
%400 = load i32, i32* %399
%401 = icmp sle i32 %400, 57
br i1 %401, label %402, label %415
402: ; preds = %395
%403 = load i32*, i32** %6
%404 = load i32, i32* %10
%405 = sext i32 %404 to i64
%406 = getelementptr inbounds i32, i32* %403, i64 %405
%407 = load i32, i32* %406
%408 = load i32, i32* %18
%409 = sext i32 %408 to i64
%410 = getelementptr inbounds [3 x i32], [3 x i32]* %20, i64 0, i64 %409
store i32 %407, i32* %410
%411 = load i32, i32* %10
%412 = add nsw i32 %411, 1
store i32 %412, i32* %10
%413 = load i32, i32* %18
%414 = add nsw i32 %413, 1
store i32 %414, i32* %18
br label %415
415: ; preds = %402, %395, %388
%416 = load i32*, i32** %6
%417 = load i32, i32* %10
%418 = sext i32 %417 to i64
%419 = getelementptr inbounds i32, i32* %416, i64 %418
%420 = load i32, i32* %419
switch i32 %420, label %430 [
i32 32, label %421
i32 43, label %421
i32 45, label %421
i32 46, label %421
i32 44, label %421
]
421: ; preds = %415, %415, %415, %415, %415
%422 = load i32*, i32** %6
%423 = load i32, i32* %10
%424 = sext i32 %423 to i64
%425 = getelementptr inbounds i32, i32* %422, i64 %424
%426 = load i32, i32* %425
store i32 %426, i32* %21
%427 = load i32, i32* %10
%428 = add nsw i32 %427, 1
store i32 %428, i32* %10
%429 = load i32, i32* %18
store i32 %429, i32* %19
br label %430
430: ; preds = %415, %421
%431 = load i32, i32* %10
%432 = load i32, i32* %7
%433 = sub nsw i32 %432, 1
%434 = icmp slt i32 %431, %433
br i1 %434, label %435, label %460
435: ; preds = %430
%436 = load i32*, i32** %6
%437 = load i32, i32* %10
%438 = sext i32 %437 to i64
%439 = getelementptr inbounds i32, i32* %436, i64 %438
%440 = load i32, i32* %439
%441 = icmp eq i32 %440, 19
br i1 %441, label %442, label %459
442: ; preds = %435
%443 = load i32*, i32** %6
%444 = load i32, i32* %10
%445 = add nsw i32 %444, 1
%446 = sext i32 %445 to i64
%447 = getelementptr inbounds i32, i32* %443, i64 %446
%448 = load i32, i32* %447
%449 = icmp eq i32 %448, 16
br i1 %449, label %450, label %459
450: ; preds = %442
%451 = load i32*, i32** %6
%452 = load i32, i32* %10
%453 = sext i32 %452 to i64
%454 = getelementptr inbounds i32, i32* %451, i64 %453
%455 = load i32, i32* %454
store i32 %455, i32* %21
%456 = load i32, i32* %10
%457 = add nsw i32 %456, 2
store i32 %457, i32* %10
%458 = load i32, i32* %18
store i32 %458, i32* %19
br label %459
459: ; preds = %450, %442, %435
br label %460
460: ; preds = %459, %430
br label %461
461: ; preds = %460
%462 = load i32, i32* %18
%463 = icmp slt i32 %462, 3
br i1 %463, label %464, label %468
464: ; preds = %461
%465 = load i32, i32* %10
%466 = load i32, i32* %7
%467 = icmp slt i32 %465, %466
br label %468
468: ; preds = %464, %461
%469 = phi i1 [ false, %461 ], [ %467, %464 ]
br i1 %469, label %388, label %470
470: ; preds = %468
%471 = load i32, i32* %19
%472 = icmp ne i32 %471, -1
br i1 %472, label %473, label %496
473: ; preds = %470
%474 = load i32, i32* %21
switch i32 %474, label %481 [
i32 32, label %475
i32 43, label %476
i32 45, label %477
i32 46, label %478
i32 44, label %479
i32 19, label %480
]
475: ; preds = %473
store i32 0, i32* %14
br label %481
476: ; preds = %473
store i32 3, i32* %14
br label %481
477: ; preds = %473
store i32 6, i32* %14
br label %481
478: ; preds = %473
store i32 9, i32* %14
br label %481
479: ; preds = %473
store i32 12, i32* %14
br label %481
480: ; preds = %473
store i32 15, i32* %14
br label %481
481: ; preds = %473, %480, %479, %478, %477, %476, %475
%482 = load i32, i32* %19
%483 = load i32, i32* %14
%484 = add nsw i32 %483, %482
store i32 %484, i32* %14
%485 = load i32, i32* %14
%486 = add nsw i32 %485, 1000
store i32 %486, i32* %14
%487 = load i32, i32* %23
%488 = icmp ne i32 %487, 0
br i1 %488, label %489, label %492
489: ; preds = %481
%490 = load i32, i32* %14
%491 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i32 %490)
br label %492
492: ; preds = %489, %481
%493 = load i8*, i8** %8
%494 = load i32, i32* %14
%495 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %493, i32 %494, i32 512)
br label %496
496: ; preds = %492, %470
%497 = getelementptr inbounds [3 x i32], [3 x i32]* %20, i64 0, i64 0
%498 = load i32, i32* %497
%499 = sub nsw i32 %498, 48
%500 = mul nsw i32 100, %499
%501 = getelementptr inbounds [3 x i32], [3 x i32]* %20, i64 0, i64 1
%502 = load i32, i32* %501
%503 = sub nsw i32 %502, 48
%504 = mul nsw i32 10, %503
%505 = add nsw i32 %500, %504
%506 = getelementptr inbounds [3 x i32], [3 x i32]* %20, i64 0, i64 2
%507 = load i32, i32* %506
%508 = sub nsw i32 %507, 48
%509 = add nsw i32 %505, %508
store i32 %509, i32* %14
%510 = load i32, i32* %23
%511 = icmp ne i32 %510, 0
br i1 %511, label %512, label %515
512: ; preds = %496
%513 = load i32, i32* %14
%514 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i32 %513)
br label %515
515: ; preds = %512, %496
%516 = load i8*, i8** %8
%517 = load i32, i32* %14
%518 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %516, i32 %517, i32 512)
br label %758
519: ; preds = %213
%520 = load i32, i32* %13
%521 = load i32, i32* %11
%522 = icmp ne i32 %520, %521
br i1 %522, label %523, label %529
523: ; preds = %519
%524 = load i8*, i8** %8
%525 = call i64 @strlen(i8* %524)
%526 = trunc i64 %525 to i32
store i32 %526, i32* %24
%527 = load i8*, i8** %8
%528 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %527, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.36, i64 0, i64 0))
br label %529
529: ; preds = %523, %519
%530 = load i32, i32* %25
%531 = icmp eq i32 %530, 512
br i1 %531, label %532, label %544
532: ; preds = %529
%533 = load i8*, i8** %8
%534 = load i32, i32* %24
%535 = load i32, i32* %25
%536 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @add_byte_count to i32 (i8*, i32, i32, ...)*)(i8* %533, i32 %534, i32 %535)
%537 = load i8*, i8** %8
%538 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %537, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%539 = load i8*, i8** %8
%540 = call i64 @strlen(i8* %539)
%541 = trunc i64 %540 to i32
store i32 %541, i32* %24
%542 = load i8*, i8** %8
%543 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %542, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.36, i64 0, i64 0))
store i32 0, i32* %25
br label %544
544: ; preds = %532, %529
%545 = load i32*, i32** %6
%546 = load i32, i32* %10
%547 = sext i32 %546 to i64
%548 = getelementptr inbounds i32, i32* %545, i64 %547
%549 = load i32, i32* %548
store i32 %549, i32* %14
%550 = load i32, i32* %23
%551 = icmp ne i32 %550, 0
br i1 %551, label %552, label %555
552: ; preds = %544
%553 = load i32, i32* %14
%554 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i32 %553)
br label %555
555: ; preds = %552, %544
%556 = load i8*, i8** %8
%557 = load i32, i32* %14
%558 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %556, i32 %557, i32 128)
%559 = load i32, i32* %10
%560 = add nsw i32 %559, 1
store i32 %560, i32* %10
%561 = load i32, i32* %25
%562 = add nsw i32 %561, 1
store i32 %562, i32* %25
br label %758
563: ; preds = %213
store i32 1, i32* %26
%564 = load i32*, i32** %6
%565 = load i32, i32* %10
%566 = sext i32 %565 to i64
%567 = getelementptr inbounds i32, i32* %564, i64 %566
%568 = load i32, i32* %567
%569 = icmp sge i32 %568, 48
br i1 %569, label %570, label %578
570: ; preds = %563
%571 = load i32*, i32** %6
%572 = load i32, i32* %10
%573 = sext i32 %572 to i64
%574 = getelementptr inbounds i32, i32* %571, i64 %573
%575 = load i32, i32* %574
%576 = icmp sle i32 %575, 57
br i1 %576, label %577, label %578
577: ; preds = %570
store i32 0, i32* %26
br label %578
578: ; preds = %577, %570, %563
%579 = load i32*, i32** %6
%580 = load i32, i32* %10
%581 = sext i32 %580 to i64
%582 = getelementptr inbounds i32, i32* %579, i64 %581
%583 = load i32, i32* %582
%584 = icmp sge i32 %583, 65
br i1 %584, label %585, label %593
585: ; preds = %578
%586 = load i32*, i32** %6
%587 = load i32, i32* %10
%588 = sext i32 %587 to i64
%589 = getelementptr inbounds i32, i32* %586, i64 %588
%590 = load i32, i32* %589
%591 = icmp sle i32 %590, 90
br i1 %591, label %592, label %593
592: ; preds = %585
store i32 0, i32* %26
br label %593
593: ; preds = %592, %585, %578
%594 = load i32*, i32** %6
%595 = load i32, i32* %10
%596 = sext i32 %595 to i64
%597 = getelementptr inbounds i32, i32* %594, i64 %596
%598 = load i32, i32* %597
%599 = icmp sge i32 %598, 97
br i1 %599, label %600, label %608
600: ; preds = %593
%601 = load i32*, i32** %6
%602 = load i32, i32* %10
%603 = sext i32 %602 to i64
%604 = getelementptr inbounds i32, i32* %601, i64 %603
%605 = load i32, i32* %604
%606 = icmp sle i32 %605, 122
br i1 %606, label %607, label %608
607: ; preds = %600
store i32 0, i32* %26
br label %608
608: ; preds = %607, %600, %593
%609 = load i32*, i32** %6
%610 = load i32, i32* %10
%611 = sext i32 %610 to i64
%612 = getelementptr inbounds i32, i32* %609, i64 %611
%613 = load i32, i32* %612
%614 = icmp eq i32 %613, 32
br i1 %614, label %615, label %616
615: ; preds = %608
store i32 0, i32* %26
br label %616
616: ; preds = %615, %608
%617 = load i32, i32* %26
%618 = icmp eq i32 %617, 0
br i1 %618, label %619, label %635
619: ; preds = %616
%620 = load i32*, i32** %6
%621 = load i32, i32* %10
%622 = sext i32 %621 to i64
%623 = getelementptr inbounds i32, i32* %620, i64 %622
%624 = load i32, i32* %623
%625 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @posn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.37, i64 0, i64 0), i32 %624)
store i32 %625, i32* %14
%626 = load i32, i32* %23
%627 = icmp ne i32 %626, 0
br i1 %627, label %628, label %631
628: ; preds = %619
%629 = load i32, i32* %14
%630 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i32 %629)
br label %631
631: ; preds = %628, %619
%632 = load i8*, i8** %8
%633 = load i32, i32* %14
%634 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %632, i32 %633, i32 32)
br label %645
635: ; preds = %616
%636 = load i8*, i8** %8
%637 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %636, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.38, i64 0, i64 0))
%638 = load i8*, i8** %8
%639 = load i32*, i32** %6
%640 = load i32, i32* %10
%641 = sext i32 %640 to i64
%642 = getelementptr inbounds i32, i32* %639, i64 %641
%643 = load i32, i32* %642
%644 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @add_shift_char to i32 (i8*, i32, ...)*)(i8* %638, i32 %643)
br label %645
645: ; preds = %635, %631
%646 = load i32, i32* %10
%647 = add nsw i32 %646, 1
store i32 %647, i32* %10
br label %758
648: ; preds = %213
store i32 1, i32* %26
%649 = load i32*, i32** %6
%650 = load i32, i32* %10
%651 = sext i32 %650 to i64
%652 = getelementptr inbounds i32, i32* %649, i64 %651
%653 = load i32, i32* %652
%654 = icmp sge i32 %653, 65
br i1 %654, label %655, label %663
655: ; preds = %648
%656 = load i32*, i32** %6
%657 = load i32, i32* %10
%658 = sext i32 %657 to i64
%659 = getelementptr inbounds i32, i32* %656, i64 %658
%660 = load i32, i32* %659
%661 = icmp sle i32 %660, 90
br i1 %661, label %662, label %663
662: ; preds = %655
store i32 0, i32* %26
br label %663
663: ; preds = %662, %655, %648
%664 = load i32*, i32** %6
%665 = load i32, i32* %10
%666 = sext i32 %665 to i64
%667 = getelementptr inbounds i32, i32* %664, i64 %666
%668 = load i32, i32* %667
%669 = icmp eq i32 %668, 32
br i1 %669, label %670, label %671
670: ; preds = %663
store i32 0, i32* %26
br label %671
671: ; preds = %670, %663
%672 = load i32, i32* %26
%673 = icmp eq i32 %672, 0
br i1 %673, label %674, label %690
674: ; preds = %671
%675 = load i32*, i32** %6
%676 = load i32, i32* %10
%677 = sext i32 %676 to i64
%678 = getelementptr inbounds i32, i32* %675, i64 %677
%679 = load i32, i32* %678
%680 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @posn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.39, i64 0, i64 0), i32 %679)
store i32 %680, i32* %14
%681 = load i32, i32* %23
%682 = icmp ne i32 %681, 0
br i1 %682, label %683, label %686
683: ; preds = %674
%684 = load i32, i32* %14
%685 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i32 %684)
br label %686
686: ; preds = %683, %674
%687 = load i8*, i8** %8
%688 = load i32, i32* %14
%689 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %687, i32 %688, i32 16)
br label %700
690: ; preds = %671
%691 = load i8*, i8** %8
%692 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %691, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.40, i64 0, i64 0))
%693 = load i8*, i8** %8
%694 = load i32*, i32** %6
%695 = load i32, i32* %10
%696 = sext i32 %695 to i64
%697 = getelementptr inbounds i32, i32* %694, i64 %696
%698 = load i32, i32* %697
%699 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @add_shift_char to i32 (i8*, i32, ...)*)(i8* %693, i32 %698)
br label %700
700: ; preds = %690, %686
%701 = load i32, i32* %10
%702 = add nsw i32 %701, 1
store i32 %702, i32* %10
br label %758
703: ; preds = %213
store i32 1, i32* %26
%704 = load i32*, i32** %6
%705 = load i32, i32* %10
%706 = sext i32 %705 to i64
%707 = getelementptr inbounds i32, i32* %704, i64 %706
%708 = load i32, i32* %707
%709 = icmp sge i32 %708, 97
br i1 %709, label %710, label %718
710: ; preds = %703
%711 = load i32*, i32** %6
%712 = load i32, i32* %10
%713 = sext i32 %712 to i64
%714 = getelementptr inbounds i32, i32* %711, i64 %713
%715 = load i32, i32* %714
%716 = icmp sle i32 %715, 122
br i1 %716, label %717, label %718
717: ; preds = %710
store i32 0, i32* %26
br label %718
718: ; preds = %717, %710, %703
%719 = load i32*, i32** %6
%720 = load i32, i32* %10
%721 = sext i32 %720 to i64
%722 = getelementptr inbounds i32, i32* %719, i64 %721
%723 = load i32, i32* %722
%724 = icmp eq i32 %723, 32
br i1 %724, label %725, label %726
725: ; preds = %718
store i32 0, i32* %26
br label %726
726: ; preds = %725, %718
%727 = load i32, i32* %26
%728 = icmp eq i32 %727, 0
br i1 %728, label %729, label %745
729: ; preds = %726
%730 = load i32*, i32** %6
%731 = load i32, i32* %10
%732 = sext i32 %731 to i64
%733 = getelementptr inbounds i32, i32* %730, i64 %732
%734 = load i32, i32* %733
%735 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @posn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.41, i64 0, i64 0), i32 %734)
store i32 %735, i32* %14
%736 = load i32, i32* %23
%737 = icmp ne i32 %736, 0
br i1 %737, label %738, label %741
738: ; preds = %729
%739 = load i32, i32* %14
%740 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i32 %739)
br label %741
741: ; preds = %738, %729
%742 = load i8*, i8** %8
%743 = load i32, i32* %14
%744 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %742, i32 %743, i32 16)
br label %755
745: ; preds = %726
%746 = load i8*, i8** %8
%747 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %746, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.40, i64 0, i64 0))
%748 = load i8*, i8** %8
%749 = load i32*, i32** %6
%750 = load i32, i32* %10
%751 = sext i32 %750 to i64
%752 = getelementptr inbounds i32, i32* %749, i64 %751
%753 = load i32, i32* %752
%754 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @add_shift_char to i32 (i8*, i32, ...)*)(i8* %748, i32 %753)
br label %755
755: ; preds = %745, %741
%756 = load i32, i32* %10
%757 = add nsw i32 %756, 1
store i32 %757, i32* %10
br label %758
758: ; preds = %213, %755, %700, %645, %555, %515, %368
%759 = load i8*, i8** %8
%760 = call i64 @strlen(i8* %759)
%761 = icmp ugt i64 %760, 9191
br i1 %761, label %762, label %763
762: ; preds = %758
store i32 5, i32* %5
br label %855
763: ; preds = %758
br label %764
764: ; preds = %763
%765 = load i32, i32* %10
%766 = load i32, i32* %7
%767 = icmp slt i32 %765, %766
br i1 %767, label %36, label %768
768: ; preds = %764
%769 = load i32, i32* %11
%770 = icmp eq i32 %769, 1
br i1 %770, label %771, label %804
771: ; preds = %768
%772 = load i32, i32* %18
switch i32 %772, label %803 [
i32 1, label %773
i32 2, label %783
i32 3, label %793
]
773: ; preds = %771
%774 = load i8*, i8** %8
%775 = load i32, i32* %22
%776 = sext i32 %775 to i64
%777 = getelementptr inbounds i8, i8* %774, i64 %776
store i8 49, i8* %777
%778 = load i8*, i8** %8
%779 = load i32, i32* %22
%780 = add nsw i32 %779, 1
%781 = sext i32 %780 to i64
%782 = getelementptr inbounds i8, i8* %778, i64 %781
store i8 48, i8* %782
br label %803
783: ; preds = %771
%784 = load i8*, i8** %8
%785 = load i32, i32* %22
%786 = sext i32 %785 to i64
%787 = getelementptr inbounds i8, i8* %784, i64 %786
store i8 48, i8* %787
%788 = load i8*, i8** %8
%789 = load i32, i32* %22
%790 = add nsw i32 %789, 1
%791 = sext i32 %790 to i64
%792 = getelementptr inbounds i8, i8* %788, i64 %791
store i8 49, i8* %792
br label %803
793: ; preds = %771
%794 = load i8*, i8** %8
%795 = load i32, i32* %22
%796 = sext i32 %795 to i64
%797 = getelementptr inbounds i8, i8* %794, i64 %796
store i8 48, i8* %797
%798 = load i8*, i8** %8
%799 = load i32, i32* %22
%800 = add nsw i32 %799, 1
%801 = sext i32 %800 to i64
%802 = getelementptr inbounds i8, i8* %798, i64 %801
store i8 48, i8* %802
br label %803
803: ; preds = %771, %793, %783, %773
br label %804
804: ; preds = %803, %768
%805 = load i32, i32* %11
%806 = icmp eq i32 %805, 6
br i1 %806, label %807, label %812
807: ; preds = %804
%808 = load i8*, i8** %8
%809 = load i32, i32* %24
%810 = load i32, i32* %25
%811 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @add_byte_count to i32 (i8*, i32, i32, ...)*)(i8* %808, i32 %809, i32 %810)
br label %812
812: ; preds = %807, %804
%813 = load i32, i32* %11
switch i32 %813, label %829 [
i32 7, label %814
i32 1, label %817
i32 2, label %820
i32 3, label %820
i32 4, label %823
i32 6, label %826
]
814: ; preds = %812
%815 = load i8*, i8** %8
%816 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %815, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.42, i64 0, i64 0))
br label %829
817: ; preds = %812
%818 = load i8*, i8** %8
%819 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %818, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.43, i64 0, i64 0))
br label %829
820: ; preds = %812, %812
%821 = load i8*, i8** %8
%822 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %821, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.44, i64 0, i64 0))
br label %829
823: ; preds = %812
%824 = load i8*, i8** %8
%825 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %824, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.45, i64 0, i64 0))
br label %829
826: ; preds = %812
%827 = load i8*, i8** %8
%828 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %827, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.46, i64 0, i64 0))
br label %829
829: ; preds = %812, %826, %823, %820, %817, %814
%830 = load i8*, i8** %8
%831 = call i64 @strlen(i8* %830)
%832 = urem i64 %831, 7
%833 = sub i64 7, %832
%834 = trunc i64 %833 to i32
store i32 %834, i32* %18
%835 = load i32, i32* %18
%836 = icmp eq i32 %835, 7
br i1 %836, label %837, label %838
837: ; preds = %829
store i32 0, i32* %18
br label %838
838: ; preds = %837, %829
store i32 0, i32* %27
br label %839
839: ; preds = %846, %838
%840 = load i32, i32* %27
%841 = load i32, i32* %18
%842 = icmp slt i32 %840, %841
br i1 %842, label %843, label %849
843: ; preds = %839
%844 = load i8*, i8** %8
%845 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %844, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.47, i64 0, i64 0))
br label %846
846: ; preds = %843
%847 = load i32, i32* %27
%848 = add nsw i32 %847, 1
store i32 %848, i32* %27
br label %839
849: ; preds = %839
%850 = load i8*, i8** %8
%851 = call i64 @strlen(i8* %850)
%852 = icmp ugt i64 %851, 9191
br i1 %852, label %853, label %854
853: ; preds = %849
store i32 5, i32* %5
br label %855
854: ; preds = %849
store i32 0, i32* %5
br label %855
855: ; preds = %854, %853, %762
%856 = load i32, i32* %5
ret i32 %856
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"1010\00"
@.str.2 = [5 x i8] c"0001\00"
@.str.3 = [5 x i8] c"0010\00"
@.str.4 = [5 x i8] c"0011\00"
@.str.5 = [5 x i8] c"0100\00"
@.str.6 = [5 x i8] c"0101\00"
@.str.7 = [5 x i8] c"0111\00"
@.str.8 = [14 x i8] c"1111111100001\00"
@.str.9 = [14 x i8] c"1111111100010\00"
@.str.10 = [14 x i8] c"1111111100011\00"
@.str.11 = [14 x i8] c"1111111100100\00"
@.str.12 = [14 x i8] c"1111111100101\00"
@.str.13 = [11 x i8] c"1111111011\00"
@.str.14 = [11 x i8] c"1111111100\00"
@.str.15 = [11 x i8] c"1111111101\00"
@.str.16 = [11 x i8] c"1111111110\00"
@.str.17 = [11 x i8] c"1111111111\00"
@.str.18 = [6 x i8] c"11100\00"
@.str.19 = [6 x i8] c"11101\00"
@.str.20 = [6 x i8] c"11110\00"
@.str.21 = [8 x i8] c"1111100\00"
@.str.22 = [8 x i8] c"1111110\00"
@.str.23 = [11 x i8] c"1111110001\00"
@.str.24 = [11 x i8] c"1111110010\00"
@.str.25 = [11 x i8] c"1111110011\00"
@.str.26 = [11 x i8] c"1111110100\00"
@.str.27 = [11 x i8] c"1111110111\00"
@.str.35 = [3 x i8] c"XX\00"
@.str.36 = [10 x i8] c"LLLLLLLLL\00"
@.str.37 = [62 x i8] c"0123456789ABCDEFGHIJKLMOPRSTUVWXYZabcdefghijklmnopqrstuvwxyz \00"
@.str.38 = [11 x i8] c"1111110110\00"
@.str.39 = [28 x i8] c"ABCDEFGHIJKLMNOPQRSTUVWXYZ \00"
@.str.40 = [8 x i8] c"1111101\00"
@.str.41 = [28 x i8] c"abcdefghijklmnopqrstuvwxyz \00"
@.str.42 = [14 x i8] c"1111111100000\00"
@.str.43 = [11 x i8] c"1111111010\00"
@.str.44 = [6 x i8] c"11011\00"
@.str.45 = [11 x i8] c"1111110000\00"
@.str.46 = [5 x i8] c"0000\00"
@.str.47 = [2 x i8] c"0\00"
define i32 @gm_encode(i32* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca [3 x i32]
%6 = bitcast [3 x i32]* %5 to i8*
store i8 0, i8* %2
%7 = icmp eq i32 %3, 0
br i1 %7, label %10, label %8
8: ; preds = %4
%9 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %8, %4
%11 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 0
%12 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 1
%13 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 2
%14 = add nsw i32 %1, -1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32, i32* %0, i64 %15
br label %17
17: ; preds = %300, %10
%18 = phi i32 [ 0, %10 ], [ %291, %300 ]
%19 = phi i32 [ 0, %10 ], [ %26, %300 ]
%20 = phi i32 [ 0, %10 ], [ %292, %300 ]
%21 = phi i32 [ 0, %10 ], [ %293, %300 ]
%22 = phi i32 [ 0, %10 ], [ %294, %300 ]
%23 = phi i32 [ 0, %10 ], [ %295, %300 ]
%24 = phi i32 [ 0, %10 ], [ %296, %300 ]
%25 = phi i32 [ 0, %10 ], [ %297, %300 ]
%26 = tail call i32 (i32*, i32, i32, i32, ...) bitcast (i32 (...)* @seek_forward to i32 (i32*, i32, i32, i32, ...)*)(i32* %0, i32 %1, i32 %20, i32 %19)
%27 = icmp eq i32 %26, %19
br i1 %27, label %55, label %28
28: ; preds = %17
switch i32 %19, label %55 [
i32 0, label %29
i32 7, label %30
i32 1, label %31
i32 2, label %49
i32 3, label %49
i32 4, label %52
i32 6, label %53
]
29: ; preds = %28
switch i32 %26, label %55 [
i32 7, label %57
i32 1, label %102
i32 2, label %267
i32 3, label %244
i32 4, label %215
i32 6, label %188
]
30: ; preds = %28
switch i32 %26, label %55 [
i32 1, label %102
i32 2, label %267
i32 3, label %244
i32 4, label %215
i32 6, label %188
]
31: ; preds = %28
%32 = add i32 %21, -1
%33 = icmp ult i32 %32, 3
br i1 %33, label %34, label %48
34: ; preds = %31
%35 = trunc i32 %32 to i24
%36 = shl i24 %35, 3
%37 = lshr i24 3158065, %36
%38 = trunc i24 %37 to i8
%39 = trunc i32 %32 to i24
%40 = shl i24 %39, 3
%41 = lshr i24 3158320, %40
%42 = trunc i24 %41 to i8
%43 = sext i32 %23 to i64
%44 = getelementptr inbounds i8, i8* %2, i64 %43
store i8 %38, i8* %44
%45 = add nsw i32 %23, 1
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds i8, i8* %2, i64 %46
store i8 %42, i8* %47
br label %48
48: ; preds = %31, %34
switch i32 %26, label %55 [
i32 7, label %57
i32 2, label %267
i32 3, label %244
i32 4, label %215
i32 6, label %188
]
49: ; preds = %28, %28
switch i32 %26, label %55 [
i32 7, label %57
i32 1, label %102
i32 2, label %50
i32 3, label %50
i32 4, label %215
i32 6, label %188
]
50: ; preds = %49, %49
%51 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
br label %55
52: ; preds = %28
switch i32 %26, label %55 [
i32 7, label %57
i32 1, label %102
i32 2, label %267
i32 3, label %244
i32 6, label %188
]
53: ; preds = %28
%54 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @add_byte_count to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %24, i32 %25)
switch i32 %26, label %55 [
i32 7, label %57
i32 1, label %102
i32 2, label %267
i32 3, label %244
i32 4, label %215
]
55: ; preds = %28, %29, %30, %48, %49, %50, %52, %53, %17
%56 = phi i32 [ %25, %17 ], [ %25, %28 ], [ 0, %53 ], [ %25, %52 ], [ %25, %49 ], [ %25, %50 ], [ %25, %48 ], [ %25, %30 ], [ %25, %29 ]
switch i32 %26, label %290 [
i32 7, label %61
i32 1, label %101
i32 6, label %187
i32 4, label %219
i32 3, label %248
i32 2, label %271
]
57: ; preds = %53, %52, %49, %48, %29
%58 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %29 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), %48 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), %49 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), %52 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), %53 ]
%59 = phi i32 [ %25, %29 ], [ %25, %48 ], [ %25, %49 ], [ %25, %52 ], [ 0, %53 ]
%60 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* %58)
br label %61
61: ; preds = %57, %55
%62 = phi i32 [ %56, %55 ], [ %59, %57 ]
%63 = sext i32 %20 to i64
%64 = getelementptr inbounds i32, i32* %0, i64 %63
%65 = load i32, i32* %64
%66 = icmp sgt i32 %65, 255
br i1 %66, label %67, label %81
67: ; preds = %61
%68 = lshr i32 %65, 8
%69 = and i32 %68, 255
%70 = and i32 %65, 255
%71 = add nsw i32 %69, -160
%72 = icmp ult i32 %71, 10
%73 = mul nuw nsw i32 %69, 96
%74 = add nuw nsw i32 %73, %70
%75 = add nsw i32 %74, -15616
%76 = select i1 %72, i32 %75, i32 %18
%77 = add nsw i32 %69, -176
%78 = icmp ult i32 %77, 72
%79 = add nsw i32 %74, -16192
%80 = select i1 %78, i32 %79, i32 %76
br label %96
81: ; preds = %61
%82 = icmp eq i32 %20, %14
br i1 %82, label %93, label %83
83: ; preds = %81
%84 = icmp eq i32 %65, 19
br i1 %84, label %85, label %96
85: ; preds = %83
%86 = add nsw i32 %20, 1
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds i32, i32* %0, i64 %87
%89 = load i32, i32* %88
%90 = icmp eq i32 %89, 16
%91 = select i1 %90, i32 7776, i32 %18
%92 = select i1 %90, i32 %86, i32 %20
br label %96
93: ; preds = %81
%94 = load i32, i32* %16
%95 = add nsw i32 %94, 7777
br label %96
96: ; preds = %67, %83, %85, %93
%97 = phi i32 [ %14, %93 ], [ %20, %67 ], [ %92, %85 ], [ %20, %83 ]
%98 = phi i32 [ %95, %93 ], [ %80, %67 ], [ %91, %85 ], [ %18, %83 ]
%99 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %98, i32 4096)
%100 = add nsw i32 %97, 1
br label %290
101: ; preds = %55
br i1 %27, label %111, label %106
102: ; preds = %53, %52, %49, %30, %29
%103 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %29 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), %30 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), %49 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), %52 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), %53 ]
%104 = phi i32 [ %25, %29 ], [ %25, %30 ], [ %25, %49 ], [ %25, %52 ], [ 0, %53 ]
%105 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* %103)
br label %106
106: ; preds = %102, %101
%107 = phi i32 [ %56, %101 ], [ %104, %102 ]
%108 = tail call i64 @strlen(i8* %2)
%109 = trunc i64 %108 to i32
%110 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0))
br label %111
111: ; preds = %106, %101
%112 = phi i32 [ %107, %106 ], [ %56, %101 ]
%113 = phi i32 [ %109, %106 ], [ %23, %101 ]
store i32 48, i32* %11
store i32 48, i32* %12
store i32 48, i32* %13
br label %114
114: ; preds = %156, %111
%115 = phi i32 [ %20, %111 ], [ %157, %156 ]
%116 = phi i32 [ 0, %111 ], [ %135, %156 ]
%117 = phi i32 [ -1, %111 ], [ %158, %156 ]
%118 = phi i32 [ %22, %111 ], [ %159, %156 ]
%119 = sext i32 %115 to i64
%120 = getelementptr inbounds i32, i32* %0, i64 %119
%121 = load i32, i32* %120
%122 = add i32 %121, -48
%123 = icmp ult i32 %122, 10
br i1 %123, label %124, label %132
124: ; preds = %114
%125 = sext i32 %116 to i64
%126 = getelementptr inbounds [3 x i32], [3 x i32]* %5, i64 0, i64 %125
store i32 %121, i32* %126
%127 = add nsw i32 %115, 1
%128 = add nsw i32 %116, 1
%129 = sext i32 %127 to i64
%130 = getelementptr inbounds i32, i32* %0, i64 %129
%131 = load i32, i32* %130
br label %132
132: ; preds = %124, %114
%133 = phi i32 [ %131, %124 ], [ %121, %114 ]
%134 = phi i32 [ %127, %124 ], [ %115, %114 ]
%135 = phi i32 [ %128, %124 ], [ %116, %114 ]
switch i32 %133, label %138 [
i32 32, label %136
i32 43, label %136
i32 45, label %136
i32 46, label %136
i32 44, label %136
]
136: ; preds = %132, %132, %132, %132, %132
%137 = add nsw i32 %134, 1
br label %138
138: ; preds = %132, %136
%139 = phi i32 [ %134, %132 ], [ %137, %136 ]
%140 = phi i32 [ %117, %132 ], [ %135, %136 ]
%141 = phi i32 [ %118, %132 ], [ %133, %136 ]
%142 = icmp slt i32 %139, %14
br i1 %142, label %143, label %156
143: ; preds = %138
%144 = sext i32 %139 to i64
%145 = getelementptr inbounds i32, i32* %0, i64 %144
%146 = load i32, i32* %145
%147 = icmp eq i32 %146, 19
br i1 %147, label %148, label %156
148: ; preds = %143
%149 = add nsw i32 %139, 1
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i32, i32* %0, i64 %150
%152 = load i32, i32* %151
%153 = icmp eq i32 %152, 16
br i1 %153, label %154, label %156
154: ; preds = %148
%155 = add nsw i32 %139, 2
br label %156
156: ; preds = %138, %154, %148, %143
%157 = phi i32 [ %155, %154 ], [ %139, %148 ], [ %139, %143 ], [ %139, %138 ]
%158 = phi i32 [ %135, %154 ], [ %140, %148 ], [ %140, %143 ], [ %140, %138 ]
%159 = phi i32 [ 19, %154 ], [ %141, %148 ], [ %141, %143 ], [ %141, %138 ]
%160 = icmp slt i32 %135, 3
%161 = icmp slt i32 %157, %1
%162 = select i1 %160, i1 %161, i1 false
br i1 %162, label %114, label %163
163: ; preds = %156
%164 = icmp eq i32 %158, -1
br i1 %164, label %177, label %165
165: ; preds = %163
switch i32 %159, label %172 [
i32 32, label %166
i32 43, label %167
i32 45, label %168
i32 46, label %169
i32 44, label %170
i32 19, label %171
]
166: ; preds = %165
br label %172
167: ; preds = %165
br label %172
168: ; preds = %165
br label %172
169: ; preds = %165
br label %172
170: ; preds = %165
br label %172
171: ; preds = %165
br label %172
172: ; preds = %166, %167, %168, %169, %170, %171, %165
%173 = phi i32 [ %18, %165 ], [ 15, %171 ], [ 12, %170 ], [ 9, %169 ], [ 6, %168 ], [ 3, %167 ], [ 0, %166 ]
%174 = add i32 %158, 1000
%175 = add i32 %174, %173
%176 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %175, i32 512)
br label %177
177: ; preds = %172, %163
%178 = load i32, i32* %11
%179 = mul i32 %178, 100
%180 = load i32, i32* %12
%181 = mul i32 %180, 10
%182 = load i32, i32* %13
%183 = add i32 %179, -5328
%184 = add i32 %183, %181
%185 = add i32 %184, %182
%186 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %185, i32 512)
br label %290
187: ; preds = %55
br i1 %27, label %196, label %191
188: ; preds = %52, %49, %48, %30, %29
%189 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), %29 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), %30 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), %48 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.22, i64 0, i64 0), %49 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.27, i64 0, i64 0), %52 ]
%190 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* %189)
br label %191
191: ; preds = %188, %187
%192 = phi i32 [ %56, %187 ], [ %25, %188 ]
%193 = tail call i64 @strlen(i8* %2)
%194 = trunc i64 %193 to i32
%195 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.36, i64 0, i64 0))
br label %196
196: ; preds = %191, %187
%197 = phi i32 [ %192, %191 ], [ %56, %187 ]
%198 = phi i32 [ %194, %191 ], [ %24, %187 ]
%199 = icmp eq i32 %197, 512
br i1 %199, label %200, label %206
200: ; preds = %196
%201 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @add_byte_count to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %198, i32 512)
%202 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%203 = tail call i64 @strlen(i8* %2)
%204 = trunc i64 %203 to i32
%205 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.36, i64 0, i64 0))
br label %206
206: ; preds = %200, %196
%207 = phi i32 [ %204, %200 ], [ %198, %196 ]
%208 = phi i32 [ 0, %200 ], [ %197, %196 ]
%209 = sext i32 %20 to i64
%210 = getelementptr inbounds i32, i32* %0, i64 %209
%211 = load i32, i32* %210
%212 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %211, i32 128)
%213 = add nsw i32 %20, 1
%214 = add nsw i32 %208, 1
br label %290
215: ; preds = %53, %49, %48, %30, %29
%216 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %29 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0), %30 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), %48 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0), %49 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), %53 ]
%217 = phi i32 [ %25, %29 ], [ %25, %30 ], [ %25, %48 ], [ %25, %49 ], [ 0, %53 ]
%218 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* %216)
br label %219
219: ; preds = %215, %55
%220 = phi i32 [ %56, %55 ], [ %217, %215 ]
%221 = sext i32 %20 to i64
%222 = getelementptr inbounds i32, i32* %0, i64 %221
%223 = load i32, i32* %222
%224 = add i32 %223, -58
%225 = icmp ult i32 %224, -10
%226 = add i32 %223, -91
%227 = icmp ult i32 %226, -26
%228 = and i1 %227, %225
%229 = add i32 %223, -123
%230 = icmp ult i32 %229, -26
%231 = icmp ne i32 %223, 32
%232 = and i1 %231, %230
%233 = select i1 %232, i1 %228, i1 false
br i1 %233, label %237, label %234
234: ; preds = %219
%235 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @posn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.37, i64 0, i64 0), i32 %223)
%236 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %235, i32 32)
br label %241
237: ; preds = %219
%238 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.38, i64 0, i64 0))
%239 = load i32, i32* %222
%240 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @add_shift_char to i32 (i8*, i32, ...)*)(i8* %2, i32 %239)
br label %241
241: ; preds = %237, %234
%242 = phi i32 [ %235, %234 ], [ %18, %237 ]
%243 = add nsw i32 %20, 1
br label %290
244: ; preds = %53, %52, %48, %30, %29
%245 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %29 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), %30 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), %48 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.26, i64 0, i64 0), %52 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %53 ]
%246 = phi i32 [ %25, %29 ], [ %25, %30 ], [ %25, %48 ], [ %25, %52 ], [ 0, %53 ]
%247 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* %245)
br label %248
248: ; preds = %244, %55
%249 = phi i32 [ %56, %55 ], [ %246, %244 ]
%250 = sext i32 %20 to i64
%251 = getelementptr inbounds i32, i32* %0, i64 %250
%252 = load i32, i32* %251
%253 = add i32 %252, -65
%254 = icmp ult i32 %253, 26
%255 = icmp eq i32 %252, 32
%256 = or i1 %255, %254
br i1 %256, label %257, label %260
257: ; preds = %248
%258 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @posn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.39, i64 0, i64 0), i32 %252)
%259 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %258, i32 16)
br label %264
260: ; preds = %248
%261 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.40, i64 0, i64 0))
%262 = load i32, i32* %251
%263 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @add_shift_char to i32 (i8*, i32, ...)*)(i8* %2, i32 %262)
br label %264
264: ; preds = %260, %257
%265 = phi i32 [ %258, %257 ], [ %18, %260 ]
%266 = add nsw i32 %20, 1
br label %290
267: ; preds = %53, %52, %48, %30, %29
%268 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), %29 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0), %30 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), %48 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), %52 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), %53 ]
%269 = phi i32 [ %25, %29 ], [ %25, %30 ], [ %25, %48 ], [ %25, %52 ], [ 0, %53 ]
%270 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* %268)
br label %271
271: ; preds = %267, %55
%272 = phi i32 [ %56, %55 ], [ %269, %267 ]
%273 = sext i32 %20 to i64
%274 = getelementptr inbounds i32, i32* %0, i64 %273
%275 = load i32, i32* %274
%276 = add i32 %275, -97
%277 = icmp ult i32 %276, 26
%278 = icmp eq i32 %275, 32
%279 = or i1 %278, %277
br i1 %279, label %280, label %283
280: ; preds = %271
%281 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @posn to i32 (i8*, i32, ...)*)(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.41, i64 0, i64 0), i32 %275)
%282 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @diran to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %281, i32 16)
br label %287
283: ; preds = %271
%284 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.40, i64 0, i64 0))
%285 = load i32, i32* %274
%286 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @add_shift_char to i32 (i8*, i32, ...)*)(i8* %2, i32 %285)
br label %287
287: ; preds = %283, %280
%288 = phi i32 [ %281, %280 ], [ %18, %283 ]
%289 = add nsw i32 %20, 1
br label %290
290: ; preds = %55, %287, %264, %241, %206, %177, %96
%291 = phi i32 [ %18, %55 ], [ %288, %287 ], [ %265, %264 ], [ %242, %241 ], [ %211, %206 ], [ %185, %177 ], [ %98, %96 ]
%292 = phi i32 [ %20, %55 ], [ %289, %287 ], [ %266, %264 ], [ %243, %241 ], [ %213, %206 ], [ %157, %177 ], [ %100, %96 ]
%293 = phi i32 [ %21, %55 ], [ %21, %287 ], [ %21, %264 ], [ %21, %241 ], [ %21, %206 ], [ %135, %177 ], [ %21, %96 ]
%294 = phi i32 [ %22, %55 ], [ %22, %287 ], [ %22, %264 ], [ %22, %241 ], [ %22, %206 ], [ %159, %177 ], [ %22, %96 ]
%295 = phi i32 [ %23, %55 ], [ %23, %287 ], [ %23, %264 ], [ %23, %241 ], [ %23, %206 ], [ %113, %177 ], [ %23, %96 ]
%296 = phi i32 [ %24, %55 ], [ %24, %287 ], [ %24, %264 ], [ %24, %241 ], [ %207, %206 ], [ %24, %177 ], [ %24, %96 ]
%297 = phi i32 [ %56, %55 ], [ %272, %287 ], [ %249, %264 ], [ %220, %241 ], [ %214, %206 ], [ %112, %177 ], [ %62, %96 ]
%298 = tail call i64 @strlen(i8* %2)
%299 = icmp ugt i64 %298, 9191
br i1 %299, label %344, label %300
300: ; preds = %290
%301 = icmp slt i32 %292, %1
br i1 %301, label %17, label %302
302: ; preds = %300
switch i32 %26, label %327 [
i32 1, label %303
i32 6, label %322
i32 7, label %324
i32 2, label %320
i32 3, label %320
i32 4, label %321
]
303: ; preds = %302
%304 = add i32 %293, -1
%305 = icmp ult i32 %304, 3
br i1 %305, label %306, label %324
306: ; preds = %303
%307 = trunc i32 %304 to i24
%308 = shl i24 %307, 3
%309 = lshr i24 3158065, %308
%310 = trunc i24 %309 to i8
%311 = trunc i32 %304 to i24
%312 = shl i24 %311, 3
%313 = lshr i24 3158320, %312
%314 = trunc i24 %313 to i8
%315 = sext i32 %295 to i64
%316 = getelementptr inbounds i8, i8* %2, i64 %315
store i8 %310, i8* %316
%317 = add nsw i32 %295, 1
%318 = sext i32 %317 to i64
%319 = getelementptr inbounds i8, i8* %2, i64 %318
store i8 %314, i8* %319
br label %324
320: ; preds = %302, %302
br label %324
321: ; preds = %302
br label %324
322: ; preds = %302
%323 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @add_byte_count to i32 (i8*, i32, i32, ...)*)(i8* %2, i32 %296, i32 %297)
br label %324
324: ; preds = %303, %306, %302, %320, %321, %322
%325 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.46, i64 0, i64 0), %322 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.45, i64 0, i64 0), %321 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.44, i64 0, i64 0), %320 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.42, i64 0, i64 0), %302 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.43, i64 0, i64 0), %306 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.43, i64 0, i64 0), %303 ]
%326 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* %325)
br label %327
327: ; preds = %324, %302
%328 = tail call i64 @strlen(i8* %2)
%329 = urem i64 %328, 7
%330 = trunc i64 %329 to i32
%331 = xor i32 %330, 7
%332 = icmp eq i32 %330, 0
%333 = icmp eq i32 %331, 0
%334 = or i1 %332, %333
br i1 %334, label %340, label %335
335: ; preds = %327, %335
%336 = phi i32 [ %338, %335 ], [ 0, %327 ]
%337 = tail call i32 (i8*, i8*, ...) bitcast (i32 (...)* @concat to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.47, i64 0, i64 0))
%338 = add nuw nsw i32 %336, 1
%339 = icmp eq i32 %338, %331
br i1 %339, label %340, label %335
340: ; preds = %335, %327
%341 = tail call i64 @strlen(i8* %2)
%342 = icmp ugt i64 %341, 9191
%343 = select i1 %342, i32 5, i32 0
br label %344
344: ; preds = %290, %340
%345 = phi i32 [ %343, %340 ], [ 5, %290 ]
ret i32 %345
}