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

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char *strsep(char **, char *);
void parseExport(FILE *fd, char *line, char *machine, char *run, int *lane,
                 int *tile, int *xoff, int *yoff, char *index, char *seq,
                 char *qual, int *passedpf) {
  char *fld;
  fld = strsep(&line, "\t");
  strcpy(machine, fld);
  fld = strsep(&line, "\t");
  strcpy(run, fld);
  fld = strsep(&line, "\t");
  *lane = atoi(fld);
  fld = strsep(&line, "\t");
  *tile = atoi(fld);
  fld = strsep(&line, "\t");
  *xoff = atoi(fld);
  fld = strsep(&line, "\t");
  *yoff = atoi(fld);
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  strcpy(seq, fld);
  fld = strsep(&line, "\t");
  strcpy(qual, fld);
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t");
  fld = strsep(&line, "\t\n");
  *passedpf = !strcmp(fld, "Y");
  strcpy(index, "zork");
}


x86 assembly (clang, -O0):
<parseExport>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xe7d(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x10(%rbp),%rdi
lea    0xe5c(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x10(%rbp),%rdi
lea    0xe3b(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
lea    -0x10(%rbp),%rdi
lea    0xe16(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
lea    -0x10(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,%ecx
mov    0x10(%rbp),%rax
mov    %ecx,(%rax)
lea    -0x10(%rbp),%rdi
lea    0xdcc(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
call   1060 <atoi@plt>
mov    %eax,%ecx
mov    0x18(%rbp),%rax
mov    %ecx,(%rax)
lea    -0x10(%rbp),%rdi
lea    0xda7(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xd93(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xd7f(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    0x28(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x10(%rbp),%rdi
lea    0xd5e(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x10(%rbp),%rdi
lea    0xd3d(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xd29(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xd15(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xd01(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xced(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xcd9(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xcc5(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xcb1(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xc9d(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xc89(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xc75(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
lea    -0x10(%rbp),%rdi
lea    0xc63(%rip),%rsi
call   1050 <strsep@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
lea    0xc52(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%ecx
mov    0x38(%rbp),%rax
mov    %ecx,(%rax)
mov    0x20(%rbp),%rdi
lea    0xc31(%rip),%rsi
call   1030 <strcpy@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseExport>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%rbp
mov    %r8,%r14
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,(%rsp)
lea    0xe9e(%rip),%r15
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %r13,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %r12,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rax,%rdi
call   1060 <atoi@plt>
mov    %eax,(%r14)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rax,%rdi
call   1060 <atoi@plt>
mov    %eax,0x0(%rbp)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rax,%rdi
call   1060 <atoi@plt>
mov    0x40(%rsp),%rcx
mov    %eax,(%rcx)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rax,%rdi
call   1060 <atoi@plt>
mov    0x48(%rsp),%rcx
mov    %eax,(%rcx)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    0x58(%rsp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    0x60(%rsp),%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1050 <strsep@plt>
lea    0xd4b(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strsep@plt>
lea    0xd3f(%rip),%rsi
mov    %rax,%rdi
call   1040 <strcmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    0x68(%rsp),%rax
mov    %ecx,(%rax)
lea    0xd24(%rip),%rsi
mov    0x50(%rsp),%rdi
call   1030 <strcpy@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\09\00"
@.str.1 = [3 x i8] c"\09\0A\00"
@.str.2 = [2 x i8] c"Y\00"
@.str.3 = [5 x i8] c"zork\00"
define void @parseExport(i32* %0, i8* %1, i8* %2, i8* %3, i32* %4, i32* %5, i32* %6, i32* %7, i8* %8, i8* %9, i8* %10, i32* %11) {
%13 = alloca i32*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32*
%20 = alloca i32*
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca i32*
%25 = alloca i8*
store i32* %0, i32** %13
store i8* %1, i8** %14
store i8* %2, i8** %15
store i8* %3, i8** %16
store i32* %4, i32** %17
store i32* %5, i32** %18
store i32* %6, i32** %19
store i32* %7, i32** %20
store i8* %8, i8** %21
store i8* %9, i8** %22
store i8* %10, i8** %23
store i32* %11, i32** %24
%26 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %26, i8** %25
%27 = load i8*, i8** %15
%28 = load i8*, i8** %25
%29 = call i32 @strcpy(i8* %27, i8* %28)
%30 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %30, i8** %25
%31 = load i8*, i8** %16
%32 = load i8*, i8** %25
%33 = call i32 @strcpy(i8* %31, i8* %32)
%34 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %34, i8** %25
%35 = load i8*, i8** %25
%36 = call i32 @atoi(i8* %35)
%37 = load i32*, i32** %17
store i32 %36, i32* %37
%38 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %38, i8** %25
%39 = load i8*, i8** %25
%40 = call i32 @atoi(i8* %39)
%41 = load i32*, i32** %18
store i32 %40, i32* %41
%42 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %42, i8** %25
%43 = load i8*, i8** %25
%44 = call i32 @atoi(i8* %43)
%45 = load i32*, i32** %19
store i32 %44, i32* %45
%46 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %46, i8** %25
%47 = load i8*, i8** %25
%48 = call i32 @atoi(i8* %47)
%49 = load i32*, i32** %20
store i32 %48, i32* %49
%50 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %50, i8** %25
%51 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %51, i8** %25
%52 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %52, i8** %25
%53 = load i8*, i8** %22
%54 = load i8*, i8** %25
%55 = call i32 @strcpy(i8* %53, i8* %54)
%56 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %56, i8** %25
%57 = load i8*, i8** %23
%58 = load i8*, i8** %25
%59 = call i32 @strcpy(i8* %57, i8* %58)
%60 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %60, i8** %25
%61 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %61, i8** %25
%62 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %62, i8** %25
%63 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %63, i8** %25
%64 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %64, i8** %25
%65 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %65, i8** %25
%66 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %66, i8** %25
%67 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %67, i8** %25
%68 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %68, i8** %25
%69 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %69, i8** %25
%70 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %70, i8** %25
%71 = call i8* @strsep(i8** %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i8* %71, i8** %25
%72 = load i8*, i8** %25
%73 = call i32 @strcmp(i8* %72, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%74 = icmp ne i32 %73, 0
%75 = xor i1 %74, true
%76 = zext i1 %75 to i32
%77 = load i32*, i32** %24
store i32 %76, i32* %77
%78 = load i8*, i8** %21
%79 = call i32 @strcpy(i8* %78, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\09\00"
@.str.1 = [3 x i8] c"\09\0A\00"
@.str.2 = [2 x i8] c"Y\00"
@.str.3 = [5 x i8] c"zork\00"
define void @parseExport(i32* nocapture readnone %0, i8* %1, i8* %2, i8* %3, i32* nocapture writeonly %4, i32* nocapture writeonly %5, i32* nocapture writeonly %6, i32* nocapture writeonly %7, i8* %8, i8* %9, i8* %10, i32* nocapture writeonly %11) {
%13 = alloca i8*
store i8* %1, i8** %13
%14 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @strcpy(i8* %2, i8* %14)
%16 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @strcpy(i8* %3, i8* %16)
%18 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%19 = call i32 @atoi(i8* %18)
store i32 %19, i32* %4
%20 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%21 = call i32 @atoi(i8* %20)
store i32 %21, i32* %5
%22 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%23 = call i32 @atoi(i8* %22)
store i32 %23, i32* %6
%24 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%25 = call i32 @atoi(i8* %24)
store i32 %25, i32* %7
%26 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%27 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%28 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%29 = call i32 @strcpy(i8* %9, i8* %28)
%30 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%31 = call i32 @strcpy(i8* %10, i8* %30)
%32 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%33 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%34 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%35 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%36 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%37 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%38 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%39 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%40 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%41 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%42 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%43 = call i8* @strsep(i8** %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%44 = call i32 @strcmp(i8* dereferenceable(1) %43, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%45 = icmp eq i32 %44, 0
%46 = zext i1 %45 to i32
store i32 %46, i32* %11
%47 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
ret void
}