// File: /workspace/github_c_makefile_star2_O1/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 0x847c8(%rip), %rsi     # 0x135e58
callq 0xea6cb
testq %rax, %rax
je 0xb16ba
movq %rax, %rdi
callq 0xea781
xorl %ecx, %ecx
cmpl $0x2, %eax
cmovbl %eax, %ecx
movl %ecx, 0x9c(%rbx)
movl $0x1, 0xa0(%rbx)
movl $0x1, 0x4(%rbx)
leaq 0x84798(%rip), %rsi     # 0x135e60
movq %r14, %rdi
callq 0xea6cb
testq %rax, %rax
je 0xb1727
movq %rax, %r15
leaq 0x5eeac(%rip), %rsi     # 0x11058b
movq %rax, %rdi
callq 0x181a0
testl %eax, %eax
je 0xb1718
leaq 0x8f995(%rip), %rsi     # 0x141087
movq %r15, %rdi
callq 0x181a0
testl %eax, %eax
je 0xb171f
leaq 0x7e968(%rip), %rsi     # 0x13006d
movq %r15, %rdi
callq 0x181a0
testl %eax, %eax
jne 0xb1727
movl $0x3, %eax
jmp 0xb1724
movl $0x1, %eax
jmp 0xb1724
movl $0x2, %eax
movl %eax, 0x4(%rbx)
movq %r14, %rdi
callq 0xea9a9
movq %rax, 0xb0(%rbx)
leaq 0x30(%rsp), %r15
movq $0x0, (%r15)
leaq 0x71a56(%rip), %rsi     # 0x12319f
movq %r14, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0xef14d
movl %eax, %ebp
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0xef14d
movb %al, (%rbx)
xorb $-0x15, %bpl
orb 0x90(%rbx), %bpl
xorb $0xe, %al
orb %bpl, %al
jne 0xb179a
movb $0x1, 0x91(%rbx)
movb $0x5, (%rbx)
movzbl (%rbx), %edx
leaq 0x628c3(%rip), %rsi     # 0x114067
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
cmpb $0x0, 0x90(%rbx)
je 0xb17c0
leaq 0x846c8(%rip), %rsi     # 0x135e86
jmp 0xb17d9
cmpb $0x0, 0x91(%rbx)
leaq 0x78d78(%rip), %rax     # 0x12a546
leaq 0x846cd(%rip), %rsi     # 0x135ea2
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0xeb6d6
movq 0x18(%r14), %rdi
leaq 0x30(%rsp), %r15
movq %r15, %rsi
callq 0xef14d
movb %al, 0x1(%rbx)
movzbl %al, %edx
leaq 0x846b8(%rip), %rsi     # 0x135eb7
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0xef14d
movzbl %al, %edx
movq %rdx, 0x8(%rbx)
leaq 0x9a01a(%rip), %rsi     # 0x14b83d
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
cmpq $0x0, 0x8(%rbx)
jg 0xb183c
movq $0x1, 0x8(%rbx)
movq 0x18(%r14), %rdi
leaq 0x30(%rsp), %r13
movq %r13, %rsi
callq 0xef1ed
movq %rax, 0x18(%rbx)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef1ed
movq %rax, 0x20(%rbx)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef1ed
movq %rax, 0x28(%rbx)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef1ed
movq %rax, 0x30(%rbx)
movl 0x18(%rbx), %edx
movl 0x20(%rbx), %ecx
movl 0x28(%rbx), %r8d
leaq 0x84632(%rip), %rsi     # 0x135ec4
movq %r14, %rdi
movl %eax, %r9d
xorl %eax, %eax
callq 0xe9226
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 0xe9b05
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef1ed
movq %rax, %r15
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef1ed
movq %rax, %r12
leaq 0x845ef(%rip), %rsi     # 0x135edc
movq %r14, %rdi
movl %r15d, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0xe9226
movq $0x40, (%r13)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef14d
movb %al, 0x6c(%rbx)
movzbl %al, %edx
leaq 0x845d1(%rip), %rsi     # 0x135eef
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef14d
movzbl %al, %edx
movq %rdx, 0x48(%rbx)
leaq 0x897b5(%rip), %rsi     # 0x13b0f7
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef1ed
movq %rax, 0x50(%rbx)
leaq 0x8459a(%rip), %rsi     # 0x135efd
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef14d
movzbl %al, %edx
movl %edx, 0x68(%rbx)
incq (%r13)
leaq 0x84585(%rip), %rsi     # 0x135f11
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
cmpb $0x5, (%rbx)
jb 0xb1a04
movq 0x18(%r14), %rdi
leaq 0x30(%rsp), %r13
movq %r13, %rsi
callq 0xef1ed
movq %rax, 0x38(%rbx)
movq 0x18(%r14), %rdi
movq %r13, %rsi
callq 0xef1ed
movq %rax, 0x40(%rbx)
movq 0x38(%rbx), %rcx
cmpq $0x140, %rcx            # imm = 0x140
setl %dl
cmpq $0xc8, %rax
setl %sil
orb %dl, %sil
jne 0xb19f8
movl $0x1001, %edx           # imm = 0x1001
cmpq %rdx, %rcx
setge %sil
cmpq %rdx, %rax
setge %dl
orb %sil, %dl
je 0xb1b80
leaq 0x38(%rbx), %rax
xorpd %xmm0, %xmm0
movupd %xmm0, (%rax)
movq 0x38(%rbx), %rdx
testq %rdx, %rdx
je 0xb1a21
movl 0x40(%rbx), %ecx
leaq 0x8450b(%rip), %rsi     # 0x135f22
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
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 0xb1a4f
cmpq %rcx, %rax
jg 0xb1a80
jmp 0xb1a87
testq %rcx, %rcx
setle %dl
testq %rax, %rax
setg %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0xb1a87
leaq 0x844ca(%rip), %rsi     # 0x135f36
movq %r14, %rdi
movq %rcx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9b27
movq 0x78(%rbx), %rax
movq %rax, 0x80(%rbx)
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
movq %r14, %rdi
callq 0xf241d
testl %eax, %eax
je 0xb1b18
movq 0x48(%rbx), %rdx
imulq 0x50(%rbx), %rdx
movq %rdx, 0x58(%rbx)
leaq 0x844a6(%rip), %rsi     # 0x135f5b
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
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 0xb1b05
movq %rcx, %rax
xorq $0x1, %rax
movq %rdx, %rsi
xorq $0x1, %rsi
movq %rax, %rdi
orq %rsi, %rdi
jne 0xb1b60
movq $0x2, 0x60(%rbx)
leaq 0x84474(%rip), %rdx     # 0x135f74
jmp 0xb1c64
leaq 0x6a7af(%rip), %rsi     # 0x11c2bb
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9df7
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0xa8(%rbx), %rdi
callq 0xf0b13
xorl %r15d, %r15d
movq %r15, 0xa8(%rbx)
movq 0xb0(%rbx), %rsi
movq %r14, %rdi
callq 0xea9b3
movq %r15, 0xb0(%rbx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %rdi
xorq $0x2, %rdi
orq %rax, %rdi
jne 0xb1bb2
movq $0x4, 0x60(%rbx)
leaq 0x84401(%rip), %rdx     # 0x135f7c
jmp 0xb1c64
movl %ecx, %edx
andl $0x7, %edx
movl %eax, %esi
andl $0x1, %esi
orq %rdx, %rsi
jne 0xb19f8
leaq (%rax,%rax,4), %rdx
cmpq %rcx, %rdx
jl 0xb19f8
leaq (%rcx,%rcx,2), %rcx
cmpq %rax, %rcx
jge 0xb1a04
jmp 0xb19f8
movq %rdx, %rdi
xorq $0x4, %rdi
orq %rax, %rdi
jne 0xb1bd2
movq $0x10, 0x60(%rbx)
leaq 0x843b7(%rip), %rdx     # 0x135f84
jmp 0xb1c64
movq %rcx, %rdi
xorq $0x3, %rdi
movq %rdi, %r8
orq %rsi, %r8
jne 0xb1bf2
movq $0x8, 0x60(%rbx)
leaq 0x843a7(%rip), %rdx     # 0x135f97
jmp 0xb1c64
movq %rcx, %r8
xorq $0x4, %r8
orq %r8, %rsi
jne 0xb1c0f
movq $0x10, 0x60(%rbx)
leaq 0x84392(%rip), %rdx     # 0x135f9f
jmp 0xb1c64
movq %rdx, %rsi
xorq $0x8, %rsi
orq %rsi, %rax
jne 0xb1c2c
movq $0x100, 0x60(%rbx)      # imm = 0x100
leaq 0x83e05(%rip), %rdx     # 0x135a2f
jmp 0xb1c64
orq %rsi, %rdi
jne 0xb1c42
movq $0x1000000, 0x60(%rbx)  # imm = 0x1000000
leaq 0x84368(%rip), %rdx     # 0x135fa8
jmp 0xb1c64
orq %rsi, %r8
jne 0xb262e
movq $0x1000000, 0x60(%rbx)  # imm = 0x1000000
movl $0x1, 0x98(%rbx)
leaq 0x8434e(%rip), %rdx     # 0x135fb2
leaq 0x7e67c(%rip), %rsi     # 0x1302e7
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
testq %r15, %r15
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0xb1e62
movl 0x4(%rbx), %eax
cmpl $0x1, %eax
jne 0xb1d2c
movq %r15, %rax
xorq $0x140, %rax            # imm = 0x140
movq %r12, %rcx
xorq $0xc8, %rcx
orq %rax, %rcx
je 0xb1d0e
cmpq $0xc8, %r12
sete %al
cmpq $0x1e0, %r12            # imm = 0x1E0
sete %cl
cmpq $0x15e, %r12            # imm = 0x15E
sete %dl
cmpq $0x280, %r15            # imm = 0x280
jne 0xb1cda
orb %dl, %cl
orb %cl, %al
jne 0xb1d0e
movq %r15, %rax
xorq $0x320, %rax            # imm = 0x320
movq %r12, %rcx
xorq $0x258, %rcx            # imm = 0x258
orq %rax, %rcx
je 0xb1d0e
movq %r15, %rax
xorq $0x400, %rax            # imm = 0x400
movq %r12, %rcx
xorq $0x300, %rcx            # imm = 0x300
orq %rax, %rcx
jne 0xb25f6
movl $0x1, %eax
cmpq %r15, 0x70(%rbx)
jg 0xb1d2c
xorl %eax, %eax
cmpq %r15, 0x88(%rbx)
setle %al
leal 0x1(,%rax,2), %eax
cmpl $0x3, %eax
je 0xb1d50
cmpl $0x2, %eax
jne 0xb1e62
movq 0xb0(%rbx), %rdi
movl $0x2, 0x78(%rdi)
movq %r12, %rcx
jmp 0xb1e45
movq 0xb0(%rbx), %rdi
movl $0x1, 0x78(%rdi)
leaq (%r15,%r15,2), %rax
shlq $0x2, %r12
testq %r15, %r15
jle 0xb1d8f
cmpq $0x3, %r12
jl 0xb1d8f
movl %r12d, %ecx
orl %eax, %ecx
andl $0x1, %ecx
jne 0xb1d8f
movq %rax, %rsi
shrq %rsi
shrq %r12
cmpq $0x5, %rax
movq %rsi, %rax
ja 0xb1d6b
jmp 0xb1d92
movq %rax, %rsi
cmpq $0x4, %rsi
jl 0xb1de7
movabsq $-0x5555555555555555, %r8 # imm = 0xAAAAAAAAAAAAAAAB
movq %rsi, %rax
mulq %r8
movq %rdx, %r15
movq %r12, %rax
mulq %r8
cmpq $0x4, %r12
jl 0xb1de7
movq %rdx, %rcx
shrq %r15
leaq (%r15,%r15,2), %rax
movq %rsi, %rdx
subq %rax, %rdx
shrq %rcx
leaq (%rcx,%rcx,2), %rax
movq %r12, %r9
subq %rax, %r9
orq %rdx, %r9
jne 0xb1de7
movq %rcx, %r12
cmpq $0xb, %rsi
movq %r15, %rsi
ja 0xb1da2
jmp 0xb1ded
movq %rsi, %r15
movq %r12, %rcx
cmpq $0x6, %r15
jl 0xb1e45
movabsq $-0x3333333333333333, %r8 # imm = 0xCCCCCCCCCCCCCCCD
movq %r15, %rax
mulq %r8
movq %rdx, %rsi
movq %rcx, %rax
mulq %r8
cmpq $0x6, %rcx
jl 0xb1e45
shrq $0x2, %rsi
leaq (%rsi,%rsi,4), %rax
movq %r15, %r9
subq %rax, %r9
shrq $0x2, %rdx
leaq (%rdx,%rdx,4), %rax
movq %rcx, %r10
subq %rax, %r10
orq %r9, %r10
jne 0xb1e45
movq %rdx, %rcx
cmpq $0x1d, %r15
movq %rsi, %r15
ja 0xb1dfd
movq %rsi, %r15
movq %rdx, %rcx
cvtsi2sd %r15, %xmm0
movsd %xmm0, 0x80(%rdi)
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
movsd %xmm0, 0x88(%rdi)
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
cmpq $0x100, 0x60(%rbx)      # imm = 0x100
jg 0xb22ab
jne 0xb1e9e
movl $0xff000000, %eax       # imm = 0xFF000000
xorl %ecx, %ecx
movl %eax, 0xb8(%rbx,%rcx,4)
incq %rcx
addl $0x10101, %eax          # imm = 0x10101
cmpq $0x100, %rcx            # imm = 0x100
jne 0xb1e86
leaq 0x5e6eb(%rip), %rsi     # 0x110590
movq %r14, %rdi
callq 0xea6cb
testq %rax, %rax
je 0xb201e
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0xf1717
testq %rax, %rax
je 0xb201e
movq %rax, %r12
movq %r15, 0x28(%rsp)
leaq 0x84273(%rip), %rsi     # 0x13614f
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x60(%rbx), %rax
leaq (%rax,%rax,2), %rax
xorl %ebp, %ebp
cmpq %rax, 0x18(%r12)
setne %bpl
movl $0x1, %r15d
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
cmpq $0x0, 0x60(%rbx)
jle 0xb1fea
xorl %r13d, %r13d
movq %r12, 0x20(%rsp)
leaq (,%r13,2), %rdx
addq %r13, %rdx
cmpq 0x18(%r12), %rdx
jge 0xb1fea
movl $0x3, %ecx
movq %r12, %rdi
leaq 0x1a(%rsp), %rsi
callq 0xeeee8
xorl %r12d, %r12d
movzbl 0x1a(%rsp,%r12), %edi
cmpl $0x40, %edi
cmovael %r15d, %ebp
callq 0xecde3
movb %al, 0x1d(%rsp,%r12)
incq %r12
cmpq $0x3, %r12
jne 0xb1f4a
movzbl 0x1d(%rsp), %eax
shll $0x10, %eax
movzbl 0x1e(%rsp), %ecx
shll $0x8, %ecx
orl %eax, %ecx
movzbl 0x1f(%rsp), %eax
orl %ecx, %eax
orl $0xff000000, %eax       # imm = 0xFF000000
movl %eax, 0xb8(%rbx,%r13,4)
movzbl 0x1a(%rsp), %ecx
movzbl 0x1b(%rsp), %r8d
movzbl 0x1c(%rsp), %r9d
movl $0x40, %esi
leaq 0x30(%rsp), %r12
movq %r12, %rdi
leaq 0x5efd4(%rip), %rdx     # 0x110f89
xorl %eax, %eax
callq 0xe8d67
movl 0xb8(%rbx,%r13,4), %edx
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xe9c1e
incq %r13
cmpq 0x60(%rbx), %r13
movq 0x20(%rsp), %r12
jl 0xb1f1f
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
testl %ebp, %ebp
je 0xb2011
leaq 0x8416e(%rip), %rsi     # 0x136170
movq %r14, %rdi
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0xe9b27
movq %r12, %rdi
callq 0xf0b13
jmp 0xb22ab
xorl %edi, %edi
callq 0xf0b13
movq 0x60(%rbx), %rdx
cmpq $0x2, %rdx
je 0xb22ab
movb (%rbx), %al
cmpb $0x3, %al
setne %cl
leaq -0x8(%rdx), %rsi
cmpq $0x9, %rsi
setae %sil
orb %cl, %sil
jne 0xb20bc
cmpl $0x0, 0xa0(%rbx)
jne 0xb2065
leaq 0x83f93(%rip), %rsi     # 0x135fee
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9ef5
leaq 0x83ff1(%rip), %rsi     # 0x13605d
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
leaq 0xb8(%rbx), %rcx
cmpl $0x1, 0x9c(%rbx)
jne 0xb215b
movaps 0x842cf(%rip), %xmm0    # 0x136360
movups %xmm0, 0x30(%rcx)
movaps 0x842b4(%rip), %xmm0    # 0x136350
movups %xmm0, 0x20(%rcx)
movaps 0x84299(%rip), %xmm0    # 0x136340
movups %xmm0, 0x10(%rcx)
movapd 0x8427d(%rip), %xmm0    # 0x136330
movupd %xmm0, (%rcx)
jmp 0xb22ab
cmpb $0x5, %al
setb %al
cmpq $0x100, %rdx            # imm = 0x100
setne %cl
orb %al, %cl
jne 0xb2172
movq 0x18(%r14), %rdi
movq 0x18(%rdi), %r15
cmpq $0x381, %r15            # imm = 0x381
jl 0xb2224
leaq -0x301(%r15), %r12
movq %r12, %rsi
callq 0xef0d5
cmpb $0xc, %al
jne 0xb2224
leaq 0x8409e(%rip), %rsi     # 0x1361a4
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xe9226
movl $0x1, 0x94(%rbx)
addq $-0x300, %r15           # imm = 0xFD00
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r14), %rdi
leaq 0xb8(%rbx), %r8
movl $0x0, (%rsp)
movl $0x100, %edx            # imm = 0x100
movl $0x3, %ecx
movl $0x100, %r9d            # imm = 0x100
movq %r15, %rsi
jmp 0xb2299
movl $0x10, %r8d
movl $0x32, %edi
movl $0x2, %esi
xorl %edx, %edx
jmp 0xb2217
cmpq $0x4, %rdx
jne 0xb2237
leaq 0x83f19(%rip), %rsi     # 0x13609c
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9b27
movq 0x18(%r14), %rdi
movl $0x10, %esi
callq 0xef0d5
movl %eax, %ebp
movq 0x18(%r14), %rdi
movl $0x13, %esi
callq 0xef0d5
shrb $0x4, %bpl
movzbl %bpl, %r15d
shrb $0x5, %al
movzbl %al, %ebp
leaq 0x83f10(%rip), %rsi     # 0x1360d0
movq %r14, %rdi
movl %ebp, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0xe9226
movl $0x14, %edi
xorl %esi, %esi
movl %r15d, %edx
callq 0xecac6
movl %eax, 0xb8(%rbx)
decb %bpl
movl $0x2, %esi
cmpb $0x6, %bpl
ja 0xb2200
movzbl %bpl, %eax
leaq 0x8418b(%rip), %rcx     # 0x136388
movl (%rcx,%rax,4), %esi
leaq 0xbc(%rbx), %rcx
movl $0x1, %edx
movl $0x3, %r8d
movl $0xa, %edi
xorl %r9d, %r9d
callq 0xecbbc
jmp 0xb22ab
leaq 0x83e4e(%rip), %rsi     # 0x136079
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9b27
jmp 0xb22ab
leaq -0x11(%rdx), %rax
cmpq $0xef, %rax
ja 0xb2254
leaq 0x83eb6(%rip), %rsi     # 0x136100
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9b27
leaq 0x83ed1(%rip), %rsi     # 0x13612c
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r14), %rdi
leaq 0xb8(%rbx), %r8
movl $0x0, (%rsp)
movl $0x10, %esi
movl $0x10, %edx
movl $0x3, %ecx
movl $0x100, %r9d            # imm = 0x100
callq 0xf328f
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
cmpb $0x0, 0x1(%rbx)
je 0xb23c2
leaq 0x83efb(%rip), %rsi     # 0x1361b7
movl $0x80, %r12d
movl $0x80, %edx
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x88(%rbx), %rbp
imulq 0x58(%rbx), %rbp
movq %r14, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0xf0faf
movq %rax, 0xa8(%rbx)
movq %rax, %rdi
callq 0xf0e3f
movq 0x18(%r14), %rax
movq 0x18(%rax), %rax
cmpl $0x0, 0x94(%rbx)
leaq -0x301(%rax), %r15
cmoveq %rax, %r15
cmpq $0x81, %r15
jl 0xb2391
movq %r15, 0x20(%rsp)
movq 0xa8(%rbx), %rax
cmpq %rbp, 0x18(%rax)
jge 0xb2391
movq 0x18(%r14), %rdi
leaq 0x1(%r12), %r13
movq %r12, %rsi
callq 0xef0d5
cmpb $-0x40, %al
jb 0xb237a
andb $0x3f, %al
movq %rbp, %r15
movzbl %al, %ebp
movq 0x18(%r14), %rdi
addq $0x2, %r12
movq %r13, %rsi
callq 0xef0d5
movq 0xa8(%rbx), %rdi
movzbl %al, %esi
movq %rbp, %rdx
movq %r15, %rbp
movq 0x20(%rsp), %r15
callq 0xf14bd
movq %r12, %r13
jmp 0xb238c
movq 0xa8(%rbx), %rdi
movzbl %al, %esi
callq 0xf11be
movq %r13, %r12
cmpq %r15, %r13
jl 0xb2321
movq 0xa8(%rbx), %rdi
callq 0xf0ea4
movq 0xa8(%rbx), %rax
movq 0x18(%rax), %rcx
cmpq %rbp, %rcx
jge 0xb23f5
leaq 0x83e1c(%rip), %rsi     # 0x1361d0
movq %r14, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe9b27
jmp 0xb23f5
leaq 0x83aa3(%rip), %rsi     # 0x135e6c
movq %r14, %rdi
movl $0x80, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movq 0x18(%rdi), %rdx
addq $-0x80, %rdx
movl $0x80, %esi
callq 0xf1988
movq %rax, 0xa8(%rbx)
movq 0xa8(%rbx), %rdi
callq 0xf0ea4
movq 0x10(%rbx), %rdx
cmpq $0x1, %rdx
jne 0xb2446
movq 0xa8(%rbx), %rdi
movq 0x50(%rbx), %r8
movq 0x80(%rbx), %rdx
movq 0x88(%rbx), %rcx
movq 0xb0(%rbx), %rax
movq %rax, (%rsp)
movl $0x0, 0x8(%rsp)
xorl %esi, %esi
xorl %r9d, %r9d
callq 0xf319c
jmp 0xb1b25
cmpq $0x8, %rdx
jg 0xb24a4
movq 0x80(%rbx), %rsi
movq 0x88(%rbx), %rdx
movq %r14, %rdi
movl $0x3, %ecx
callq 0xf2cab
movq %rax, %r15
movq 0x48(%rbx), %rdx
cmpq $0x1, %rdx
jne 0xb258f
movq 0xa8(%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0x58(%rbx), %rcx
leaq 0xb8(%rbx), %r8
movl $0x0, (%rsp)
xorl %esi, %esi
movq %r15, %r9
callq 0xf35b8
jmp 0xb25bf
cmpq $0x18, %rdx
jl 0xb25e0
movl $0xffffffff, 0x30(%rsp) # imm = 0xFFFFFFFF
movq 0x80(%rbx), %rsi
cmpl $0x1, 0x98(%rbx)
movq 0x88(%rbx), %rdx
movl $0x4, %ecx
sbbl $0x0, %ecx
movq %r14, %rdi
callq 0xf2cab
movq %rax, %r15
cmpq $0x0, 0x88(%rbx)
jle 0xb2581
xorl %r12d, %r12d
cmpq $0x0, 0x80(%rbx)
jle 0xb2571
xorl %r13d, %r13d
cmpq $0x0, 0x48(%rbx)
jle 0xb2534
xorl %ebp, %ebp
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 0xef0d5
movb %al, 0x30(%rsp,%rbp)
incq %rbp
cmpq 0x48(%rbx), %rbp
jl 0xb2505
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 0xf2b02
incq %r13
cmpq 0x80(%rbx), %r13
jl 0xb24fc
incq %r12
cmpq 0x88(%rbx), %r12
jl 0xb24ef
movq 0xb0(%rbx), %rsi
movq %r15, %rdi
xorl %edx, %edx
jmp 0xb25ce
cmpq $0x1, 0x8(%rbx)
jne 0xb25bf
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 0xf36f9
movq 0xb0(%rbx), %rsi
movq %r15, %rdi
movl $0x2, %edx
callq 0xf2917
movq %r15, %rdi
callq 0xf28d4
jmp 0xb1b25
leaq 0x611a0(%rip), %rsi     # 0x113787
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0xb1b25
cmpq %r15, 0x70(%rbx)
jne 0xb260e
movl $0x1, %eax
cmpq %r12, 0x88(%rbx)
je 0xb1d2c
cmpq %r12, %r15
sete %al
leaq -0x32(%r15), %rcx
cmpq $0x227, %rcx            # imm = 0x227
setb %cl
andb %al, %cl
movzbl %cl, %eax
incl %eax
jmp 0xb1d2c
leaq 0x8398d(%rip), %rsi     # 0x135fc2
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0xb1b18