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

	d = de_malloc(c, sizeof(lctx));
	if(de_get_ext_option(c, "palm:le")) {
		d->is_le = 1;
	}
	if(de_get_ext_option(c, "palm:nocolortable")) {
		// Enables a hack, for files that apparently set the hasColorTable flag
		// incorrectly
		d->ignore_color_table_flag = 1;
	}
	do_palm_BitmapType(c, d, 0, c->infile->len);
	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x528, %rsp            # imm = 0x528
movq %rdi, %r13
movl $0x8, %esi
callq 0xe8b2b
movq %rax, %rbx
leaq 0x89304(%rip), %rsi     # 0x134e87
movq %r13, %rdi
callq 0xe9b74
testq %rax, %rax
je 0xabb96
movl $0x1, (%rbx)
leaq 0x892f2(%rip), %rsi     # 0x134e8f
movq %r13, %rdi
callq 0xe9b74
testq %rax, %rax
je 0xabbb1
movl $0x1, 0x4(%rbx)
movq 0x18(%r13), %rax
movq 0x18(%rax), %rax
movq %rax, 0x98(%rsp)
leaq -0x10(%rax), %r15
pshufd $0xf5, 0x89242(%rip), %xmm0 # xmm0 = mem[1,1,3,3]
movdqa %xmm0, 0xc0(%rsp)
xorl %ebp, %ebp
movq %rbx, 0x30(%rsp)
movq %r15, 0x18(%rsp)
movq 0x18(%r13), %rdi
leaq 0x8(%rbp), %rsi
callq 0xeead3
cmpb $-0x1, %al
jne 0xabc0b
movq %r13, %rdi
leaq 0x892a3(%rip), %rsi     # 0x134ea1
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
addq $0x10, %rbp
cmpq %r15, %rbp
jg 0xacfc4
movq %r13, %rdi
leaq 0x74(%rsp), %rsi
callq 0xe8a1c
movl $0x450, %esi            # imm = 0x450
movq %r13, %rdi
callq 0xe8b2b
movq %rax, %r12
movq %r13, %rdi
leaq 0x892a5(%rip), %rsi     # 0x134ee0
movq %rbp, %rdx
xorl %eax, %eax
callq 0xe8617
movq %r13, %rdi
movl $0x1, %esi
callq 0xe8a15
movq %r13, %rdi
leaq 0x85cc3(%rip), %rsi     # 0x13191f
movq %rbp, %rdx
xorl %eax, %eax
callq 0xe8617
movq %r13, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r13), %rdi
leaq 0x9(%rbp), %rsi
callq 0xeead3
movb %al, 0x2c(%r12)
movzbl %al, %edx
movq %r13, %rdi
leaq 0x8926c(%rip), %rsi     # 0x134efe
xorl %eax, %eax
callq 0xe8617
movzbl 0x2c(%r12), %edx
cmpl $0x4, %edx
jb 0xabcbd
movq %r13, %rdi
leaq 0x89244(%rip), %rsi     # 0x134ef2
xorl %eax, %eax
callq 0xe9295
xorl %r14d, %r14d
jmp 0xac405
movq 0x18(%r13), %rdi
movl (%rbx), %edx
movq %rbp, %rsi
callq 0xeef8a
movq %rax, (%r12)
movq 0x18(%r13), %rdi
leaq 0x2(%rbp), %rsi
movl (%rbx), %edx
callq 0xeef8a
movq %rax, 0x8(%r12)
movq (%r12), %rsi
movq %r13, %rdi
movq %rax, %rdx
callq 0xe8f88
movq 0x18(%r13), %rdi
leaq 0x4(%rbp), %rsi
movl (%rbx), %edx
callq 0xeef43
movq %rax, 0x18(%r12)
movq %r13, %rdi
leaq 0x89201(%rip), %rsi     # 0x134f11
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r13), %rdi
leaq 0x6(%rbp), %rsi
movl (%rbx), %edx
callq 0xeef43
movq %rax, %r14
movq %r13, %rdi
callq 0xf6410
movq %rax, %r15
testw %r14w, %r14w
jns 0xabd4b
movq %r15, %rdi
leaq 0x76d93(%rip), %rsi     # 0x122ad9
callq 0xf7105
btl $0xe, %r14d
jae 0xabd61
movq %r15, %rdi
leaq 0x891c2(%rip), %rsi     # 0x134f1e
callq 0xf7105
btl $0xd, %r14d
jae 0xabd77
movq %r15, %rdi
leaq 0x891ba(%rip), %rsi     # 0x134f2c
callq 0xf7105
btl $0xa, %r14d
leaq 0x891b9(%rip), %rsi     # 0x134f3c
jb 0xabd91
leaq 0x64985(%rip), %rsi     # 0x110711
testl %r14d, %r14d
jne 0xabd99
movq %r15, %rdi
callq 0xf7105
movq %r15, %rdi
callq 0xf705c
movq %r13, %rdi
leaq 0x8919d(%rip), %rsi     # 0x134f48
movl %r14d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8617
movq %r15, %rdi
callq 0xf6753
btl $0xe, %r14d
movb $0x1, %cl
movq %rbp, 0x10(%rsp)
jb 0xabdd0
jmp 0xabe0f
cmpl $0x0, 0x4(%rbx)
leal -0x4000(%r14), %eax
cmovel %r14d, %eax
movl %eax, %r14d
btl $0xe, %eax
jae 0xabe0f
cmpb $0x0, 0x2c(%r12)
je 0xabdfa
movl $0x0, 0x20(%rsp)
jmp 0xabe1b
movq %r13, %rdi
leaq 0x8915e(%rip), %rsi     # 0x134f62
xorl %edx, %edx
xorl %eax, %eax
callq 0xe8faa
xorl %ecx, %ecx
cmpb $0x0, 0x2c(%r12)
movl %ecx, 0x20(%rsp)
je 0xabe7c
movq 0x18(%r13), %rdi
leaq 0x8(%rbp), %rsi
callq 0xeead3
movzbl %al, %ebp
movq %r13, %rdi
leaq 0x8915e(%rip), %rsi     # 0x134f93
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
movzbl 0x2c(%r12), %edx
cmpl $0x2, %edx
setae %al
cmpb $0x8, %bpl
setne %cl
orb %al, %cl
jne 0xabe6d
movq %r13, %rdi
leaq 0x8915b(%rip), %rsi     # 0x134fba
movl $0x8, %ecx
xorl %eax, %eax
callq 0xe8faa
jmp 0xabe71
testl %ebp, %ebp
je 0xabe7c
movl %ebp, %eax
leaq 0x89127(%rip), %rcx     # 0x134fa1
jmp 0xabe8d
movl $0x1, %ebp
movl $0x1, %eax
leaq 0x8091b(%rip), %rcx     # 0x12c7a8
movq %rax, 0x10(%r12)
movq %r13, %rdi
leaq 0x8914e(%rip), %rsi     # 0x134fea
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
movb 0x2c(%r12), %al
leal -0x1(%rax), %ecx
cmpb $0x1, %cl
ja 0xabf0a
movl %r14d, 0x8(%rsp)
movq 0x18(%r13), %rdi
movq 0x10(%rsp), %r15
leaq 0xa(%r15), %rsi
movl (%rbx), %edx
callq 0xeef43
movq %rax, %r14
leaq (,%rax,4), %rax
testq %r14, %r14
leaq 0xd0(%rsp), %rbp
movq %rax, 0x28(%rsp)
je 0xabf1d
leal (%rax,%r15), %r9d
movl $0x50, %esi
movq %rbp, %rdi
leaq 0x89103(%rip), %rdx     # 0x134ffe
movl %r15d, %ecx
movl %r14d, %r8d
xorl %eax, %eax
callq 0xe8193
jmp 0xabf36
movq $0x0, 0x28(%rsp)
leaq 0xd0(%rsp), %rbp
jmp 0xabf57
xorl %r14d, %r14d
movl $0x50, %esi
movq %rbp, %rdi
leaq 0x647e2(%rip), %rdx     # 0x110711
xorl %eax, %eax
callq 0xe8193
movq %r13, %rdi
leaq 0x890ce(%rip), %rsi     # 0x13500e
movl %r14d, %edx
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe8617
movb 0x2c(%r12), %al
movl 0x8(%rsp), %r14d
cmpb $0x3, %al
jae 0xabf68
movl $0x0, 0x8(%rsp)
movb $0x10, %r15b
jmp 0xabfe4
movl %r14d, %ebp
movq %rbx, %r14
movq 0x18(%r13), %rdi
movq %r12, %rbx
movq 0x10(%rsp), %r12
leaq 0xa(%r12), %rsi
callq 0xeead3
movl %eax, %r15d
movzbl %al, %edx
movl $0x0, 0x8(%rsp)
movq %r13, %rdi
leaq 0x7b9ca(%rip), %rsi     # 0x127966
xorl %eax, %eax
callq 0xe8617
movb 0x2c(%rbx), %al
cmpb $0x3, %al
jne 0xabfd3
movq 0x18(%r13), %rdi
leaq 0xb(%r12), %rsi
callq 0xeead3
movzbl %al, %edx
movq %r13, %rdi
leaq 0x6c916(%rip), %rsi     # 0x1188db
movl %edx, 0x8(%rsp)
xorl %eax, %eax
callq 0xe8617
movb 0x2c(%rbx), %al
movq %rbx, %r12
movq %r14, %rbx
movl %ebp, %r14d
leaq 0xd0(%rsp), %rbp
btl $0xd, %r14d
jae 0xac023
cmpb $0x2, %al
jne 0xac023
movl $0x1, 0x20(%r12)
movq 0x18(%r13), %rdi
movq 0x10(%rsp), %rax
leaq 0xc(%rax), %rsi
callq 0xeead3
movzbl %al, %edx
movl %edx, 0x24(%r12)
movq %r13, %rdi
leaq 0x8900b(%rip), %rsi     # 0x135027
xorl %eax, %eax
callq 0xe8617
testw %r14w, %r14w
js 0xac042
movl $0x1, 0x38(%r12)
leaq 0x870da(%rip), %rcx     # 0x133113
leaq 0x646d1(%rip), %rdx     # 0x110711
jmp 0xac0bd
cmpb $0x2, 0x2c(%r12)
jb 0xac0a6
movq 0x18(%r13), %rdi
movq 0x10(%rsp), %rax
leaq 0xd(%rax), %rsi
callq 0xeead3
movzbl %al, %edx
movl %edx, 0x34(%r12)
movq %r13, %rdi
leaq 0x88fee(%rip), %rsi     # 0x13505c
xorl %eax, %eax
callq 0xe8617
movl 0x34(%r12), %eax
cmpl $0x2, %eax
je 0xac1dc
cmpl $0x1, %eax
je 0xac1c0
testl %eax, %eax
jne 0xac204
movl $0x2, 0x38(%r12)
leaq 0x88f99(%rip), %rcx     # 0x13503d
jmp 0xac0b6
movl $0x2, 0x38(%r12)
leaq 0x8705d(%rip), %rcx     # 0x133113
leaq 0x89176(%rip), %rdx     # 0x135233
movzbl %r15b, %r15d
movq %r13, %rdi
leaq 0x88fdb(%rip), %rsi     # 0x1350a6
xorl %eax, %eax
callq 0xe8617
cmpb $0x3, 0x2c(%r12)
jne 0xac25a
movq 0x18(%r13), %rdi
movq 0x10(%rsp), %rax
leaq 0xe(%rax), %rsi
movl (%rbx), %edx
callq 0xeef43
movq %r13, %rdi
leaq 0x88fcd(%rip), %rsi     # 0x1350c9
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
cmpb $0x3, 0x2c(%r12)
jne 0xac25a
btl $0xd, %r14d
movb $0x1, %al
jae 0xac15e
cmpb $0x14, %r15b
jb 0xac15e
movl $0x1, 0x20(%r12)
movq 0x18(%r13), %rdi
movq 0x10(%rsp), %rax
leaq 0x10(%rax), %rsi
movl (%rbx), %edx
callq 0xeeff3
movl %eax, 0x24(%r12)
movq %r13, %rdi
leaq 0x88f89(%rip), %rsi     # 0x1350d5
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
cmpb $0x3, 0x2c(%r12)
sete %al
cmpb $0x18, %r15b
jb 0xac25a
testb %al, %al
je 0xac25a
movq %r12, 0x38(%rsp)
movq 0x18(%r13), %rdi
movq 0x10(%rsp), %r12
leaq 0x14(%r12), %rsi
movl (%rbx), %edx
callq 0xeeff3
testq %rax, %rax
movq %rax, 0x28(%rsp)
je 0xac220
leal (%rax,%r12), %r9d
movl $0x50, %esi
movq %rbp, %rdi
leaq 0x88f44(%rip), %rdx     # 0x1350ef
movl %r12d, %ecx
movl %eax, %r8d
movq %rax, %rbx
xorl %eax, %eax
callq 0xe8193
movl %ebx, %r12d
jmp 0xac239
movl $0x3, 0x38(%r12)
leaq 0x88e6d(%rip), %rcx     # 0x13503d
leaq 0x790cb(%rip), %rdx     # 0x1252a2
jmp 0xac0bd
cmpq $0x10, 0x10(%r12)
jne 0xac362
movl $0x5, 0x38(%r12)
leaq 0x88e83(%rip), %rcx     # 0x13507b
leaq 0x8903d(%rip), %rdx     # 0x13523c
jmp 0xac0bd
movl $0x0, 0x38(%r12)
leaq 0x88e29(%rip), %rcx     # 0x13503d
leaq 0x7ff36(%rip), %rdx     # 0x12c151
jmp 0xac0bd
xorl %r12d, %r12d
movl $0x50, %esi
movq %rbp, %rdi
leaq 0x644df(%rip), %rdx     # 0x110711
xorl %eax, %eax
callq 0xe8193
movq %r13, %rdi
leaq 0x88eb9(%rip), %rsi     # 0x1350fc
movl %r12d, %edx
movq %rbp, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x38(%rsp), %r12
movq 0x30(%rsp), %rbx
movq (%r12), %rsi
movq 0x18(%r12), %rdx
movq 0x10(%r12), %rcx
imulq %rsi, %rcx
leaq 0x7(%rcx), %rax
addq $0xe, %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %rdx
jge 0xac29f
movq %r13, %rdi
leaq 0x88e88(%rip), %rsi     # 0x135116
xorl %eax, %eax
callq 0xe9295
movq 0x10(%rsp), %rbp
jmp 0xac3fb
movq 0x8(%r12), %rdx
movq %r13, %rdi
callq 0xf1db1
testl %eax, %eax
movq 0x10(%rsp), %rbp
je 0xac3fb
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
btl $0xa, %r14d
jae 0xac2f4
movl $0x1, 0x28(%r12)
movzbl 0x2c(%r12), %eax
cmpl $0x1, %eax
ja 0xac2f9
movq %r13, %rdi
leaq 0x88e76(%rip), %rsi     # 0x135161
movl %eax, %edx
xorl %eax, %eax
callq 0xe8faa
movb 0x2c(%r12), %al
cmpb $0x3, %al
jb 0xac323
movl 0x8(%rsp), %eax
cmpl $0x1, %eax
ja 0xac384
movq 0x10(%r12), %rdx
testl %eax, %eax
je 0xac37e
cmpq $0x10, %rdx
jne 0xac384
movl $0x1, 0x28(%r12)
jmp 0xac3bc
movq 0x10(%r12), %rdx
cmpb $0x2, %al
jne 0xac399
cmpq $0x10, %rdx
setne %al
testl $0x4400, %r14d          # imm = 0x4400
setne %cl
orb %al, %cl
jne 0xac399
movl $0x1, 0x28(%r12)
movq %r13, %rdi
leaq 0x88e66(%rip), %rsi     # 0x1351ba
xorl %eax, %eax
callq 0xe8faa
movq 0x10(%r12), %rdx
jmp 0xac399
movl $0x4, 0x38(%r12)
leaq 0x88d09(%rip), %rcx     # 0x13507b
leaq 0x7c930(%rip), %rdx     # 0x128ca9
jmp 0xac0bd
cmpq $0x8, %rdx
jle 0xac399
movq %r13, %rdi
leaq 0x88e00(%rip), %rsi     # 0x13518e
movl %eax, %edx
xorl %eax, %eax
callq 0xe9295
jmp 0xac3fb
cmpq $0x10, %rdx
ja 0xac42d
movl $0x10116, %eax          # imm = 0x10116
btq %rdx, %rax
jae 0xac42d
cmpl $0x0, 0x28(%r12)
je 0xac3e4
cmpq $0x10, %rdx
jne 0xac3ea
movq 0x98(%rsp), %rax
subq %rbp, %rax
cmpq %r15, %rax
jle 0xac3fb
addq %rbp, %r15
cmpb $0x0, 0x20(%rsp)
movq %r15, (%rsp)
je 0xac43c
movq 0x18(%rsp), %r15
jmp 0xac5a9
cmpq $0x9, %rdx
jb 0xac3bc
movq %r13, %rdi
leaq 0x88e1b(%rip), %rsi     # 0x13520f
xorl %eax, %eax
callq 0xe9295
movq 0x28(%rsp), %r14
movq 0x18(%rsp), %r15
movl 0x74(%rsp), %esi
movq %r13, %rdi
callq 0xe8a25
movq %r13, %rdi
movq %r12, %rsi
callq 0xe8be2
addq %r14, %rbp
testq %r14, %r14
jg 0xabbe3
jmp 0xacfd5
movq %r13, %rdi
leaq 0x67400(%rip), %rsi     # 0x113837
jmp 0xac390
movq %r13, %rdi
leaq 0x7380a(%rip), %rsi     # 0x11fc50
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
movq %r13, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r13), %rdi
movl (%rbx), %edx
movq %r15, %rsi
callq 0xeef43
movq %rax, %r15
cmpq $0x101, %rax            # imm = 0x101
jl 0xac4bd
movq %r12, %rbx
cmpq $0x1000, %r15           # imm = 0x1000
je 0xac493
movq %r13, %rdi
leaq 0x88dbb(%rip), %rsi     # 0x135247
xorl %eax, %eax
callq 0xe8faa
movl %r14d, 0x8(%rsp)
movq %r13, %rdi
leaq 0x88de4(%rip), %rsi     # 0x135286
movl %r15d, %edx
movl $0x100, %ecx            # imm = 0x100
xorl %eax, %eax
callq 0xe8617
movl $0x100, %eax            # imm = 0x100
movq %rax, 0x20(%rsp)
jmp 0xac4e7
movq %r13, %rdi
leaq 0x6a5b7(%rip), %rsi     # 0x116a7e
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
testq %r15, %r15
movq %r15, 0x20(%rsp)
jle 0xac9d6
movl %r14d, 0x8(%rsp)
movq %r12, %rbx
movq (%rsp), %rbp
addq $0x2, %rbp
movq %rbx, 0x38(%rsp)
movl $0x1, 0x30(%rbx)
movq %rbp, (%rsp)
xorl %r15d, %r15d
movq 0x20(%rsp), %rbx
movq 0x18(%r13), %rdi
movq %rbp, %rsi
callq 0xeead3
movzbl %al, %r14d
movl $0x20, %esi
leaq 0x120(%rsp), %r12
movq %r12, %rdi
leaq 0x88d80(%rip), %rdx     # 0x1352ae
movl %r14d, %ecx
xorl %eax, %eax
callq 0xe8193
movq 0x18(%r13), %rdi
leaq 0x1(%rbp), %rsi
xorl %edx, %edx
callq 0xef42f
movq 0x38(%rsp), %rcx
movl %eax, 0x50(%rcx,%r14,4)
movq %r13, %rdi
movq %r15, %rsi
movl %eax, %edx
xorl %ecx, %ecx
movq %r12, %r8
xorl %r9d, %r9d
callq 0xe90a3
incq %r15
addq $0x4, %rbp
cmpq %r15, %rbx
jne 0xac507
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %rbp
movq 0x38(%rsp), %r12
movq 0x30(%rsp), %rbx
movl 0x8(%rsp), %r14d
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq (%rsp), %rax
movq 0x20(%rsp), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, (%rsp)
btl $0xa, %r14d
movq 0x28(%rsp), %r14
jae 0xac6e1
cmpb $0x2, 0x2c(%r12)
ja 0xac6e1
movq %r13, %rdi
leaq 0x88ce7(%rip), %rsi     # 0x1352b6
movq (%rsp), %rbp
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
movq %r13, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r13), %rdi
movq %rbp, %rsi
callq 0xeead3
movl %eax, %r15d
movq 0x18(%r13), %rdi
leaq 0x1(%rbp), %rsi
callq 0xeead3
movl %eax, %r14d
movq 0x18(%r13), %rdi
leaq 0x2(%rbp), %rsi
callq 0xeead3
movzbl %r15b, %edx
movzbl %r14b, %ecx
movzbl %al, %r8d
movq %r13, %rdi
leaq 0x88cb0(%rip), %rsi     # 0x1352db
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r13), %rdi
leaq 0x4(%rbp), %rsi
callq 0xeead3
movb %al, 0x8(%rsp)
movq 0x18(%r13), %rdi
leaq 0x5(%rbp), %rsi
callq 0xeead3
movl %eax, %r14d
movq 0x18(%r13), %rdi
leaq 0x6(%rbp), %rsi
callq 0xeead3
movl %eax, %r15d
movq 0x18(%r13), %rdi
leaq 0x7(%rbp), %rsi
callq 0xeead3
movzbl %r14b, %r14d
movzbl %r15b, %r15d
movzbl %al, %ebp
movzbl 0x8(%rsp), %r9d
movq %r13, %rdi
leaq 0x88c69(%rip), %rsi     # 0x1352f4
movl %r14d, %edx
movl %r15d, %ecx
movl %ebp, %r8d
xorl %eax, %eax
callq 0xe8617
cmpl $0x0, 0x20(%r12)
je 0xac6c0
shll $0x8, %r14d
andl $0xf800, %r14d          # imm = 0xF800
andl $-0x4, %r15d
leal (%r14,%r15,8), %eax
shrl $0x3, %ebp
orl %eax, %ebp
movl %ebp, 0x24(%r12)
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
addq $0x8, (%rsp)
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %rbp
movq 0x28(%rsp), %r14
movq (%rsp), %rax
cmpq 0x98(%rsp), %rax
jge 0xac6fa
testq %r14, %r14
jle 0xac710
leaq (%r14,%rbp), %rax
jmp 0xac718
movq %r13, %rdi
leaq 0x66610(%rip), %rsi     # 0x112d14
xorl %eax, %eax
callq 0xe9295
jmp 0xac405
movq 0x18(%r13), %rax
movq 0x18(%rax), %rax
movq %rax, 0x40(%r12)
movq %r13, %rdi
leaq 0x7387a(%rip), %rsi     # 0x11ffa1
movq (%rsp), %r14
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
movq %r13, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r13), %rdi
movq 0x40(%r12), %rdx
movq 0x8(%r12), %rax
imulq 0x18(%r12), %rax
subq %r14, %rdx
movq %rax, 0x48(%r12)
cmpl $0x1, 0x38(%r12)
jne 0xac783
cmpq %rdx, %rax
jle 0xac7a5
movq %r13, %rdi
leaq 0x88ba3(%rip), %rsi     # 0x135318
xorl %eax, %eax
callq 0xe9295
xorl %edi, %edi
jmp 0xacfa8
movq %rdx, %r14
cmpb $0x3, 0x2c(%r12)
movl (%rbx), %edx
movq %rdi, 0x8(%rsp)
jb 0xac7b7
movq (%rsp), %rsi
callq 0xeeff3
movl $0x4, %ebx
jmp 0xac7c5
movq (%rsp), %rsi
callq 0xf1388
movq %rax, (%rsp)
jmp 0xacbba
movq (%rsp), %rsi
callq 0xeef43
movl $0x2, %ebx
movq %r13, %rdi
leaq 0x88b63(%rip), %rsi     # 0x135332
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
subq %rbx, %r14
js 0xac9e5
addq (%rsp), %rbx
movq 0x48(%r12), %rsi
movq %r13, %rdi
movl $0x1, %edx
movq %r14, 0x48(%rsp)
callq 0xf09c5
movq %rax, %r14
movq %r13, %rdi
leaq 0x78(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x120(%rsp), %rcx
callq 0xfa1dc
movq 0x8(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %rbx, 0x80(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x88(%rsp)
movq %r14, (%rsp)
movq %r14, 0x58(%rsp)
movq 0x48(%r12), %rax
movq %rax, 0x68(%rsp)
movb $0x1, 0x60(%rsp)
movl 0x38(%r12), %eax
addl $-0x2, %eax
cmpl $0x3, %eax
ja 0xacaea
leaq 0x885b8(%rip), %rcx     # 0x134e20
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%r12), %rax
testq %rax, %rax
jle 0xacb0a
movq 0x18(%r12), %rdx
leaq 0x7(%rdx), %rcx
movq %rdx, 0xa0(%rsp)
addq $0xe, %rdx
testq %rcx, %rcx
cmovnsq %rcx, %rdx
sarq $0x3, %rdx
cmpq $0x2, %rdx
movl $0x1, %ecx
cmovlq %rcx, %rdx
movq %rdx, 0xb0(%rsp)
xorl %r15d, %r15d
xorl %ecx, %ecx
movq %r13, 0x50(%rsp)
movq %r12, 0x38(%rsp)
cmpq 0x68(%rsp), %r15
jge 0xac9c1
cmpq $0x0, 0xa0(%rsp)
jle 0xac9b5
movq %rcx, 0xa8(%rsp)
xorl %r12d, %r12d
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x1(%rbx), %r14
movq %rbx, %rsi
callq 0xeead3
movzbl %al, %ebp
leaq 0x8(%r15), %rax
movq %rax, 0xb8(%rsp)
leaq 0x8(%r12), %rax
movq %rax, 0x20(%rsp)
movl $0x7, %r13d
movq %r14, %rbx
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
cmpq %rax, %r12
jge 0xac983
btl %r13d, %ebp
jae 0xac94c
movq 0x78(%rsp), %rdi
leaq 0x1(%rbx), %r14
movq %rbx, %rsi
callq 0xeead3
movq %r14, %rbx
jmp 0xac95d
movq 0x58(%rsp), %rdi
movq 0x18(%rdi), %rsi
subq %rax, %rsi
callq 0xeead3
movq 0x58(%rsp), %rdi
movzbl %al, %esi
callq 0xf0bd6
incq %r12
incq %r15
addl $-0x1, %r13d
jb 0xac922
movq 0xb8(%rsp), %r15
movq 0x20(%rsp), %r12
movq 0x8(%rsp), %rax
incq %rax
cmpq 0xb0(%rsp), %rax
jne 0xac8ea
movq 0x38(%rsp), %r12
movq 0x8(%r12), %rax
movq 0x50(%rsp), %r13
movq 0x10(%rsp), %rbp
movq 0xa8(%rsp), %rcx
incq %rcx
cmpq %rax, %rcx
jl 0xac8c3
movq %rbx, %rax
movq 0x80(%rsp), %rbx
movq 0x18(%rsp), %r15
jmp 0xacb0d
addq $0x2, (%rsp)
movq 0x18(%rsp), %r15
jmp 0xac58b
xorl %edi, %edi
jmp 0xacb7a
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0xf0855
movq %r13, %rdi
leaq 0x78(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x120(%rsp), %rcx
xorl %r8d, %r8d
jmp 0xaca40
movl $0x2, 0x40(%rsp)
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0xf0855
movq %r13, %rdi
leaq 0x78(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x120(%rsp), %rcx
leaq 0x40(%rsp), %r8
callq 0xfa801
jmp 0xacb41
movq (%rsp), %rdi
callq 0xf0855
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %rcx
movq %rax, 0x40(%rsp)
addq %rax, %rcx
addq $-0x2, %rcx
cmpq %rcx, %rax
jg 0xacb22
cmpq $0x0, 0x68(%rsp)
movq %rax, %rcx
js 0xacb25
xorl %r15d, %r15d
movq 0x78(%rsp), %rdi
leaq 0x40(%rsp), %rbx
movq %rbx, %rsi
callq 0xeeb4b
movzbl %al, %r14d
movq 0x78(%rsp), %rdi
movq %rbx, %rsi
callq 0xeeb4b
movq 0x58(%rsp), %rdi
movzbl %al, %esi
movq %r14, %rdx
callq 0xf0eba
movq 0x40(%rsp), %rcx
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %rdx
addq %rax, %rdx
addq $-0x2, %rdx
cmpq %rdx, %rcx
jg 0xacb25
addq %r14, %r15
cmpq 0x68(%rsp), %r15
jle 0xaca8a
jmp 0xacb25
movl 0x34(%r12), %edx
movq %r13, %rdi
leaq 0x6b102(%rip), %rsi     # 0x117bfb
xorl %eax, %eax
callq 0xe9295
movq 0x30(%rsp), %rbx
jmp 0xacfa4
movq %rbx, %rax
subq %rbx, %rax
movq %rax, 0x128(%rsp)
movb $0x1, 0x124(%rsp)
jmp 0xacb3d
movq %rax, %rcx
subq %rax, %rcx
movq %rcx, 0x128(%rsp)
movb $0x1, 0x124(%rsp)
movq 0x18(%rsp), %r15
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0xf08ba
cmpl $0x0, 0x120(%rsp)
je 0xacb84
movq %r13, %rdi
leaq 0x120(%rsp), %rsi
callq 0xfa1a4
movq %r13, %rdi
leaq 0x681f2(%rip), %rsi     # 0x114d5f
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9295
movq %rbx, %rdi
movq 0x30(%rsp), %rbx
jmp 0xacfa8
cmpb $0x0, 0x124(%rsp)
je 0xacb9b
movq 0x128(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x18(%rbx), %rcx
movq %r13, %rdi
leaq 0x6dc02(%rip), %rsi     # 0x11a7ab
movq 0x48(%rsp), %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x30(%rsp), %rbx
movl $0x400, %edx            # imm = 0x400
leaq 0x120(%rsp), %rdi
xorl %esi, %esi
callq 0x18140
movq 0x10(%r12), %rcx
movb $0x1, %bpl
cmpq $0x4, %rcx
jg 0xacbf8
cmpl $0x0, 0x30(%r12)
setne %bpl
cmpq $0x1, %rcx
setne %al
orb %bpl, %al
testb $0x1, %al
je 0xacd51
movq 0x18(%r12), %rax
shlq $0x3, %rax
cqto
idivq %rcx
movq (%r12), %rsi
cmpq %rsi, %rax
cmovleq %rsi, %rax
movq 0x8(%r12), %rcx
movzbl %bpl, %edi
andl $0x1, %edi
xorl %edx, %edx
cmpl $0x0, 0x20(%r12)
setne %dl
leal 0x1(%rdx,%rdi,2), %r8d
movq %r13, %rdi
movq %rax, 0x20(%rsp)
movq %rax, %rdx
callq 0xf26a5
movq %rax, %rdi
movq 0x10(%r12), %rcx
cmpq $0x10, %rcx
jne 0xacd09
movq %rdi, 0x8(%rsp)
movq 0x8(%r12), %rax
testq %rax, %rax
jle 0xacf83
xorl %ebp, %ebp
movq %r13, 0x50(%rsp)
cmpq $0x0, 0x20(%rsp)
jle 0xaccf8
movq %r12, %r13
xorl %r12d, %r12d
xorl %r14d, %r14d
movq 0x18(%r13), %rsi
imulq %rbp, %rsi
addq %r12, %rsi
movq (%rsp), %rdi
callq 0xeeb67
movq %rax, %r15
movl %r15d, %edi
callq 0xec844
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
movl %eax, %ecx
callq 0xf24ba
cmpl $0x0, 0x20(%r13)
je 0xaccd4
cmpl %r15d, 0x24(%r13)
jne 0xaccd4
movl $0x3, %ecx
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rbp, %rdx
xorl %r8d, %r8d
callq 0xf2355
incq %r14
addq $0x2, %r12
cmpq %r14, 0x20(%rsp)
jne 0xacc7e
movq 0x8(%r13), %rax
movq 0x18(%rsp), %r15
movq %r13, %r12
movq 0x50(%rsp), %r13
movq 0x30(%rsp), %rbx
incq %rbp
cmpq %rax, %rbp
jl 0xacc69
jmp 0xacf83
testb $0x1, %bpl
movl $0xff, %r9d
movabsq $-0x5555555555555555, %r10 # imm = 0xAAAAAAAAAAAAAAAB
leaq 0x8861b(%rip), %r11     # 0x13533f
je 0xacd7f
movq %rdi, 0x8(%rsp)
cmpl $0x0, 0x30(%r12)
leaq 0x120(%rsp), %rdi
je 0xacdad
movq %r12, %rsi
addq $0x50, %rsi
movl $0x400, %edx            # imm = 0x400
callq 0x181e0
jmp 0xacf39
movq (%r12), %rdx
movq 0x8(%r12), %rcx
movq 0x18(%r12), %r8
movq (%rsp), %rdi
xorl %esi, %esi
movl $0x1, %r9d
pushq $0x0
pushq $0x0
callq 0xf2b5b
addq $0x10, %rsp
xorl %edi, %edi
jmp 0xacf9a
cmpq $0x8, %rcx
jg 0xacf9a
movq %rdi, 0x8(%rsp)
movl $0x1, %esi
shlq %cl, %rsi
leaq 0x120(%rsp), %rdi
movl $0x1, %edx
callq 0xf3bdb
jmp 0xacf39
xorl %ecx, %ecx
movl %ecx, %eax
andl %r9d, %eax
imull $0x39, %eax, %eax
shrl $0x9, %eax
andl $-0x2, %eax
leal (%rax,%rax,8), %esi
movq %rcx, %rax
mulq %r10
shrq %rdx
andq $-0x2, %rdx
leaq (%rdx,%rdx,2), %rax
movq %r11, %rdx
subq %rax, %rdx
xorl %edi, %edi
movq %rcx, %r8
subq $0x6c, %r8
cmovbl %ecx, %r8d
movzbl (%rdx,%rcx), %eax
setae %dil
imulq $0x38e38e39, %r8, %rdx  # imm = 0x38E38E39
shrq $0x22, %rdx
leaq (%rdi,%rdi,2), %rdi
movl %ecx, %r8d
subl %esi, %r8d
andl %r9d, %r8d
imull $0xab, %r8d, %esi
shrl $0xa, %esi
addq %rdi, %rsi
movzbl (%r11,%rsi), %esi
movzbl (%rdx,%r11), %edx
shll $0x10, %edx
shll $0x8, %eax
orl %edx, %eax
orl %esi, %eax
orl $0xff000000, %eax       # imm = 0xFF000000
movl %eax, 0x120(%rsp,%rcx,4)
incq %rcx
cmpq $0xd7, %rcx
jne 0xacdaf
xorl %eax, %eax
movdqa 0x85765(%rip), %xmm3    # 0x1325b0
movdqa 0x8387d(%rip), %xmm4    # 0x1306d0
movdqa 0x83885(%rip), %xmm5    # 0x1306e0
movdqa 0x87fad(%rip), %xmm6    # 0x134e10
movdqa 0xc0(%rsp), %xmm7
leaq 0x87fbd(%rip), %rdx     # 0x134e30
movl $0xff000000, %esi       # imm = 0xFF000000
movl (%rax,%rdx), %ecx
orl %esi, %ecx
movl %ecx, 0x47c(%rsp,%rax)
addq $0x4, %rax
cmpq $0x3c, %rax
jne 0xace78
xorl %eax, %eax
movq %rax, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa %xmm0, %xmm1
por %xmm4, %xmm1
pxor %xmm5, %xmm1
movdqa %xmm6, %xmm2
pcmpgtd %xmm1, %xmm2
pshufd $0xf5, %xmm1, %xmm1     # xmm1 = xmm1[1,1,3,3]
pcmpeqd %xmm7, %xmm1
pand %xmm2, %xmm1
movd %xmm1, %ecx
testb $0x1, %cl
je 0xacecf
movl $0xff000000, 0x4b8(%rsp,%rax,4) # imm = 0xFF000000
pextrw $0x4, %xmm1, %ecx
testb $0x1, %cl
je 0xacee4
movl $0xff000000, 0x4bc(%rsp,%rax,4) # imm = 0xFF000000
por %xmm3, %xmm0
pxor %xmm5, %xmm0
movdqa %xmm6, %xmm1
pcmpgtd %xmm0, %xmm1
pshufd $0xf5, %xmm0, %xmm0     # xmm0 = xmm0[1,1,3,3]
pcmpeqd %xmm7, %xmm0
pand %xmm1, %xmm0
pextrw $0x0, %xmm0, %ecx
testb $0x1, %cl
je 0xacf16
movl $0xff000000, 0x4c0(%rsp,%rax,4) # imm = 0xFF000000
pextrw $0x4, %xmm0, %ecx
testb $0x1, %cl
je 0xacf2b
movl $0xff000000, 0x4c4(%rsp,%rax,4) # imm = 0xFF000000
addq $0x4, %rax
cmpq $0x1c, %rax
jne 0xace90
cmpl $0x0, 0x20(%r12)
je 0xacf56
movl 0x24(%r12), %eax
cmpq $0xff, %rax
ja 0xacf56
movb $0x0, 0x123(%rsp,%rax,4)
movq 0x10(%r12), %rdx
movq 0x18(%r12), %rcx
subq $0x8, %rsp
movq 0x8(%rsp), %rdi
xorl %esi, %esi
leaq 0x128(%rsp), %r8
movq 0x10(%rsp), %r9
pushq $0x0
callq 0xf2f79
addq $0x10, %rsp
movq 0x8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0xf22dc
movq %r14, %rdi
movq 0x10(%rsp), %rbp
callq 0xf228d
movq (%rsp), %rdi
callq 0xf052b
movq %r13, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x28(%rsp), %r14
jmp 0xac405
leaq 0x87efb(%rip), %rsi     # 0x134ec6
movq %r13, %rdi
xorl %eax, %eax
callq 0xe9295
movq %r13, %rdi
movq %rbx, %rsi
callq 0xe8be2
addq $0x528, %rsp            # imm = 0x528
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq