// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/rar.c
// Function: de_run_rar
static void de_run_rar(deark *c, de_module_params *mparams)
{
	de_arch_lctx *d = NULL;

	d = de_arch_create_lctx(c);
	d->is_le = 1;
	d->input_encoding = de_get_input_encoding(c, NULL, DE_ENCODING_CP437);
	d->data_startpos = 0;

	d->fmtver = rar_get_fmtver(c->infile, d->data_startpos);
	if(d->fmtver==0 && c->module_disposition==DE_MODDISP_EXPLICIT) {
		if(rar_search_for_archive(c, d, &d->data_startpos)) {
			de_dbg(c, "likely RAR data found at %"I64_FMT, d->data_startpos);
			d->fmtver = rar_get_fmtver(c->infile, d->data_startpos);
		}
	}

	if(d->fmtver==0) {
		de_err(c, "Not a RAR file");
		goto done;
	}

	if(d->fmtver==1) {
		do_rar_old(c, d);
	}
	else if(d->fmtver==4) {
		do_rar_v4(c, d);
	}
	else {
		do_rar_v5(c, d);
	}

done:
	de_arch_destroy_lctx(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
callq 0xf16ce
movq %rax, %r15
movq %rax, %r14
movl $0x1, 0x10(%rax)
pushq $0xd
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0xe08d2
movl %eax, 0x18(%r15)
andq $0x0, 0x48(%r15)
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0xd8f01
movl %eax, 0x58(%r15)
testl %eax, %eax
movq %r14, 0x10(%rsp)
jne 0xd80c1
cmpl $0x2, 0x24(%rbx)
jne 0xd80d7
addq $0x48, %r15
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %r8
leaq 0x5fca2(%rip), %rsi     # 0x137d08
pushq $0x6
popq %rdx
xorl %ecx, %ecx
movq %r15, %r9
callq 0xe62f1
testl %eax, %eax
jne 0xd809b
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %r8
leaq 0x5fd5e(%rip), %rsi     # 0x137de4
pushq $0x4
popq %rdx
xorl %ecx, %ecx
movq %r15, %r9
callq 0xe62f1
testl %eax, %eax
je 0xd8ee2
movq 0x48(%r14), %rdx
leaq 0x5fd12(%rip), %rsi     # 0x137db8
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq 0x48(%r14), %rsi
callq 0xd8f01
movl %eax, 0x58(%r14)
cmpl $0x4, %eax
je 0xd84d0
cmpl $0x1, %eax
je 0xd80ed
testl %eax, %eax
jne 0xd8573
leaq 0x5fcf7(%rip), %rsi     # 0x137dd5
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0xd8ec6
movq 0x48(%r14), %r15
leaq 0x2c(%rsp), %rsi
movq %rbx, %rdi
callq 0xdebae
leaq 0x5fce4(%rip), %rsi     # 0x137de9
movq %rbx, %rdi
callq 0xe07f7
leaq 0x3dd3e(%rip), %rsi     # 0x115e52
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0xdeba7
leaq 0x4(%r15), %rax
movq %r14, %r13
leaq 0x18(%rsp), %r14
movq %rax, (%r14)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xe3fc4
movq %rax, %r12
leaq 0x4107c(%rip), %rsi     # 0x1191cd
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xe3f2a
movzbl %al, %edx
movl %edx, 0x60(%r13)
leaq 0x4ac6e(%rip), %rsi     # 0x122de6
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movl 0x60(%r13), %eax
testb $0x2, %al
je 0xd81f4
movq 0x18(%rbx), %rdi
leaq 0x18(%rsp), %r13
movq %r13, %rsi
callq 0xe3fc4
movq %rax, %r14
movq (%r13), %rdx
movq 0x10(%rsp), %r13
movl 0x60(%r13), %r8d
shrl $0x4, %r8d
andl $0x1, %r8d
leaq 0x5fc3c(%rip), %rsi     # 0x137df6
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movl 0x60(%r13), %eax
testb $0x10, %al
jne 0xd81ef
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %r13
movl 0x18(%r13), %ecx
movq %rbx, %rdi
movq %r14, %rdx
xorl %r8d, %r8d
callq 0xd8f5c
movl 0x60(%r13), %eax
addq %r14, 0x18(%rsp)
testb $0x20, %al
je 0xd8226
movq 0x18(%rbx), %rdi
leaq 0x18(%rsp), %r14
movq %r14, %rsi
callq 0xe3fc4
movq %rax, %r13
movq (%r14), %rdx
leaq 0x5fc0f(%rip), %rsi     # 0x137e25
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
addq %r13, (%r14)
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
addq %r15, %r12
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %r13
xorl %r15d, %r15d
movq 0x10(%rsp), %r14
movq %r12, 0x18(%rsp)
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r12
jge 0xd8e98
testq %r15, %r15
je 0xd8268
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf167c
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf1630
movq %rax, %r15
movq 0x18(%rsp), %rax
movq %rax, 0x18(%r15)
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
callq 0xdebae
movq 0x18(%r15), %rdx
movq %rbx, %rdi
leaq 0x40d09(%rip), %rsi     # 0x118fa8
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movl %ebp, %esi
callq 0xdeba7
movq %r15, %rdi
movq %r13, %rsi
callq 0xf17ab
movq %r15, %rdi
movq %r13, %rsi
callq 0xf1766
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rbx, %rdi
leaq 0x3d2f3(%rip), %rsi     # 0x1155cf
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rax, %r12
movq %rbx, %rdi
leaq 0x5fb58(%rip), %rsi     # 0x137e56
movl %r12d, %edx
xorl %eax, %eax
callq 0xde896
cmpq $0xb, %r12
jg 0xd831b
movl $0x1, 0x38(%r14)
jmp 0xd84a2
movq 0x30(%r15), %rax
addq %r12, %rax
movq %rax, 0x28(%r15)
movq 0x50(%r15), %rsi
addq $0x18, %rsi
movq %r14, %rdi
leaq 0x32dae(%rip), %rdx     # 0x10b0e6
pushq $0x4
popq %rcx
movq %r13, %r8
callq 0xf1866
movq %r15, %rdi
movq %r13, %rsi
callq 0xf1849
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3f2a
movzbl %al, %edx
movl %edx, 0x94(%r15)
movq %rbx, %rdi
leaq 0x4aa78(%rip), %rsi     # 0x122de6
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3f2a
movzbl %al, %edx
movq %rbx, %rdi
leaq 0x5fad4(%rip), %rsi     # 0x137e62
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3f2a
movl %eax, %r14d
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3f2a
movzbl %al, %edx
movl %edx, 0x90(%r15)
leaq 0x46b20(%rip), %rcx     # 0x11eee1
cmpb $0x5, %dl
ja 0xd83d3
movl %edx, %eax
leaq 0xb9301(%rip), %rcx     # 0x1916d0
movq (%rcx,%rax,8), %rcx
movzbl %r14b, %r14d
movq %rbx, %rdi
leaq 0x5fa9e(%rip), %rsi     # 0x137e7f
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rsi
movq 0x58(%r15), %rcx
movq 0x10(%rsp), %rax
movl 0x18(%rax), %r9d
movq %r14, %rdx
xorl %r8d, %r8d
callq 0xe4c9a
movq 0x58(%r15), %rdi
callq 0xeb877
movq %rbx, %rdi
leaq 0x56642(%rip), %rsi     # 0x12ea5e
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
addq %r14, 0x8(%rsp)
testb $0x8, 0x94(%r15)
je 0xd847d
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rax, %r14
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
leaq 0x5fa42(%rip), %rsi     # 0x137e95
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rax
movl 0x18(%rax), %ecx
movq %rbx, %rdi
movq %r14, %rdx
movl %ebp, %r8d
callq 0xd8f5c
addq %r14, 0x8(%rsp)
addq 0x18(%r15), %r12
movq %r12, 0x40(%r15)
movq 0x30(%r15), %rcx
movq %rbx, %rdi
leaq 0x5fa1f(%rip), %rsi     # 0x137eb2
movq %r12, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x10(%rsp), %r14
movl 0x20(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
cmpl $0x0, 0x38(%r14)
jne 0xd8e9d
movq 0x28(%r15), %r12
testq %r12, %r12
jle 0xd8e9d
addq 0x18(%rsp), %r12
jmp 0xd8245
movq %r14, %r15
movq 0x48(%r14), %r14
leaq 0x5fa01(%rip), %rsi     # 0x137edf
movq %rbx, %rdi
callq 0xe07f7
pushq $0x10
popq %rsi
movq %rbx, %rdi
callq 0xe0ae9
movq %rax, 0x30(%r15)
xorl %r15d, %r15d
pushq $0x50
popq %r12
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r14
jge 0xd8eb6
testq %r15, %r15
je 0xd851a
movq %rbx, %rdi
movq %r15, %rsi
callq 0xded32
movq %rbx, %rdi
movq %r12, %rsi
callq 0xdecaf
movq %rax, %r15
movq %r14, (%rax)
movq 0x18(%rbx), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%r15)
movb $0x0, 0x19(%r15)
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r15, %rdx
callq 0xd9030
cmpb $0x0, 0x1a(%r15)
je 0xd8ebb
cmpb $0x0, 0x1b(%r15)
jne 0xd8ebb
movq 0x48(%r15), %rax
addq %rax, %r14
testq %rax, %rax
jg 0xd84fc
jmp 0xd8ebb
movq 0x48(%r14), %r15
leaq 0x5fba8(%rip), %rsi     # 0x138126
movq %rbx, %rdi
callq 0xe07f7
pushq $0x10
popq %rsi
movq %rbx, %rdi
callq 0xe0ae9
movq %rax, 0x30(%r14)
addq $0x8, %r15
pushq $0x48
popq %r13
xorl %ebp, %ebp
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r15
jge 0xd8e80
testq %rbp, %rbp
je 0xd85bd
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xded32
movq %rbx, %rdi
movq %r13, %rsi
callq 0xdecaf
movq %rax, %rbp
movq %rbx, %rdi
leaq 0x44(%rsp), %rsi
callq 0xdebae
movq %r15, (%rbp)
movq %r15, 0x20(%rsp)
movq %rbx, %rdi
leaq 0x4bae2(%rip), %rsi     # 0x1240cd
movq %r15, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %r14
movq %r14, %rsi
callq 0xe40bf
movl %eax, 0x10(%rbp)
movq %rbx, %rdi
leaq 0x32c57(%rip), %rsi     # 0x10b275
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xd99d7
movq %rax, %r12
movq %rbx, %rdi
leaq 0x465eb(%rip), %rsi     # 0x11ec2b
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpq $0x1fffff, %r12         # imm = 0x1FFFFF
jg 0xd8e42
movq 0x20(%rsp), %r14
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0xd99e8
movl %eax, 0x14(%rbp)
leal -0x1(%rax), %edx
leaq 0x4686a(%rip), %rcx     # 0x11eee1
cmpl $0x4, %edx
ja 0xd868c
movl %edx, %ecx
leaq 0x5f6b7(%rip), %rdx     # 0x137d3c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
movq %rbx, %rdi
leaq 0x5fa98(%rip), %rsi     # 0x13812e
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
cmpl $0x5, 0x14(%rbp)
jne 0xd86b1
movq 0x10(%rsp), %rax
movl $0x1, 0x50(%rax)
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0xd99e8
movl %eax, 0x18(%rbp)
movq %rbx, %rdi
leaq 0x5fa74(%rip), %rsi     # 0x138140
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movl 0x18(%rbp), %eax
testb $0x1, %al
je 0xd8717
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0xd99d7
movq %rax, 0x28(%rbp)
movq %rbx, %rdi
leaq 0x5fa56(%rip), %rsi     # 0x13814e
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x28(%rbp), %rax
movq 0x18(%rbx), %rcx
cmpq 0x18(%rcx), %rax
jg 0xd8e42
movl 0x18(%rbp), %eax
testb $0x2, %al
jne 0xd8729
movq 0x38(%rbp), %rax
movq 0x18(%rbx), %rcx
movq 0x18(%rcx), %rcx
jmp 0xd8764
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0xd99d7
movq %rax, 0x38(%rbp)
movq %rbx, %rdi
leaq 0x5fa1d(%rip), %rsi     # 0x138162
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x38(%rbp), %rax
movq 0x18(%rbx), %rcx
movq 0x18(%rcx), %rcx
cmpq %rcx, %rax
jg 0xd8e42
movq 0x20(%rsp), %rdx
movq %rdx, 0x40(%rbp)
addq %r12, %r14
movq %r14, 0x30(%rbp)
addq %rax, %r14
cmpq %rcx, %r14
jg 0xd8e42
movq 0x10(%rsp), %r14
movq 0x30(%r14), %rdi
callq 0xe0e44
movq 0x30(%r14), %rdi
movq 0x18(%rbx), %rsi
movq (%rbp), %rdx
movq 0x30(%rbp), %rcx
addq $0x4, %rdx
subq %rdx, %rcx
callq 0xe0f33
movq 0x30(%r14), %rdi
callq 0xe0e95
movl %eax, %r14d
movq %rbx, %rdi
leaq 0x32ad6(%rip), %rsi     # 0x10b296
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
cmpl 0x10(%rbp), %r14d
jne 0xd8e42
movq 0x30(%rbp), %rdx
movq 0x38(%rbp), %rax
addq %rdx, %rax
subq (%rbp), %rax
movq %rax, 0x8(%rbp)
subq 0x28(%rbp), %rdx
movq %rdx, 0x20(%rbp)
movl 0x18(%rbp), %eax
testb $0x1, %al
je 0xd8809
movq %rbx, %rdi
leaq 0x5f976(%rip), %rsi     # 0x138175
xorl %eax, %eax
callq 0xde896
movl 0x18(%rbp), %eax
testb $0x2, %al
je 0xd8822
movq 0x30(%rbp), %rdx
movq %rbx, %rdi
leaq 0x33721(%rip), %rsi     # 0x10bf3c
xorl %eax, %eax
callq 0xde896
movl 0x14(%rbp), %eax
leal -0x2(%rax), %ecx
cmpl $0x2, %ecx
movq 0x10(%rsp), %r14
jae 0xd8af1
movq %rbx, %rdi
pushq $0x40
popq %rsi
callq 0xdecaf
movq %rax, %r12
movq 0x40(%rbp), %rax
movq %rax, 0x8(%rsp)
cmpl $0x2, 0x14(%rbp)
jne 0xd886d
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd99be
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf1630
movq %rax, 0x68(%r14)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0xd99e8
movl %eax, (%r12)
movq %rbx, %rdi
leaq 0x5f91d(%rip), %rsi     # 0x1381a9
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xd99d7
leaq 0x10(%r12), %r14
movq %rax, 0x10(%r12)
movq %rbx, %rdi
leaq 0x32847(%rip), %rsi     # 0x10b0fc
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq %r14, 0x30(%rsp)
movq %r14, %rdi
callq 0xe10b1
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xd99e8
movq %rax, 0x8(%r12)
movq %rbx, %rdi
leaq 0x5f8d1(%rip), %rsi     # 0x1381ba
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movl (%r12), %eax
testb $0x2, %al
je 0xd891f
movq %r12, %rsi
addq $0x28, %rsi
movq 0x10(%rsp), %rdi
leaq 0x327d8(%rip), %rdx     # 0x10b0e6
pushq $0x2
popq %rcx
leaq 0x8(%rsp), %r8
callq 0xf1866
movl (%r12), %eax
testb $0x4, %al
je 0xd8949
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe40bf
movl %eax, 0x18(%r12)
movq %rbx, %rdi
leaq 0x5f889(%rip), %rsi     # 0x1381c9
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0xd99e8
movl %eax, 0x1c(%r12)
movq %rbx, %rdi
leaq 0x5f871(%rip), %rsi     # 0x1381da
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movl 0x1c(%r12), %edx
andl $0x3f, %edx
movq %rbx, %rdi
leaq 0x510f5(%rip), %rsi     # 0x129a84
xorl %eax, %eax
callq 0xde896
movl 0x1c(%r12), %edx
shrl $0x6, %edx
andl $0x1, %edx
movq %rbx, %rdi
leaq 0x5f83f(%rip), %rsi     # 0x1381ea
xorl %eax, %eax
callq 0xde896
movl 0x1c(%r12), %edx
shrl $0x7, %edx
andl $0x7, %edx
movl %edx, 0x20(%r12)
movq %rbx, %rdi
leaq 0x402e6(%rip), %rsi     # 0x118cb2
xorl %eax, %eax
callq 0xde896
movl 0x1c(%r12), %ecx
shrl $0xa, %ecx
andl $0xf, %ecx
movl $0x80, %eax
shll %cl, %eax
movq %rbx, %rdi
leaq 0x5f805(%rip), %rsi     # 0x1381f4
movl %ecx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xd99e8
movl %eax, 0x24(%r12)
movq %rbx, %rdi
leaq 0x5f7e8(%rip), %rsi     # 0x138208
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xd99d7
cmpq $0xffff, %rax           # imm = 0xFFFF
jg 0xd8ad7
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
pushq $0x2
popq %r9
callq 0xe495c
movq %rax, 0x38(%r12)
movq 0x18(%rax), %rdi
callq 0xeb877
movq %rbx, %rdi
leaq 0x3cb47(%rip), %rsi     # 0x1155bb
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpl $0x3, 0x14(%rbp)
jne 0xd8ad7
movq 0x38(%r12), %rax
movq 0x8(%rax), %rdi
leaq 0x5f77b(%rip), %rsi     # 0x13820f
callq 0x181a0
testl %eax, %eax
jne 0xd8ad7
cmpl $0x0, 0x20(%r12)
jne 0xd8ad0
movq 0x38(%rbp), %rdi
movq 0x30(%rsp), %rax
movq (%rax), %rsi
callq 0xdfb45
testq %rax, %rax
jle 0xd8ad0
movq 0x30(%rbp), %rsi
movq %rbx, %rdi
movq %rax, %rdx
pushq $0x2
popq %rcx
xorl %r8d, %r8d
callq 0xd8f5c
xorl %edi, %edi
callq 0xeaf3c
movq 0x38(%r12), %rsi
movq %rbx, %rdi
callq 0xe4b94
movq %rbx, %rdi
movq %r12, %rsi
callq 0xded32
jmp 0xd8afe
cmpl $0x4, %eax
jne 0xd8afe
movl $0x1, 0x50(%r14)
movq 0x20(%rbp), %rax
movq %rax, 0x18(%rsp)
movq 0x30(%rbp), %r12
movq %rbx, %rdi
leaq 0x2c(%rsp), %rsi
callq 0xdebae
movq %rbx, %rdi
pushq $0x58
popq %rsi
callq 0xdecaf
movq %rax, 0x38(%rsp)
movq 0x28(%rbp), %rcx
testq %rcx, %rcx
jle 0xd8e29
movq 0x20(%rbp), %rdx
movq %rbx, %rdi
leaq 0x5f6d0(%rip), %rsi     # 0x138213
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x38(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x58(%rsp)
leaq 0x18(%rax), %rcx
movq %rcx, 0x50(%rsp)
addq $0x28, %rax
movq %rax, 0x48(%rsp)
movq %r15, 0x30(%rsp)
movq %r12, 0x60(%rsp)
movq 0x18(%rsp), %rdx
cmpq %r12, %rdx
jge 0xd8e29
movq %rbx, %rdi
leaq 0x2e8a0(%rip), %rsi     # 0x107437
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%rbx), %rdi
leaq 0x18(%rsp), %rsi
callq 0xd99d7
movq %rax, %r14
movq %rbx, %rdi
leaq 0x5f66a(%rip), %rsi     # 0x13822e
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpq 0x28(%rbp), %r14
jg 0xd8e29
addq 0x18(%rsp), %r14
cmpq %r12, %r14
jg 0xd8e29
movq 0x18(%rbx), %rdi
leaq 0x18(%rsp), %rsi
callq 0xd99e8
movq %rax, %r13
movl 0x14(%rbp), %eax
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0x2, %ecx
jne 0xd8c26
leal -0x1(%r13), %eax
leaq 0x462d2(%rip), %rcx     # 0x11eee1
cmpl $0x7, %eax
jae 0xd8c43
movl %eax, %eax
leaq 0x5f133(%rip), %rdx     # 0x137d50
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
jmp 0xd8c43
xorl $0x1, %eax
movl %r13d, %ecx
xorl $0x1, %ecx
orl %eax, %ecx
leaq 0x462a9(%rip), %rcx     # 0x11eee1
leaq 0x4acf4(%rip), %rax     # 0x123933
cmoveq %rax, %rcx
movq %rbx, %rdi
leaq 0x5f5f1(%rip), %rsi     # 0x13823e
movl %r13d, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rsp), %r15
movq %r14, %r12
subq %r15, %r12
movq %rbx, %rdi
leaq 0x5f5e7(%rip), %rsi     # 0x138253
movq %r15, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xde896
movl 0x14(%rbp), %eax
cmpl $0x2, %eax
jne 0xd8cbe
cmpl $0x3, %r13d
je 0xd8cca
testq %r12, %r12
movq 0x30(%rsp), %r15
jle 0xd8e0b
movq 0x18(%rbx), %rsi
movq 0x18(%rsp), %rdx
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
movq %r12, %rcx
xorl %r9d, %r9d
callq 0xded3a
jmp 0xd8e0b
xorl $0x3, %eax
xorl $0x3, %r13d
orl %eax, %r13d
jne 0xd8c87
movq %r15, 0x8(%rsp)
testq %r12, %r12
movq 0x30(%rsp), %r15
jle 0xd8e0b
movq 0x38(%rsp), %rax
movb $0x1, (%rax)
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xd99e8
movq %rax, %r13
movq %rbx, %rdi
leaq 0x5f4ae(%rip), %rsi     # 0x1381ae
movl %r13d, %edx
xorl %eax, %eax
callq 0xde896
xorl %eax, %eax
testb $0x1, %r13b
sete %al
leal 0x2(,%rax,4), %r12d
testb $0x2, %r13b
je 0xd8d3f
movq 0x10(%rsp), %rdi
movq 0x58(%rsp), %rsi
leaq 0x323b4(%rip), %rdx     # 0x10b0e6
movl %r12d, %ecx
leaq 0x8(%rsp), %r8
callq 0xf1866
testb $0x4, %r13b
je 0xd8d63
movq 0x10(%rsp), %rdi
movq 0x50(%rsp), %rsi
leaq 0x324d8(%rip), %rdx     # 0x10b22e
movl %r12d, %ecx
leaq 0x8(%rsp), %r8
callq 0xf1866
testb $0x8, %r13b
je 0xd8d87
movq 0x10(%rsp), %rdi
movq 0x48(%rsp), %rsi
leaq 0x2f842(%rip), %rdx     # 0x1085bc
movl %r12d, %ecx
leaq 0x8(%rsp), %r8
callq 0xf1866
notl %r13d
testb $0x13, %r13b
jne 0xd8db5
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe40bf
cvtsi2sd %rax, %xmm0
divsd 0x34c55(%rip), %xmm0    # 0x10da00
movq 0x58(%rsp), %rdi
callq 0xe0071
testb $0x15, %r13b
jne 0xd8de0
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe40bf
cvtsi2sd %rax, %xmm0
divsd 0x34c2a(%rip), %xmm0    # 0x10da00
movq 0x50(%rsp), %rdi
callq 0xe0071
testb $0x19, %r13b
jne 0xd8e0b
movq 0x18(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0xe40bf
cvtsi2sd %rax, %xmm0
divsd 0x34bff(%rip), %xmm0    # 0x10da00
movq 0x48(%rsp), %rdi
callq 0xe0071
movq %r14, 0x18(%rsp)
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
pushq $0x48
popq %r13
movq 0x60(%rsp), %r12
jmp 0xd8b7f
movq %rbx, %rdi
movq 0x38(%rsp), %rsi
callq 0xded32
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
cmpq $0x0, 0x8(%rbp)
movq 0x10(%rsp), %r14
jne 0xd8e56
movl $0x1, 0x38(%r14)
movl 0x44(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
cmpl $0x0, 0x38(%r14)
jne 0xd8e80
cmpl $0x0, 0x50(%r14)
jne 0xd8e80
movq 0x8(%rbp), %rax
addq %rax, %r15
testq %rax, %rax
jg 0xd859f
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd99be
testq %rbp, %rbp
je 0xd8ec6
movq %rbx, %rdi
movq %rbp, %rsi
jmp 0xd8ec1
testq %r15, %r15
je 0xd8ea8
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf167c
movl 0x2c(%rsp), %esi
movq %rbx, %rdi
callq 0xdebb7
jmp 0xd8ec6
testq %r15, %r15
je 0xd8ec6
movq %rbx, %rdi
movq %r15, %rsi
callq 0xded32
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0xf16e7
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x58(%r14), %eax
jmp 0xd80c1