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

	d = de_malloc(c, sizeof(lctx));
	d->input_encoding_req = de_get_input_encoding(c, NULL, DE_ENCODING_UNKNOWN);

	if(!do_read_header(c, d)) goto done;
	read_face_name(c, d);

	if(d->is_vector) {
		de_err(c, "This is a vector font. Not supported.");
		goto done;
	}

	if(d->dfType & 0x4) {
		de_err(c, "This type of font is not supported (dfType=0x%04x)", d->dfType);
		goto done;
	}

	if(!do_read_char_table(c, d)) goto done;

	do_make_image(c, d);
done:
	if(d) {
		de_finfo_destroy(c, d->fi);
		de_free(c, d->char_table);
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbp
movl $0x98, %esi
callq 0xdecaf
movq %rax, %r14
xorl %r13d, %r13d
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xe08d2
movl %eax, 0x88(%r14)
leaq 0x18(%rsp), %rsi
movq %rbp, %rdi
callq 0xdebae
leaq 0xc5bdc(%rip), %rsi     # 0x111d6c
movq %rbp, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movq 0x18(%rbp), %rdi
xorl %esi, %esi
callq 0xe3fa3
movl %eax, (%r14)
leaq 0xc5bc3(%rip), %rsi     # 0x111d7f
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movl (%r14), %edx
cmpl $0x100, %edx            # imm = 0x100
je 0x4c1e7
cmpl $0x200, %edx            # imm = 0x200
je 0x4c1e7
cmpl $0x300, %edx            # imm = 0x300
jne 0x4c3fd
movq %rbp, %rdi
callq 0xeac74
movq %rax, %r12
movq 0x18(%rbp), %rdi
pushq $0x6
popq %r15
pushq $0x3c
popq %rdx
pushq $0x1
popq %r8
movq %r15, %rsi
movq %rax, %rcx
movl %r8d, %r9d
callq 0xe4c9a
movq %r12, %rdi
callq 0xeb877
leaq 0xc5ba1(%rip), %rsi     # 0x111dbf
movq %rbp, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x42
popq %rsi
callq 0xe3fa3
movl %eax, 0x4(%r14)
movl %eax, %ecx
andl $0x1, %ecx
movl %ecx, 0x7c(%r14)
leaq 0xbe679(%rip), %rdx     # 0x10a8c4
leaq 0xc5fa4(%rip), %rcx     # 0x1121f6
cmoveq %rdx, %rcx
leaq 0xc5b72(%rip), %rsi     # 0x111dcf
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x44
popq %rsi
callq 0xe3fa3
movl %eax, 0x6c(%r14)
leaq 0xc5b63(%rip), %rsi     # 0x111de3
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x56
popq %rsi
callq 0xe3fa3
movq %rax, 0x58(%r14)
leaq 0xc5b4d(%rip), %rsi     # 0x111df0
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x58
popq %rsi
callq 0xe3fa3
movq %rax, 0x60(%r14)
movq %rax, 0x10(%r14)
leaq 0xc5b35(%rip), %rsi     # 0x111dff
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x55
popq %rsi
callq 0xe3eb4
movb %al, 0x78(%r14)
movq %rbp, (%rsp)
movzbl %al, %ebp
movl %ebp, %edi
callq 0xed552
leaq 0xc2af7(%rip), %rsi     # 0x10edf2
movq (%rsp), %rdi
movl %ebp, %edx
movq (%rsp), %rbp
movq %rax, %rcx
xorl %eax, %eax
callq 0xde896
movb 0x78(%r14), %al
cmpb $-0x1, %al
pushq $0xd
popq %rcx
cmovnel %r13d, %ecx
testb %al, %al
pushq $0x9
popq %rax
cmovnel %ecx, %eax
movl %eax, 0x84(%r14)
movq 0x18(%rbp), %rdi
pushq $0x5d
popq %rsi
callq 0xe3fa3
movq %rax, %r13
leaq 0xc5ace(%rip), %rsi     # 0x111e0f
movq %rbp, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0xde896
movq 0x58(%r14), %rcx
cmpq %r13, %rcx
sete %al
testq %rcx, %rcx
sete %dl
orb %al, %dl
jne 0x4c376
leaq 0xc5ab5(%rip), %rsi     # 0x111e1e
movq %rbp, %rdi
movl %r13d, %edx
xorl %eax, %eax
callq 0xdf05a
movq 0x18(%rbp), %rdi
pushq $0x5f
popq %rsi
callq 0xe3eb4
movb %al, 0x40(%r14)
movzbl %al, %edx
leaq 0xc5abd(%rip), %rsi     # 0x111e4d
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x60
popq %rsi
callq 0xe3eb4
movb %al, 0x41(%r14)
movzbl %al, %edx
leaq 0xc5c23(%rip), %rsi     # 0x111fd7
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
movb 0x41(%r14), %al
cmpb 0x40(%r14), %al
jae 0x4c3db
leaq 0xc5abd(%rip), %rsi     # 0x111e8c
movq %rbp, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x4c411
movq 0x18(%rbp), %rdi
pushq $0x63
popq %rsi
callq 0xe3fa3
movq %rax, 0x30(%r14)
cmpl $0x1ff, (%r14)          # imm = 0x1FF
jbe 0x4c42a
leaq 0xb7b8d(%rip), %rcx     # 0x103f88
jmp 0x4c441
leaq 0xc598d(%rip), %rsi     # 0x111d91
xorl %r12d, %r12d
movq %rbp, %rdi
xorl %eax, %eax
callq 0xdf2a5
movq %r12, %rdi
callq 0xeaf3c
movl 0x18(%rsp), %esi
movq %rbp, %rdi
callq 0xdebb7
jmp 0x4c64a
cmpl $0x0, 0x7c(%r14)
leaq 0xeb82a(%rip), %rdx     # 0x137c60
leaq 0xb7b4b(%rip), %rcx     # 0x103f88
cmoveq %rdx, %rcx
leaq 0xc5a14(%rip), %rsi     # 0x111e5c
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x69
popq %rsi
callq 0xe409f
movq %rax, 0x70(%r14)
leaq 0xc5a04(%rip), %rsi     # 0x111e6f
movq %rbp, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbp), %rdi
pushq $0x71
popq %rsi
callq 0xe409f
movq %rax, 0x38(%r14)
leaq 0xc59ec(%rip), %rsi     # 0x111e7a
movq %rbp, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq %r12, %rdi
callq 0xeaf3c
movl 0x18(%rsp), %esi
movq %rbp, %rdi
callq 0xdebb7
movq 0x70(%r14), %rdx
testq %rdx, %rdx
jle 0x4c585
leaq 0xc59e9(%rip), %rsi     # 0x111eac
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rbp
movq (%rsp), %rdi
movl %ebp, %esi
callq 0xdeba7
movq (%rsp), %rdi
callq 0xeac74
movq %rax, %r12
movq (%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x70(%r14), %rsi
pushq $0x40
popq %rdx
movq %r12, %rcx
movl %ebp, %r8d
movl %ebp, %r9d
movq (%rsp), %rbp
callq 0xe4c9a
movq %r12, %rdi
callq 0xeb877
leaq 0xc59a6(%rip), %rsi     # 0x111ebd
movq %rbp, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
cmpb $0x0, 0xd0(%rbp)
je 0x4c572
cmpq $0x0, 0x90(%r14)
jne 0x4c546
movq %rbp, %rdi
callq 0xdfd1a
movq %rax, 0x90(%r14)
movl 0x6c(%r14), %ecx
leaq 0xc3d90(%rip), %rdx     # 0x1102e1
pushq $0x5
popq %rsi
movq %r12, %rdi
xorl %eax, %eax
callq 0xeae8b
movq 0x90(%r14), %rsi
movq %rbp, %rdi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0xdfd55
pushq $-0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movq %r12, %rdi
callq 0xeaf3c
cmpl $0x0, 0x7c(%r14)
je 0x4c5a2
leaq 0xc5780(%rip), %rsi     # 0x111d13
movq %rbp, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x4c64a
movl 0x4(%r14), %edx
testb $0x4, %dl
jne 0x4c639
leaq 0x18(%rsp), %rsi
movq %rbp, %rdi
callq 0xdebae
cmpl $0x0, 0x7c(%r14)
jne 0x4c64a
movl $0x200, %ebx            # imm = 0x200
xorl %eax, %eax
cmpl %ebx, (%r14)
setae %al
movl %eax, 0x80(%r14)
movzbl 0x41(%r14), %ecx
movzbl 0x40(%r14), %edx
subq %rdx, %rcx
leaq (%rax,%rcx), %rdx
incq %rdx
movq %rdx, 0x48(%r14)
leaq 0xc58d3(%rip), %rsi     # 0x111ecd
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
movl (%r14), %eax
cmpl %ebx, %eax
je 0x4c67f
cmpl $0x100, %eax            # imm = 0x100
jne 0x4c698
movq $0x75, 0x18(%r14)
cmpq $0x0, 0x58(%r14)
pushq $0x75
popq %rdx
je 0x4c6af
andq $0x0, 0x20(%r14)
xorl %r15d, %r15d
jmp 0x4c6bb
leaq 0xc56f9(%rip), %rsi     # 0x111d39
movq %rbp, %rdi
xorl %eax, %eax
callq 0xdf2a5
movq 0x90(%r14), %rsi
movq %rbp, %rdi
callq 0xdfd24
movq 0x50(%r14), %rsi
movq %rbp, %rdi
callq 0xded32
movq %rbp, %rdi
movq %r14, %rsi
callq 0xded32
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x76, 0x18(%r14)
movq $0x4, 0x20(%r14)
pushq $0x4
popq %r15
pushq $0x76
popq %rdx
jmp 0x4c6bb
movq $0x94, 0x18(%r14)
movq $0x6, 0x20(%r14)
movl $0x94, %edx
jmp 0x4c6bb
movq $0x2, 0x20(%r14)
pushq $0x2
popq %r15
movq 0x48(%r14), %rcx
imulq %r15, %rcx
movq %rcx, 0x28(%r14)
leaq 0xc5818(%rip), %rsi     # 0x111ee6
movq %rbp, %rdi
movl %r15d, %r8d
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movq 0x48(%r14), %rsi
pushq $0x18
popq %rdx
movq %rbp, %rdi
callq 0xdf66f
movq %rax, 0x50(%r14)
cmpq $0x0, 0x28(%r14)
je 0x4c77c
cmpl $0x100, (%r14)          # imm = 0x100
jne 0x4c7ae
pushq $0x8
popq %rbx
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x48(%r14), %rcx
cmpq %rcx, %r12
jge 0x4c80c
movq 0x18(%r14), %r13
movq 0x20(%r14), %rbp
imulq %r12, %rbp
movq %rbp, %rsi
addq %r13, %rsi
movq (%rsp), %rax
movq 0x18(%rax), %rdi
callq 0xe3fa3
movq 0x50(%r14), %rcx
movq %rax, (%rcx,%rbx)
movq (%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x2(,%r13), %rsi
addq %rbp, %rsi
callq 0xe3fa3
movq 0x50(%r14), %rcx
subl (%rcx,%rbx), %eax
testl %eax, %eax
cmovlel %r15d, %eax
movl %eax, -0x8(%rcx,%rbx)
incq %r12
addq $0x18, %rbx
jmp 0x4c716
movq 0x48(%r14), %rcx
xorl %edx, %edx
testq %rcx, %rcx
movl $0x0, %esi
cmovgq %rcx, %rsi
addq $0x8, %rax
cmpq %rdx, %rsi
je 0x4c80c
movq 0x58(%r14), %rdi
movl %edi, -0x8(%rax)
imulq %rdx, %rdi
movq %rdi, (%rax)
incq %rdx
addq $0x18, %rax
jmp 0x4c792
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x48(%r14), %rcx
cmpq %rcx, %r12
jge 0x4c80c
movq 0x18(%r14), %rbx
movq 0x20(%r14), %r13
imulq %r12, %r13
leaq (%rbx,%r13), %rsi
movq 0x18(%rbp), %rdi
callq 0xe3fa3
movq 0x50(%r14), %rcx
movl %eax, (%rcx,%r15)
cmpq $0x6, 0x20(%r14)
movq 0x18(%rbp), %rdi
leaq 0x2(%r13,%rbx), %rsi
jne 0x4c7f5
callq 0xe409f
jmp 0x4c7fa
callq 0xe3fa3
movq 0x50(%r14), %rcx
movq %rax, 0x10(%rcx,%r15)
incq %r12
addq $0x18, %r15
jmp 0x4c7b4
pushq $0x5
popq %rbx
andl $0x0, 0x68(%r14)
leaq 0xc56fa(%rip), %r13     # 0x111f15
leaq 0xc571f(%rip), %rbp     # 0x111f41
xorl %r12d, %r12d
xorl %edx, %edx
xorl %r15d, %r15d
cmpq %rcx, %r15
jge 0x4c8c0
cmpl $0x0, 0x80(%r14)
movq 0x50(%r14), %rax
je 0x4c856
decq %rcx
cmpq %rcx, %r15
jne 0x4c856
movb $0x1, 0x4(%rax,%r12)
movl $0x100, %ecx            # imm = 0x100
jmp 0x4c86b
movl $0x100, %ecx            # imm = 0x100
cmpb $0x0, 0x4(%rax,%r12)
jne 0x4c86b
movzbl 0x40(%r14), %ecx
addl %r15d, %ecx
leaq (%rax,%r12), %rdx
xorl %edi, %edi
cmpl $0x100, (%r14)          # imm = 0x100
setne %dil
movl (%rax,%r12), %r9d
movq %rbp, %rsi
cmoveq %r13, %rsi
movl 0x8(%rdx,%rdi,8), %r8d
movq (%rsp), %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xde9f1
movq 0x50(%r14), %rax
movl (%rax,%r12), %eax
movl 0x68(%r14), %edx
cmpl %edx, %eax
jle 0x4c8b0
movl %eax, 0x68(%r14)
movl %eax, %edx
incq %r15
movq 0x48(%r14), %rcx
addq $0x18, %r12
jmp 0x4c82a
leaq 0xc56a6(%rip), %rsi     # 0x111f6d
movq (%rsp), %rbp
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
movl 0x68(%r14), %eax
testl %eax, %eax
jle 0x4c419
movl %eax, 0x8(%r14)
pushq $-0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movl 0x18(%rsp), %esi
movq %rbp, %rdi
callq 0xdebb7
leaq 0xc5681(%rip), %rsi     # 0x111f84
movq %rbp, %rdi
xorl %eax, %eax
callq 0xde896
pushq $0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
movq %rbp, %rdi
callq 0xe9d18
movb $0x1, 0x10(%rax)
movl 0x88(%r14), %ebp
testl %ebp, %ebp
je 0x4c937
movw $0x101, 0x11(%rax)      # imm = 0x101
jmp 0x4c951
movl 0x84(%r14), %ebp
testl %ebp, %ebp
je 0x4c94a
movw $0x1, 0x11(%rax)
jmp 0x4c951
andw $0x0, 0x11(%rax)
movl %ebx, %ebp
movl 0x8(%r14), %ecx
movl %ecx, (%rax)
movl 0x10(%r14), %ecx
movl %ecx, 0x4(%rax)
movq 0x48(%r14), %rsi
movq %rsi, 0x18(%rax)
movq %rax, %r15
pushq $0x28
popq %rdx
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0xdf66f
movq %r15, 0x8(%rsp)
movq %rax, 0x20(%r15)
leaq 0x18(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rbp
callq 0xe11fc
leaq 0x38(%rsp), %rdi
pushq $0x17
popq %rsi
callq 0xe11fc
xorl %ebx, %ebx
cmpq 0x48(%r14), %rbx
jge 0x4cb45
movq 0x50(%r14), %r15
imulq $0x18, %rbx, %r13
imulq $0x28, %rbx, %r12
movq 0x8(%rsp), %rcx
addq 0x20(%rcx), %r12
cmpb $0x0, 0x4(%r15,%r13)
je 0x4c9d5
movl $0x100, (%r12)          # imm = 0x100
movl $0x2002, %eax           # imm = 0x2002
jmp 0x4ca01
movzbl 0x40(%r14), %eax
leal (%rbx,%rax), %edi
movl %edi, (%r12)
cmpb $0x0, 0x11(%rcx)
je 0x4ca06
cmpl $0x1f, %edi
jg 0x4c9f7
cmpb $0x0, 0x78(%r14)
je 0x4cb38
leaq 0x18(%rsp), %rsi
callq 0xe1679
movl %eax, 0x4(%r12)
movq %rbx, 0x10(%rsp)
addq %r13, %r15
movslq (%r15), %rax
movl %eax, 0x8(%r12)
movq 0x10(%r14), %rsi
movl %esi, 0xc(%r12)
movl (%r14), %ecx
addq $0x7, %rax
cqto
pushq $0x8
popq %rdi
idivq %rdi
imulq %rax, %rsi
movq %rax, 0x18(%r12)
cmpl $0x100, %ecx            # imm = 0x100
jne 0x4cab8
cmpq $0x8000, %rsi           # imm = 0x8000
jg 0x4cac1
movq %rbp, %rdi
callq 0xdecaf
movq %rax, 0x20(%r12)
xorl %r13d, %r13d
cmpq 0x10(%r14), %r13
jge 0x4cac1
xorl %ebx, %ebx
movslq (%r15), %rax
cmpq %rax, %rbx
jge 0x4cab3
movq 0x18(%rbp), %rdi
movq 0x30(%r14), %rdx
imulq %r13, %rdx
addq 0x38(%r14), %rdx
movq 0x8(%r15), %rcx
addq %rbx, %rcx
pushq $0x1
popq %rsi
callq 0xe74bf
testb %al, %al
je 0x4caae
movl %ebx, %ecx
notb %cl
andb $0x7, %cl
movb $0x1, %al
shlb %cl, %al
movq 0x18(%r12), %rcx
imulq %r13, %rcx
movq %rbx, %rdx
addq 0x20(%r12), %rcx
shrq $0x3, %rdx
orb %al, (%rdx,%rcx)
incq %rbx
jmp 0x4ca60
incq %r13
jmp 0x4ca58
cmpq $0x8000, %rsi           # imm = 0x8000
jle 0x4cace
movq 0x10(%rsp), %rbx
incq %rbx
jmp 0x4c99f
movq %rax, %r13
movq %rbp, %rdi
callq 0xdecaf
movq %rax, 0x20(%r12)
testq %r13, %r13
movl $0x0, %eax
cmovleq %rax, %r13
xorl %ebx, %ebx
cmpq 0x10(%r14), %rbx
jge 0x4cac1
xorl %ebp, %ebp
cmpq %rbp, %r13
je 0x4cb2f
movq (%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x10(%r14), %rax
imulq %rbp, %rax
movq 0x10(%r15), %rsi
addq %rbx, %rsi
addq %rax, %rsi
callq 0xe3eb4
movq 0x18(%r12), %rcx
imulq %rbx, %rcx
addq 0x20(%r12), %rcx
movb %al, (%rbp,%rcx)
incq %rbp
jmp 0x4caf4
incq %rbx
movq (%rsp), %rbp
jmp 0x4caec
addl $0x5f, %edi
leaq 0x38(%rsp), %rsi
jmp 0x4c9fc
movq 0x90(%r14), %rdx
movq %rbp, %rdi
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0xea0f6
movq %rbx, %rax
movq 0x20(%rbx), %rsi
testq %rsi, %rsi
je 0x4cba1
pushq $0x20
popq %rbx
xorl %r15d, %r15d
cmpq 0x18(%rax), %r15
movq %rax, %r12
jge 0x4cb96
movq (%rsi,%rbx), %rsi
movq %rbp, %rdi
callq 0xded32
incq %r15
movq 0x20(%r12), %rsi
addq $0x28, %rbx
movq %r12, %rax
jmp 0x4cb70
movq %rbp, %rdi
callq 0xded32
movq %r12, %rax
movq %rbp, %rdi
movq %rax, %rsi
callq 0xe9d28
pushq $-0x1
popq %rsi
movq %rbp, %rdi
callq 0xdeba7
jmp 0x4c64a