// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/modules/mscompress.c
// Function: de_run_mscompress
static void de_run_mscompress(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	const char *varname;

	d = de_malloc(c, sizeof(lctx));
	d->input_encoding = de_get_input_encoding(c, NULL, DE_ENCODING_ASCII);

	d->fmt = detect_fmt_internal(c);
	if(d->fmt==FMT_SZDD) {
		varname = "SZDD";
	}
	else if(d->fmt==FMT_KWAJ) {
		varname = "KWAJ";
	}
	else if(d->fmt==FMT_SZ) {
		varname = "SZ";
	}
	else {
		de_err(c, "Unidentified format");
		goto done;
	}
	de_declare_fmtf(c, "MS Installation Compression, %s variant", varname);

	if(mparams && mparams->in_params.fi) {
		d->fi_override = mparams->in_params.fi;
	}

	d->inf = c->infile;
	mscompress_handle_multipart(c, d);
	if(d->errflag) goto done;

	if(d->fmt==FMT_KWAJ) {
		if(!do_header_KWAJ(c, d, 0)) goto done;
	}
	else if(d->fmt==FMT_SZ) {
		if(!do_header_SZ(c, d, 0)) goto done;
	}
	else {
		if(!do_header_SZDD(c, d, 0)) goto done;
	}

	do_extract_file(c, d);

done:
	if(d) {
		ucstring_destroy(d->filename);
		dbuf_close(d->combined_inf);
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, %r15
movq %rdi, %rbx
movl $0x50, %esi
callq 0xe8b2b
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xeb220
movl %eax, 0x4(%r14)
movq 0x18(%rbx), %rdi
callq 0x9a532
movl %eax, (%r14)
movl %eax, %eax
leaq 0x980d8(%rip), %rcx     # 0x13109c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x83158(%rip), %rsi     # 0x11c12c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
jmp 0x9a036
leaq 0x9817a(%rip), %rdx     # 0x131164
jmp 0x98ffc
leaq 0x98176(%rip), %rdx     # 0x131169
jmp 0x98ffc
leaq 0x98163(%rip), %rdx     # 0x13115f
leaq 0x98169(%rip), %rsi     # 0x13116c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xeb152
testq %r15, %r15
je 0x9901f
movq 0x28(%r15), %rax
testq %rax, %rax
je 0x9901f
movq %rax, 0x38(%r14)
movq 0x18(%rbx), %rax
movq %rax, 0x40(%r14)
cmpq $0x0, 0x30(%rbx)
je 0x99101
cmpl $0x3, (%r14)
jne 0x990eb
movq 0x18(%rax), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf09c5
movq %rax, 0x48(%r14)
movq %rax, 0x40(%r14)
movq 0x18(%rbx), %rdi
movq 0x18(%rdi), %rdx
xorl %esi, %esi
movq %rax, %rcx
callq 0xef481
movq 0x30(%rbx), %rax
cmpl $0x0, (%rax)
jle 0x99101
movl $0x2, %r15d
leaq 0xa0(%rsp), %r12
leal -0x1(%r15), %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0xebaf7
movq %rax, 0xa0(%rsp)
testq %rax, %rax
je 0x990fc
movl $0x7, %esi
movq %rax, %rdi
callq 0xeead3
movzbl %al, %eax
cmpl %eax, %r15d
jne 0x994b2
movq 0xa0(%rsp), %rdi
movq 0x18(%rdi), %rdx
addq $-0x8, %rdx
movq 0x40(%r14), %rcx
movl $0x8, %esi
callq 0xef481
movq %rbx, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0xebb50
movq 0x30(%rbx), %rax
incl %r15d
cmpl (%rax), %ebp
jl 0x9907f
jmp 0x99101
leaq 0x980bc(%rip), %rsi     # 0x1311ae
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movb $0x1, 0x8(%r14)
cmpb $0x0, 0x8(%r14)
jne 0x9a036
movl (%r14), %eax
leaq 0xa05d8(%rip), %rsi     # 0x1396ee
movq %rbx, %rdi
xorl %edx, %edx
cmpl $0x3, %eax
je 0x99382
cmpl $0x2, %eax
jne 0x9940a
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0xa0(%rsp), %r15
movq $0x8, (%r15)
movq 0x40(%r14), %rdi
movq %r15, %rsi
callq 0xeebeb
movq %rax, %r12
movl %r12d, 0xc(%r14)
movl %r12d, %edi
callq 0x9a59b
leaq 0xa9326(%rip), %rsi     # 0x142498
movq %rbx, %rdi
movl %r12d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x40(%r14), %rdi
movq %r15, %rsi
callq 0xeebeb
movq %rax, 0x10(%r14)
leaq 0x98069(%rip), %rsi     # 0x131202
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x40(%r14), %rdi
movq 0x18(%rdi), %rax
subq 0x10(%r14), %rax
movq %rax, 0x18(%r14)
movq %r15, %rsi
callq 0xeebeb
movq %rax, %r15
leaq 0x98056(%rip), %rsi     # 0x13121e
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
testb $0x1, %r15b
je 0x99209
movq 0x40(%r14), %rdi
leaq 0xa0(%rsp), %rsi
callq 0xeed83
movq %rax, 0x28(%r14)
movb $0x1, 0x20(%r14)
leaq 0x84a75(%rip), %rsi     # 0x11dc71
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
testb $0x2, %r15b
je 0x99218
addq $0x2, 0xa0(%rsp)
testb $0x4, %r15b
je 0x99236
movq 0x40(%r14), %rdi
leaq 0xa0(%rsp), %r12
movq %r12, %rsi
callq 0xeebeb
addq %rax, (%r12)
testb $0x8, %r15b
je 0x992a7
leaq 0x30(%rsp), %r8
movq $0x0, (%r8)
movq 0x40(%r14), %rdi
movq 0xa0(%rsp), %rdx
movl $0x9, %ecx
xorl %esi, %esi
callq 0xefa77
testl %eax, %eax
je 0x9932b
movq %rbx, %rdi
callq 0xf6410
movq %rax, 0x30(%r14)
movq 0x40(%r14), %rdi
movq 0xa0(%rsp), %rsi
movq 0x30(%rsp), %rdx
subq %rsi, %rdx
movl 0x4(%r14), %r9d
movq %rax, %rcx
xorl %r8d, %r8d
callq 0xefbd7
movq 0x30(%rsp), %rax
incq %rax
movq %rax, 0xa0(%rsp)
testb $0x10, %r15b
je 0x9932b
leaq 0x30(%rsp), %r8
movq $0x0, (%r8)
movq 0x40(%r14), %rdi
movq 0xa0(%rsp), %rdx
movl $0x4, %ecx
xorl %esi, %esi
callq 0xefa77
testl %eax, %eax
je 0x9932b
movq 0x30(%r14), %rdi
movq 0x30(%rsp), %rax
testq %rdi, %rdi
je 0x99320
cmpq 0xa0(%rsp), %rax
jle 0x99320
movl $0x2e, %esi
callq 0xf6542
movq 0x40(%r14), %rdi
movq 0xa0(%rsp), %rsi
movq 0x30(%rsp), %rdx
subq %rsi, %rdx
movq 0x30(%r14), %rcx
movl 0x4(%r14), %r9d
xorl %r8d, %r8d
callq 0xefbd7
movq 0x30(%rsp), %rax
incq %rax
movq %rax, 0xa0(%rsp)
movq 0x30(%r14), %rdi
callq 0xf67a3
testl %eax, %eax
je 0x99355
movq 0x30(%r14), %rdi
callq 0xf70f6
leaq 0xa2a06(%rip), %rsi     # 0x13bd4e
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
cmpb $0x0, 0x20(%r14)
je 0x99579
cmpl $0x1, 0xc(%r14)
ja 0x99579
movq 0x28(%r14), %rax
cmpq 0x18(%r14), %rax
jge 0x99579
movq %rax, 0x18(%r14)
jmp 0x99579
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0xa0(%rsp), %rsi
movq $0x7, (%rsi)
movq 0x40(%r14), %rdi
callq 0xeeb4b
cmpb $-0x2f, %al
jne 0x994cb
movl $0x2, 0xc(%r14)
movq 0x40(%r14), %rdi
leaq 0xa0(%rsp), %r15
movq %r15, %rsi
callq 0xeed83
movq %rax, 0x28(%r14)
movb $0x1, 0x20(%r14)
leaq 0x8488f(%rip), %rsi     # 0x11dc71
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq (%r15), %rax
movq %rax, 0x10(%r14)
movq 0x40(%r14), %rcx
movq 0x18(%rcx), %rcx
subq %rax, %rcx
movq %rcx, 0x18(%r14)
jmp 0x99579
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq $0xe, 0x10(%r14)
movq 0x40(%r14), %rdi
movq 0x18(%rdi), %rax
addq $-0xe, %rax
movq %rax, 0x18(%r14)
leaq 0x30(%rsp), %rsi
movq $0x8, (%rsi)
callq 0xeeb4b
movzbl %al, %ebp
movl %ebp, %edi
callq 0xec9b9
movsbl %al, %ecx
leaq 0x97e08(%rip), %rsi     # 0x131263
movq %rbx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
cmpb $0x41, %bpl
jne 0x994d4
movl $0x10000, 0xc(%r14)     # imm = 0x10000
movq 0x40(%r14), %rdi
leaq 0x30(%rsp), %rsi
callq 0xeeb4b
movzbl %al, %r15d
leal -0x20(%r15), %eax
cmpb $0x5e, %al
ja 0x994f7
leaq 0x97de5(%rip), %rdx     # 0x13127b
leaq 0xa0(%rsp), %rdi
movl $0x50, %esi
movl %r15d, %ecx
xorl %eax, %eax
callq 0xe8193
jmp 0x99532
leaq 0x97d27(%rip), %rsi     # 0x1311e0
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe9295
jmp 0x990fc
leaq 0x97d76(%rip), %rsi     # 0x131248
jmp 0x994db
leaq 0x97da8(%rip), %rsi     # 0x131283
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9295
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
jmp 0x9a036
testl %r15d, %r15d
je 0x99517
leaq 0xabbad(%rip), %rsi     # 0x1450b0
leaq 0xa0(%rsp), %rdi
movl $0x50, %edx
callq 0xe8219
jmp 0x99532
leaq 0x8ec17(%rip), %rdx     # 0x128135
leaq 0xa0(%rsp), %rdi
movl $0x50, %esi
xorl %eax, %eax
callq 0xe8193
leaq 0x97d67(%rip), %rsi     # 0x1312a0
leaq 0xa0(%rsp), %rcx
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x40(%r14), %rdi
leaq 0x30(%rsp), %rsi
callq 0xeed83
movq %rax, 0x28(%r14)
movb $0x1, 0x20(%r14)
leaq 0x84705(%rip), %rsi     # 0x11dc71
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x10(%r14), %rdx
leaq 0x98c9b(%rip), %rsi     # 0x13222c
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movl 0xc(%r14), %ebp
cmpl $0x5, %ebp
jae 0x995ed
cmpq $0x0, 0x18(%r14)
js 0x995e8
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %rbx, %rdi
callq 0xea504
movq %rax, %r15
movq 0x30(%r14), %rdi
callq 0xf67a3
testl %eax, %eax
je 0x9961d
movq 0x30(%r14), %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0xea53f
movb $0x1, 0x8(%r15)
jmp 0x99637
xorl %r12d, %r12d
jmp 0x99615
cmpl $0x10000, %ebp          # imm = 0x10000
je 0x995a4
movl %ebp, %edi
callq 0x9a59b
leaq 0x97cbd(%rip), %rsi     # 0x1312c0
xorl %r12d, %r12d
movq %rbx, %rdi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9295
xorl %r15d, %r15d
jmp 0x9a023
leaq 0x9c199(%rip), %rdx     # 0x1357bd
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
movl $0x5, %r8d
callq 0xea78f
movq 0x38(%r14), %rax
testq %rax, %rax
movq %r15, 0x120(%rsp)
cmovneq %rax, %r15
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xefda1
movq %rax, %r12
movq %rax, %rdi
callq 0xf0855
leaq 0x68(%rsp), %rbp
leaq 0x88(%rsp), %r15
leaq 0xa0(%rsp), %rcx
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0xfa1dc
movq 0x40(%r14), %rdi
movq %rdi, (%rbp)
movq 0x10(%r14), %r13
movq %r13, 0x8(%rbp)
movq 0x18(%r14), %rdx
movq %rdx, 0x10(%rbp)
movq %r12, 0x20(%rsp)
movq %r12, (%r15)
movb 0x20(%r14), %al
movb %al, 0x8(%r15)
movq 0x28(%r14), %rax
movq %rax, 0x10(%r15)
movl 0xc(%r14), %eax
cmpq $0x4, %rax
ja 0x996f6
leaq 0x979e4(%rip), %rcx     # 0x1310ac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x68(%rsp), %rsi
leaq 0x88(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0xfa510
jmp 0x99fce
cmpl $0x10000, %eax          # imm = 0x10000
movq 0x20(%rsp), %r12
jne 0x99fd3
leaq 0x68(%rsp), %rsi
leaq 0x88(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
movq %rbx, %rdi
movl $0x1, %r8d
callq 0xfaeff
jmp 0x99fd3
movq %r13, 0x8(%rsp)
leaq 0x64(%rsp), %rsi
movq %rbx, %rdi
callq 0xe8a1c
movq %rbx, %rdi
movl $0x8000, %esi           # imm = 0x8000
callq 0xfad8f
movq %rax, %r15
movq 0x68(%rsp), %rax
movq 0x70(%rsp), %rcx
movq %rax, 0x30(%rsp)
movq 0x78(%rsp), %rax
addq %rcx, %rax
addq $-0x4, %rax
cmpq %rax, %r13
jg 0x99f9d
movq %rbx, %rdi
leaq 0x97c39(%rip), %rsi     # 0x1313b7
movq %r13, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x68(%rsp), %rdi
leaq 0x8(%rsp), %rbp
movq %rbp, %rsi
callq 0xeebeb
movq %rax, %r12
movq 0x68(%rsp), %rdi
movq %rbp, %rsi
callq 0xeeb91
cmpl $0x434b, %eax           # imm = 0x434B
jne 0x99f7a
leaq -0x2(%r12), %r13
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
leaq 0x97bf4(%rip), %rsi     # 0x1313ca
movl %r13d, %ecx
xorl %eax, %eax
callq 0xe8617
cmpq $0x2, %r12
jl 0x99f9d
movq 0x8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r13, 0x40(%rsp)
movq $0x0, 0x108(%rsp)
movq %r15, 0x110(%rsp)
movq 0x88(%rsp), %rax
movq 0x18(%rax), %rbp
movq %rbx, %rdi
leaq 0x30(%rsp), %rsi
leaq 0x88(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
leaq 0x108(%rsp), %r8
callq 0xff757
movq 0x88(%rsp), %rdi
callq 0xf08ba
cmpl $0x0, 0xa0(%rsp)
jne 0x99f9d
addq %r13, 0x8(%rsp)
movq 0x88(%rsp), %rax
movq 0x18(%rax), %r12
subq %rbp, %r12
movq %rbx, %rdi
leaq 0x97b6d(%rip), %rsi     # 0x1313e4
movq %r12, %rdx
xorl %eax, %eax
callq 0xe8617
cmpq $0x8000, %r12           # imm = 0x8000
jl 0x99f9d
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x8(%rsp), %r13
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
addq %rcx, %rax
addq $-0x4, %rax
jmp 0x9976b
leaq 0x68(%rsp), %rsi
leaq 0x88(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0xfaeff
jmp 0x99fce
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xe8a1c
movl $0xe0, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %r12
movq %rbx, (%rax)
leaq 0x97a0d(%rip), %rax     # 0x13130f
movq %rax, 0x58(%r12)
movq %r15, 0x8(%r12)
leaq 0xa0(%rsp), %rax
movq %rax, 0x50(%r12)
movq 0x68(%rsp), %rax
leaq 0x20(%r12), %rcx
movq %rcx, (%rsp)
movq %rax, 0x20(%r12)
movq 0x70(%rsp), %rax
movq %rax, 0x28(%r12)
addq 0x78(%rsp), %rax
movq %rax, 0x30(%r12)
leaq 0x68(%r12), %rax
movq %rax, 0x28(%rsp)
movl $0x10, %eax
movl %eax, 0x6c(%r12)
movl %eax, 0x84(%r12)
movl $0x20, 0x9c(%r12)
movl $0x40, 0xb4(%r12)
movl $0x100, 0xcc(%r12) # imm = 0x100
movl $0x78, %r15d
movl -0xc(%r12,%r15), %edx
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x104d0e
movq %rax, (%r12,%r15)
addq $0x18, %r15
cmpq $0xf0, %r15
jne 0x99986
movq %r12, 0x10(%rsp)
movq 0x28(%r12), %rdx
leaq 0x9795e(%rip), %rsi     # 0x131316
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
leaq 0x97952(%rip), %r15     # 0x131328
movq 0x28(%rsp), %rbp
xorl %r12d, %r12d
movq (%rsp), %r13
movq %r13, %rdi
movl $0x4, %esi
callq 0xf1bed
movl %eax, (%rbp)
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0xe87e4
incq %r12
addq $0x18, %rbp
cmpq $0x5, %r12
jne 0x999e2
movq %r13, %rdi
movl $0x4, %esi
callq 0xf1bed
movq 0x10(%rsp), %rax
cmpb $0x0, 0x38(%rax)
movq %rax, %r13
je 0x99aa9
movl $0x1, 0x18(%r13)
movb $0x1, 0x38(%r13)
movq 0x58(%r13), %rdx
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdi
callq 0xfa311
movq 0x60(%r13), %rsi
movq %rbx, %rdi
callq 0xfaed4
movl $0x78, %r15d
movq (%r13,%r15), %rsi
movq %rbx, %rdi
callq 0x104dc7
addq $0x18, %r15
cmpq $0xf0, %r15
jne 0x99a5f
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe8be2
movl 0x8(%rsp), %esi
jmp 0x99fc6
leaq 0xb56(%rip), %rcx       # 0x9a5ea
movq %r13, %rsi
movq 0x20(%rsp), %r12
movq %r12, %r8
callq 0xef5e4
jmp 0x99fd3
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
xorl %r12d, %r12d
movq %r13, %r15
movq (%r13), %r13
leaq (%r12,%r12,2), %rax
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax,8), %rbp
movq %r13, %rdi
leaq 0x108(%rsp), %rsi
callq 0xe8a1c
movq (%r15), %rax
movq %rax, 0x18(%rsp)
movl $0x20, %edx
movq (%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xf1cf3
movl (%rbp), %r9d
movl 0x4(%rbp), %r8d
movq 0x18(%rsp), %rdi
leaq 0x9783a(%rip), %rsi     # 0x131346
movq %r12, 0x58(%rsp)
movl %r12d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
movq %r13, %rdi
movl $0x1, %esi
callq 0xe8a15
movl 0x4(%rbp), %esi
movl $0x1, %edx
movq %r13, 0x18(%rsp)
movq %r13, %rdi
movq %r15, %r13
callq 0xe96f7
movq %rax, 0x8(%rbp)
movl (%rbp), %eax
cmpq $0x3, %rax
ja 0x99cec
leaq 0x97565(%rip), %rcx     # 0x1310c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x4(%rbp), %edi
callq 0xe9cd4
cmpl $0x0, 0x4(%rbp)
je 0x99ce3
xorl %edx, %edx
movq 0x8(%rbp), %rcx
movb %al, (%rcx,%rdx)
incq %rdx
movl 0x4(%rbp), %ecx
cmpq %rcx, %rdx
jb 0x99b78
jmp 0x99ce5
movq (%rsp), %rdi
movl $0x4, %esi
callq 0xf1bed
movq 0x8(%rbp), %rcx
movb %al, (%rcx)
movl 0x4(%rbp), %ecx
cmpl $0x2, %ecx
jb 0x99ce5
movq 0x8(%rbp), %rax
movl $0x1, %r12d
cmpb $0x0, 0x38(%r13)
jne 0x99cec
movb (%rax), %r15b
movq (%rsp), %r13
movq %r13, %rdi
movl $0x2, %esi
callq 0xf1bed
cmpl $0x3, %eax
jne 0x99bef
movq %r13, %rdi
movl $0x4, %esi
callq 0xf1bed
movq %rax, %r15
jmp 0x99bf5
addb %al, %r15b
decb %r15b
movq 0x8(%rbp), %rax
movb %r15b, (%rax,%r12)
movq 0x8(%rbp), %rax
addq %r12, %rax
incq %r12
movl 0x4(%rbp), %ecx
cmpq %rcx, %r12
movq 0x10(%rsp), %r13
jb 0x99bb9
jmp 0x99ce5
cmpl $0x0, 0x4(%rbp)
je 0x99ce3
xorl %r15d, %r15d
cmpb $0x0, 0x38(%r13)
jne 0x99cec
movq (%rsp), %rdi
movl $0x4, %esi
callq 0xf1bed
movq 0x8(%rbp), %rcx
movb %al, (%rcx,%r15)
incq %r15
movl 0x4(%rbp), %ecx
cmpq %rcx, %r15
jb 0x99c26
jmp 0x99ce5
movq (%rsp), %rdi
movl $0x4, %esi
callq 0xf1bed
movq 0x8(%rbp), %rcx
movb %al, (%rcx)
movl 0x4(%rbp), %ecx
cmpl $0x2, %ecx
jb 0x99ce5
movq 0x8(%rbp), %rax
movl $0x1, %r12d
cmpb $0x0, 0x38(%r13)
jne 0x99cec
movb (%rax), %r15b
movq (%rsp), %r13
movq %r13, %rdi
movl $0x1, %esi
callq 0xf1bed
testl %eax, %eax
je 0x99cc2
movq %r13, %rdi
movl $0x1, %esi
callq 0xf1bed
testl %eax, %eax
je 0x99cbf
movq %r13, %rdi
movl $0x4, %esi
callq 0xf1bed
movq %rax, %r15
jmp 0x99cc2
incb %r15b
movq 0x10(%rsp), %r13
movq 0x8(%rbp), %rax
movb %r15b, (%rax,%r12)
movq 0x8(%rbp), %rax
addq %r12, %rax
incq %r12
movl 0x4(%rbp), %ecx
cmpq %rcx, %r12
jb 0x99c7d
jmp 0x99ce5
xorl %ecx, %ecx
cmpb $0x0, 0x38(%r13)
je 0x99d43
movl $0x1, 0x18(%r13)
movb $0x1, 0x38(%r13)
movq 0x18(%rsp), %r12
movq 0x8(%rbp), %rsi
movq %r12, %rdi
callq 0xe8be2
movq $0x0, 0x8(%rbp)
movl 0x108(%rsp), %esi
movq %r12, %rdi
callq 0xe8a25
cmpb $0x0, 0x38(%r13)
jne 0x99a2c
movq 0x58(%rsp), %r12
incq %r12
cmpq $0x5, %r12
jne 0x99ab9
jmp 0x99e04
testl %ecx, %ecx
leaq 0xb193a(%rip), %r13     # 0x14b686
movq 0x18(%rsp), %r12
je 0x99d96
xorl %r15d, %r15d
movq 0x8(%rbp), %rax
movzbl (%rax,%r15), %ecx
movq %r12, %rdi
movq %r13, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe87e4
movq 0x8(%rbp), %rax
movq 0x10(%rbp), %rcx
movq 0x10(%rcx), %rsi
movzbl (%rax,%r15), %ecx
movq %r12, %rdi
movl %r15d, %edx
callq 0x1049cc
incq %r15
movl 0x4(%rbp), %eax
cmpq %rax, %r15
jb 0x99d56
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %r12, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x104a46
testl %eax, %eax
je 0x99dd4
cmpl $0x4, (%r12)
movq 0x10(%rsp), %r13
jl 0x99cfe
movq 0x10(%rbp), %rsi
movq %r12, %rdi
callq 0x1047f5
jmp 0x99cfe
movq 0x10(%rsp), %r13
movq 0x50(%r13), %rsi
movq 0x58(%r13), %rdx
movq %r12, %rdi
leaq 0x97588(%rip), %rcx     # 0x131373
xorl %eax, %eax
callq 0xfa21a
movl $0x1, 0x18(%r13)
movb $0x1, 0x38(%r13)
jmp 0x99cfe
movq %rbx, %rdi
movl $0x1000, %esi           # imm = 0x1000
callq 0xfad8f
movq %rax, 0x60(%r13)
leaq 0x813(%rip), %rcx       # 0x9a62f
movq %rcx, 0x8(%rax)
movq %r13, (%rax)
movq %rax, %rdi
movl $0x20, %esi
callq 0xfadfe
movq (%r13), %r15
leaq 0x30(%rsp), %rsi
movl $0x20, %edx
movq (%rsp), %rdi
callq 0xf1cf3
leaq 0x97546(%rip), %rsi     # 0x131394
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
leaq 0xb0(%r13), %rax
movq %rax, 0x18(%rsp)
leaq 0x98(%r13), %rax
movq %rax, 0x58(%rsp)
leaq 0x80(%r13), %rax
movq %rax, 0x118(%rsp)
movq %r13, %rbp
addq $0xc8, %rbp
movq 0x28(%rsp), %r12
movq 0x8(%r13), %rax
cmpb $0x0, 0x8(%rax)
je 0x99ea9
movq 0x10(%r13), %rcx
cmpq 0x10(%rax), %rcx
jge 0x99f6a
cmpb $0x0, 0x38(%r13)
jne 0x99f6a
movq %r13, %rdi
movq %r12, %rsi
callq 0x9a659
cmpb $0x0, 0x38(%r13)
jne 0x99f6a
movl %eax, %r15d
movq %r13, %rdi
testb %al, %al
jne 0x99f25
movq 0x58(%rsp), %rsi
callq 0x9a659
cmpb $0x0, 0x38(%r13)
jne 0x99f6a
movzbl %al, %r15d
cmpb $0x1f, %r15b
cmovneq 0x118(%rsp), %r12
incl %r15d
movq %r13, %rdi
movq %rbp, %rsi
callq 0x9a659
cmpb $0x0, 0x38(%r13)
jne 0x99f6a
movq 0x60(%r13), %rdi
movzbl %al, %esi
callq 0xfae4e
decl %r15d
jne 0x99efd
jmp 0x99e91
movq 0x18(%rsp), %rsi
callq 0x9a659
movl %eax, %r12d
movq (%rsp), %rdi
movl $0x6, %esi
callq 0xf1bed
cmpb $0x0, 0x38(%r13)
jne 0x99f6a
movzbl %r12b, %ecx
movzbl %r15b, %edx
addl $0x2, %edx
movq 0x60(%r13), %rdi
movl 0x10(%rdi), %esi
shll $0x6, %ecx
orl %eax, %ecx
subl %ecx, %esi
callq 0xfae7b
jmp 0x99e8c
cmpl $0x0, 0x18(%r13)
jne 0x99a39
jmp 0x99a4d
leaq 0x97421(%rip), %rdx     # 0x1313a2
leaq 0x97420(%rip), %rcx     # 0x1313a8
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %r8
xorl %eax, %eax
callq 0xfa21a
movb $0x1, 0xa4(%rsp)
movq 0x8(%rsp), %rax
subq 0x70(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xfaed4
movl 0x64(%rsp), %esi
movq %rbx, %rdi
callq 0xe8a25
movq 0x20(%rsp), %r12
movq 0x88(%rsp), %rdi
callq 0xf08ba
cmpl $0x0, 0xa0(%rsp)
movq 0x120(%rsp), %r15
je 0x9a065
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdi
callq 0xfa1a4
leaq 0x7ad56(%rip), %rsi     # 0x114d5f
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9295
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %r12, %rdi
callq 0xf052b
movq %rbx, %rdi
movq %r15, %rsi
callq 0xea50e
movq 0x30(%r14), %rdi
callq 0xf6753
movq 0x48(%r14), %rdi
callq 0xf052b
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe8be2
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x0, 0xa4(%rsp)
je 0x9a08d
movq 0xa8(%rsp), %rdx
movq 0x18(%r12), %rcx
leaq 0x874cc(%rip), %rsi     # 0x12154f
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
cmpb $0x0, 0x20(%r14)
je 0x9a016
movq 0x18(%r12), %rcx
movq 0x28(%r14), %rdx
cmpq %rdx, %rcx
je 0x9a016
leaq 0x9723f(%rip), %rsi     # 0x1312ec
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8faa
jmp 0x9a016