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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ assert(int);
char *realloc(char *, size_t);
size_t strlen(char const *const);
int /*<<< orphan*/ strncasecmp(char const *, char *, int);
char *irc_html_to_irc(const char *const string) {
  static char *output = NULL;
  int o = 0;
  size_t l, i = 0;
  l = strlen(string);
  output = realloc(output, (l * 4) + 1);
  if (output == NULL)
    abort();
  while (i < l) {
    assert(o < ((l * 4) + 1));
    switch (string[i]) {
    case '&':
      if (!strncasecmp(&string[i], "&amp;", 5)) {
        output[o++] = '&';
        i += 5;
      } else if (!strncasecmp(&string[i], "&gt;", 4)) {
        output[o++] = '>';
        i += 4;
      } else if (!strncasecmp(&string[i], "&lt;", 4)) {
        output[o++] = '<';
        i += 4;
      } else if (!strncasecmp(&string[i], "&nbsp;", 6)) {
        output[o++] = ' ';
        i += 6;
      } else
        output[o++] = string[i++];
      break;
    case '<':
      if (!strncasecmp(&string[i], "<b>", 3)) {
        output[o++] = (char)2;
        i += 3;
      } else if (!strncasecmp(&string[i], "</b>", 4)) {
        output[o++] = (char)2;
        i += 4;
      } else if (!strncasecmp(&string[i], "<i>", 3)) {
        output[o++] = (char)22;
        i += 3;
      } else if (!strncasecmp(&string[i], "</i>", 4)) {
        output[o++] = (char)22;
        i += 4;
      } else if (!strncasecmp(&string[i], "<u>", 3)) {
        output[o++] = (char)31;
        i += 3;
      } else if (!strncasecmp(&string[i], "</u>", 4)) {
        output[o++] = (char)31;
        i += 4;
      } else if (!strncasecmp(&string[i], "<br>", 4)) {
        output[o++] = '\020';
        output[o++] = 'r';
        output[o++] = '\020';
        output[o++] = 'n';
        i += 4;
      } else
        output[o++] = string[i++];
      break;
    case '\r':
      output[o++] = '\020';
      output[o++] = 'r';
      i++;
      break;
    case '\n':
      output[o++] = '\020';
      output[o++] = 'n';
      i++;
      break;
    case '\020':
      output[o++] = '\020';
      output[o++] = '\020';
      i++;
      break;
    default:
      output[o++] = string[i++];
      break;
    }
  }
  assert(o <= ((l * 4) + 1));
  output[o] = '\0';
  return (output);
}


