// File: /workspace/github_c_makefile_star2_O3/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 $0x78, %rsp
movq %rdi, %rbx
callq 0xfd4b2
movq %rax, %r15
movq %rax, %rbp
movl $0x1, 0x10(%rax)
movq %rbx, %rdi
xorl %esi, %esi
movl $0xd, %edx
callq 0xeb220
movl %eax, 0x18(%r15)
movq $0x0, 0x48(%r15)
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0xe298d
movl %eax, 0x58(%r15)
testl %eax, %eax
jne 0xe1930
cmpl $0x2, 0x24(%rbx)
jne 0xe1946
addq $0x48, %r15
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %r8
leaq 0x63886(%rip), %rsi     # 0x145158
movl $0x6, %edx
xorl %ecx, %ecx
movq %r15, %r9
callq 0xf149c
testl %eax, %eax
jne 0xe190b
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %r8
leaq 0x63940(%rip), %rsi     # 0x145234
movl $0x4, %edx
xorl %ecx, %ecx
movq %r15, %r9
callq 0xf149c
testl %eax, %eax
je 0xe296d
movq 0x48(%rbp), %rdx
leaq 0x638f2(%rip), %rsi     # 0x145208
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq 0x48(%rbp), %rsi
callq 0xe298d
movl %eax, 0x58(%rbp)
cmpl $0x4, %eax
je 0xe1d63
cmpl $0x1, %eax
je 0xe195c
testl %eax, %eax
jne 0xe1e09
leaq 0x638d8(%rip), %rsi     # 0x145225
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0xe2953
movq 0x48(%rbp), %r15
leaq 0x34(%rsp), %rsi
movq %rbx, %rdi
callq 0xe8a1c
leaq 0x638c5(%rip), %rsi     # 0x145239
movq %rbx, %rdi
callq 0xeb125
leaq 0x4168f(%rip), %rsi     # 0x123012
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0x4(%r15), %rax
leaq 0x18(%rsp), %r14
movq %rax, (%r14)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeebeb
movq %rax, %r12
leaq 0x44a0e(%rip), %rsi     # 0x1263cd
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r14, %rsi
callq 0xeeb4b
movzbl %al, %edx
movl %edx, 0x60(%rbp)
leaq 0x4e691(%rip), %rsi     # 0x130076
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movl 0x60(%rbp), %eax
testb $0x2, %al
je 0xe1a53
movq 0x18(%rbx), %rdi
leaq 0x18(%rsp), %r13
movq %r13, %rsi
callq 0xeebeb
movq %rax, %r14
movq (%r13), %rdx
movl 0x60(%rbp), %r8d
shrl $0x4, %r8d
andl $0x1, %r8d
leaq 0x63825(%rip), %rsi     # 0x145246
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
movl 0x60(%rbp), %eax
testb $0x10, %al
jne 0xe1a4e
movq 0x18(%rsp), %rsi
movl 0x18(%rbp), %ecx
movq %rbx, %rdi
movq %r14, %rdx
xorl %r8d, %r8d
callq 0xe29ec
movl 0x60(%rbp), %eax
addq %r14, 0x18(%rsp)
testb $0x20, %al
je 0xe1a85
movq 0x18(%rbx), %rdi
leaq 0x18(%rsp), %r14
movq %r14, %rsi
callq 0xeebeb
movq %rax, %r13
movq (%r14), %rdx
leaq 0x63800(%rip), %rsi     # 0x145275
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
addq %r13, (%r14)
movl 0x34(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
addq %r15, %r12
movq %r12, 0x18(%rsp)
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r12
jge 0xe1d52
leaq 0x20(%rsp), %r15
leaq 0x10(%rsp), %r13
xorl %r12d, %r12d
testq %r12, %r12
je 0xe1ac4
movq %rbx, %rdi
movq %r12, %rsi
callq 0xfd460
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xfd414
movq %rax, %r12
movq 0x18(%rsp), %rax
movq %rax, 0x18(%r12)
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe8a1c
movq 0x18(%r12), %rdx
movq %rbx, %rdi
leaq 0x446ad(%rip), %rsi     # 0x1261a8
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r12, %rdi
movq %r13, %rsi
callq 0xfd57d
movq %r12, %rdi
movq %r13, %rsi
callq 0xfd538
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeebeb
movq %rbx, %rdi
leaq 0x40c54(%rip), %rsi     # 0x12278f
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeebeb
movq %rbp, %r14
movq %rax, %rbp
movq %rbx, %rdi
leaq 0x63746(%rip), %rsi     # 0x1452a6
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
cmpq $0xb, %rbp
jg 0xe1b7f
movl $0x1, 0x38(%r14)
movq %r14, %rbp
jmp 0xe1d13
movq 0x30(%r12), %rax
addq %rbp, %rax
movq %rax, 0x28(%r12)
movq 0x50(%r12), %rsi
addq $0x18, %rsi
movq %r14, %r15
movq %r14, %rdi
leaq 0x36634(%rip), %rdx     # 0x1181d6
movl $0x4, %ecx
movq %r13, %r8
callq 0xfd638
movq %r12, %rdi
movq %r13, %rsi
callq 0xfd61b
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeeb4b
movzbl %al, %edx
movl %edx, 0x94(%r12)
movq %rbx, %rdi
leaq 0x4e49b(%rip), %rsi     # 0x130076
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeeb4b
movzbl %al, %edx
movq %rbx, %rdi
leaq 0x636b7(%rip), %rsi     # 0x1452b2
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeeb4b
movl %eax, %r14d
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeeb4b
movzbl %al, %edx
movl %edx, 0x90(%r12)
leaq 0x4a522(%rip), %rcx     # 0x12c151
cmpb $0x5, %dl
ja 0xe1c41
movl %edx, %eax
leaq 0xaca93(%rip), %rcx     # 0x18e6d0
movq (%rcx,%rax,8), %rcx
movzbl %r14b, %r14d
movq %rbx, %rdi
leaq 0x63680(%rip), %rsi     # 0x1452cf
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq 0x10(%rsp), %rsi
movq 0x58(%r12), %rcx
movl 0x18(%r15), %r9d
movq %r14, %rdx
xorl %r8d, %r8d
callq 0xefbd7
movq 0x58(%r12), %rdi
callq 0xf70f6
movq %rbx, %rdi
leaq 0x5a0c7(%rip), %rsi     # 0x13bd4e
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
addq %r14, 0x10(%rsp)
testb $0x8, 0x94(%r12)
je 0xe1ce8
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeebeb
movq %rax, %r14
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
leaq 0x63626(%rip), %rsi     # 0x1452e5
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x10(%rsp), %rsi
movl 0x18(%r15), %ecx
movq %rbx, %rdi
movq %r14, %rdx
movl $0x1, %r8d
callq 0xe29ec
addq %r14, 0x10(%rsp)
addq 0x18(%r12), %rbp
movq %rbp, 0x40(%r12)
movq 0x30(%r12), %rcx
movq %rbx, %rdi
leaq 0x63601(%rip), %rsi     # 0x145302
movq %rbp, %rdx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rbp
leaq 0x20(%rsp), %r15
movl 0x20(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
cmpl $0x0, 0x38(%rbp)
jne 0xe1d47
movq 0x28(%r12), %rax
testq %rax, %rax
jle 0xe1d47
addq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rbx), %rcx
cmpq 0x18(%rcx), %rax
jl 0xe1ab4
movq %rbx, %rdi
movq %r12, %rsi
callq 0xfd460
movl 0x34(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
jmp 0xe2953
movq 0x48(%rbp), %r14
leaq 0x635c1(%rip), %rsi     # 0x14532f
movq %rbx, %rdi
callq 0xeb125
movq %rbx, %rdi
movl $0x10, %esi
callq 0xeb499
movq %rax, 0x30(%rbp)
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r14
jge 0xe2953
xorl %r15d, %r15d
testq %r15, %r15
je 0xe1da8
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe8be2
movl $0x50, %esi
movq %rbx, %rdi
callq 0xe8b2b
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 %rbp, %rsi
movq %r15, %rdx
callq 0xe2ac2
cmpb $0x0, 0x1a(%r15)
je 0xe1dfe
cmpb $0x0, 0x1b(%r15)
jne 0xe1dfe
movq 0x48(%r15), %rax
testq %rax, %rax
jle 0xe1dfe
addq %rax, %r14
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r14
jl 0xe1d98
movq %rbx, %rdi
movq %r15, %rsi
jmp 0xe294e
movq 0x48(%rbp), %r14
leaq 0x63762(%rip), %rsi     # 0x145576
movq %rbx, %rdi
callq 0xeb125
movq %rbx, %rdi
movl $0x10, %esi
callq 0xeb499
movq %rax, 0x30(%rbp)
addq $0x8, %r14
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r14
jge 0xe2927
xorl %r13d, %r13d
movq %rbp, 0x38(%rsp)
testq %r13, %r13
je 0xe1e57
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe8be2
movl $0x48, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %r13
movq %rbx, %rdi
leaq 0x54(%rsp), %rsi
callq 0xe8a1c
movq %r14, (%r13)
movq %r14, 0x20(%rsp)
movq %rbx, %rdi
leaq 0x4f536(%rip), %rsi     # 0x1313bd
movq %r14, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %r15
movq %r15, %rsi
callq 0xeed83
movl %eax, 0x10(%r13)
movq %rbx, %rdi
leaq 0x364a8(%rip), %rsi     # 0x118365
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xe3463
movq %rax, %r12
movq %rbx, %rdi
leaq 0x49fbc(%rip), %rsi     # 0x12be9b
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpq $0x1fffff, %r12         # imm = 0x1FFFFF
jg 0xe28e5
movq %r14, 0x70(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x18(%rbx), %r14
xorl %r15d, %r15d
xorl %ebp, %ebp
cmpq $0x40, %r15
jae 0xe1f66
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0xeeb4b
movl %eax, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %r15d, %ecx
shlq %cl, %rdx
orq %rdx, %rbp
addq $0x7, %r15
testb %al, %al
js 0xe1f0e
movq %r13, %r14
addq $0x14, %r14
movl %ebp, 0x14(%r13)
leal -0x1(%rbp), %eax
cmpl $0x4, %eax
ja 0xe1f77
leaq 0x6320c(%rip), %rcx     # 0x145160
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x3685b(%rip), %rcx     # 0x1187bf
jmp 0xe1f7e
movq %r13, %r14
addq $0x14, %r14
movl $0x0, 0x14(%r13)
xorl %ebp, %ebp
leaq 0x4a1d3(%rip), %rcx     # 0x12c151
movq %rbx, %rdi
leaq 0x635f6(%rip), %rsi     # 0x14557e
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
movq %r14, 0x48(%rsp)
cmpl $0x5, (%r14)
jne 0xe1fa8
movq 0x38(%rsp), %rax
movl $0x1, 0x50(%rax)
movq 0x18(%rbx), %rbp
xorl %r15d, %r15d
xorl %r14d, %r14d
cmpq $0x3f, %r15
ja 0xe1fe0
movq %rbp, %rdi
leaq 0x20(%rsp), %rsi
callq 0xeeb4b
movl %eax, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %r15d, %ecx
shlq %cl, %rdx
orq %rdx, %r14
addq $0x7, %r15
testb %al, %al
js 0xe1fb2
jmp 0xe1fe3
xorl %r14d, %r14d
movl %r14d, 0x18(%r13)
movq %rbx, %rdi
leaq 0x6359f(%rip), %rsi     # 0x145590
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
movl 0x18(%r13), %eax
testb $0x1, %al
movq 0x38(%rsp), %rbp
movq 0x70(%rsp), %r14
je 0xe2049
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0xe3463
movq %rax, 0x28(%r13)
movq %rbx, %rdi
leaq 0x63575(%rip), %rsi     # 0x14559e
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x28(%r13), %rax
movq 0x18(%rbx), %rcx
cmpq 0x18(%rcx), %rax
jg 0xe28e5
movl 0x18(%r13), %eax
testb $0x2, %al
jne 0xe205b
movq 0x38(%r13), %rax
movq 0x18(%rbx), %rcx
movq 0x18(%rcx), %rcx
jmp 0xe2096
movq 0x18(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0xe3463
movq %rax, 0x38(%r13)
movq %rbx, %rdi
leaq 0x6353b(%rip), %rsi     # 0x1455b2
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x38(%r13), %rax
movq 0x18(%rbx), %rcx
movq 0x18(%rcx), %rcx
cmpq %rcx, %rax
jg 0xe28e5
movq 0x20(%rsp), %rdx
movq %rdx, 0x40(%r13)
movq 0x28(%rsp), %rdx
addq %r12, %rdx
movq %rdx, 0x30(%r13)
addq %rax, %rdx
cmpq %rcx, %rdx
jg 0xe28e5
movq 0x30(%rbp), %rdi
callq 0xeb7fe
movq 0x30(%rbp), %rdi
movq 0x18(%rbx), %rsi
movq (%r13), %rdx
movq 0x30(%r13), %rcx
addq $0x4, %rdx
subq %rdx, %rcx
callq 0xeb944
movq 0x30(%rbp), %rdi
callq 0xeb865
movl %eax, %ebp
movq %rbx, %rdi
leaq 0x36295(%rip), %rsi     # 0x118386
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
cmpl 0x10(%r13), %ebp
movq 0x38(%rsp), %rbp
jne 0xe28e5
movq 0x30(%r13), %rdx
movq 0x38(%r13), %rax
addq %rdx, %rax
subq (%r13), %rax
movq %rax, 0x8(%r13)
subq 0x28(%r13), %rdx
movq %rdx, 0x20(%r13)
movl 0x18(%r13), %eax
testb $0x1, %al
je 0xe2141
movq %rbx, %rdi
leaq 0x6348f(%rip), %rsi     # 0x1455c5
xorl %eax, %eax
callq 0xe8617
movl 0x18(%r13), %eax
testb $0x2, %al
movq 0x48(%rsp), %r14
je 0xe215f
movq 0x30(%r13), %rdx
movq %rbx, %rdi
leaq 0x36ed4(%rip), %rsi     # 0x11902c
xorl %eax, %eax
callq 0xe8617
movl (%r14), %eax
leal -0x2(%rax), %ecx
cmpl $0x2, %ecx
jae 0xe2220
movl $0x40, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, 0x28(%rsp)
movq 0x40(%r13), %rax
movq %rax, 0x10(%rsp)
cmpl $0x2, 0x14(%r13)
jne 0xe21b8
movq 0x68(%rbp), %rsi
testq %rsi, %rsi
je 0xe21a9
movq %rbx, %rdi
callq 0xfd460
movq $0x0, 0x68(%rbp)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xfd414
movq %rax, 0x68(%rbp)
movq 0x18(%rbx), %r12
xorl %r15d, %r15d
xorl %r14d, %r14d
cmpq $0x3f, %r15
ja 0xe2235
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0xeeb4b
movl %eax, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %r15d, %ecx
shlq %cl, %rdx
orq %rdx, %r14
addq $0x7, %r15
testb %al, %al
js 0xe21c2
jmp 0xe2238
leaq 0x36204(%rip), %rcx     # 0x1183fb
jmp 0xe1f7e
leaq 0x633d5(%rip), %rcx     # 0x1455d8
jmp 0xe1f7e
leaq 0x633d8(%rip), %rcx     # 0x1455e7
jmp 0xe1f7e
leaq 0x546d7(%rip), %rcx     # 0x1368f2
jmp 0xe1f7e
cmpl $0x4, %eax
jne 0xe253e
movl $0x1, 0x50(%rbp)
jmp 0xe253e
xorl %r14d, %r14d
movq 0x28(%rsp), %r15
movl %r14d, (%r15)
movq %rbx, %rdi
leaq 0x633af(%rip), %rsi     # 0x1455f9
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe3463
leaq 0x10(%r15), %r14
movq %rax, 0x10(%r15)
movq %rbx, %rdi
leaq 0x35f78(%rip), %rsi     # 0x1181ec
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %r14, 0x40(%rsp)
movq %r14, %rdi
callq 0xebad2
movq 0x18(%rbx), %r12
xorl %r15d, %r15d
xorl %r14d, %r14d
cmpq $0x3f, %r15
ja 0xe22c3
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0xeeb4b
movl %eax, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %r15d, %ecx
shlq %cl, %rdx
orq %rdx, %r14
addq $0x7, %r15
testb %al, %al
js 0xe2295
jmp 0xe22c6
xorl %r14d, %r14d
movq 0x28(%rsp), %r15
movq %r14, 0x8(%r15)
movq %rbx, %rdi
leaq 0x63331(%rip), %rsi     # 0x14560a
movq %r14, %rdx
xorl %eax, %eax
callq 0xe8617
movl (%r15), %eax
testb $0x2, %al
je 0xe2312
movq 0x28(%rsp), %r14
movq %r14, %rsi
addq $0x28, %rsi
movq %rbp, %rdi
leaq 0x35ed6(%rip), %rdx     # 0x1181d6
movl $0x2, %ecx
leaq 0x10(%rsp), %r8
callq 0xfd638
movl (%r14), %eax
testb $0x4, %al
movq 0x28(%rsp), %rbp
je 0xe233f
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0xeed83
movl %eax, 0x18(%rbp)
movq %rbx, %rdi
leaq 0x632e3(%rip), %rsi     # 0x145619
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %r12
xorl %r15d, %r15d
xorl %r14d, %r14d
cmpq $0x3f, %r15
ja 0xe2377
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0xeeb4b
movl %eax, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %r15d, %ecx
shlq %cl, %rdx
orq %rdx, %r14
addq $0x7, %r15
testb %al, %al
js 0xe2349
jmp 0xe237a
xorl %r14d, %r14d
movl %r14d, 0x1c(%rbp)
movq %rbx, %rdi
leaq 0x632a2(%rip), %rsi     # 0x14562a
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movl 0x1c(%rbp), %edx
andl $0x3f, %edx
movq %rbx, %rdi
leaq 0x549d5(%rip), %rsi     # 0x136d84
xorl %eax, %eax
callq 0xe8617
movl 0x1c(%rbp), %edx
shrl $0x6, %edx
andl $0x1, %edx
movq %rbx, %rdi
leaq 0x63271(%rip), %rsi     # 0x14563a
xorl %eax, %eax
callq 0xe8617
movl 0x1c(%rbp), %edx
shrl $0x7, %edx
andl $0x7, %edx
movl %edx, 0x20(%rbp)
movq %rbx, %rdi
leaq 0x43acc(%rip), %rsi     # 0x125eb2
xorl %eax, %eax
callq 0xe8617
movl 0x1c(%rbp), %ecx
shrl $0xa, %ecx
andl $0xf, %ecx
movl $0x80, %eax
shll %cl, %eax
movq %rbx, %rdi
leaq 0x6323d(%rip), %rsi     # 0x145644
movl %ecx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x18(%rbx), %r12
xorl %r15d, %r15d
xorl %r14d, %r14d
cmpq $0x3f, %r15
ja 0xe2457
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0xeeb4b
movl %eax, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %r15d, %ecx
shlq %cl, %rdx
orq %rdx, %r14
addq $0x7, %r15
testb %al, %al
js 0xe2429
jmp 0xe245a
xorl %r14d, %r14d
movl %r14d, 0x24(%rbp)
movq %rbx, %rdi
leaq 0x631f0(%rip), %rsi     # 0x145658
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0xe3463
cmpq $0xffff, %rax           # imm = 0xFFFF
movq 0x48(%rsp), %r14
jg 0xe2527
movq 0x18(%rbx), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
movq %rax, %rcx
xorl %r8d, %r8d
movl $0x2, %r9d
callq 0xef87c
movq %rax, 0x38(%rbp)
movq 0x18(%rax), %rdi
callq 0xf70f6
movq %rbx, %rdi
leaq 0x402b6(%rip), %rsi     # 0x12277b
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpl $0x3, (%r14)
jne 0xe2527
movq 0x38(%rbp), %rax
movq 0x8(%rax), %rdi
leaq 0x6317b(%rip), %rsi     # 0x14565f
callq 0x181a0
testl %eax, %eax
jne 0xe2527
cmpl $0x0, 0x20(%rbp)
jne 0xe2520
movq 0x38(%r13), %rdi
movq 0x40(%rsp), %rax
movq (%rax), %rsi
callq 0xe9c3b
testq %rax, %rax
jle 0xe2520
movq 0x30(%r13), %rsi
movq %rbx, %rdi
movq %rax, %rdx
movl $0x2, %ecx
xorl %r8d, %r8d
callq 0xe29ec
xorl %edi, %edi
callq 0xf6753
movq 0x38(%rbp), %rsi
movq %rbx, %rdi
callq 0xefaca
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe8be2
movq 0x20(%r13), %rax
movq %rax, 0x18(%rsp)
movq 0x30(%r13), %r15
movq %rbx, %rdi
leaq 0x34(%rsp), %rsi
callq 0xe8a1c
movl $0x58, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, 0x40(%rsp)
movq 0x28(%r13), %rcx
testq %rcx, %rcx
jle 0xe28c2
movq 0x20(%r13), %rdx
movq %rbx, %rdi
leaq 0x630de(%rip), %rsi     # 0x145663
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%rsp), %rdx
cmpq %r15, %rdx
jge 0xe28c2
movq 0x40(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x68(%rsp)
leaq 0x18(%rax), %rcx
movq %rcx, 0x60(%rsp)
addq $0x28, %rax
movq %rax, 0x58(%rsp)
movq %r15, 0x28(%rsp)
movq %rbx, %rdi
leaq 0x31ec1(%rip), %rsi     # 0x114497
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%rbx), %rdi
leaq 0x18(%rsp), %rsi
callq 0xe3463
movq %rax, %r14
movq %rbx, %rdi
leaq 0x63079(%rip), %rsi     # 0x14567e
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpq 0x28(%r13), %r14
jg 0xe28c2
addq 0x18(%rsp), %r14
cmpq %r15, %r14
jg 0xe28c2
movq 0x18(%rbx), %r12
xorl %r15d, %r15d
xorl %ebp, %ebp
cmpq $0x3f, %r15
ja 0xe265e
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
callq 0xeeb4b
movl %eax, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %r15d, %ecx
shlq %cl, %rdx
orq %rdx, %rbp
addq $0x7, %r15
testb %al, %al
js 0xe2630
jmp 0xe2660
xorl %ebp, %ebp
movq 0x48(%rsp), %rax
movl (%rax), %eax
movl %eax, %ecx
andl $-0x2, %ecx
cmpl $0x2, %ecx
jne 0xe2692
leal -0x1(%rbp), %eax
leaq 0x49ad6(%rip), %rcx     # 0x12c151
cmpl $0x7, %eax
jae 0xe26ae
movl %eax, %eax
leaq 0x62b17(%rip), %rdx     # 0x1451a0
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
jmp 0xe26ae
xorl $0x1, %eax
movl %ebp, %ecx
xorl $0x1, %ecx
orl %eax, %ecx
leaq 0x49aae(%rip), %rcx     # 0x12c151
leaq 0x4e56c(%rip), %rax     # 0x130c16
cmoveq %rax, %rcx
movq %rbx, %rdi
leaq 0x62fd6(%rip), %rsi     # 0x14568e
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rsp), %r15
movq %r14, %r12
subq %r15, %r12
movq %rbx, %rdi
leaq 0x62fcd(%rip), %rsi     # 0x1456a3
movq %r15, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x48(%rsp), %rax
movl (%rax), %eax
cmpl $0x2, %eax
jne 0xe272b
cmpl $0x3, %ebp
je 0xe2735
testq %r12, %r12
movq 0x28(%rsp), %r15
jle 0xe28a2
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 0xe8bea
jmp 0xe28a2
xorl $0x3, %eax
xorl $0x3, %ebp
orl %eax, %ebp
jne 0xe26f4
movq %r15, 0x10(%rsp)
testq %r12, %r12
jle 0xe289d
movq 0x40(%rsp), %rax
movb $0x1, (%rax)
movq 0x18(%rbx), %r12
xorl %r15d, %r15d
xorl %ebp, %ebp
cmpq $0x3f, %r15
ja 0xe2782
movq %r12, %rdi
leaq 0x10(%rsp), %rsi
callq 0xeeb4b
movl %eax, %ecx
andb $0x7f, %cl
movzbl %cl, %edx
movl %r15d, %ecx
shlq %cl, %rdx
orq %rdx, %rbp
addq $0x7, %r15
testb %al, %al
js 0xe2754
jmp 0xe2784
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0x62e70(%rip), %rsi     # 0x1455fe
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
xorl %eax, %eax
testb $0x1, %bpl
sete %al
leal 0x2(,%rax,4), %r12d
testb $0x2, %bpl
je 0xe27cc
movq 0x38(%rsp), %rdi
movq 0x68(%rsp), %rsi
leaq 0x35a17(%rip), %rdx     # 0x1181d6
movl %r12d, %ecx
leaq 0x10(%rsp), %r8
callq 0xfd638
testb $0x4, %bpl
je 0xe27f0
movq 0x38(%rsp), %rdi
movq 0x60(%rsp), %rsi
leaq 0x35b3b(%rip), %rdx     # 0x11831e
movl %r12d, %ecx
leaq 0x10(%rsp), %r8
callq 0xfd638
testb $0x8, %bpl
je 0xe2814
movq 0x38(%rsp), %rdi
movq 0x58(%rsp), %rsi
leaq 0x32e45(%rip), %rdx     # 0x11564c
movl %r12d, %ecx
leaq 0x10(%rsp), %r8
callq 0xfd638
notl %ebp
testb $0x13, %bpl
jne 0xe2841
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0xeed83
cvtsi2sd %rax, %xmm0
divsd 0x382b9(%rip), %xmm0    # 0x11aaf0
movq 0x68(%rsp), %rdi
callq 0xea849
testb $0x15, %bpl
jne 0xe286f
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0xeed83
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x3828b(%rip), %xmm0    # 0x11aaf0
movq 0x60(%rsp), %rdi
callq 0xea849
testb $0x19, %bpl
jne 0xe289d
movq 0x18(%rbx), %rdi
leaq 0x10(%rsp), %rsi
callq 0xeed83
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x3825d(%rip), %xmm0    # 0x11aaf0
movq 0x58(%rsp), %rdi
callq 0xea849
movq 0x28(%rsp), %r15
movq %r14, 0x18(%rsp)
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x18(%rsp), %rdx
cmpq %r15, %rdx
jl 0xe25cc
movq %rbx, %rdi
movq 0x40(%rsp), %rsi
callq 0xe8be2
movl 0x34(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
movq 0x38(%rsp), %rbp
movq 0x70(%rsp), %r14
cmpq $0x0, 0x8(%r13)
jne 0xe28f3
movl $0x1, 0x38(%rbp)
movl 0x54(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
cmpl $0x0, 0x38(%rbp)
jne 0xe292a
cmpl $0x0, 0x50(%rbp)
jne 0xe292a
movq 0x8(%r13), %rax
testq %rax, %rax
jle 0xe292a
addq %rax, %r14
movq 0x18(%rbx), %rax
cmpq 0x18(%rax), %r14
jl 0xe1e47
jmp 0xe292a
xorl %r13d, %r13d
movq 0x68(%rbp), %rsi
testq %rsi, %rsi
je 0xe2943
movq %rbx, %rdi
callq 0xfd460
movq $0x0, 0x68(%rbp)
testq %r13, %r13
je 0xe2953
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe8be2
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xfd4cd
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0x58(%rbp), %eax
jmp 0xe1930