// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/zoo.c
// Function: de_run_zoo
static void de_run_zoo(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	i64 pos = 0;
	int saved_indent_level;

	de_dbg_indent_save(c, &saved_indent_level);
	d = de_malloc(c, sizeof(lctx));
	d->da = de_arch_create_lctx(c);
	d->da->userdata = (void*)d;
	d->da->is_le = 1;

	d->da->input_encoding = de_get_input_encoding(c, NULL, DE_ENCODING_ASCII);
	d->undelete = de_get_ext_option_bool(c, "zoo:undelete", 0);
	d->extract_comments_to_files = (c->extract_level>=2);

	d->da->crco = de_crcobj_create(c, DE_CRCOBJ_CRC16_ARC);
	d->min_offset_found = c->infile->len;

	if(!do_global_header(c, d, pos)) {
		de_err(c, "Bad global header");
		goto done;
	}

	d->offsets_seen = de_inthashtable_create(c); // For protection against infinite loops
	pos = d->first_member_hdr_pos;
	while ( 1 ) {
		i64 next_member_hdr_pos;

		de_dbg_indent_restore(c, saved_indent_level);

		if(pos==0) break;

		if(pos >= c->infile->len) {
			de_err(c, "Unexpected EOF, expected member header at %"I64_FMT, pos);
			goto after_members;
		}

		if(!de_inthashtable_add_item(c, d->offsets_seen, pos, NULL)) {
			de_err(c, "Loop detected");
			goto after_members;
		}

		de_dbg(c, "entry at %"I64_FMT, pos);
		de_dbg_indent(c, 1);

		next_member_hdr_pos = 0;
		do_member(c, d, pos, &next_member_hdr_pos);
		pos = next_member_hdr_pos;
	}

after_members:
	check_for_orphaned_comment(c, d);

	if(d->num_deleted_files_found>0 && !d->undelete) {
		de_info(c, "Note: %d deleted file(s) found. Use \"-opt zoo:undelete\" "
			"to extract them.", d->num_deleted_files_found);
	}

done:
	if(d) {
		de_inthashtable_destroy(c, d->offsets_seen);
		de_arch_destroy_lctx(c, d->da);
		de_free(c, d);
	}
	de_dbg_indent_restore(c, saved_indent_level);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
leaq 0x28(%rsp), %rsi
callq 0xe958c
movl $0x48, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %r14
movq %rbx, %rdi
callq 0xfdb0a
movq %rax, (%r14)
movq %r14, 0x40(%rax)
movl $0x1, 0x10(%rax)
xorl %r12d, %r12d
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xeb7d1
movq (%r14), %rcx
movl %eax, 0x18(%rcx)
leaq 0x63bd0(%rip), %rsi     # 0x14465a
movq %rbx, %rdi
xorl %edx, %edx
callq 0xea727
movl %eax, 0xc(%r14)
xorl %eax, %eax
cmpl $0x2, 0x90(%rbx)
setge %al
movl %eax, 0x8(%r14)
movq %rbx, %rdi
movl $0x21, %esi
callq 0xeba56
movq (%r14), %rcx
movq %rax, 0x30(%rcx)
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rax
movq %rax, 0x40(%r14)
movq $0x0, 0x40(%rsp)
leaq 0x4234d(%rip), %rsi     # 0x122e25
movq %rbx, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r15
movq 0x18(%rbx), %rdi
movq 0x40(%rsp), %rsi
addq %r12, %rsi
callq 0xef0d5
testb %al, %al
je 0xe0b3a
movzbl %al, %ecx
cmpl $0x1a, %ecx
je 0xe0b3a
addb $-0x7f, %al
movl $0x5f, %edx
cmpb $-0x5f, %al
jb 0xe0b26
movl %ecx, %edx
movzbl %dl, %esi
movq %r15, %rdi
callq 0xf69a2
incq %r12
cmpq $0x14, %r12
jne 0xe0afc
movl $0xfdc4a7dc, %r12d      # imm = 0xFDC4A7DC
movq %r15, %rdi
callq 0xf7557
leaq 0x63ba1(%rip), %rsi     # 0x1446f0
xorl %ebp, %ebp
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
leaq 0x40(%rsp), %rsi
addq $0x14, (%rsi)
movq 0x18(%rbx), %rdi
callq 0xef3a0
movl %eax, %r13d
cmpq %r12, %r13
jne 0xe0c6a
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0xef3a0
movq %rax, 0x18(%r14)
leaq 0x63b6a(%rip), %rsi     # 0x144702
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef3a0
movq %rax, %r12
leaq 0x63b5c(%rip), %rsi     # 0x144717
movq %rbx, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe9226
subl 0x18(%r14), %ebp
cmpl %ebp, %r12d
je 0xe0be7
leaq 0x63b59(%rip), %rsi     # 0x144731
movq %rbx, %rdi
movl %r12d, %edx
movl %ebp, %ecx
xorl %eax, %eax
callq 0xe9b27
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0xef14d
movb %al, 0x20(%r14)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef14d
movb %al, 0x21(%r14)
movzbl 0x20(%r14), %edx
movzbl %al, %ecx
leaq 0x63b5b(%rip), %rsi     # 0x144776
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
cmpq $0x23, 0x18(%r14)
jl 0xe0d02
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xef14d
movb %al, 0x22(%r14)
movzbl %al, %edx
leaq 0x63b56(%rip), %rsi     # 0x1447a2
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movb 0x22(%r14), %al
addb $-0x6, %al
cmpb $-0x6, %al
ja 0xe0c84
movb $0x0, 0x22(%r14)
jmp 0xe0d02
movq %r15, %rdi
callq 0xf6bb0
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
jmp 0xe17ef
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0xef3a0
movq %rax, 0x28(%r14)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movq %rax, 0x30(%r14)
movq 0x28(%r14), %rdx
leaq 0x63b19(%rip), %rsi     # 0x1447cd
movq %rbx, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x28(%r14), %rdx
movq 0x30(%r14), %rcx
movl 0x8(%r14), %r9d
leaq 0x63e80(%rip), %r8      # 0x144b53
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe1f01
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef14d
movb %al, 0x38(%r14)
movzbl %al, %edx
leaq 0x63af6(%rip), %rsi     # 0x1447ee
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r15, %rdi
callq 0xf6bb0
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movl $0xfdc4a7dc, %eax       # imm = 0xFDC4A7DC
cmpl %eax, %r13d
jne 0xe17ef
movq %rbx, %rdi
callq 0xeb85a
movq %rax, 0x10(%r14)
movq 0x18(%r14), %r12
movl 0x28(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
testq %r12, %r12
je 0xe104e
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r12
jge 0xe1059
movq 0x10(%r14), %rsi
movq %rbx, %rdi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xeb96a
testl %eax, %eax
je 0xe1075
movq %rbx, %rdi
leaq 0x318b2(%rip), %rsi     # 0x11262d
movq %r12, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %rbx, %rdi
leaq 0x2c(%rsp), %rsi
callq 0xe958c
testq %r12, %r12
js 0xe0dae
cmpq %r12, 0x40(%r14)
jle 0xe0dae
movq %r12, 0x40(%r14)
movl $0x48, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %r13
movq (%r14), %rsi
movq %rbx, %rdi
callq 0xfda6c
movq %rax, %r15
movq %r13, 0x88(%rax)
movq %r12, 0x18(%rax)
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0xef3a0
movl %eax, %ebp
movl $0xfdc4a7dc, %eax       # imm = 0xFDC4A7DC
cmpq %rax, %rbp
movq %rbp, 0x38(%rsp)
jne 0xe108e
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef14d
movb %al, (%r13)
cmpb $0x2, %al
sete 0x2(%r13)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef14d
movb %al, 0x1(%r13)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef3a0
movq %rax, 0x8(%r13)
movzbl (%r13), %edx
movq %rbx, %rdi
leaq 0x63a66(%rip), %rsi     # 0x1448b2
xorl %eax, %eax
callq 0xe9226
cmpq $0x0, 0x8(%r13)
je 0xe0e8c
movzbl 0x1(%r13), %edx
leaq 0x4b003(%rip), %rcx     # 0x12be69
cmpl $0x2, %edx
ja 0xe0e7b
movl %edx, %eax
leaq 0x63df4(%rip), %rsi     # 0x144c68
movslq (%rsi,%rax,4), %rcx
addq %rsi, %rcx
movq %rbx, %rdi
leaq 0x62f3a(%rip), %rsi     # 0x143dbf
xorl %eax, %eax
callq 0xe9226
cmpq $0x0, 0x8(%r13)
leaq 0x63d38(%rip), %rdx     # 0x144bd0
leaq 0x63a3d(%rip), %rax     # 0x1448dc
cmoveq %rax, %rdx
movl $0x50, %esi
leaq 0x40(%rsp), %rbp
movq %rbp, %rdi
xorl %eax, %eax
callq 0xe8d67
movq 0x8(%r13), %rdx
movq %rbx, %rdi
leaq 0x63a3c(%rip), %rsi     # 0x144901
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe9226
cmpq $0x0, 0x8(%r13)
je 0xe10ad
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef3a0
movq %rax, 0x40(%r15)
movq %rbx, %rdi
leaq 0x63a23(%rip), %rsi     # 0x144917
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movl %eax, 0x20(%r13)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movl %eax, 0x24(%r13)
movl 0x20(%r13), %edx
movq %rbx, %rdi
leaq 0x63a01(%rip), %rsi     # 0x14492d
movl %eax, %ecx
xorl %eax, %eax
callq 0xe93cf
cmpb $0x0, 0x2(%r13)
jne 0xe0f4c
movb $0x7f, 0x37(%r13)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe20f8
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movl %eax, 0x48(%r15)
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0x639da(%rip), %rsi     # 0x144942
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq %r15, %rdi
movq %r12, %rsi
callq 0xfdb9b
movq %r15, %rdi
movq %r12, %rsi
callq 0xfdbe0
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef14d
movb %al, 0x34(%r13)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef14d
movb %al, 0x35(%r13)
movzbl 0x34(%r13), %edx
movzbl %al, %ecx
movq %rbx, %rdi
leaq 0x639aa(%rip), %rsi     # 0x144963
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef14d
movb %al, 0x36(%r13)
movzbl %al, %edx
movq %rbx, %rdi
leaq 0x639a7(%rip), %rsi     # 0x144984
xorl %eax, %eax
callq 0xe9226
incq 0x8(%rsp)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef3a0
movq %rax, 0x10(%r13)
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef1ed
movq %rax, 0x18(%r13)
movq 0x10(%r13), %rdx
movq %rbx, %rdi
leaq 0x637be(%rip), %rsi     # 0x1447d5
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x10(%r13), %rdx
movq 0x18(%r13), %rcx
cmpl $0x0, 0x8(%r14)
je 0xe1161
cmpb $0x0, 0x36(%r13)
je 0xe115c
xorl %ebp, %ebp
cmpl $0x0, 0xc(%r14)
setne %bpl
jmp 0xe1161
xorl %r12d, %r12d
xorl %r15d, %r15d
jmp 0xe14fe
xorl %r15d, %r15d
movq %rbx, %rdi
leaq 0x63613(%rip), %rsi     # 0x144679
movq %r12, %rdx
xorl %eax, %eax
callq 0xe9df7
jmp 0xe14fe
xorl %r15d, %r15d
movq %rbx, %rdi
leaq 0x60ffa(%rip), %rsi     # 0x14207c
xorl %eax, %eax
callq 0xe9df7
jmp 0xe14fe
movq 0x18(%r15), %rdx
movq %rbx, %rdi
leaq 0x637ea(%rip), %rsi     # 0x144886
xorl %eax, %eax
callq 0xe9df7
xorl %ebp, %ebp
xorl %r12d, %r12d
jmp 0xe141a
movq 0x88(%r15), %r12
cmpb $0x0, 0x2(%r12)
je 0xe10a3
movq 0x18(%r15), %rbp
movq 0x18(%rbx), %rdi
leaq 0x33(%rbp), %rsi
callq 0xef1ca
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
leaq 0x638c8(%rip), %rsi     # 0x1449a4
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
addq $0x36, %rbp
movq %rbp, %rsi
callq 0xef1ca
movl %eax, 0x2c(%r12)
movq %rbx, %rdi
leaq 0x638fd(%rip), %rsi     # 0x144a01
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq 0x10(%rsp), %rcx
callq 0xe21d9
movl 0x30(%r12), %edx
movq %rbx, %rdi
leaq 0x638ef(%rip), %rsi     # 0x144a1e
xorl %eax, %eax
callq 0xe9226
movl 0x30(%r12), %eax
cmpl 0x2c(%r12), %eax
je 0xe10a3
movq %rbx, %rdi
leaq 0x3711b(%rip), %rsi     # 0x11826b
xorl %eax, %eax
callq 0xe9b27
jmp 0xe10a3
movl $0x1, %ebp
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x631c4(%rip), %r8      # 0x144332
movl %ebp, %r9d
callq 0xe1f01
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r12
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rsi
movq (%r14), %rax
movl 0x18(%rax), %r9d
movl $0xd, %edx
movq %r12, %rcx
movl $0x1, %r8d
callq 0xf01b0
movq %r12, %rdi
callq 0xf74bd
movq %rbx, %rdi
leaq 0x637dd(%rip), %rsi     # 0x144993
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq %r12, %rdi
callq 0xf6bea
testl %eax, %eax
je 0xe11e0
movq %r12, %rdi
leaq 0x4d49e(%rip), %rsi     # 0x12e674
movl $0x5, %edx
callq 0xf6a40
addq $0xd, 0x8(%rsp)
cmpb $0x0, 0x2(%r13)
je 0xe13ad
movq %r12, 0x10(%rsp)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0xef1ed
movq %rax, %rbp
movq %rbx, %rdi
leaq 0x63790(%rip), %rsi     # 0x1449a4
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef14d
movb %al, 0x37(%r13)
cmpb $0x7f, %al
jne 0xe124c
movl $0x50, %edx
leaq 0x40(%rsp), %r12
movq %r12, %rdi
leaq 0x31247(%rip), %rsi     # 0x11248c
callq 0xe8ded
jmp 0xe129b
movzbl %al, %ecx
cvtsi2sd %ecx, %xmm0
testb %al, %al
leaq 0x40(%rsp), %r12
js 0xe1275
mulsd 0x6338c(%rip), %xmm0    # 0x1445f0
movl $0x50, %esi
movq %r12, %rdi
leaq 0x63764(%rip), %rdx     # 0x1449d7
jmp 0xe1294
addsd 0x6337b(%rip), %xmm0    # 0x1445f8
mulsd 0x6337b(%rip), %xmm0    # 0x144600
movl $0x50, %esi
movq %r12, %rdi
leaq 0x6372c(%rip), %rdx     # 0x1449c0
movb $0x1, %al
callq 0xe8d67
movzbl 0x37(%r13), %edx
movq %rbx, %rdi
leaq 0x63744(%rip), %rsi     # 0x1449ee
movq %r12, %rcx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe20f8
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef1ed
movl %eax, 0x2c(%r13)
movq %rbx, %rdi
leaq 0x63726(%rip), %rsi     # 0x144a01
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq 0xe21d9
movl 0x30(%r13), %edx
movq %rbx, %rdi
leaq 0x6371b(%rip), %rsi     # 0x144a1e
xorl %eax, %eax
callq 0xe9226
movl 0x30(%r13), %eax
cmpl 0x2c(%r13), %eax
je 0xe1325
movq %rbx, %rdi
leaq 0x36f4d(%rip), %rsi     # 0x11826b
xorl %eax, %eax
callq 0xe9b27
testq %rbp, %rbp
movq 0x10(%rsp), %r12
jle 0xe13ad
movq 0x8(%rsp), %r12
addq %rbp, %r12
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef14d
movzbl %al, %ebp
movq %rbx, %rdi
leaq 0x636eb(%rip), %rsi     # 0x144a3d
movl %ebp, %edx
xorl %eax, %eax
callq 0xe93cf
cmpq 0x8(%rsp), %r12
jle 0xe13a4
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movq %r12, 0x20(%rsp)
callq 0xef14d
movzbl %al, %edx
movq %rbx, %rdi
leaq 0x636cd(%rip), %rsi     # 0x144a4f
movq %rdx, 0x18(%rsp)
xorl %eax, %eax
callq 0xe93cf
movq 0x20(%rsp), %rcx
movq %rcx, %rax
subq 0x8(%rsp), %rax
cmpq %rbp, %rax
jge 0xe159f
xorl %ebp, %ebp
movq 0x10(%rsp), %r12
jmp 0xe13af
xorl %ebp, %ebp
movq 0x70(%r15), %rdi
callq 0xf6c00
testl %eax, %eax
je 0xe13de
movq 0x58(%r15), %rdi
movq 0x70(%r15), %rsi
callq 0xf6969
movq 0x58(%r15), %rdi
leaq 0x30c9a(%rip), %rsi     # 0x11206e
movl $0x5, %edx
callq 0xf6a40
movq %rbp, %rdi
callq 0xf6c00
testl %eax, %eax
movq 0x58(%r15), %rdi
movq %r12, %rsi
cmovneq %rbp, %rsi
callq 0xf6969
cmpb $0x0, 0x36(%r13)
je 0xe141a
movq 0x58(%r15), %rdi
movl 0x3c(%r14), %ecx
movl $0x5, %esi
leaq 0x636db(%rip), %rdx     # 0x144aee
xorl %eax, %eax
callq 0xf6ab0
movq 0x58(%r15), %rdi
callq 0xf6bea
testl %eax, %eax
je 0xe143c
movq 0x58(%r15), %rdi
leaq 0x4d242(%rip), %rsi     # 0x12e674
movl $0x5, %edx
callq 0xf6a40
movq %r12, %rdi
callq 0xf6bb0
movq %rbp, %rdi
callq 0xf6bb0
movl $0xfdc4a7dc, %eax       # imm = 0xFDC4A7DC
cmpl %eax, 0x38(%rsp)
jne 0xe14c6
movq 0x30(%r15), %rcx
movq 0x40(%r15), %rdx
testq %rcx, %rcx
sete %al
testq %rdx, %rdx
sets %sil
orb %al, %sil
jne 0xe147b
cmpq %rdx, 0x40(%r14)
jle 0xe147b
movq %rdx, 0x40(%r14)
movq 0x8(%r13), %r12
testq %r12, %r12
je 0xe14c9
cmpb $0x0, 0x36(%r13)
je 0xe1496
cmpl $0x0, 0xc(%r14)
je 0xe1562
cmpb $0x2, 0x34(%r13)
jbe 0xe150c
movq 0x58(%r15), %rdi
callq 0xf7557
movzbl 0x34(%r13), %ecx
movzbl 0x35(%r13), %r8d
movq %rbx, %rdi
leaq 0x6337f(%rip), %rsi     # 0x144839
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9df7
jmp 0xe14c9
xorl %r12d, %r12d
testq %r13, %r13
je 0xe14e4
cmpb $0x0, 0x36(%r13)
je 0xe14d9
incl 0x3c(%r14)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe9752
movq %rbx, %rdi
movq %r15, %rsi
callq 0xfdab8
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
movb $0x1, %r15b
testb %r15b, %r15b
jne 0xe0d35
jmp 0xe1840
jne 0xe1515
cmpb $0x2, 0x35(%r13)
jae 0xe149d
movq %rbx, %rdi
leaq 0x44adc(%rip), %rsi     # 0x125ffb
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
cmpb $0x3, 0x1(%r13)
jae 0xe1578
orb $0x1, 0x78(%r15)
movb $0x1, 0xa1(%r15)
leaq 0xadd(%rip), %rax       # 0xe202b
movq %rax, 0xa8(%r15)
movq %r15, %rdi
callq 0xfdec1
jmp 0xe14c9
movq %rbx, %rdi
leaq 0x632b6(%rip), %rsi     # 0x144822
xorl %eax, %eax
callq 0xe9226
jmp 0xe14c9
movq 0x58(%r15), %rdi
callq 0xf7557
movzbl 0x1(%r13), %ecx
movq %rbx, %rdi
leaq 0x632cf(%rip), %rsi     # 0x14485f
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9df7
jmp 0xe14c9
movq %rbp, %rdx
testq %rbp, %rbp
movq 0x10(%rsp), %r12
je 0xe1607
movq %rbx, %rdi
movq %rdx, 0x30(%rsp)
callq 0xf6870
movq %rax, %rbp
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rsi
movq (%r14), %rax
movl 0x18(%rax), %r9d
movq 0x30(%rsp), %rdx
movq %rbp, %rcx
movl $0x1, %r8d
callq 0xf01b0
movq %rbp, %rdi
callq 0xf74bd
movq %rbx, %rdi
leaq 0x6346f(%rip), %rsi     # 0x144a60
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x30(%rsp), %rdx
movq 0x20(%rsp), %rcx
jmp 0xe1609
xorl %ebp, %ebp
addq 0x8(%rsp), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, %rax
subq %rdx, %rax
movq 0x18(%rsp), %rdx
cmpq %rdx, %rax
jl 0xe13af
testq %rdx, %rdx
je 0xe1682
movq %rbx, %rdi
callq 0xf6870
movq %rax, 0x70(%r15)
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rsi
movq (%r14), %rcx
movl 0x18(%rcx), %r9d
movq 0x18(%rsp), %rdx
movq %rax, %rcx
movl $0x1, %r8d
callq 0xf01b0
movq 0x70(%r15), %rdi
callq 0xf74bd
movq %rbx, %rdi
leaq 0x3d39a(%rip), %rsi     # 0x11ea08
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
addq 0x8(%rsp), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, %rax
subq %rdx, %rax
cmpq $0x2, %rax
jl 0xe13af
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef1ed
movl %eax, 0x38(%r13)
movq %rbx, %rdi
leaq 0x633b8(%rip), %rsi     # 0x144a70
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rax
subq %rsi, %rax
cmpq $0x3, %rax
jl 0xe13af
movq 0x18(%rbx), %rdi
movl $0x3, %edx
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0xef6f2
movl %eax, 0x3c(%r13)
addq $0x3, 0x8(%rsp)
movq %rbx, %rdi
leaq 0x6337c(%rip), %rsi     # 0x144a7e
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movl 0x3c(%r13), %edx
shrl $0x16, %edx
movl %edx, 0x18(%rsp)
movq %rbx, %rdi
leaq 0x63361(%rip), %rsi     # 0x144a8e
xorl %eax, %eax
callq 0xe9226
cmpl $0x1, 0x18(%rsp)
jne 0xe1770
movl 0x3c(%r13), %edx
movl $0x1ff, %eax            # imm = 0x1FF
andl %eax, %edx
movq %rbx, %rdi
leaq 0x6334f(%rip), %rsi     # 0x144a9f
xorl %eax, %eax
callq 0xe9226
movl 0x3c(%r13), %eax
andl $0x49, %eax
cmpl $0x1, %eax
movl $0x2, %eax
sbbl $0x0, %eax
movq 0x50(%r15), %rcx
orl %eax, 0x14(%rcx)
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x20(%rsp), %rcx
cmpq 0x8(%rsp), %rcx
jle 0xe13af
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
movq %rcx, %r12
callq 0xef14d
movb %al, 0x40(%r13)
movzbl %al, %edx
movq %rbx, %rdi
leaq 0x63301(%rip), %rsi     # 0x144ab0
xorl %eax, %eax
callq 0xe9226
subq 0x8(%rsp), %r12
cmpq $0x2, %r12
jl 0xe13a6
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef1ed
movl %eax, 0x44(%r13)
movq %rbx, %rdi
leaq 0x632f5(%rip), %rsi     # 0x144ad6
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
jmp 0xe13a6
leaq 0x62e71(%rip), %rsi     # 0x144667
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9df7
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0xeb864
movq (%r14), %rsi
movq %rbx, %rdi
callq 0xfdb25
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe9752
movl 0x28(%rsp), %esi
movq %rbx, %rdi
callq 0xe9595
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x0, 0x40(%rsp)
cmpb $0x1, 0x22(%r14)
jne 0xe18ea
cmpq $0x0, 0x28(%r14)
je 0xe18ea
cmpq $0x0, 0x30(%r14)
je 0xe18ea
movq 0x40(%r14), %r15
cmpq $0x2b, %r15
jl 0xe18ea
leaq -0x413(%r15), %rax
cmpq $-0x3e4, %rax           # imm = 0xFC1C
jb 0xe18ea
movq 0x18(%rbx), %rdi
leaq -0x1(%r15), %rsi
callq 0xef0d5
cmpb $0xa, %al
jne 0xe18ea
addq $-0x2a, %r15
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %r8
movl $0x2a, %edx
xorl %esi, %esi
movq %r15, %rcx
callq 0xf0057
testl %eax, %eax
jne 0xe18ea
leaq 0x63257(%rip), %rsi     # 0x144b12
movl $0x2a, %edx
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0xe9226
leaq 0x63276(%rip), %r8      # 0x144b4a
movl $0x2a, %edx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
xorl %r9d, %r9d
callq 0xe1f01
movl 0x3c(%r14), %edx
testl %edx, %edx
jle 0xe1800
cmpl $0x0, 0xc(%r14)
jne 0xe1800
leaq 0x62d9f(%rip), %rsi     # 0x1446a7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9ef5
jmp 0xe1800