// File: /workspace/github_c_makefile_star2_O3/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, %r12
movl $0x10, %esi
callq 0xe8b2b
movq %rax, %r13
movq %r12, %rdi
callq 0xf5358
movq %rax, (%r13)
movb $0x1, 0x10(%rax)
movq 0x18(%r12), %rdi
cmpq $0x0, 0x18(%rdi)
jle 0xb475f
leaq 0x83706(%rip), %rbx     # 0x13724f
xorl %ebp, %ebp
xorl %r15d, %r15d
movq %r13, 0x28(%rsp)
movq %r15, %rsi
callq 0xeead3
movzbl %al, %r14d
cmpb $-0x10, %r14b
jae 0xb3c27
movl %ebp, 0x34(%rsp)
movq %r12, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
leaq 0x83732(%rip), %r8      # 0x1372b2
xorl %eax, %eax
callq 0xe8617
movl $0x68, %esi
movq %r12, %rdi
callq 0xe8b2b
movq %rax, %rbp
movq %r12, %rdi
leaq 0x837a1(%rip), %rsi     # 0x137342
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r12), %rdi
movq %r15, %rsi
callq 0xeead3
movl %eax, %r14d
shrb $0x4, %al
movzbl %al, %edx
movq %rdx, 0x30(%rbp)
movq %r12, %rdi
leaq 0x83781(%rip), %rsi     # 0x13735d
xorl %eax, %eax
callq 0xe8617
movzbl %r14b, %ebx
movl %ebx, %r14d
andb $0x7, %r14b
movl %ebx, %eax
shrl $0x3, %eax
andl $0x1, %eax
movl %eax, 0x38(%rbp)
cmpb $0x7, %r14b
jne 0xb3c85
movq %r12, %rdi
leaq 0x8375a(%rip), %rsi     # 0x137367
movl $0x7, %edx
xorl %eax, %eax
callq 0xe9295
movq $0x0, 0x60(%rsp)
jmp 0xb402d
leal -0xf0(%r14), %eax
cmpl $0x7, %eax
ja 0xb488f
leaq 0x835e2(%rip), %rcx     # 0x137220
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r12, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
leaq 0x8366d(%rip), %r8      # 0x1372c7
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
leaq 0x1(%r15), %rsi
callq 0xeead3
movzbl %al, %r14d
movq %r15, 0x10(%rsp)
addq $0x2, %r15
leaq 0x2(%r14), %rax
jmp 0xb45c4
leaq 0x1(%r15), %rsi
movq 0x18(%r12), %rdi
movb %r14b, 0x7(%rsp)
cmpb $0x3, %r14b
ja 0xb3d4f
callq 0xeead3
andl $0x3, %ebx
shll $0x8, %ebx
movzbl %al, %r14d
orl %ebx, %r14d
movq 0x18(%r12), %rdi
leaq 0x2(%r15), %rsi
callq 0xeead3
movzbl %al, %eax
movl %eax, (%rbp)
movq 0x18(%r12), %rdi
leaq 0x3(%r15), %rsi
movl $0x3, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xef0f6
movq %rax, 0x10(%rbp)
movq 0x18(%r12), %rdi
leaq 0x6(%r15), %rsi
callq 0xeead3
movzbl %al, %eax
movq %rax, 0x18(%rbp)
movq 0x18(%r12), %rdi
leaq 0x7(%r15), %rsi
callq 0xeead3
movzbl %al, %eax
movl %eax, 0x4(%rbp)
movq 0x18(%r12), %rdi
leaq 0x8(%r15), %rsi
callq 0xeead3
movzbl %al, %eax
movl %eax, 0x8(%rbp)
movq 0x18(%r12), %rdi
leaq 0x9(%r15), %rsi
callq 0xeeb33
movq %rax, 0x20(%rbp)
movq 0x18(%r12), %rdi
leaq 0xa(%r15), %rsi
callq 0xeeb33
movq %rax, %r10
movl $0x3, %r13d
movl $0xb, %eax
jmp 0xb3df2
callq 0xeeb67
andl $0x3, %ebx
shll $0x10, %ebx
orq %rax, %rbx
movq 0x18(%r12), %rdi
leaq 0x3(%r15), %rsi
callq 0xeead3
movzbl %al, %eax
movl %eax, (%rbp)
movq 0x18(%r12), %rdi
leaq 0x4(%r15), %rsi
movl $0x3, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xef0f6
movq %rax, 0x10(%rbp)
movq 0x18(%r12), %rdi
leaq 0x7(%r15), %rsi
callq 0xeeb67
movq %rax, 0x18(%rbp)
movq 0x18(%r12), %rdi
leaq 0x9(%r15), %rsi
callq 0xeeb67
movl %eax, 0x4(%rbp)
movq 0x18(%r12), %rdi
leaq 0xb(%r15), %rsi
callq 0xeeb67
movl %eax, 0x8(%rbp)
movq 0x18(%r12), %rdi
leaq 0xd(%r15), %rsi
callq 0xeec17
movq %rax, 0x20(%rbp)
movq 0x18(%r12), %rdi
leaq 0xf(%r15), %rsi
callq 0xeec17
movq %rax, %r10
movl $0x4, %r13d
movl $0x11, %eax
movq %rbx, %r14
addq %r15, %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
movq %r15, 0x10(%rsp)
movl 0x20(%rbp), %r15d
movq %r12, %rdi
leaq 0x83570(%rip), %rsi     # 0x137392
movl %r14d, %edx
xorl %eax, %eax
pushq %r10
pushq %r15
movq 0x20(%rsp), %r15
pushq %rbx
pushq %r11
callq 0xe8617
addq $0x20, %rsp
movq 0x30(%rbp), %rax
movq 0x40(%rbp), %rcx
addq %r14, %r13
movq %r13, 0x60(%rsp)
leaq (%r15,%r13), %r8
subq %rcx, %r8
movq %r8, 0x48(%rbp)
cmpq $0xe, %rax
leaq 0x9124e(%rip), %rdx     # 0x1450b0
leaq 0x5f866(%rip), %rax     # 0x1136cf
cmoveq %rax, %rdx
movq %r12, %rdi
leaq 0x8354e(%rip), %rsi     # 0x1373c5
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movslq 0x4(%rbp), %rsi
movslq 0x8(%rbp), %rcx
movq %rcx, %rbx
imulq %rsi, %rbx
testq %rbx, %rbx
jle 0xb3ebb
movq 0x28(%rsp), %r13
movq (%r13), %rdi
movq 0x8(%r13), %rdx
movq 0x18(%rdi), %r8
cmpq %rdx, %r8
jge 0xb3ed7
movq 0x20(%rdi), %rax
jmp 0xb3f1d
movl (%rbp), %edx
movl 0x40(%rbp), %ecx
movq %r12, %rdi
leaq 0x83526(%rip), %rsi     # 0x1373f1
xorl %eax, %eax
callq 0xe8617
jmp 0xb4016
leaq 0x1(%r8), %r14
leaq (%rdx,%rdx), %rax
cmpq %r8, %rax
cmovgq %rax, %r14
cmpq $0x26, %r14
movl $0x25, %eax
cmovlq %rax, %r14
movq 0x20(%rdi), %rsi
movl $0x28, %ecx
movq %r12, %rdi
movq %r14, %r8
callq 0xe9758
movq (%r13), %rdi
movq %rax, 0x20(%rdi)
movq %r14, 0x8(%r13)
movq 0x18(%rdi), %r8
movl 0x4(%rbp), %esi
movl 0x8(%rbp), %ecx
leaq 0x1(%r8), %rdx
movq %rdx, 0x18(%rdi)
leaq (%r8,%r8,4), %rdx
leaq (%rax,%rdx,8), %r14
movl %esi, 0x8(%r14)
movl %ecx, 0xc(%r14)
movq 0x20(%rbp), %rax
cmpq $-0x80, %rax
jb 0xb3f46
negl %eax
movw %ax, 0x14(%r14)
xorl %eax, %eax
subl 0x28(%rbp), %eax
movl %eax, 0x10(%r14)
leal 0x7(%rsi), %eax
addl $0xe, %esi
testl %eax, %eax
cmovnsl %eax, %esi
sarl $0x3, %esi
movslq %esi, %rax
movq %rax, 0x18(%r14)
movslq %ecx, %rsi
imulq %rax, %rsi
movq %r12, %rdi
callq 0xe8b2b
movq %rax, 0x20(%r14)
movl (%rbp), %eax
movq %r14, 0x50(%rsp)
movl %eax, (%r14)
cmpq $0xe, 0x30(%rbp)
jne 0xb4066
movl 0x8(%rbp), %eax
imull 0x4(%rbp), %eax
leal 0x7(%rax), %ecx
addl $0xe, %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $0x3, %eax
movslq %eax, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0xe8b2b
movq %rax, %r14
movq 0x18(%r12), %rdi
movq 0x40(%rbp), %rdx
movq %rax, %rsi
movq %r15, %rcx
callq 0xee8d4
cmpl $0x0, 0x8(%rbp)
movq 0x50(%rsp), %r13
jle 0xb4006
xorl %ebx, %ebx
xorl %r15d, %r15d
movslq 0x8(%r13), %r8
movq %r15, %rsi
imulq %r8, %rsi
movq 0x20(%r13), %rdx
movq 0x18(%r13), %rcx
imulq %rbx, %rcx
movq %r14, %rdi
callq 0xeb23b
incq %r15
movslq 0x8(%rbp), %rax
addq $0x8, %rbx
cmpq %rax, %r15
jl 0xb3fd7
movq %r12, %rdi
movq %r14, %rsi
callq 0xe8be2
movq 0x10(%rsp), %r15
movb 0x7(%rsp), %r14b
movq 0x28(%rsp), %r13
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %r12, %rdi
movq %rbp, %rsi
callq 0xe8be2
cmpb $0x7, %r14b
je 0xb47f6
movl 0x34(%rsp), %ebp
incl %ebp
leaq 0x831f3(%rip), %rbx     # 0x13724f
movq 0x60(%rsp), %rax
jmp 0xb4625
movl 0x38(%rbp), %r9d
xorpd %xmm0, %xmm0
movupd %xmm0, 0x50(%rbp)
movq $0x0, 0x60(%rbp)
cmpq $0x0, 0x48(%rbp)
movb 0x7(%rsp), %r14b
jle 0xb4723
movq %rbx, 0x68(%rsp)
movq %rbp, %r8
movq 0x40(%rbp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x38(%rsp)
addq $0x50, %r8
xorl %r13d, %r13d
movl $0x0, 0xc(%rsp)
xorl %r15d, %r15d
movq %r12, 0x18(%rsp)
movq %r8, 0x20(%rsp)
movq %rbp, 0x58(%rsp)
movslq 0x8(%rbp), %rcx
cmpq %rcx, 0x58(%rbp)
jge 0xb4727
movl %r9d, 0x8(%rsp)
movq 0x18(%r12), %rdi
movq %r15, %rsi
shrq $0x3f, %rsi
addq %r15, %rsi
sarq %rsi
addq %rax, %rsi
callq 0xeead3
movl %eax, %ecx
andb $0xf, %cl
shrb $0x4, %al
testb $0x1, %r15b
movzbl %al, %eax
movzbl %cl, %ecx
cmovel %eax, %ecx
movzbl %cl, %eax
testb %al, %al
je 0xb417d
leaq 0x1(%r15), %rbx
cmpl $0xf, %eax
je 0xb414b
cmpl $0xe, %eax
jne 0xb41f4
cmpl $0x3, (%r12)
jl 0xb4481
movl $0x1, 0xc(%rsp)
movq %r12, %rdi
leaq 0x832de(%rip), %rsi     # 0x13741c
movsd 0x38(%rsp), %xmm0
movl $0xe, %edx
jmp 0xb4171
movl $0x1, %r13d
cmpl $0x3, (%r12)
jl 0xb4489
movq %r12, %rdi
leaq 0x832d4(%rip), %rsi     # 0x13743a
movsd 0x38(%rsp), %xmm0
movl $0xf, %edx
movb $0x1, %al
callq 0xe889f
jmp 0xb4489
movl %eax, 0x44(%rsp)
movq 0x18(%r12), %rax
movq %rax, 0x48(%rsp)
movq 0x40(%rbp), %rdx
movl $0x1, %r14d
movq $-0x2, %rbx
movq %r15, %rbp
leaq (%r15,%r14), %r12
movq %r12, %rsi
shrq $0x3f, %rsi
addq %r12, %rsi
sarq %rsi
movq %rdx, %r15
addq %rdx, %rsi
movq 0x48(%rsp), %rdi
callq 0xeead3
movl %eax, %ecx
andb $0xf, %cl
shrb $0x4, %al
testb $0x1, %r12b
movzbl %al, %edx
movzbl %cl, %eax
cmovel %edx, %eax
testb %al, %al
jne 0xb4260
incq %r14
decq %rbx
cmpq $-0x12, %rbx
movq %r15, %rdx
movq %rbp, %r15
jne 0xb419c
jmp 0xb46ee
movl %eax, %r12d
cmpq %r12, 0x30(%rbp)
movl %eax, 0x44(%rsp)
jge 0xb42d2
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdi
movq %r15, %r14
addq $0x2, %r14
movq %rbx, %rsi
shrq $0x3f, %rsi
addq %rbx, %rsi
sarq %rsi
addq 0x40(%rbp), %rsi
callq 0xeead3
movl %eax, %ecx
andb $0xf, %cl
shrb $0x4, %al
testb $0x1, %r15b
movzbl %cl, %ecx
movzbl %al, %eax
cmovel %ecx, %eax
movq 0x30(%rbp), %rcx
movzbl %al, %eax
addq %rcx, %rax
notq %rcx
addq %r12, %rcx
shlq $0x4, %rcx
leaq (%rcx,%rax), %r12
incq %r12
movq %r14, %rbx
jmp 0xb42d2
movzbl %al, %r12d
subq %rbx, %rbp
movq %rbp, %rbx
movq %r15, 0x70(%rsp)
movq 0x48(%rsp), %rbp
movq %r12, %r15
shlq $0x4, %r15
movq %rbx, %rsi
shrq $0x3f, %rsi
addq %rbx, %rsi
sarq %rsi
addq 0x70(%rsp), %rsi
movq %rbp, %rdi
callq 0xeead3
movl %eax, %ecx
andb $0xf, %cl
shrb $0x4, %al
testb $0x1, %bl
movzbl %al, %eax
movzbl %cl, %ecx
cmovel %eax, %ecx
movzbl %cl, %r12d
orq %r15, %r12
incq %rbx
decq %r14
jne 0xb4274
movq 0x58(%rsp), %rbp
movq 0x30(%rbp), %rax
addq %rax, %r12
shlq $0x4, %rax
subq %rax, %r12
addq $0xc1, %r12
movq 0x20(%rsp), %r8
movl 0x8(%rsp), %r9d
movq 0x18(%rsp), %rax
movl (%rax), %eax
cmpl $0x0, 0xc(%rsp)
jne 0xb4448
cmpl $0x3, %eax
jl 0xb4332
testl %r9d, %r9d
leaq 0x8affd(%rip), %r8      # 0x13f2fa
leaq 0x700db(%rip), %rax     # 0x1243df
cmoveq %rax, %r8
movq 0x18(%rsp), %rdi
leaq 0x8314f(%rip), %rsi     # 0x137463
movsd 0x38(%rsp), %xmm0
movl 0x44(%rsp), %edx
movl %r12d, %ecx
movb $0x1, %al
callq 0xe889f
movl 0x8(%rsp), %r9d
movq 0x20(%rsp), %r8
testq %r12, %r12
jle 0xb4429
movl 0x4(%rbp), %eax
xorl %r14d, %r14d
incq 0x60(%rbp)
movq 0x50(%rbp), %rcx
movslq %eax, %rdx
testl %r9d, %r9d
je 0xb4398
testq %rcx, %rcx
js 0xb4398
cmpq %rdx, %rcx
jge 0xb4398
movq 0x58(%rbp), %rsi
testq %rsi, %rsi
js 0xb4398
movslq 0x8(%rbp), %rdi
cmpq %rdi, %rsi
jge 0xb4398
movq %rcx, %rax
notb %cl
andb $0x7, %cl
movb $0x1, %dl
shlb %cl, %dl
movq 0x50(%rsp), %rcx
imulq 0x18(%rcx), %rsi
addq 0x20(%rcx), %rsi
shrq $0x3, %rax
orb %dl, (%rax,%rsi)
movq 0x50(%rbp), %rcx
movl 0x4(%rbp), %eax
movslq %eax, %rdx
incq %rcx
movq %rcx, (%r8)
cmpq %rdx, %rcx
jl 0xb441d
movq 0x58(%rbp), %r15
leaq 0x1(%r15), %rdi
movq %rdi, 0x58(%rbp)
movq $0x0, 0x50(%rbp)
testq %r15, %r15
sets %cl
testq %r13, %r13
setle %dl
orb %cl, %dl
jne 0xb441a
movslq 0x8(%rbp), %rcx
cmpq %rcx, %rdi
jge 0xb440b
movq 0x50(%rsp), %rax
movq 0x18(%rax), %rdx
movq 0x20(%rax), %rax
imulq %rdx, %rdi
addq %rax, %rdi
movq %rdx, %rsi
imulq %r15, %rsi
addq %rax, %rsi
callq 0x181e0
movq 0x58(%rbp), %rdi
incq %rdi
movq %rdi, 0x58(%rbp)
movslq 0x4(%rbp), %rax
addq %rax, 0x60(%rbp)
decq %r13
jne 0xb43c7
xorl %r13d, %r13d
movq 0x20(%rsp), %r8
movl 0x8(%rsp), %r9d
jmp 0xb441d
xorl %r13d, %r13d
incq %r14
cmpq %r12, %r14
jne 0xb4341
xorl %eax, %eax
testl %r9d, %r9d
sete %al
movl $0x0, 0xc(%rsp)
movl %eax, %r9d
movq 0x18(%rsp), %r12
movb 0x7(%rsp), %r14b
jmp 0xb448e
cmpl $0x3, %eax
jl 0xb44cc
movl $0x0, 0xc(%rsp)
movq 0x18(%rsp), %r14
movq %r14, %rdi
leaq 0x82ff2(%rip), %rsi     # 0x137456
movsd 0x38(%rsp), %xmm0
movl %r12d, %edx
movb $0x1, %al
callq 0xe889f
movl 0x8(%rsp), %r9d
movq %r12, %r13
movq %r14, %r12
jmp 0xb4441
movl $0x1, 0xc(%rsp)
movl 0x8(%rsp), %r9d
movq 0x40(%rbp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movq 0x48(%rbp), %rcx
xorps %xmm1, %xmm1
cvtsi2sd %rbx, %xmm1
mulsd 0x63382(%rip), %xmm1    # 0x117830
addsd %xmm0, %xmm1
movsd %xmm1, 0x38(%rsp)
addq %rcx, %rcx
movq %rbx, %r15
cmpq %rcx, %rbx
jl 0xb40c6
jmp 0xb4727
movl $0x0, 0xc(%rsp)
movq %r12, %r13
jmp 0xb443c
movq %r12, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
leaq 0x82e0c(%rip), %r8      # 0x1372fb
xorl %eax, %eax
callq 0xe8617
movq %r15, 0x10(%rsp)
incq %r15
movl $0x5, %eax
movl $0x4, %r14d
jmp 0xb45c9
movq %r12, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
leaq 0x82dc0(%rip), %r8      # 0x1372e1
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
leaq 0x1(%r15), %rsi
movl $0x3, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0xef0f6
movq %rax, %r14
movq %r15, 0x10(%rsp)
addq $0x4, %r15
addq $0x4, %rax
jmp 0xb45c4
movq %r12, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
leaq 0x82d89(%rip), %r8      # 0x1372ee
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
leaq 0x1(%r15), %rsi
callq 0xeed0d
movq %rax, %r14
movq %r15, 0x10(%rsp)
addq $0x5, %r15
addq $0x5, %rax
jmp 0xb45c4
movq %r12, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
leaq 0x82d35(%rip), %r8      # 0x1372d4
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r12), %rdi
leaq 0x1(%r15), %rsi
callq 0xeeb67
movq %rax, %r14
movq %r15, 0x10(%rsp)
addq $0x3, %r15
addq $0x3, %rax
testq %r14, %r14
jle 0xb461b
movq %r12, %rdi
movl $0x1, %esi
movl %ebp, %r13d
movq %rbx, %rbp
movq %rax, %rbx
callq 0xe8a15
movq 0x18(%r12), %rsi
subq $0x8, %rsp
movl $0x100, %r8d            # imm = 0x100
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
xorl %r9d, %r9d
pushq $0x1
callq 0xe8bea
addq $0x10, %rsp
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %rbx, %rax
movq %rbp, %rbx
movl %r13d, %ebp
movq 0x10(%rsp), %r15
movq 0x28(%rsp), %r13
testq %rax, %rax
jle 0xb4761
addq %rax, %r15
movq 0x18(%r12), %rdi
cmpq 0x18(%rdi), %r15
jl 0xb3b53
jmp 0xb4761
movq %r12, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
leaq 0x82cb9(%rip), %r8      # 0x137311
xorl %eax, %eax
callq 0xe8617
movl $0x1, %eax
jmp 0xb462e
movq %r12, %rdi
movq %rbx, %rsi
movl %r15d, %edx
movl %r14d, %ecx
leaq 0x82c9e(%rip), %r8      # 0x137317
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
leaq 0x82c96(%rip), %rsi     # 0x137320
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
movq %r12, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x18(%r12), %rdi
leaq 0x2(%r15), %rsi
callq 0xeead3
movzbl %al, %r14d
movq %r12, %rdi
leaq 0x82c72(%rip), %rsi     # 0x13732f
movl %r14d, %edx
xorl %eax, %eax
callq 0xe8617
movl %ebp, 0x34(%rsp)
movq %rbx, %rbp
leaq 0x13(%r14), %rbx
movq %r12, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq %rbx, %rax
movq %rbp, %rbx
movl 0x34(%rsp), %ebp
jmp 0xb462e
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x82dac(%rip), %rsi     # 0x1374aa
xorl %eax, %eax
callq 0xe9295
movq 0x18(%rsp), %r12
movq 0x28(%rsp), %r13
movq 0x10(%rsp), %r15
movb 0x7(%rsp), %r14b
movq 0x58(%rsp), %rbp
jmp 0xb4020
xorl %ecx, %ecx
jmp 0xb473a
movq 0x60(%rbp), %rcx
movq 0x28(%rsp), %r13
movq 0x10(%rsp), %r15
movq 0x68(%rsp), %rbx
cmpq %rbx, %rcx
je 0xb4020
movl (%rbp), %r8d
movq %r12, %rdi
leaq 0x82d2f(%rip), %rsi     # 0x137480
movl %ebx, %edx
xorl %eax, %eax
callq 0xe8faa
jmp 0xb4020
xorl %ebp, %ebp
movq (%r13), %rax
movl 0x18(%rax), %ecx
leaq 0x82b1b(%rip), %rsi     # 0x13728a
movq %r12, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0xe8617
movq (%r13), %rsi
movq 0x18(%rsi), %rax
testq %rax, %rax
jle 0xb47e3
movq 0x20(%rsi), %rcx
movl (%rsi), %r9d
leaq 0x10(%rcx), %r8
movl $0xf4240, %edx          # imm = 0xF4240
movl $0xfff0bdc0, %edi       # imm = 0xFFF0BDC0
movq %rax, %r10
movl -0x8(%r8), %r11d
cmpl %r9d, %r11d
jle 0xb47af
movl %r11d, (%rsi)
movl %r11d, %r9d
movl (%r8), %r11d
cmpl %edx, %r11d
cmovll %r11d, %edx
addl -0x4(%r8), %r11d
cmpl %edi, %r11d
cmovgl %r11d, %edi
addq $0x28, %r8
decq %r10
jne 0xb47a0
subl %edx, %edi
movl %edi, 0x4(%rsi)
addq $0x10, %rcx
subl %edx, (%rcx)
addq $0x28, %rcx
decq %rax
jne 0xb47d6
jmp 0xb47ea
movl $0xffe17b80, 0x4(%rsi)  # imm = 0xFFE17B80
movq %r12, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xf576f
movq (%r13), %rsi
testq %rsi, %rsi
je 0xb4853
movq 0x20(%rsi), %rax
testq %rax, %rax
je 0xb484b
cmpq $0x0, 0x18(%rsi)
jle 0xb483c
movl $0x20, %ebx
xorl %r14d, %r14d
movq 0x20(%rsi), %rax
movq (%rax,%rbx), %rsi
movq %r12, %rdi
callq 0xe8be2
incq %r14
movq (%r13), %rsi
addq $0x28, %rbx
cmpq 0x18(%rsi), %r14
jl 0xb4817
movq 0x20(%rsi), %rax
movq %r12, %rdi
movq %rax, %rsi
callq 0xe8be2
movq (%r13), %rsi
movq %r12, %rdi
callq 0xf536d
movq %r12, %rdi
movq %r13, %rsi
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe8be2
leaq 0x829dc(%rip), %rsi     # 0x13724f
leaq 0x82a8d(%rip), %r8      # 0x137307
movq %r12, %rdi
movl %r15d, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0xe8617
jmp 0xb4761
leaq 0x829b9(%rip), %rsi     # 0x13724f
leaq 0x778b4(%rip), %r8      # 0x12c151
movq %r12, %rdi
movl %r15d, %edx
movl %r14d, %ecx
xorl %eax, %eax
callq 0xe8617
leaq 0x829b8(%rip), %rsi     # 0x13726c
movq %r12, %rdi
movl %r14d, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0xe9295
jmp 0xb47f6