// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/pcx.c
// Function: de_run_pcx_internal
static void de_run_pcx_internal(deark *c, lctx *d, de_module_params *mparams)
{
	const char *s;

	s = de_get_ext_option(c, "pcx:pal");
	if(s) {
		d->default_pal_num = de_atoi(s);
		if(d->default_pal_num<0 || d->default_pal_num>1) {
			d->default_pal_num = 0;
		}
		d->default_pal_set = 1;
	}

	d->resmode = RESMODE_AUTO;
	s = de_get_ext_option(c, "pcx:resmode");
	if(s) {
		if(!de_strcmp(s, "auto")) {
			d->resmode = RESMODE_AUTO;
		}
		else if(!de_strcmp(s, "dpi")) {
			d->resmode = RESMODE_DPI;
		}
		else if(!de_strcmp(s, "screen")) {
			d->resmode = RESMODE_SCREENDIMENSIONS;
		}
	}

	d->fi = de_finfo_create(c);

	if(!do_read_header(c, d)) {
		goto done;
	}

	do_palette_stuff(c, d);

	if(d->encoding==0) {
		// Uncompressed PCXs are probably not standard, but support for them is not
		// uncommon. Imagemagick, for example, will create them if you ask it to.
		de_dbg(c, "uncompressed bitmap at %d", (int)PCX_HDRSIZE);
		d->unc_pixels = dbuf_open_input_subfile(c->infile,
			PCX_HDRSIZE, c->infile->len-PCX_HDRSIZE);
	}
	else {
		if(!do_uncompress(c, d)) {
			goto done;
		}
	}
	dbuf_flush(d->unc_pixels);

	do_bitmap(c, d);

done:
	dbuf_close(d->unc_pixels);
	d->unc_pixels = NULL;
	de_finfo_destroy(c, d->fi);
	d->fi = NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x7effc(%rip), %rsi     # 0x128f9b
callq 0xdfa87
testq %rax, %rax
je 0xa9fc9
movq %rax, %rdi
callq 0xdfb36
xorl %ecx, %ecx
cmpl $0x2, %eax
cmovbl %eax, %ecx
movl %ecx, 0x9c(%rbx)
movl $0x1, 0xa0(%rbx)
movl $0x1, 0x4(%rbx)
leaq 0x7efcc(%rip), %rsi     # 0x128fa3
movq %r14, %rdi
callq 0xdfa87
testq %rax, %rax
je 0xaa02e
movq %rax, %r15
leaq 0x59589(%rip), %rsi     # 0x103577
movq %rax, %rdi
callq 0x181a0
testl %eax, %eax
je 0xaa024
leaq 0x8a116(%rip), %rsi     # 0x134117
movq %r15, %rdi
callq 0x181a0
testl %eax, %eax
je 0xaa028
leaq 0x790b1(%rip), %rsi     # 0x1230c5
movq %r15, %rdi
callq 0x181a0
testl %eax, %eax
jne 0xaa02e
pushq $0x3
jmp 0xaa02a
pushq $0x1
jmp 0xaa02a
pushq $0x2
popq %rax
movl %eax, 0x4(%rbx)
movq %r14, %rdi
callq 0xdfd1a
movq %rax, 0xb0(%rbx)
leaq 0x10(%rsp), %r15
andq $0x0, (%r15)
leaq 0x6c172(%rip), %rsi     # 0x1161bf
movq %r14, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0xdeba7
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0xe3f2a
movl %eax, %r12d
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0xe3f2a
movb %al, (%rbx)
xorb $-0x15, %r12b
orb 0x90(%rbx), %r12b
movl %eax, %ecx
xorb $0xe, %cl
orb %r12b, %cl
jne 0xaa0a2
movb $0x1, 0x91(%rbx)
movb $0x5, (%rbx)
movb $0x5, %al
movzbl %al, %edx
leaq 0x5d00b(%rip), %rsi     # 0x1070b7
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
cmpb $0x0, 0x90(%rbx)
je 0xaa0c8
leaq 0x7ef03(%rip), %rsi     # 0x128fc9
jmp 0xaa0e1
cmpb $0x0, 0x91(%rbx)
leaq 0x73490(%rip), %rax     # 0x11d566
leaq 0x7ef08(%rip), %rsi     # 0x128fe5
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0xe07f7
movq 0x18(%r14), %rdi
leaq 0x10(%rsp), %r15
movq %r15, %rsi
callq 0xe3f2a
movb %al, 0x1(%rbx)
movzbl %al, %edx
leaq 0x7eef3(%rip), %rsi     # 0x128ffa
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0xe3f2a
movzbl %al, %edx
movq %rdx, 0x8(%rbx)
leaq 0x94832(%rip), %rsi     # 0x13e95d
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
cmpq $0x0, 0x8(%rbx)
jg 0xaa144
movq $0x1, 0x8(%rbx)
movq 0x18(%r14), %rdi
leaq 0x10(%rsp), %r13
movq %r13, %rsi
callq 0xe3fc4
movq %rax, 0x18(%rbx)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rax, 0x20(%rbx)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rax, 0x28(%rbx)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rax, 0x30(%rbx)
movl 0x18(%rbx), %edx
movl 0x20(%rbx), %ecx
movl 0x28(%rbx), %r8d
leaq 0x7ee6d(%rip), %rsi     # 0x129007
movq %r14, %rdi
movl %eax, %r9d
xorl %eax, %eax
callq 0xde896
movq 0x28(%rbx), %rsi
movq 0x30(%rbx), %rdx
subq 0x18(%rbx), %rsi
incq %rsi
movq %rsi, 0x70(%rbx)
subq 0x20(%rbx), %rdx
incq %rdx
movq %rdx, 0x88(%rbx)
movq %r14, %rdi
callq 0xdf038
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rax, %r12
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rax, %r15
leaq 0x7ee2a(%rip), %rsi     # 0x12901f
movq %r14, %rdi
movl %r12d, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0xde896
movq $0x40, (%r13)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3f2a
movb %al, 0x6c(%rbx)
movzbl %al, %edx
leaq 0x7ee0c(%rip), %rsi     # 0x129032
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3f2a
movzbl %al, %edx
movq %rdx, 0x48(%rbx)
leaq 0x83f75(%rip), %rsi     # 0x12e1bf
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rax, 0x50(%rbx)
leaq 0x7edd5(%rip), %rsi     # 0x129040
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3f2a
movzbl %al, %edx
movl %edx, 0x68(%rbx)
incq (%r13)
leaq 0x7edc0(%rip), %rsi     # 0x129054
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
cmpb $0x5, (%rbx)
jb 0xaa30e
movq 0x18(%r14), %rdi
leaq 0x10(%rsp), %r13
movq %r13, %rsi
callq 0xe3fc4
movq %rax, 0x38(%rbx)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xe3fc4
movq %rax, 0x40(%rbx)
movq 0x38(%rbx), %rdx
cmpq $0x140, %rdx            # imm = 0x140
setl %cl
cmpq $0xc8, %rax
setl %sil
orb %cl, %sil
jne 0xaa300
movl $0x1001, %ecx           # imm = 0x1001
cmpq %rcx, %rdx
setae %sil
cmpq %rcx, %rax
setae %cl
orb %sil, %cl
je 0xaa453
leaq 0x38(%rbx), %rax
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
jmp 0xaa32e
movq 0x38(%rbx), %rdx
testq %rdx, %rdx
je 0xaa32e
movq 0x40(%rbx), %rax
leaq 0x7ed43(%rip), %rsi     # 0x129065
movq %r14, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xde896
movq 0x50(%rbx), %rax
movq 0x70(%rbx), %rcx
shlq $0x3, %rax
cqto
idivq 0x8(%rbx)
movq %rax, 0x78(%rbx)
movq %rcx, 0x80(%rbx)
cmpb $0x0, 0xd6(%r14)
je 0xaa35c
cmpq %rcx, %rax
jg 0xaa38d
jmp 0xaa397
testq %rcx, %rcx
setle %dl
testq %rax, %rax
setg %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0xaa397
leaq 0x7ed00(%rip), %rsi     # 0x129079
movq %r14, %rdi
movq %rcx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdf05a
movq 0x78(%rbx), %rax
movq %rax, 0x80(%rbx)
movq %rax, %rcx
movq 0x88(%rbx), %rdx
movq %r14, %rdi
movq %rcx, %rsi
callq 0xe6be1
testl %eax, %eax
je 0xaa4de
movq 0x48(%rbx), %rdx
imulq 0x50(%rbx), %rdx
movq %rdx, 0x58(%rbx)
leaq 0x7ecd9(%rip), %rsi     # 0x12909e
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x8(%rbx), %rdx
movq 0x48(%rbx), %rcx
movq %rcx, %rax
imulq %rdx, %rax
movq %rax, 0x10(%rbx)
movzbl 0x1(%rbx), %eax
cmpl $0x2, %eax
jae 0xaa43b
cmpq $0x4, %rcx
je 0xaa4a9
cmpq $0x3, %rcx
je 0xaa485
cmpq $0x1, %rcx
jne 0xaa4cd
leaq -0x1(%rdx), %rax
cmpq $0x7, %rax
ja 0xaa4cd
leaq 0x7ea72(%rip), %rsi     # 0x128e90
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
jmpq *%rax
movq $0x2, 0x60(%rbx)
leaq 0x7ec81(%rip), %rdx     # 0x1290b7
jmp 0xaa580
leaq 0x64e99(%rip), %rsi     # 0x10f2db
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xdf2a5
jmp 0xaa4de
movl %edx, %ecx
andl $0x7, %ecx
movl %eax, %esi
andl $0x1, %esi
orq %rcx, %rsi
jne 0xaa300
leaq (%rax,%rax,4), %rcx
cmpq %rdx, %rcx
jb 0xaa300
leaq (%rdx,%rdx,2), %rcx
cmpq %rax, %rcx
jae 0xaa31b
jmp 0xaa300
cmpq $0x8, %rdx
je 0xaa523
cmpq $0x1, %rdx
jne 0xaa4cd
movq $0x8, 0x60(%rbx)
leaq 0x7ec36(%rip), %rdx     # 0x1290da
jmp 0xaa580
cmpq $0x8, %rdx
je 0xaa534
cmpq $0x1, %rdx
jne 0xaa4cd
movq $0x10, 0x60(%rbx)
leaq 0x7ec1a(%rip), %rdx     # 0x1290e2
jmp 0xaa580
leaq 0x7ec31(%rip), %rsi     # 0x129105
movq %r14, %rdi
xorl %eax, %eax
callq 0xdf2a5
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0xdeba7
movq 0xa8(%rbx), %rdi
callq 0xe5591
andq $0x0, 0xa8(%rbx)
movq 0xb0(%rbx), %rsi
movq %r14, %rdi
callq 0xdfd24
andq $0x0, 0xb0(%rbx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x1000000, 0x60(%rbx)  # imm = 0x1000000
leaq 0x7ebb9(%rip), %rdx     # 0x1290eb
jmp 0xaa580
movq $0x1000000, 0x60(%rbx)  # imm = 0x1000000
movl $0x1, 0x98(%rbx)
leaq 0x7eba8(%rip), %rdx     # 0x1290f5
jmp 0xaa580
movq $0x10, 0x60(%rbx)
leaq 0x7eb69(%rip), %rdx     # 0x1290c7
jmp 0xaa580
movq $0x4, 0x60(%rbx)
leaq 0x7eb50(%rip), %rdx     # 0x1290bf
jmp 0xaa580
movq $0x100, 0x60(%rbx)      # imm = 0x100
leaq 0x7e557(%rip), %rdx     # 0x128ad7
leaq 0x78db8(%rip), %rsi     # 0x12333f
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
testq %r12, %r12
sete %al
testq %r15, %r15
sete %cl
orb %al, %cl
jne 0xaa716
movl 0x4(%rbx), %eax
cmpl $0x3, %eax
je 0xaa653
cmpl $0x2, %eax
je 0xaa6ee
cmpl $0x1, %eax
jne 0xaa716
movq %r12, %rax
xorq $0x140, %rax            # imm = 0x140
movq %r15, %rcx
xorq $0xc8, %rcx
orq %rax, %rcx
je 0xaa63c
cmpq $0xc8, %r15
sete %al
cmpq $0x1e0, %r15            # imm = 0x1E0
sete %cl
cmpq $0x15e, %r15            # imm = 0x15E
sete %dl
cmpq $0x280, %r12            # imm = 0x280
jne 0xaa608
orb %dl, %cl
orb %cl, %al
jne 0xaa63c
movq %r12, %rax
xorq $0x320, %rax            # imm = 0x320
movq %r15, %rcx
xorq $0x258, %rcx            # imm = 0x258
orq %rax, %rcx
je 0xaa63c
movq %r12, %rax
xorq $0x400, %rax            # imm = 0x400
movq %r15, %rcx
xorq $0x300, %rcx            # imm = 0x300
orq %rax, %rcx
jne 0xaa6c6
cmpq %r12, 0x70(%rbx)
jg 0xaa716
cmpq %r12, 0x88(%rbx)
jg 0xaa716
movq 0xb0(%rbx), %r13
movl $0x1, 0x78(%r13)
leaq (%r12,%r12,2), %rax
leaq 0x30(%rsp), %rbp
movq %rax, (%rbp)
shlq $0x2, %r15
leaq 0x18(%rsp), %r12
movq %r15, (%r12)
pushq $0x2
popq %rdx
movq %rbp, %rdi
movq %r12, %rsi
callq 0xaae57
pushq $0x3
popq %rdx
movq %rbp, %rdi
movq %r12, %rsi
callq 0xaae57
pushq $0x5
popq %rdx
movq %rbp, %rdi
movq %r12, %rsi
callq 0xaae57
cvtsi2sdq (%rbp), %xmm0
movsd %xmm0, 0x80(%r13)
cvtsi2sdq (%r12), %xmm0
movsd %xmm0, 0x88(%r13)
jmp 0xaa716
cmpq %r12, 0x70(%rbx)
jne 0xaa6d5
cmpq %r15, 0x88(%rbx)
je 0xaa716
cmpq %r15, %r12
setne %al
leaq -0x32(%r12), %rcx
cmpq $0x227, %rcx            # imm = 0x227
setae %cl
orb %al, %cl
jne 0xaa716
movq 0xb0(%rbx), %rax
movl $0x2, 0x78(%rax)
cvtsi2sd %r12, %xmm0
movsd %xmm0, 0x80(%rax)
cvtsi2sd %r15, %xmm0
movsd %xmm0, 0x88(%rax)
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0xdeba7
cmpq $0x100, 0x60(%rbx)      # imm = 0x100
jg 0xaab30
jne 0xaa752
movl $0xff000000, %eax       # imm = 0xFF000000
xorl %ecx, %ecx
cmpq $0x100, %rcx            # imm = 0x100
je 0xaa752
movl %eax, 0xb8(%rbx,%rcx,4)
incq %rcx
addl $0x10101, %eax          # imm = 0x10101
jmp 0xaa738
leaq 0x58e23(%rip), %rsi     # 0x10357c
movq %r14, %rdi
callq 0xdfa87
testq %rax, %rax
je 0xaa88b
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0xe600b
testq %rax, %rax
je 0xaa88b
movq %rax, %r12
movq %r15, 0x20(%rsp)
leaq 0x7eb02(%rip), %rsi     # 0x129292
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
imulq $0x3, 0x60(%rbx), %rax
xorl %r15d, %r15d
cmpq %rax, 0x18(%r12)
setne %r15b
movq %r14, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
xorl %r13d, %r13d
cmpq 0x60(%rbx), %r13
jge 0xaa92d
leaq (,%r13,2), %rdx
addq %r13, %rdx
cmpq 0x18(%r12), %rdx
jge 0xaa92d
movq %r12, %rbp
movq %r12, %rdi
leaq 0x18(%rsp), %rsi
pushq $0x3
popq %rcx
callq 0xe3cb7
xorl %r12d, %r12d
cmpq $0x3, %r12
je 0xaa814
movzbl 0x18(%rsp,%r12), %edi
cmpl $0x40, %edi
pushq $0x1
popq %rax
cmovael %eax, %r15d
callq 0xe1cec
movb %al, 0x10(%rsp,%r12)
incq %r12
jmp 0xaa7ef
movzbl 0x10(%rsp), %eax
shll $0x10, %eax
movzbl 0x11(%rsp), %ecx
shll $0x8, %ecx
orl %eax, %ecx
movzbl 0x12(%rsp), %eax
orl %ecx, %eax
orl $0xff000000, %eax       # imm = 0xFF000000
movl %eax, 0xb8(%rbx,%r13,4)
movzbl 0x18(%rsp), %ecx
movzbl 0x19(%rsp), %r8d
movzbl 0x1a(%rsp), %r9d
leaq 0x30(%rsp), %r12
movq %r12, %rdi
pushq $0x40
popq %rsi
leaq 0x59718(%rip), %rdx     # 0x103f75
xorl %eax, %eax
callq 0xde40c
movl 0xb8(%rbx,%r13,4), %edx
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xdf153
incq %r13
movq %rbp, %r12
jmp 0xaa7b9
xorl %edi, %edi
callq 0xe5591
movq 0x60(%rbx), %rdx
cmpq $0x2, %rdx
je 0xaab30
movb (%rbx), %al
cmpb $0x3, %al
setne %cl
leaq -0x8(%rdx), %rsi
cmpq $0x9, %rsi
setae %sil
orb %cl, %sil
jne 0xaa960
cmpl $0x0, 0xa0(%rbx)
jne 0xaa8d6
leaq 0x7e865(%rip), %rsi     # 0x129131
movq %r14, %rdi
xorl %eax, %eax
callq 0xdf37f
leaq 0x7e8c3(%rip), %rsi     # 0x1291a0
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
leaq 0xb8(%rbx), %rcx
cmpl $0x1, 0x9c(%rbx)
jne 0xaa9f8
movaps 0x7e5de(%rip), %xmm0    # 0x128ee0
movups %xmm0, 0x30(%rcx)
movaps 0x7e5c3(%rip), %xmm0    # 0x128ed0
movups %xmm0, 0x20(%rcx)
movaps 0x7e5a8(%rip), %xmm0    # 0x128ec0
movups %xmm0, 0x10(%rcx)
movapd 0x7e58c(%rip), %xmm0    # 0x128eb0
movupd %xmm0, (%rcx)
jmp 0xaab30
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0xdeba7
testl %r15d, %r15d
je 0xaa953
leaq 0x7e96f(%rip), %rsi     # 0x1292b3
movq %r14, %rdi
movq 0x20(%rsp), %rdx
xorl %eax, %eax
callq 0xdf05a
movq %r12, %rdi
callq 0xe5591
jmp 0xaab30
cmpb $0x5, %al
setb %al
cmpq $0x100, %rdx            # imm = 0x100
setne %cl
orb %al, %cl
jne 0xaaa09
movq 0x18(%r14), %rdi
movq 0x18(%rdi), %r15
cmpq $0x381, %r15            # imm = 0x381
jl 0xaaa95
leaq -0x301(%r15), %r12
movq %r12, %rsi
callq 0xe3eb4
cmpb $0xc, %al
jne 0xaaa95
leaq 0x7e93d(%rip), %rsi     # 0x1292e7
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xde896
movl $0x1, 0x94(%rbx)
addq $-0x300, %r15           # imm = 0xFD00
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0xdeba7
movq 0x18(%r14), %rdi
leaq 0xb8(%rbx), %r8
andl $0x0, (%rsp)
pushq $0x3
popq %rcx
movl $0x100, %edx            # imm = 0x100
movl $0x100, %r9d            # imm = 0x100
movq %r15, %rsi
jmp 0xaab02
pushq $0x32
popq %rdi
pushq $0x2
popq %rsi
pushq $0x10
popq %r8
xorl %edx, %edx
jmp 0xaab28
cmpq $0x4, %rdx
jne 0xaaaab
leaq 0x7e7c5(%rip), %rsi     # 0x1291df
movq %r14, %rdi
xorl %eax, %eax
callq 0xdf05a
movq 0x18(%r14), %rdi
pushq $0x10
popq %rsi
callq 0xe3eb4
movl %eax, %ebp
movq 0x18(%r14), %rdi
pushq $0x13
popq %rsi
callq 0xe3eb4
shrb $0x4, %bpl
movzbl %bpl, %r15d
shrb $0x5, %al
movzbl %al, %ebp
leaq 0x7e7c0(%rip), %rsi     # 0x129213
movq %r14, %rdi
movl %ebp, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0xde896
pushq $0x14
popq %rdi
xorl %esi, %esi
movl %r15d, %edx
callq 0xe1a23
movl %eax, 0xb8(%rbx)
decb %bpl
cmpb $0x6, %bpl
ja 0xaab14
movzbl %bpl, %eax
leaq 0x7e47b(%rip), %rcx     # 0x128f08
movl (%rcx,%rax,4), %esi
jmp 0xaab17
leaq 0x7e720(%rip), %rsi     # 0x1291bc
movq %r14, %rdi
xorl %eax, %eax
callq 0xdf05a
jmp 0xaab30
leaq -0x11(%rdx), %rax
cmpq $0xef, %rax
ja 0xaaac8
leaq 0x7e785(%rip), %rsi     # 0x129243
movq %r14, %rdi
xorl %eax, %eax
callq 0xdf05a
leaq 0x7e7a0(%rip), %rsi     # 0x12926f
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0xdeba7
movq 0x18(%r14), %rdi
leaq 0xb8(%rbx), %r8
andl $0x0, (%rsp)
pushq $0x10
popq %rdx
pushq $0x3
popq %rcx
movl $0x100, %r9d            # imm = 0x100
movq %rdx, %rsi
callq 0xe7963
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0xdeba7
jmp 0xaab30
pushq $0x2
popq %rsi
leaq 0xbc(%rbx), %rcx
pushq $0xa
popq %rdi
pushq $0x1
popq %rdx
pushq $0x3
popq %r8
xorl %r9d, %r9d
callq 0xe1b11
cmpb $0x0, 0x1(%rbx)
je 0xaac4c
leaq 0x7e7b9(%rip), %rsi     # 0x1292fa
movl $0x80, %r12d
movl $0x80, %edx
movq %r14, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x88(%rbx), %rbp
imulq 0x58(%rbx), %rbp
movq %r14, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0xe59cd
movq %rax, 0xa8(%rbx)
movq %rax, %rdi
callq 0xe589c
movq %r14, 0x20(%rsp)
movq 0x18(%r14), %rax
movq 0x18(%rax), %rax
leaq -0x301(%rax), %r15
cmpl $0x0, 0x94(%rbx)
cmoveq %rax, %r15
movq %r15, 0x28(%rsp)
movq 0x20(%rsp), %r14
movq 0xa8(%rbx), %rdi
cmpq %r15, %r12
jge 0xaac16
cmpq %rbp, 0x18(%rdi)
jge 0xaac16
movq 0x18(%r14), %rdi
leaq 0x1(%r12), %r13
movq %r12, %rsi
callq 0xe3eb4
cmpb $-0x40, %al
jb 0xaac02
andb $0x3f, %al
movq %rbp, %r15
movzbl %al, %ebp
movq 0x18(%r14), %rdi
addq $0x2, %r12
movq %r13, %rsi
callq 0xe3eb4
movq 0xa8(%rbx), %rdi
movzbl %al, %esi
movq %rbp, %rdx
movq %r15, %rbp
movq 0x28(%rsp), %r15
callq 0xe5e40
jmp 0xaaba7
movq 0xa8(%rbx), %rdi
movzbl %al, %esi
callq 0xe5bc5
movq %r13, %r12
jmp 0xaaba7
callq 0xe58e8
movq 0xa8(%rbx), %rdi
movq 0x18(%rdi), %rcx
cmpq %rbp, %rcx
movq 0x20(%rsp), %r14
jge 0xaac82
leaq 0x7e6dc(%rip), %rsi     # 0x129313
movq %r14, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xdf05a
movq 0xa8(%rbx), %rdi
jmp 0xaac82
leaq 0x7e35c(%rip), %rsi     # 0x128faf
movq %r14, %rdi
movl $0x80, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r14), %rdi
movq 0x18(%rdi), %rdx
addq $-0x80, %rdx
movl $0x80, %esi
callq 0xe6248
movq %rax, %rdi
movq %rax, 0xa8(%rbx)
callq 0xe58e8
movq 0x10(%rbx), %rdx
cmpq $0x1, %rdx
jne 0xaacc9
movq 0xa8(%rbx), %rdi
movq 0x50(%rbx), %r8
movq 0x80(%rbx), %rdx
movq 0x88(%rbx), %rcx
movq 0xb0(%rbx), %rax
andl $0x0, 0x8(%rsp)
movq %rax, (%rsp)
xorl %esi, %esi
xorl %r9d, %r9d
callq 0xe78af
jmp 0xaa4e9
cmpq $0x8, %rdx
jg 0xaad22
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
pushq $0x3
popq %rcx
movq %r14, %rdi
callq 0xe7437
movq %rax, %r15
movq 0x48(%rbx), %rdx
cmpq $0x1, %rdx
jne 0xaade4
movq 0xa8(%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0x58(%rbx), %rcx
leaq 0xb8(%rbx), %r8
andl $0x0, (%rsp)
xorl %esi, %esi
movq %r15, %r9
callq 0xe7cbc
jmp 0xaae14
cmpq $0x18, %rdx
jb 0xaae23
orl $-0x1, 0x30(%rsp)
movq 0x80(%rbx), %rsi
cmpl $0x1, 0x98(%rbx)
movq 0x88(%rbx), %rdx
pushq $0x4
popq %rcx
sbbl $0x0, %ecx
movq %r14, %rdi
callq 0xe7437
movq %rax, %r15
xorl %r12d, %r12d
cmpq 0x88(%rbx), %r12
jge 0xaae39
xorl %r13d, %r13d
cmpq 0x80(%rbx), %r13
jge 0xaaddc
xorl %ebp, %ebp
cmpq 0x48(%rbx), %rbp
jge 0xaada6
movq 0xa8(%rbx), %rdi
movq 0x58(%rbx), %rsi
imulq %r12, %rsi
movq 0x50(%rbx), %rax
imulq %rbp, %rax
addq %r13, %rsi
addq %rax, %rsi
callq 0xe3eb4
movb %al, 0x30(%rsp,%rbp)
incq %rbp
jmp 0xaad75
movzbl 0x33(%rsp), %eax
shll $0x18, %eax
movzbl 0x30(%rsp), %ecx
shll $0x10, %ecx
orl %eax, %ecx
movzbl 0x31(%rsp), %eax
shll $0x8, %eax
orl %ecx, %eax
movzbl 0x32(%rsp), %ecx
orl %eax, %ecx
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0xe728c
incq %r13
jmp 0xaad6a
incq %r12
jmp 0xaad5a
cmpq $0x1, 0x8(%rbx)
jne 0xaae14
movq 0xa8(%rbx), %rdi
movq 0x50(%rbx), %r8
movq 0x58(%rbx), %rcx
leaq 0xb8(%rbx), %r9
movq %r15, (%rsp)
movl $0x2, 0x8(%rsp)
xorl %esi, %esi
callq 0xe7de1
movq 0xb0(%rbx), %rsi
pushq $0x2
popq %rdx
movq %r15, %rdi
jmp 0xaae45
leaq 0x5b9ad(%rip), %rsi     # 0x1067d7
movq %r14, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0xaa4e9
movq 0xb0(%rbx), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0xe70ab
movq %r15, %rdi
callq 0xe7084
jmp 0xaa4e9