x86 assembly (clang, -O0):
<irc_html_to_irc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x18(%rbp)
mov    0x2ed1(%rip),%rdi
mov    -0x18(%rbp),%rsi
shl    $0x2,%rsi
add    $0x1,%rsi
call   1070 <realloc@plt>
mov    %rax,0x2eb9(%rip)
cmpq   $0x0,0x2eb1(%rip)
jne    11ac <irc_html_to_irc+0x5c>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11b1 <irc_html_to_irc+0x61>
mov    -0x20(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    175c <irc_html_to_irc+0x60c>
movslq -0xc(%rbp),%rax
mov    -0x18(%rbp),%rcx
lea    0x1(,%rcx,4),%rcx
sub    %rcx,%rax
setb   %al
movzbl %al,%edi
call   1050 <assert@plt>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
mov    %eax,-0x24(%rbp)
sub    $0xa,%eax
je     16a3 <irc_html_to_irc+0x553>
jmp    11fa <irc_html_to_irc+0xaa>
mov    -0x24(%rbp),%eax
sub    $0xd,%eax
je     1660 <irc_html_to_irc+0x510>
jmp    120b <irc_html_to_irc+0xbb>
mov    -0x24(%rbp),%eax
sub    $0x10,%eax
je     16e6 <irc_html_to_irc+0x596>
jmp    121c <irc_html_to_irc+0xcc>
mov    -0x24(%rbp),%eax
sub    $0x26,%eax
je     123e <irc_html_to_irc+0xee>
jmp    122d <irc_html_to_irc+0xdd>
mov    -0x24(%rbp),%eax
sub    $0x3c,%eax
je     13b0 <irc_html_to_irc+0x260>
jmp    1729 <irc_html_to_irc+0x5d9>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xdb3(%rip),%rsi
mov    $0x5,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    128a <irc_html_to_irc+0x13a>
mov    0x2de9(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x26,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x5,%rax
mov    %rax,-0x20(%rbp)
jmp    13ab <irc_html_to_irc+0x25b>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xd6d(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    12d6 <irc_html_to_irc+0x186>
mov    0x2d9d(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x3e,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    13a6 <irc_html_to_irc+0x256>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xd26(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1322 <irc_html_to_irc+0x1d2>
mov    0x2d51(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x3c,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    13a1 <irc_html_to_irc+0x251>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xcdf(%rip),%rsi
mov    $0x6,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    136e <irc_html_to_irc+0x21e>
mov    0x2d05(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x20(%rbp)
jmp    139c <irc_html_to_irc+0x24c>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    (%rax,%rcx,1),%dl
mov    0x2cc5(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0xc(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    13a1 <irc_html_to_irc+0x251>
jmp    13a6 <irc_html_to_irc+0x256>
jmp    13ab <irc_html_to_irc+0x25b>
jmp    1757 <irc_html_to_irc+0x607>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xc58(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    13fc <irc_html_to_irc+0x2ac>
mov    0x2c77(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x2,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x20(%rbp)
jmp    165b <irc_html_to_irc+0x50b>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xc10(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1448 <irc_html_to_irc+0x2f8>
mov    0x2c2b(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x2,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    1656 <irc_html_to_irc+0x506>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xbc9(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1494 <irc_html_to_irc+0x344>
mov    0x2bdf(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x16,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x20(%rbp)
jmp    1651 <irc_html_to_irc+0x501>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xb81(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    14e0 <irc_html_to_irc+0x390>
mov    0x2b93(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x16,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    164c <irc_html_to_irc+0x4fc>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xb3a(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    152c <irc_html_to_irc+0x3dc>
mov    0x2b47(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x1f,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x20(%rbp)
jmp    1647 <irc_html_to_irc+0x4f7>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xaf2(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1578 <irc_html_to_irc+0x428>
mov    0x2afb(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x1f,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    1642 <irc_html_to_irc+0x4f2>
mov    -0x8(%rbp),%rdi
add    -0x20(%rbp),%rdi
lea    0xaab(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
cmp    $0x0,%eax
jne    160f <irc_html_to_irc+0x4bf>
mov    0x2aaf(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x10,(%rax,%rcx,1)
mov    0x2a96(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x72,(%rax,%rcx,1)
mov    0x2a7d(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x10,(%rax,%rcx,1)
mov    0x2a64(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x6e,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x20(%rbp)
jmp    163d <irc_html_to_irc+0x4ed>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    (%rax,%rcx,1),%dl
mov    0x2a24(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0xc(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    1642 <irc_html_to_irc+0x4f2>
jmp    1647 <irc_html_to_irc+0x4f7>
jmp    164c <irc_html_to_irc+0x4fc>
jmp    1651 <irc_html_to_irc+0x501>
jmp    1656 <irc_html_to_irc+0x506>
jmp    165b <irc_html_to_irc+0x50b>
jmp    1757 <irc_html_to_irc+0x607>
mov    0x29e9(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x10,(%rax,%rcx,1)
mov    0x29d0(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x72,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1757 <irc_html_to_irc+0x607>
mov    0x29a6(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x10,(%rax,%rcx,1)
mov    0x298d(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x6e,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1757 <irc_html_to_irc+0x607>
mov    0x2963(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x10,(%rax,%rcx,1)
mov    0x294a(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
movb   $0x10,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
jmp    1757 <irc_html_to_irc+0x607>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    (%rax,%rcx,1),%dl
mov    0x290a(%rip),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0xc(%rbp)
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
jmp    11b1 <irc_html_to_irc+0x61>
movslq -0xc(%rbp),%rax
mov    -0x18(%rbp),%rcx
shl    $0x2,%rcx
add    $0x1,%rcx
cmp    %rcx,%rax
setbe  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    0x28cd(%rip),%rax
movslq -0xc(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    0x28be(%rip),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<irc_html_to_irc>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <strlen@plt>
mov    %rax,%r15
mov    0x2ee3(%rip),%rdi
lea    0x1(,%rax,4),%rsi
mov    %rsi,(%rsp)
call   1070 <realloc@plt>
mov    %rax,0x2ecb(%rip)
test   %rax,%rax
je     14ab <irc_html_to_irc+0x35b>
test   %r15,%r15
je     147d <irc_html_to_irc+0x32d>
xor    %r12d,%r12d
xor    %eax,%eax
jmp    11be <irc_html_to_irc+0x6e>
mov    0x2eab(%rip),%rax
movw   $0x7210,0x0(%rbp,%rax,1)
add    $0x2,%ebp
add    $0x1,%r12
mov    %ebp,%eax
cmp    %r15,%r12
jae    147f <irc_html_to_irc+0x32f>
movslq %eax,%rbp
xor    %edi,%edi
cmp    %rbp,(%rsp)
seta   %dil
call   1050 <assert@plt>
lea    (%rbx,%r12,1),%r13
movzbl (%rbx,%r12,1),%r14d
movsbl %r14b,%eax
lea    -0xa(%rax),%ecx
cmp    $0x1c,%ecx
ja     1210 <irc_html_to_irc+0xc0>
lea    0xe14(%rip),%rdx
movslq (%rdx,%rcx,4),%rax
add    %rdx,%rax
jmp    *%rax
mov    0x2e54(%rip),%rax
movw   $0x6e10,0x0(%rbp,%rax,1)
jmp    11ac <irc_html_to_irc+0x5c>
cs nopw 0x0(%rax,%rax,1)
nop
cmp    $0x3c,%eax
jne    1380 <irc_html_to_irc+0x230>
mov    %r13,%rdi
lea    0xe68(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     13ae <irc_html_to_irc+0x25e>
mov    %r13,%rdi
lea    0xe50(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     13dc <irc_html_to_irc+0x28c>
mov    %r13,%rdi
lea    0xe39(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     140a <irc_html_to_irc+0x2ba>
mov    %r13,%rdi
lea    0xe21(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     1438 <irc_html_to_irc+0x2e8>
mov    %r13,%rdi
lea    0xe0a(%rip),%rsi
mov    $0x3,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     144f <irc_html_to_irc+0x2ff>
mov    %r13,%rdi
lea    0xdf2(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     1466 <irc_html_to_irc+0x316>
mov    %r13,%rdi
lea    0xddb(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
jne    1380 <irc_html_to_irc+0x230>
mov    0x2d6c(%rip),%rcx
movb   $0x10,0x0(%rbp,%rcx,1)
movw   $0x1072,0x1(%rbp,%rcx,1)
lea    0x4(%rbp),%eax
movb   $0x6e,0x3(%rbp,%rcx,1)
add    $0x4,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2d48(%rip),%rax
movw   $0x1010,0x0(%rbp,%rax,1)
jmp    11ac <irc_html_to_irc+0x5c>
mov    %r13,%rdi
lea    0xd56(%rip),%rsi
mov    $0x5,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     1397 <irc_html_to_irc+0x247>
mov    %r13,%rdi
lea    0xd44(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     13c5 <irc_html_to_irc+0x275>
mov    %r13,%rdi
lea    0xd2d(%rip),%rsi
mov    $0x4,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     13f3 <irc_html_to_irc+0x2a3>
mov    %r13,%rdi
lea    0xd16(%rip),%rsi
mov    $0x6,%edx
call   1060 <strncasecmp@plt>
test   %eax,%eax
je     1421 <irc_html_to_irc+0x2d1>
add    $0x1,%r12
mov    0x2cc5(%rip),%rcx
lea    0x1(%rbp),%eax
mov    %r14b,(%rcx,%rbp,1)
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2cb2(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x26,(%rcx,%rbp,1)
add    $0x5,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2c9b(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x2,(%rcx,%rbp,1)
add    $0x3,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2c84(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x3e,(%rcx,%rbp,1)
add    $0x4,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2c6d(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x2,(%rcx,%rbp,1)
add    $0x4,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2c56(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x3c,(%rcx,%rbp,1)
add    $0x4,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2c3f(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x16,(%rcx,%rbp,1)
add    $0x3,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2c28(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x20,(%rcx,%rbp,1)
add    $0x6,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2c11(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x16,(%rcx,%rbp,1)
add    $0x4,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2bfa(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x1f,(%rcx,%rbp,1)
add    $0x3,%r12
jmp    11b5 <irc_html_to_irc+0x65>
mov    0x2be3(%rip),%rcx
lea    0x1(%rbp),%eax
movb   $0x1f,(%rcx,%rbp,1)
add    $0x4,%r12
jmp    11b5 <irc_html_to_irc+0x65>
xor    %eax,%eax
movslq %eax,%rbx
xor    %edi,%edi
cmp    %rbx,(%rsp)
setae  %dil
call   1050 <assert@plt>
mov    0x2bb8(%rip),%rax
movb   $0x0,(%rax,%rbx,1)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1030 <abort@plt>

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

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