// File: /workspace/github_c_makefile_star2_O2/ToniWestbrook[P]paladin/kopen.c
// Function: kopen
void *kopen(const char *fn, int *_fd)
{
	koaux_t *aux = 0;
	*_fd = -1;
	if (strstr(fn, "http://") == fn) {
		aux = calloc(1, sizeof(koaux_t));
		aux->type = KO_HTTP;
		aux->fd = http_open(fn);
	} else if (strstr(fn, "ftp://") == fn) {
		aux = calloc(1, sizeof(koaux_t));
		aux->type = KO_FTP;
		aux->fd = ftp_open(fn);
	} else if (strcmp(fn, "-") == 0) {
		aux = calloc(1, sizeof(koaux_t));
		aux->type = KO_STDIN;
		aux->fd = STDIN_FILENO;
	} else {
		const char *p, *q;
		for (p = fn; *p; ++p)
			if (!isspace(*p)) break;
		if (*p == '<') { // pipe open
			int need_shell, pfd[2];
			pid_t pid;
			// a simple check to see if we need to invoke a shell; not always working
			for (q = p + 1; *q; ++q)
				if (ispunct(*q) && *q != '.' && *q != '_' && *q != '-' && *q != ':')
					break;
			need_shell = (*q != 0);
			if (pipe(pfd) != 0) return 0;
			pid = vfork();
			if (pid == -1) { /* vfork() error */
				close(pfd[0]); close(pfd[1]);
				return 0;
			}
			if (pid == 0) { /* the child process */
				char **argv; /* FIXME: I do not know if this will lead to a memory leak */
				close(pfd[0]);
				dup2(pfd[1], STDOUT_FILENO);
				close(pfd[1]);
				if (!need_shell) {
					argv = cmd2argv(p + 1);
					execvp(argv[0], argv);
					free(argv[0]); free(argv);
				} else execl("/bin/sh", "sh", "-c", p + 1, NULL);
				exit(1);
			} else { /* parent process */
				close(pfd[1]);
				aux = calloc(1, sizeof(koaux_t));
				aux->type = KO_PIPE;
				aux->fd = pfd[0];
				aux->pid = pid;
			}
		} else {
#ifdef _WIN32
			*_fd = open(fn, O_RDONLY | O_BINARY);
#else
			*_fd = open(fn, O_RDONLY);
#endif
			if (*_fd >= 0) {
				aux = calloc(1, sizeof(koaux_t));
				aux->type = KO_FILE;
				aux->fd = *_fd;
			}
		}
	}
	if (aux) *_fd = aux->fd;
	return aux;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %r12
movq %rdi, %r15
orl $-0x1, (%rsi)
leaq 0x1b52e(%rip), %rsi     # 0x20683
pushq $0x7
popq %rdx
callq 0x3120
movabsq $0x100000000, %rbp      # imm = 0x100000000
testl %eax, %eax
je 0x51c4
leaq 0x1b527(%rip), %rsi     # 0x20699
pushq $0x6
popq %rdx
movq %r15, %rdi
callq 0x3120
testl %eax, %eax
je 0x5235
movb (%r15), %al
cmpb $0x2d, %al
jne 0x5197
cmpb $0x0, 0x1(%r15)
je 0x5429
leaq 0x1(%r15), %r14
movl %eax, %ebx
testb %bl, %bl
je 0x536c
callq 0x3320
movq (%rax), %rcx
movsbq %bl, %rdx
testb $0x20, 0x1(%rcx,%rdx,2)
je 0x52a7
movb (%r14), %bl
incq %r14
jmp 0x519d
leaq 0x1b4c0(%rip), %rdx     # 0x2068b
leaq 0x1b4c1(%rip), %r8      # 0x20693
pushq $0x1
popq %rdi
pushq $0xc
popq %rsi
movl $0x10f, %ecx            # imm = 0x10F
callq 0x1dfd0
movq %rax, %r14
movl $0x4, (%rax)
leaq 0x1b491(%rip), %rsi     # 0x20683
pushq $0x7
popq %rdx
movq %r15, %rdi
callq 0x3120
xorl %ecx, %ecx
testl %eax, %eax
jne 0x5a27
movq %r12, (%rsp)
leaq 0x7(%r15), %rbx
xorl %eax, %eax
movl %eax, %r12d
movq %rbx, %r13
movzbl (%r13), %eax
testl %eax, %eax
je 0x53b9
cmpl $0x2f, %eax
je 0x53b9
incq %r13
addq %rbp, %r12
jmp 0x5217
leaq 0x1b44f(%rip), %rdx     # 0x2068b
leaq 0x1b450(%rip), %r8      # 0x20693
pushq $0x1
popq %rdi
pushq $0xc
popq %rsi
movl $0x113, %ecx            # imm = 0x113
callq 0x1dfd0
movq %rax, %r14
movl $0x5, (%rax)
leaq 0x1b436(%rip), %rsi     # 0x20699
pushq $0x6
popq %rdx
movq %r15, %rdi
callq 0x3120
xorl %ecx, %ecx
testl %eax, %eax
jne 0x5a27
movq %r12, (%rsp)
movq %r15, %r12
addq $0x6, %r12
xorl %eax, %eax
movl %eax, %r13d
movq %r12, %rbx
movzbl (%rbx), %eax
testl %eax, %eax
je 0x56a7
cmpl $0x2f, %eax
je 0x5541
incq %rbx
addq %rbp, %r13
jmp 0x528b
cmpb $0x3c, %bl
jne 0x536c
movq %rax, %rbx
movabsq $0x4000000002003, %rax  # imm = 0x4000000002003
movq %r14, %rsi
movsbq (%rsi), %r15
testq %r15, %r15
je 0x52f7
movq %rsi, %rdx
movzwl (%rcx,%r15,2), %esi
movl %esi, %edi
incq %rdx
movq %rdx, %rsi
testb $0x4, %dil
je 0x52c0
movl %r15d, %esi
movzbl %sil, %esi
addl $-0x2d, %esi
cmpl $0x32, %esi
ja 0x52f7
btq %rsi, %rax
movq %rdx, %rsi
jb 0x52c0
leaq 0xb0(%rsp), %rdi
callq 0x3490
testl %eax, %eax
jne 0x586d
callq 0x34b0
cmpl $-0x1, %eax
je 0x5855
testl %eax, %eax
je 0x5a46
movl %eax, %ebx
movl 0xb4(%rsp), %edi
callq 0x37a0
leaq 0x1b354(%rip), %rdx     # 0x2068b
leaq 0x1b355(%rip), %r8      # 0x20693
pushq $0x1
popq %rdi
pushq $0xc
popq %rsi
movl $0x139, %ecx            # imm = 0x139
callq 0x1dfd0
movq %rax, %r14
movl $0x3, (%rax)
movl 0xb0(%rsp), %ecx
movl %ecx, 0x4(%rax)
movl %ebx, 0x8(%rax)
movl 0x4(%rax), %eax
jmp 0x5a2d
xorl %ebx, %ebx
movl %ebx, %eax
movq %r15, %rdi
movl %ebx, %esi
callq 0x31d0
movl %eax, (%r12)
testl %eax, %eax
js 0x5422
leaq 0x1b2fe(%rip), %rdx     # 0x2068b
leaq 0x1b2ff(%rip), %r8      # 0x20693
pushq $0x1
popq %rdi
pushq $0xc
popq %rsi
movl $0x145, %ecx            # imm = 0x145
callq 0x1dfd0
movq %rax, %r14
movl $0x2, (%rax)
movl (%r12), %ecx
movl %ecx, 0x4(%rax)
jmp 0x5a2b
movq %r14, 0xa8(%rsp)
movq %r13, 0xb0(%rsp)
addq %r12, %rbp
sarq $0x20, %rbp
leaq 0x1b2b4(%rip), %rdx     # 0x2068b
leaq 0x1b2cd(%rip), %r8      # 0x206ab
pushq $0x1
popq %rsi
pushq $0x57
popq %rcx
movq %rbp, %rdi
callq 0x1dfd0
movq %rax, %r14
movq %rax, %rbp
sarq $0x20, %r12
movq %rax, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x3130
movb $0x0, (%r14,%r12)
movq %rbp, 0x8(%rsp)
movq %rbp, %rax
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0x545e
cmpl $0x3a, %ecx
je 0x5458
incq %rax
jmp 0x5411
movl %ebx, %eax
jmp 0x5a34
leaq 0x1b25b(%rip), %rdx     # 0x2068b
leaq 0x1b25c(%rip), %r8      # 0x20693
pushq $0x1
popq %rdi
pushq $0xc
popq %rsi
movl $0x117, %ecx            # imm = 0x117
callq 0x1dfd0
movq %rax, %r14
movq $0x1, (%rax)
xorl %eax, %eax
jmp 0x5a2d
movb $0x0, (%rax)
incq %rax
movq %rax, %r12
leaq 0x1b24d(%rip), %rdi     # 0x206b5
callq 0x33d0
testq %rax, %rax
je 0x54cd
movq %rax, %rbx
movq %rax, %rdi
leaq 0x1b204(%rip), %rsi     # 0x20683
pushq $0x7
popq %rdx
callq 0x3120
leaq 0x7(%rbx), %rdi
testl %eax, %eax
cmovneq %rbx, %rdi
leaq 0x1b1f3(%rip), %rsi     # 0x2068b
leaq 0x1b20c(%rip), %rcx     # 0x206ab
pushq $0x64
popq %rdx
callq 0x1e123
movq %rax, %rcx
movq %rax, %r12
incq %rcx
movq %rcx, %rax
movzbl -0x1(%rax), %ecx
testl %ecx, %ecx
je 0x56b2
cmpl $0x3a, %ecx
je 0x5690
incq %rax
jmp 0x54b3
leaq 0x1b1b7(%rip), %rbp     # 0x2068b
leaq 0x1b1d0(%rip), %rbx     # 0x206ab
pushq $0x60
popq %rdx
movq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbp, %rsi
movq %rbx, %rcx
callq 0x1e123
movq %rax, %r15
cmpb $0x0, (%r12)
leaq 0x1b1c0(%rip), %rdi     # 0x206c0
cmovneq %r12, %rdi
pushq $0x61
popq %rdx
movq %rbp, %rsi
movq %rbx, %rcx
callq 0x1e123
movq %rax, %r12
cmpb $0x0, (%r13)
leaq 0x1b17d(%rip), %rdi     # 0x2069e
cmovneq %r13, %rdi
pushq $0x62
popq %rdx
movq %rbp, %rsi
movq %rbx, %rcx
callq 0x1e123
movq %rax, %rcx
movq %r12, %rax
movq %r15, %r12
jmp 0x56f4
leaq 0x1b1bf(%rip), %rdi     # 0x20707
leaq 0x1b13c(%rip), %rsi     # 0x2068b
leaq 0x1b1b4(%rip), %r15     # 0x2070a
movl $0xbf, %edx
movq %r15, %rcx
callq 0x1e123
movq %rax, 0x78(%rsp)
movq %rax, 0xa0(%rsp)
addq %r13, %rbp
sarq $0x20, %rbp
pushq $0x1
popq %rsi
movq %rbp, %rdi
leaq 0x1b107(%rip), %rdx     # 0x2068b
movl $0xc0, %ecx
movq %r15, %r8
callq 0x1dfd0
movq %rax, %r15
movq %rax, %rbp
sarq $0x20, %r13
movq %rax, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3130
movq %rbx, %rdi
callq 0x3100
leaq 0x8(%rax), %rdi
pushq $0x1
popq %rsi
leaq 0x1b0cc(%rip), %rdx     # 0x2068b
movl $0xc2, %ecx
leaq 0x1b13f(%rip), %r8      # 0x2070a
callq 0x1dfd0
movq %rax, %r13
leaq 0x1b139(%rip), %rsi     # 0x20713
xorl %ecx, %ecx
movq %rax, %rdi
movq %rbx, %rdx
movl %ecx, %eax
callq 0x3070
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq %r15, %rdi
movq 0x78(%rsp), %rsi
callq 0x5c6a
movl %eax, 0x24(%rsp)
pushq $-0x1
popq %r15
cmpl $-0x1, %eax
je 0x5849
movq %rbp, 0x48(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x5d9a
leaq 0x1b0f5(%rip), %rsi     # 0x2071d
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %edx
callq 0x5ed2
leaq 0x1b0f2(%rip), %rsi     # 0x2072e
movq %rbx, %rdi
movl %ebp, %edx
callq 0x5ed2
leaq 0x1b0ef(%rip), %rsi     # 0x2073c
movq %rbx, %rdi
movl %ebp, %edx
callq 0x5ed2
leaq 0x1b0e7(%rip), %rsi     # 0x20745
movq %rbx, %rdi
movl %ebp, %edx
callq 0x5ed2
movq 0x8(%rbx), %rax
incq %rax
movq %rax, %rdi
movq (%rsp), %r12
movzbl -0x1(%rdi), %eax
testl %eax, %eax
je 0x596d
cmpl $0x28, %eax
je 0x5874
incq %rdi
jmp 0x5676
movb $0x0, -0x1(%rax)
cmpb $0x0, (%rax)
leaq 0x1b022(%rip), %rcx     # 0x206c0
cmovneq %rax, %rcx
movq %rcx, %rdi
jmp 0x56b9
xorl %ecx, %ecx
movq (%rsp), %r12
jmp 0x5a27
leaq 0x1b007(%rip), %rdi     # 0x206c0
leaq 0x1afcb(%rip), %rbx     # 0x2068b
leaq 0x1afe4(%rip), %r14     # 0x206ab
pushq $0x67
popq %rdx
movq %rbx, %rsi
movq %r14, %rcx
callq 0x1e123
movq %rax, %r13
pushq $0x68
popq %rdx
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rcx
callq 0x1e123
movq %rax, %rcx
movq %r13, %rax
movq 0x8(%rsp), %r14
movq %r12, %rdi
movq %rcx, %r13
movq %rax, %rsi
movq %r12, 0x90(%rsp)
movq %rax, 0x98(%rsp)
callq 0x5c6a
movl %eax, %ebx
movl %eax, %ebp
leaq 0x1af6e(%rip), %rdx     # 0x2068b
leaq 0x1af87(%rip), %r8      # 0x206ab
movl $0x10000, %r15d         # imm = 0x10000
pushq $0x1
popq %rsi
pushq $0x6e
popq %rcx
movq %r15, %rdi
callq 0x1dfd0
movq %rax, %r12
movq %rax, 0x88(%rsp)
leaq 0x1af79(%rip), %rdx     # 0x206c3
xorl %eax, %eax
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %r15
movq %r13, %rcx
movq %r14, %r8
callq 0x35e0
movslq %eax, %rdx
movl %ebx, %edi
movq %r12, 0x38(%rsp)
movq %r12, %rsi
callq 0x5d4c
testl %eax, %eax
jne 0x59d8
movq %r15, 0x40(%rsp)
xorl %ecx, %ecx
movl %ecx, %eax
pushq $0x1
popq %r15
movslq %ecx, %r12
movq 0x38(%rsp), %rcx
leaq (%rcx,%r12), %rbx
cmpl $0x10001, %r12d         # imm = 0x10001
movl $0x10000, %edx          # imm = 0x10000
cmovgel %r12d, %edx
movl %edx, 0x1c(%rsp)
cmpq $0xffff, %r12           # imm = 0xFFFF
jg 0x57f9
movl %r12d, %r14d
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x3510
movq %rax, %r13
testq %rax, %rax
jle 0x5803
cmpq $0x3, %r12
jl 0x57ee
cmpb $0xa, (%rbx)
jne 0x57ee
leaq -0x3(%rbx), %rdi
leaq 0x1aefe(%rip), %rsi     # 0x206dc
pushq $0x4
popq %rdx
callq 0x3120
testl %eax, %eax
je 0x59a6
incq %r12
incq %rbx
movq %r13, %rax
jmp 0x57a7
movl 0x1c(%rsp), %r12d
movq %rax, %r14
jmp 0x5809
movl %r14d, %r12d
movq %r13, %r14
testq %r14, %r14
jns 0x59a3
callq 0x3050
movl (%rax), %edx
movl %r12d, %ecx
movq %r14, %rax
cmpl $0x4, %edx
je 0x5787
movl %r12d, %ecx
movq %r14, %rax
cmpl $0xb, %edx
je 0x5787
movb $0x0, (%rbx)
movq 0x8(%rsp), %r14
movq 0x40(%rsp), %r15
jmp 0x59d8
movl %r15d, %ebx
movq (%rsp), %r12
jmp 0x5975
movl 0xb0(%rsp), %edi
callq 0x37a0
movl 0xb4(%rsp), %edi
callq 0x37a0
xorl %eax, %eax
jmp 0x5a34
leaq 0x54(%rsp), %rcx
leaq 0x58(%rsp), %r8
leaq 0x5c(%rsp), %r9
leaq 0x60(%rsp), %r10
leaq 0x64(%rsp), %r11
leaq 0x1aeb8(%rip), %rsi     # 0x2074c
xorl %eax, %eax
movl %eax, %ebx
leaq 0x50(%rsp), %r15
movq %r15, %rdx
pushq %r11
pushq %r10
callq 0x32e0
popq %rcx
popq %rdx
movl (%r15), %eax
movl %eax, 0x18(%rsp)
movl 0x4(%r15), %eax
movl %eax, 0x14(%rsp)
movl 0x8(%r15), %eax
movl %eax, 0x10(%rsp)
movl 0xc(%r15), %r12d
movl 0x10(%r15), %eax
shll $0x8, %eax
movzwl %ax, %ebp
addl 0x14(%r15), %ebp
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x5ed2
leaq 0x1ae74(%rip), %rsi     # 0x2075e
leaq 0xb0(%rsp), %rdi
movl 0x18(%rsp), %edx
movl 0x14(%rsp), %ecx
movl 0x10(%rsp), %r8d
movl %r12d, %r9d
movq (%rsp), %r12
movl %ebx, %eax
callq 0x3070
leaq 0x1ae47(%rip), %rsi     # 0x2075b
leaq 0x10e(%rsp), %r15
movq %r15, %rdi
movl %ebp, %edx
movl %ebx, %eax
callq 0x3070
leaq 0xb0(%rsp), %rdi
movq %r15, %rsi
callq 0x5c6a
pushq $-0x1
popq %rbx
cmpl $-0x1, %eax
movq 0x48(%rsp), %rbp
je 0x5975
movl %eax, %ebx
leaq 0x20(%rsp), %rdi
callq 0x5d9a
cmpl $0x96, %eax
je 0x5962
movl %ebx, %edi
callq 0x37a0
pushq $-0x1
popq %rbx
movl 0x24(%rsp), %edi
callq 0x37a0
jmp 0x5975
movl %r15d, %ebx
movq 0x48(%rsp), %rbp
movq %rbp, %rdi
callq 0x3390
movq 0xa0(%rsp), %rdi
callq 0x3390
movq %r13, %rdi
callq 0x3390
movq 0x28(%rsp), %rdi
callq 0x3390
movl %ebx, %ecx
jmp 0x5a27
movl %r12d, %r14d
movb $0x0, (%rbx)
cmpl $0xe, %r14d
movq 0x8(%rsp), %r14
movq 0x40(%rsp), %r15
jl 0x59d8
movq 0x38(%rsp), %rdi
addq $0x8, %rdi
leaq 0xb0(%rsp), %rsi
xorl %edx, %edx
callq 0x34e0
cmpl $0xc8, %eax
je 0x59e2
movl %ebp, %edi
callq 0x37a0
pushq $-0x1
popq %rbp
movq 0x88(%rsp), %rdi
callq 0x3390
movq %r14, %rdi
callq 0x3390
movq 0x90(%rsp), %rdi
callq 0x3390
movq 0x98(%rsp), %rdi
callq 0x3390
movq %r15, %rdi
callq 0x3390
movl %ebp, %ecx
movq (%rsp), %r12
movq 0xa8(%rsp), %r14
movl %ecx, 0x4(%r14)
movl %ecx, %eax
movl %eax, (%r12)
movq %r14, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xb0(%rsp), %edi
callq 0x37a0
movl 0xb4(%rsp), %edi
pushq $0x1
popq %rsi
callq 0x32b0
movl 0xb4(%rsp), %edi
callq 0x37a0
testb %r15b, %r15b
jne 0x5aaf
movq %r14, %rdi
callq 0x3100
movl %eax, %ecx
movl %eax, %eax
movl %eax, %esi
movl %ecx, %eax
sarl $0x1f, %eax
andl %ecx, %eax
incl %ecx
testl %esi, %esi
jle 0x5ad6
movq %rsi, %rdx
movq (%rbx), %rsi
movsbq -0x1(%r14,%rdx), %rdi
movq %rdx, %r8
decq %r8
decl %ecx
testb $0x20, 0x1(%rsi,%rdi,2)
movl %ecx, %edx
movq %r8, %rsi
jne 0x5a89
jmp 0x5ad8
leaq 0x1abea(%rip), %rdi     # 0x206a0
leaq 0x1abe8(%rip), %rsi     # 0x206a5
leaq 0x1abe4(%rip), %rdx     # 0x206a8
xorl %eax, %eax
movl %eax, %r8d
movq %r14, %rcx
callq 0x3400
jmp 0x5c26
movl %eax, %edx
movl %edx, %eax
xorl %ecx, %ecx
testl %edx, %edx
movl %ecx, %esi
cmovgl %edx, %ecx
movl %ecx, %edx
cmpq %rsi, %rdx
je 0x5aff
movq (%rbx), %rdi
movsbq (%r14,%rsi), %r8
testb $0x20, 0x1(%rdi,%r8,2)
je 0x5b03
incq %rsi
jmp 0x5ae5
movl %ecx, %edx
jmp 0x5b05
movl %esi, %edx
xorl %ecx, %ecx
movl %eax, %ebp
subl %edx, %ebp
jne 0x5b14
movl %ecx, %ebx
jmp 0x5c0b
movl %edx, %edx
movq %rdx, 0x80(%rsp)
movq %rdx, %rdi
movq %rdi, %rdx
movl %edx, %esi
incl %esi
cmpl %esi, %eax
jle 0x5b5a
movq (%rbx), %rsi
movsbq 0x1(%r14,%rdx), %rdi
incq %rdx
testb $0x20, 0x1(%rsi,%rdi,2)
movq %rdx, %rdi
je 0x5b21
movsbq -0x1(%r14,%rdx), %rdi
movb 0x1(%rsi,%rdi,2), %sil
andb $0x20, %sil
cmpb $0x1, %sil
adcl $0x0, %ecx
jmp 0x5b1e
addl $0x2, %ecx
movl %ecx, %edi
leaq 0x1ab25(%rip), %r15     # 0x2068b
leaq 0x1ac16(%rip), %r12     # 0x20783
pushq $0x8
popq %rsi
movq %r15, %rdx
movl $0xf6, %ecx
movq %r12, %r8
callq 0x1dfd0
movq %rax, %r13
movq %rax, 0x70(%rsp)
movl %ebp, %eax
incl %eax
movslq %eax, %rdi
pushq $0x1
popq %rsi
movq %r15, %rdx
movl $0xf7, %ecx
movq %r12, %r8
callq 0x1dfd0
movq %rax, %r12
movq %rax, %r15
movq 0x70(%rsp), %rax
movq %r12, (%rax)
movq %r14, %rsi
addq 0x80(%rsp), %rsi
movslq %ebp, %r14
movq %r12, %rdi
movq %r14, %rdx
callq 0x3130
pushq $0x1
popq %rax
pushq $0x1
popq %rcx
cmpq %r14, %rax
jge 0x5c08
movq (%rbx), %rdi
leaq (%r12,%rax), %rdx
movsbq (%r15,%rax), %rsi
testb $0x20, 0x1(%rdi,%rsi,2)
jne 0x5c00
testb %sil, %sil
je 0x5c03
cmpb $0x0, -0x1(%r15,%rax)
jne 0x5c03
movslq %ecx, %rsi
incl %ecx
movq %rdx, (%r13,%rsi,8)
jmp 0x5c03
movb $0x0, (%rdx)
incq %rax
jmp 0x5bcf
movq %r13, %rbx
movq (%rbx), %rdi
movq %rbx, %rsi
callq 0x3220
movq (%rbx), %rdi
callq 0x3390
movq %rbx, %rdi
callq 0x3390
pushq $0x1
popq %rdi
callq 0x33c0