// File: /workspace/github_c_makefile_star2_O2/jsummers[P]deark/modules/pkfont.c
// Function: de_run_pkfont
static void de_run_pkfont(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;
	i64 pos;
	i64 bytesused;
	i64 i;
	u8 flagbyte;
	i64 chars_in_file = 0;

	d = de_malloc(c, sizeof(lctx));
	d->font = de_create_bitmap_font(c);
	d->font->has_nonunicode_codepoints = 1;

	pos = 0;
	while(pos < c->infile->len) {
		flagbyte = de_getbyte(pos);
		de_dbg(c, "flag byte at %d: 0x%02x (%s)", (int)pos, (unsigned int)flagbyte,
			get_flagbyte_name(flagbyte));
		bytesused = 0;

		if(flagbyte >= 240) {
			i64 dpos = 0;
			i64 dlen = 0;

			switch(flagbyte) {
			case PK_XXX1:
				dlen = (i64)de_getbyte(pos+1);
				dpos = pos + 2;
				bytesused = 2 + dlen;
				break;
			case PK_XXX2:
				dlen = de_getu16be(pos+1);
				dpos = pos + 3;
				bytesused = 3 + dlen;
				break;
			case PK_XXX3:
				dlen = dbuf_getint_ext(c->infile, pos+1, 3, 0, 0);
				dpos = pos + 4;
				bytesused = 4 + dlen;
				break;
			case PK_XXX4:
				dlen = de_getu32be(pos+1);
				dpos = pos + 5;
				bytesused = 5 + dlen;
				break;
			case PK_YYY:
				dlen = 4;
				dpos = pos + 1;
				bytesused = 5;
				break;
			case 245: // postamble
				goto done_reading;
			case 246: // no-op
				bytesused = 1;
				break;
			case 247:
				do_preamble(c, d, pos, &bytesused);
				break;
			default:
				de_err(c, "Unsupported command: %d at %d", (int)flagbyte, (int)pos);
				goto done;
			}

			if(dlen>0 && flagbyte>=240 && flagbyte<=244) {
				de_dbg_indent(c, 1);
				de_dbg_hexdump(c, c->infile, dpos, dlen, 256, NULL, 0x1);
				de_dbg_indent(c, -1);
			}
		}
		else {
			chars_in_file++;
			if(!do_char_descr(c, d, pos, &bytesused)) goto done;
		}

		if(bytesused<1) break;
		pos += bytesused;
	}

done_reading:
	de_dbg(c, "number of characters: %d (%d processed)", (int)chars_in_file,
		(int)d->font->num_chars);

	scan_and_fixup_font(c, d);
	de_font_bitmap_font_to_image(c, d->font, NULL, 0);

done:
	if(d->font) {
		if(d->font->char_array) {
			for(i=0; i<d->font->num_chars; i++) {
				de_free(c, d->font->char_array[i].bitmap);
			}
			de_free(c, d->font->char_array);
		}
		de_destroy_bitmap_font(c, d->font);
	}
	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %r13
pushq $0x10
popq %rsi
callq 0xdecaf
movq %rax, %r12
movq %r13, %rdi
callq 0xe9d18
movq %rax, (%r12)
movb $0x1, 0x10(%rax)
leaq 0x7d1dc(%rip), %rbp     # 0x129f6f
xorl %r15d, %r15d
movl $0x0, 0x44(%rsp)
movq %r12, 0x38(%rsp)
movq 0x18(%r13), %rdi
cmpq 0x18(%rdi), %r15
jge 0xad7e8
movq %r15, 0x8(%rsp)
movq %r15, %rsi
callq 0xe3eb4
movl %eax, %r14d
leaq 0x7d20a(%rip), %r8      # 0x129fd2
cmpb $-0x10, %al
jb 0xacdec
leal 0x10(%r14), %eax
leaq 0x7210a(%rip), %r8      # 0x11eee1
cmpb $0x7, %al
ja 0xacdec
movzbl %al, %eax
leaq 0x7d15b(%rip), %rcx     # 0x129f40
movslq (%rcx,%rax,4), %r8
addq %rcx, %r8
movzbl %r14b, %r15d
movq %r13, %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %rbx
movl %ebx, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0xde896
cmpb $-0x10, %r14b
jb 0xace50
leal -0xf0(%r15), %eax
cmpl $0x7, %eax
ja 0xad8eb
leaq 0x7d0fc(%rip), %rcx     # 0x129f20
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x18(%r13), %rdi
movq 0x8(%rsp), %rbx
leaq 0x1(%rbx), %rsi
callq 0xe3eb4
movzbl %al, %r14d
leaq 0x2(%rbx), %r15
leaq 0x2(%r14), %rbx
jmp 0xad6a0
movq %r13, %rdi
pushq $0x68
popq %rsi
callq 0xdecaf
movq %rax, %rbp
movq %r13, %rdi
leaq 0x7d1fa(%rip), %rsi     # 0x12a062
movl %ebx, %edx
xorl %eax, %eax
callq 0xde896
movq %r13, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%r13), %rdi
movq %rbx, %rsi
callq 0xe3eb4
movl %eax, %r14d
shrb $0x4, %al
movzbl %al, %edx
movq %rdx, 0x30(%rbp)
movq %r13, %rdi
leaq 0x7d1de(%rip), %rsi     # 0x12a07d
xorl %eax, %eax
callq 0xde896
movzbl %r14b, %r15d
movl %r15d, %ecx
andb $0x7, %cl
movl %r15d, %eax
shrl $0x3, %eax
andl $0x1, %eax
movl %eax, 0x38(%rbp)
cmpb $0x7, %cl
movb %cl, 0x13(%rsp)
jne 0xaceee
movq %r13, %rdi
leaq 0x7d1b8(%rip), %rsi     # 0x12a087
pushq $0x7
popq %rdx
xorl %eax, %eax
callq 0xdf2a5
movq $0x0, 0x60(%rsp)
pushq $-0x1
popq %r14
movq %rbx, %r15
jmp 0xad786
leaq 0x1(%rbx), %rsi
movq 0x18(%r13), %rdi
cmpb $0x3, %cl
ja 0xacf9c
callq 0xe3eb4
andl $0x3, %r15d
shll $0x8, %r15d
movzbl %al, %r14d
orl %r15d, %r14d
movq 0x18(%r13), %rdi
leaq 0x2(%rbx), %rsi
callq 0xe3eb4
movzbl %al, %eax
movl %eax, (%rbp)
movq 0x18(%r13), %rdi
leaq 0x3(%rbx), %rsi
callq 0xad92b
movq %rax, 0x10(%rbp)
movq 0x18(%r13), %rdi
leaq 0x6(%rbx), %rsi
callq 0xe3eb4
movzbl %al, %eax
movq %rax, 0x18(%rbp)
movq 0x18(%r13), %rdi
leaq 0x7(%rbx), %rsi
callq 0xe3eb4
movzbl %al, %eax
movl %eax, 0x4(%rbp)
movq 0x18(%r13), %rdi
leaq 0x8(%rbx), %rsi
callq 0xe3eb4
movzbl %al, %eax
movl %eax, 0x8(%rbp)
movq 0x18(%r13), %rdi
leaq 0x9(%rbx), %rsi
callq 0xe3f12
movq %rax, 0x20(%rbp)
movq 0x18(%r13), %rdi
leaq 0xa(%rbx), %rsi
callq 0xe3f12
movq %rax, %r10
pushq $0xb
popq %rax
pushq $0x3
jmp 0xad02a
callq 0xe3f46
andl $0x3, %r15d
shll $0x10, %r15d
orq %rax, %r15
movq 0x18(%r13), %rdi
leaq 0x3(%rbx), %rsi
callq 0xe3eb4
movzbl %al, %eax
movl %eax, (%rbp)
movq 0x18(%r13), %rdi
leaq 0x4(%rbx), %rsi
callq 0xad92b
movq %rax, 0x10(%rbp)
movq 0x18(%r13), %rdi
leaq 0x7(%rbx), %rsi
callq 0xe3f46
movq %rax, 0x18(%rbp)
movq 0x18(%r13), %rdi
leaq 0x9(%rbx), %rsi
callq 0xe3f46
movl %eax, 0x4(%rbp)
movq 0x18(%r13), %rdi
leaq 0xb(%rbx), %rsi
callq 0xe3f46
movl %eax, 0x8(%rbp)
movq 0x18(%r13), %rdi
leaq 0xd(%rbx), %rsi
callq 0xe3fee
movq %rax, 0x20(%rbp)
movq 0x18(%r13), %rdi
leaq 0xf(%rbx), %rsi
callq 0xe3fee
movq %rax, %r10
pushq $0x11
popq %rax
movq %r15, %r14
pushq $0x4
popq %r12
addq %rbx, %rax
movq %r10, 0x28(%rbp)
movq %rax, 0x40(%rbp)
movl 0x10(%rbp), %r8d
movl 0x18(%rbp), %r9d
movl (%rbp), %ecx
movl 0x4(%rbp), %r11d
movl 0x8(%rbp), %ebx
movl 0x20(%rbp), %r15d
movq %r13, %rdi
leaq 0x7d05b(%rip), %rsi     # 0x12a0b2
movl %r14d, %edx
xorl %eax, %eax
pushq %r10
pushq %r15
movq 0x18(%rsp), %r15
pushq %rbx
pushq %r11
callq 0xde896
addq $0x20, %rsp
movq 0x30(%rbp), %rax
movq 0x40(%rbp), %rcx
addq %r14, %r12
leaq (%r12,%r15), %r8
subq %rcx, %r8
movq %r8, 0x48(%rbp)
cmpq $0xe, %rax
leaq 0x8abce(%rip), %rdx     # 0x137c60
leaq 0x595d6(%rip), %rax     # 0x10666f
cmoveq %rax, %rdx
movq %r13, %rdi
leaq 0x7d03e(%rip), %rsi     # 0x12a0e5
xorl %eax, %eax
callq 0xde896
movq %r13, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movslq 0x4(%rbp), %rax
movslq 0x8(%rbp), %rsi
movq %rsi, %rcx
imulq %rax, %rcx
movq %rcx, 0x68(%rsp)
testq %rcx, %rcx
movq %r12, 0x60(%rsp)
jle 0xad0f2
movq 0x38(%rsp), %rbx
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0x18(%rdi), %r8
cmpq %rdx, %r8
jge 0xad117
movq 0x20(%rdi), %rcx
jmp 0xad15b
movl (%rbp), %edx
movl 0x40(%rbp), %ecx
movq %r13, %rdi
leaq 0x7d00f(%rip), %rsi     # 0x12a111
xorl %eax, %eax
callq 0xde896
pushq $-0x1
popq %r14
movq 0x38(%rsp), %r12
jmp 0xad77b
leaq 0x1(%r8), %r14
leaq (%rdx,%rdx), %rax
cmpq %r8, %rax
cmovgq %rax, %r14
cmpq $0x26, %r14
pushq $0x25
popq %rax
cmovlq %rax, %r14
movq 0x20(%rdi), %rsi
movq %r13, %rdi
pushq $0x28
popq %rcx
movq %r14, %r8
callq 0xdf6b6
movq %rax, %rcx
movq (%rbx), %rdi
movq %rax, 0x20(%rdi)
movq %r14, 0x8(%rbx)
movq 0x18(%rdi), %r8
movl 0x4(%rbp), %eax
movl 0x8(%rbp), %esi
pushq $0x8
popq %rbx
leaq 0x1(%r8), %rdx
movq %rdx, 0x18(%rdi)
imulq $0x28, %r8, %rdx
leaq (%rcx,%rdx), %r12
movl %eax, 0x8(%rcx,%rdx)
movl %esi, 0xc(%rcx,%rdx)
movq 0x20(%rbp), %rcx
cmpq $-0x80, %rcx
jb 0xad188
negl %ecx
movw %cx, 0x14(%r12)
xorl %ecx, %ecx
subl 0x28(%rbp), %ecx
movl %ecx, 0x10(%r12)
addl $0x7, %eax
cltd
idivl %ebx
cltq
movq %rax, 0x18(%r12)
movslq %esi, %rsi
imulq %rax, %rsi
movq %r13, %rdi
callq 0xdecaf
movq %rax, 0x20(%r12)
movl (%rbp), %eax
movl %eax, (%r12)
cmpq $0xe, 0x30(%rbp)
jne 0xad24d
movl 0x8(%rbp), %eax
imull 0x4(%rbp), %eax
addl $0x7, %eax
cltd
idivl %ebx
movslq %eax, %r15
movq %r13, %rdi
movq %r15, %rsi
callq 0xdecaf
movq %rax, %r14
movq 0x18(%r13), %rdi
movq 0x40(%rbp), %rdx
movq %rax, %rsi
movq %r15, %rcx
callq 0xe3cb7
xorl %ebx, %ebx
xorl %r15d, %r15d
movslq 0x8(%rbp), %rax
cmpq %rax, %r15
jge 0xad22f
movslq 0x8(%r12), %r8
movq %r15, %rsi
imulq %r8, %rsi
movq 0x20(%r12), %rdx
movq 0x18(%r12), %rcx
imulq %rbx, %rcx
movq %r14, %rdi
callq 0xe08ed
incq %r15
addq $0x8, %rbx
jmp 0xad1fb
movq %r13, %rdi
movq %r14, %rsi
callq 0xded32
movq 0x38(%rsp), %r12
pushq $-0x1
popq %r14
movq 0x8(%rsp), %r15
jmp 0xad77b
movl 0x38(%rbp), %eax
movl %eax, 0x24(%rsp)
movq %rbp, %rbx
andq $0x0, 0x60(%rbp)
addq $0x50, %rbx
xorpd %xmm0, %xmm0
movupd %xmm0, 0x50(%rbp)
xorl %r14d, %r14d
xorl %r8d, %r8d
movl $0x0, 0x14(%rsp)
cvtsi2sd %r14, %xmm1
movq 0x48(%rbp), %rax
mulsd 0x5d4b8(%rip), %xmm1    # 0x10a740
addq %rax, %rax
cmpq %rax, %r14
jge 0xad74f
movslq 0x8(%rbp), %rax
cmpq %rax, 0x58(%rbp)
jge 0xad74f
movq %r8, 0x18(%rsp)
movq 0x40(%rbp), %rsi
cvtsi2sd %rsi, %xmm0
addsd %xmm0, %xmm1
movsd %xmm1, 0x30(%rsp)
movq 0x18(%r13), %rdi
movq %r14, %rdx
callq 0xad938
cmpb $0xf, %al
jne 0xad2f4
cmpl $0x3, (%r13)
jl 0xad2eb
movq %r13, %rdi
leaq 0x7ce7f(%rip), %rsi     # 0x12a15a
movsd 0x30(%rsp), %xmm0
pushq $0xf
popq %rdx
movb $0x1, %al
callq 0xdea83
incq %r14
pushq $0x1
popq %r8
jmp 0xad277
movzbl %al, %r9d
testl %r9d, %r9d
je 0xad34c
cmpl $0xe, %r9d
movq 0x18(%rsp), %r8
movsd 0x30(%rsp), %xmm0
jne 0xad395
incq %r14
cmpl $0x3, (%r13)
pushq $0x1
popq %rax
movl %eax, 0x14(%rsp)
jl 0xad277
movq %r13, %rdi
leaq 0x7ce0b(%rip), %rsi     # 0x12a13c
pushq $0xe
popq %rdx
movb $0x1, %al
callq 0xdea83
movq 0x18(%rsp), %r8
pushq $0x1
popq %rax
movl %eax, 0x14(%rsp)
jmp 0xad277
movq %r9, 0x50(%rsp)
movq %rbx, 0x28(%rsp)
movq %r13, 0x48(%rsp)
movq 0x18(%r13), %rax
movq %rax, 0x58(%rsp)
movq 0x40(%rbp), %r13
pushq $-0x2
popq %r15
pushq $0x1
popq %rbx
leaq (%r14,%rbx), %rdx
movq 0x58(%rsp), %rdi
movq %r13, %rsi
callq 0xad938
testb %al, %al
jne 0xad3e6
incq %rbx
decq %r15
cmpq $-0x12, %r15
jne 0xad36f
jmp 0xad7c4
leaq 0x1(%r14), %rdx
cmpq %r9, 0x30(%rbp)
jge 0xad454
movq 0x18(%r13), %rdi
movq 0x40(%rbp), %rsi
addq $0x2, %r14
movq %r9, 0x50(%rsp)
callq 0xad938
movq 0x50(%rsp), %r9
movsd 0x30(%rsp), %xmm0
movq 0x18(%rsp), %r8
movq 0x30(%rbp), %rcx
movzbl %al, %eax
addq %rcx, %rax
notq %rcx
addq %r9, %rcx
shlq $0x4, %rcx
leaq (%rcx,%rax), %rdi
incq %rdi
jmp 0xad45a
movq %r13, 0x70(%rsp)
movzbl %al, %edi
subq %r15, %r14
movq 0x8(%rsp), %r15
subq $0x1, %rbx
jb 0xad423
shlq $0x4, %rdi
movq %rdi, %r13
movq 0x58(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq %r14, %rdx
callq 0xad938
movq %r13, %rdi
movzbl %al, %eax
orq %rax, %rdi
incq %r14
jmp 0xad3f6
movq 0x30(%rbp), %rax
addq %rax, %rdi
shlq $0x4, %rax
subq %rax, %rdi
addq $0xc1, %rdi
movq 0x48(%rsp), %r13
movq 0x28(%rsp), %rbx
movq 0x18(%rsp), %r8
movsd 0x30(%rsp), %xmm0
movq 0x50(%rsp), %r9
jmp 0xad45a
movq %rdx, %r14
movq %r9, %rdi
movl (%r13), %eax
cmpl $0x0, 0x14(%rsp)
je 0xad4a9
movl $0x0, 0x14(%rsp)
movq %rdi, %r8
cmpl $0x3, %eax
jl 0xad277
movq %rbx, 0x28(%rsp)
movq %rdi, %rbx
movq %r13, %rdi
leaq 0x7cceb(%rip), %rsi     # 0x12a176
movl %ebx, %edx
movb $0x1, %al
callq 0xdea83
movl $0x0, 0x14(%rsp)
movq %rbx, %r8
movq 0x28(%rsp), %rbx
jmp 0xad277
cmpl $0x3, %eax
jl 0xad4e7
cmpl $0x0, 0x24(%rsp)
leaq 0x84b10(%rip), %r8      # 0x131fca
leaq 0x69d1e(%rip), %rax     # 0x1171df
cmoveq %rax, %r8
movq %rdi, %r15
movq %r13, %rdi
leaq 0x7ccb1(%rip), %rsi     # 0x12a183
movl %r9d, %edx
movl %r15d, %ecx
movb $0x1, %al
callq 0xdea83
movq %r15, %rdi
movq 0x18(%rsp), %r8
movq %r13, 0x48(%rsp)
cmpl $0x0, 0x24(%rsp)
setne 0x30(%rsp)
testq %rdi, %rdi
movl $0x0, %eax
cmovleq %rax, %rdi
xorl %r13d, %r13d
movq %rbx, 0x28(%rsp)
movq %rdi, 0x18(%rsp)
cmpq %rdi, %r13
je 0xad605
incq 0x60(%rbp)
movq 0x50(%rbp), %rcx
testq %rcx, %rcx
setns %dl
andb 0x30(%rsp), %dl
movslq 0x4(%rbp), %rax
cmpq %rax, %rcx
setl %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0xad579
movq 0x58(%rbp), %rdx
testq %rdx, %rdx
js 0xad579
movslq 0x8(%rbp), %rsi
cmpq %rsi, %rdx
jge 0xad579
movq %rcx, %rax
notb %cl
andb $0x7, %cl
movb $0x1, %sil
shlb %cl, %sil
imulq 0x18(%r12), %rdx
addq 0x20(%r12), %rdx
shrq $0x3, %rax
orb %sil, (%rax,%rdx)
movq 0x50(%rbp), %rcx
movslq 0x4(%rbp), %rax
incq %rcx
movq %rcx, (%rbx)
cmpq %rax, %rcx
jl 0xad5fd
movq 0x58(%rbp), %rbx
leaq 0x1(%rbx), %rdi
movq %rdi, 0x58(%rbp)
andq $0x0, 0x50(%rbp)
testq %rbx, %rbx
js 0xad5f0
testq %r8, %r8
movl $0x0, %eax
cmovleq %rax, %r8
subq $0x1, %r8
jb 0xad5f0
movslq 0x8(%rbp), %rax
cmpq %rax, %rdi
jge 0xad5f0
movq 0x18(%r12), %rdx
movq 0x20(%r12), %rax
imulq %rdx, %rdi
addq %rax, %rdi
movq %rdx, %rsi
imulq %rbx, %rsi
addq %rax, %rsi
movq %r8, %r15
callq 0x181e0
movq %r15, %r8
movq 0x58(%rbp), %rdi
incq %rdi
movq %rdi, 0x58(%rbp)
movslq 0x4(%rbp), %rax
addq %rax, 0x60(%rbp)
jmp 0xad5a6
xorl %r8d, %r8d
movq 0x28(%rsp), %rbx
movq 0x18(%rsp), %rdi
incq %r13
jmp 0xad50f
xorl %eax, %eax
cmpl $0x0, 0x24(%rsp)
sete %al
movl %eax, 0x24(%rsp)
movq 0x48(%rsp), %r13
movq 0x8(%rsp), %r15
jmp 0xad26f
movq 0x8(%rsp), %rax
leaq 0x1(%rax), %r15
pushq $0x4
popq %r14
pushq $0x5
popq %rbx
jmp 0xad6a5
movq 0x18(%r13), %rdi
movq 0x8(%rsp), %rbx
leaq 0x1(%rbx), %rsi
pushq $0x3
popq %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xe424b
movq %rax, %r14
leaq 0x4(%rbx), %r15
movq %rax, %rbx
addq $0x4, %rbx
jmp 0xad6a0
movq 0x18(%r13), %rdi
movq 0x8(%rsp), %rbx
leaq 0x1(%rbx), %rsi
callq 0xe404f
movq %rax, %r14
leaq 0x5(%rbx), %r15
movq %rax, %rbx
addq $0x5, %rbx
jmp 0xad6a0
movq 0x18(%r13), %rdi
movq 0x8(%rsp), %rbx
leaq 0x1(%rbx), %rsi
callq 0xe3f46
movq %rax, %r14
leaq 0x3(%rbx), %r15
movq %rax, %rbx
addq $0x3, %rbx
testq %r14, %r14
jle 0xad6de
movq %r13, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%r13), %rsi
subq $0x8, %rsp
movl $0x100, %r8d            # imm = 0x100
movq %r13, %rdi
movq %r15, %rdx
movq %r14, %rcx
xorl %r9d, %r9d
pushq $0x1
callq 0xded3a
popq %rax
popq %rcx
movq %r13, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
movq 0x8(%rsp), %r15
jmp 0xad7b7
pushq $0x1
popq %rbx
movq 0x8(%rsp), %r15
jmp 0xad7bc
movq %r13, %rdi
leaq 0x7c941(%rip), %rsi     # 0x12a040
movq 0x8(%rsp), %r15
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
movq %r13, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x18(%r13), %rdi
leaq 0x2(%r15), %rsi
callq 0xe3eb4
movzbl %al, %r14d
movq %r13, %rdi
leaq 0x7c91b(%rip), %rsi     # 0x12a04f
movl %r14d, %edx
xorl %eax, %eax
callq 0xde896
leaq 0x13(%r14), %rbx
movq %r13, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
jmp 0xad7bc
movq 0x60(%rbp), %rcx
movq 0x68(%rsp), %rdx
cmpq %rdx, %rcx
movq 0x38(%rsp), %r12
pushq $-0x1
popq %r14
je 0xad77b
movl (%rbp), %r8d
movq %r13, %rdi
leaq 0x7ca2c(%rip), %rsi     # 0x12a1a0
xorl %eax, %eax
callq 0xdf05a
movq %r13, %rdi
movl %r14d, %esi
callq 0xdeba7
movq %r13, %rdi
movl %r14d, %esi
callq 0xdeba7
movq %r13, %rdi
movq %rbp, %rsi
callq 0xded32
cmpb $0x7, 0x13(%rsp)
je 0xad882
incl 0x44(%rsp)
leaq 0x7c7bd(%rip), %rbp     # 0x129f6f
movq 0x60(%rsp), %rbx
testq %rbx, %rbx
jle 0xad7e8
addq %rbx, %r15
jmp 0xacda3
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x7c9f6(%rip), %rsi     # 0x12a1ca
movl %r13d, %edx
xorl %eax, %eax
callq 0xdf2a5
movq 0x48(%rsp), %r13
jmp 0xad23a
movq (%r12), %rax
movl 0x18(%rax), %ecx
leaq 0x7c7b4(%rip), %rsi     # 0x129faa
xorl %r14d, %r14d
movq %r13, %rdi
movl 0x44(%rsp), %edx
xorl %eax, %eax
callq 0xde896
movq (%r12), %rsi
movq 0x18(%rsi), %rax
testq %rax, %rax
cmovgq %rax, %r14
movl $0xfff0bdc0, %ecx       # imm = 0xFFF0BDC0
movl $0xf4240, %eax          # imm = 0xF4240
movq %r14, %rdx
pushq $0x10
popq %r9
subq $0x1, %rdx
jb 0xad85b
movq 0x20(%rsi), %rdi
movl -0x8(%rdi,%r9), %r8d
cmpl (%rsi), %r8d
jle 0xad83e
movl %r8d, (%rsi)
movl (%rdi,%r9), %r8d
cmpl %eax, %r8d
cmovll %r8d, %eax
addl -0x4(%rdi,%r9), %r8d
cmpl %ecx, %r8d
cmovgl %r8d, %ecx
addq $0x28, %r9
jmp 0xad827
subl %eax, %ecx
movl %ecx, 0x4(%rsi)
pushq $0x10
popq %rcx
subq $0x1, %r14
jb 0xad876
movq 0x20(%rsi), %rdx
subl %eax, (%rdx,%rcx)
addq $0x28, %rcx
jmp 0xad863
movq %r13, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xea0f6
movq (%r12), %rsi
testq %rsi, %rsi
je 0xad8d2
cmpq $0x0, 0x20(%rsi)
je 0xad8ca
pushq $0x20
popq %rbx
xorl %r14d, %r14d
movq 0x20(%rsi), %rax
cmpq 0x18(%rsi), %r14
jge 0xad8bb
movq (%rax,%rbx), %rsi
movq %r13, %rdi
callq 0xded32
incq %r14
movq (%r12), %rsi
addq $0x28, %rbx
jmp 0xad898
movq %r13, %rdi
movq %rax, %rsi
callq 0xded32
movq (%r12), %rsi
movq %r13, %rdi
callq 0xe9d28
movq %r13, %rdi
movq %r12, %rsi
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xded32
leaq 0x7c69a(%rip), %rsi     # 0x129f8c
movq %r13, %rdi
movl %r15d, %edx
movq 0x8(%rsp), %rcx
xorl %eax, %eax
callq 0xdf2a5
jmp 0xad882