#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 */
long atol(char *);
int explodegophermapline(char *linebuff, char *itemtype, char *itemdesc,
                         char *itemselector, char *itemserver, long *itemport) {
  int x;
  char tmpstring[16];
  *itemtype = 0;
  itemdesc[0] = 0;
  itemselector[0] = 0;
  itemserver[0] = 0;
  *itemport = 0;
  if (*linebuff == 0) {
    *itemtype = 'i';
    return (0);
  }
  *itemtype = *linebuff;
  linebuff += 1;
  for (x = 0;;) {
    if (x == 1023)
      return (-1);
    if (*linebuff == '\t')
      break;
    if (*linebuff == 0)
      return (0);
    itemdesc[x] = *linebuff;
    itemdesc[++x] = 0;
    linebuff += 1;
  }
  linebuff += 1;
  for (x = 0;;) {
    if (x == 1023)
      return (-1);
    if (*linebuff == '\t')
      break;
    if (*linebuff == 0)
      return (0);
    itemselector[x] = *linebuff;
    itemselector[++x] = 0;
    linebuff += 1;
  }
  linebuff += 1;
  for (x = 0;;) {
    if (x == 63)
      return (-1);
    if (*linebuff == '\t')
      break;
    if (*linebuff == 0)
      return (0);
    itemserver[x] = *linebuff;
    itemserver[++x] = 0;
    linebuff += 1;
  }
  linebuff += 1;
  for (x = 0;;) {
    if (x == 8)
      return (-1);
    if (*linebuff == '\t')
      break;
    if (*linebuff == 0)
      break;
    tmpstring[x] = *linebuff;
    tmpstring[++x] = 0;
    linebuff += 1;
  }
  *itemport = atol(tmpstring);
  if ((*itemport < 1) || (*itemport > 65535))
    *itemport = 0;
  return (0);
}


x86 assembly (clang, -O0):
<explodegophermapline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x30(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x38(%rbp),%rax
movq   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    117a <explodegophermapline+0x6a>
mov    -0x18(%rbp),%rax
movb   $0x69,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1402 <explodegophermapline+0x2f2>
mov    -0x10(%rbp),%rax
mov    (%rax),%cl
mov    -0x18(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x3ff,-0x3c(%rbp)
jne    11b2 <explodegophermapline+0xa2>
movl   $0xffffffff,-0x4(%rbp)
jmp    1402 <explodegophermapline+0x2f2>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jne    11c7 <explodegophermapline+0xb7>
jmp    1219 <explodegophermapline+0x109>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    11e3 <explodegophermapline+0xd3>
movl   $0x0,-0x4(%rbp)
jmp    1402 <explodegophermapline+0x2f2>
mov    -0x10(%rbp),%rax
mov    (%rax),%dl
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x3c(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1199 <explodegophermapline+0x89>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x3ff,-0x3c(%rbp)
jne    1245 <explodegophermapline+0x135>
movl   $0xffffffff,-0x4(%rbp)
jmp    1402 <explodegophermapline+0x2f2>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jne    125a <explodegophermapline+0x14a>
jmp    12ac <explodegophermapline+0x19c>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1276 <explodegophermapline+0x166>
movl   $0x0,-0x4(%rbp)
jmp    1402 <explodegophermapline+0x2f2>
mov    -0x10(%rbp),%rax
mov    (%rax),%dl
mov    -0x28(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x28(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x3c(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    122c <explodegophermapline+0x11c>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x3f,-0x3c(%rbp)
jne    12d5 <explodegophermapline+0x1c5>
movl   $0xffffffff,-0x4(%rbp)
jmp    1402 <explodegophermapline+0x2f2>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jne    12ea <explodegophermapline+0x1da>
jmp    133c <explodegophermapline+0x22c>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1306 <explodegophermapline+0x1f6>
movl   $0x0,-0x4(%rbp)
jmp    1402 <explodegophermapline+0x2f2>
mov    -0x10(%rbp),%rax
mov    (%rax),%dl
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x30(%rbp),%rax
mov    -0x3c(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0x3c(%rbp)
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    12bf <explodegophermapline+0x1af>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x8,-0x3c(%rbp)
jne    1365 <explodegophermapline+0x255>
movl   $0xffffffff,-0x4(%rbp)
jmp    1402 <explodegophermapline+0x2f2>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x9,%eax
jne    137a <explodegophermapline+0x26a>
jmp    13be <explodegophermapline+0x2ae>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    138f <explodegophermapline+0x27f>
jmp    13be <explodegophermapline+0x2ae>
mov    -0x10(%rbp),%rax
mov    (%rax),%cl
movslq -0x3c(%rbp),%rax
mov    %cl,-0x50(%rbp,%rax,1)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
cltq
movb   $0x0,-0x50(%rbp,%rax,1)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    134f <explodegophermapline+0x23f>
lea    -0x50(%rbp),%rdi
call   1030 <atol@plt>
mov    %rax,%rcx
mov    -0x38(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x38(%rbp),%rax
cmpq   $0x1,(%rax)
jl     13f0 <explodegophermapline+0x2e0>
mov    -0x38(%rbp),%rax
cmpq   $0xffff,(%rax)
jle    13fb <explodegophermapline+0x2eb>
mov    -0x38(%rbp),%rax
movq   $0x0,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<explodegophermapline>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movb   $0x0,(%rsi)
movb   $0x0,(%rdx)
movb   $0x0,(%rcx)
movb   $0x0,(%r8)
movq   $0x0,(%r9)
mov    (%rdi),%al
test   %al,%al
je     11a2 <explodegophermapline+0x92>
mov    %r9,%r14
mov    %al,(%rsi)
xor    %eax,%eax
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movzbl 0x1(%rdi,%rsi,1),%ebx
test   %bl,%bl
je     13a1 <explodegophermapline+0x291>
cmp    $0x9,%bl
je     11ac <explodegophermapline+0x9c>
mov    %bl,(%rdx,%rsi,1)
movb   $0x0,0x1(%rdx,%rsi,1)
movzbl 0x2(%rdi,%rsi,1),%ebx
test   %bl,%bl
je     13a1 <explodegophermapline+0x291>
cmp    $0x9,%bl
je     11b1 <explodegophermapline+0xa1>
mov    %bl,0x1(%rdx,%rsi,1)
movb   $0x0,0x2(%rdx,%rsi,1)
movzbl 0x3(%rdi,%rsi,1),%ebx
test   %bl,%bl
je     13a1 <explodegophermapline+0x291>
cmp    $0x9,%bl
je     11ba <explodegophermapline+0xaa>
mov    %bl,0x2(%rdx,%rsi,1)
movb   $0x0,0x3(%rdx,%rsi,1)
add    $0x3,%rsi
cmp    $0x3ff,%rsi
jne    1140 <explodegophermapline+0x30>
jmp    122d <explodegophermapline+0x11d>
movb   $0x69,(%rsi)
xor    %eax,%eax
jmp    13a1 <explodegophermapline+0x291>
add    %rsi,%rdi
jmp    11c1 <explodegophermapline+0xb1>
add    %rsi,%rdi
add    $0x1,%rdi
jmp    11c1 <explodegophermapline+0xb1>
add    %rsi,%rdi
add    $0x2,%rdi
xor    %eax,%eax
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movzbl 0x2(%rdi,%rdx,1),%ebx
test   %bl,%bl
je     13a1 <explodegophermapline+0x291>
cmp    $0x9,%bl
je     1237 <explodegophermapline+0x127>
mov    %bl,(%rcx,%rdx,1)
movb   $0x0,0x1(%rcx,%rdx,1)
movzbl 0x3(%rdi,%rdx,1),%ebx
test   %bl,%bl
je     13a1 <explodegophermapline+0x291>
cmp    $0x9,%bl
je     1241 <explodegophermapline+0x131>
mov    %bl,0x1(%rcx,%rdx,1)
movb   $0x0,0x2(%rcx,%rdx,1)
movzbl 0x4(%rdi,%rdx,1),%ebx
test   %bl,%bl
je     13a1 <explodegophermapline+0x291>
cmp    $0x9,%bl
je     124b <explodegophermapline+0x13b>
mov    %bl,0x2(%rcx,%rdx,1)
movb   $0x0,0x3(%rcx,%rdx,1)
add    $0x3,%rdx
cmp    $0x3ff,%rdx
jne    11d0 <explodegophermapline+0xc0>
mov    $0xffffffff,%eax
jmp    13a1 <explodegophermapline+0x291>
lea    (%rdi,%rdx,1),%rcx
add    $0x2,%rcx
jmp    1253 <explodegophermapline+0x143>
lea    (%rdi,%rdx,1),%rcx
add    $0x3,%rcx
jmp    1253 <explodegophermapline+0x143>
lea    (%rdi,%rdx,1),%rcx
add    $0x4,%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
movzbl 0x1(%rcx,%rdx,1),%eax
test   %al,%al
je     11a5 <explodegophermapline+0x95>
cmp    $0x9,%al
je     12c7 <explodegophermapline+0x1b7>
mov    %al,(%r8,%rdx,1)
movb   $0x0,0x1(%r8,%rdx,1)
movzbl 0x2(%rcx,%rdx,1),%eax
test   %al,%al
je     11a5 <explodegophermapline+0x95>
cmp    $0x9,%al
je     12cc <explodegophermapline+0x1bc>
mov    %al,0x1(%r8,%rdx,1)
movb   $0x0,0x2(%r8,%rdx,1)
movzbl 0x3(%rcx,%rdx,1),%eax
test   %al,%al
je     11a5 <explodegophermapline+0x95>
cmp    $0x9,%al
je     12d5 <explodegophermapline+0x1c5>
mov    %al,0x2(%r8,%rdx,1)
movb   $0x0,0x3(%r8,%rdx,1)
add    $0x3,%rdx
mov    $0xffffffff,%eax
cmp    $0x3f,%rdx
jne    1260 <explodegophermapline+0x150>
jmp    13a1 <explodegophermapline+0x291>
add    %rdx,%rcx
jmp    12dc <explodegophermapline+0x1cc>
add    %rdx,%rcx
add    $0x1,%rcx
jmp    12dc <explodegophermapline+0x1cc>
add    %rdx,%rcx
add    $0x2,%rcx
mov    0x2(%rcx),%al
test   %al,%al
je     137a <explodegophermapline+0x26a>
cmp    $0x9,%al
je     137a <explodegophermapline+0x26a>
mov    %al,(%rsp)
movb   $0x0,0x1(%rsp)
mov    0x3(%rcx),%al
test   %al,%al
je     137a <explodegophermapline+0x26a>
cmp    $0x9,%al
je     137a <explodegophermapline+0x26a>
mov    %al,0x1(%rsp)
movb   $0x0,0x2(%rsp)
mov    0x4(%rcx),%al
test   %al,%al
je     137a <explodegophermapline+0x26a>
cmp    $0x9,%al
je     137a <explodegophermapline+0x26a>
mov    %al,0x2(%rsp)
movb   $0x0,0x3(%rsp)
mov    0x5(%rcx),%al
test   %al,%al
je     137a <explodegophermapline+0x26a>
cmp    $0x9,%al
je     137a <explodegophermapline+0x26a>
mov    %al,0x3(%rsp)
movb   $0x0,0x4(%rsp)
mov    0x6(%rcx),%al
test   %al,%al
je     137a <explodegophermapline+0x26a>
cmp    $0x9,%al
je     137a <explodegophermapline+0x26a>
mov    %al,0x4(%rsp)
movb   $0x0,0x5(%rsp)
mov    0x7(%rcx),%al
test   %al,%al
je     137a <explodegophermapline+0x26a>
cmp    $0x9,%al
je     137a <explodegophermapline+0x26a>
mov    %al,0x5(%rsp)
movb   $0x0,0x6(%rsp)
mov    0x8(%rcx),%al
test   %al,%al
je     137a <explodegophermapline+0x26a>
cmp    $0x9,%al
je     137a <explodegophermapline+0x26a>
mov    %al,0x6(%rsp)
movb   $0x0,0x7(%rsp)
mov    0x9(%rcx),%al
test   %al,%al
je     137a <explodegophermapline+0x26a>
cmp    $0x9,%al
jne    13a9 <explodegophermapline+0x299>
mov    %rsp,%rdi
call   1030 <atol@plt>
mov    %rax,%rcx
lea    -0x10000(%rax),%rdx
xor    %eax,%eax
cmp    $0xffffffffffff0001,%rdx
mov    $0x0,%edx
cmovae %rcx,%rdx
mov    %rdx,(%r14)
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret
mov    %al,0x7(%rsp)
movb   $0x0,0x8(%rsp)
mov    $0xffffffff,%eax
jmp    13a1 <explodegophermapline+0x291>

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

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