// File: /workspace/github_c_makefile_star2_O1/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 $0x68, %rsp
movq %rdi, %r14
movl $0x98, %esi
callq 0xe969b
movq %rax, %rbx
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xeb7d1
movl %eax, 0x88(%rbx)
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0xe958c
leaq 0xd04a1(%rip), %rsi     # 0x11ed34
movq %r14, %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x18(%r14), %rdi
xorl %esi, %esi
callq 0xef1ca
movl %eax, (%rbx)
leaq 0xd0487(%rip), %rsi     # 0x11ed47
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movl (%rbx), %edx
cmpl $0x100, %edx            # imm = 0x100
je 0x4e8ea
cmpl $0x200, %edx            # imm = 0x200
je 0x4e8ea
cmpl $0x300, %edx            # imm = 0x300
jne 0x4eafe
movq %r14, %rdi
callq 0xf6870
movq %rax, %r15
movq 0x18(%r14), %rdi
movl $0x6, %esi
movl $0x3c, %edx
movq %rax, %rcx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0xf01b0
movq %r15, %rdi
callq 0xf7557
leaq 0xd0461(%rip), %rsi     # 0x11ed87
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movl $0x42, %esi
callq 0xef1ca
movl %eax, 0x4(%rbx)
movl %eax, %ecx
andl $0x1, %ecx
movl %ecx, 0x7c(%rbx)
leaq 0xc8f29(%rip), %rdx     # 0x11787c
leaq 0xd0864(%rip), %rcx     # 0x11f1be
cmoveq %rdx, %rcx
leaq 0xd0432(%rip), %rsi     # 0x11ed97
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movl $0x44, %esi
callq 0xef1ca
movl %eax, 0x6c(%rbx)
leaq 0xd0422(%rip), %rsi     # 0x11edab
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movl $0x56, %esi
callq 0xef1ca
movq %rax, 0x58(%rbx)
leaq 0xd040a(%rip), %rsi     # 0x11edb8
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movl $0x58, %esi
callq 0xef1ca
movq %rax, 0x60(%rbx)
movq %rax, 0x10(%rbx)
leaq 0xd03f0(%rip), %rsi     # 0x11edc7
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movl $0x55, %esi
callq 0xef0d5
movb %al, 0x78(%rbx)
movzbl %al, %ebp
movl %ebp, %edi
callq 0xf93a2
leaq 0xcd3b5(%rip), %rsi     # 0x11bdba
movq %r14, %rdi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xe9226
movb 0x78(%rbx), %al
cmpb $-0x1, %al
movl $0xd, %ecx
cmovnel %r12d, %ecx
testb %al, %al
movl $0x9, %eax
cmovnel %ecx, %eax
movl %eax, 0x84(%rbx)
movq 0x18(%r14), %rdi
movl $0x5d, %esi
callq 0xef1ca
movq %rax, %r12
leaq 0xd038d(%rip), %rsi     # 0x11edd7
movq %r14, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x58(%rbx), %rcx
cmpq %r12, %rcx
sete %al
testq %rcx, %rcx
sete %dl
orb %al, %dl
jne 0x4ea7f
leaq 0xd0374(%rip), %rsi     # 0x11ede6
movq %r14, %rdi
movl %r12d, %edx
xorl %eax, %eax
callq 0xe9b27
movq 0x18(%r14), %rdi
movl $0x5f, %esi
callq 0xef0d5
movb %al, 0x40(%rbx)
movzbl %al, %edx
leaq 0xd037b(%rip), %rsi     # 0x11ee15
xorl %r12d, %r12d
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movl $0x60, %esi
callq 0xef0d5
movb %al, 0x41(%rbx)
movzbl %al, %edx
leaq 0xd04dd(%rip), %rsi     # 0x11ef9f
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movb 0x41(%rbx), %al
movb $0x1, %bpl
cmpb 0x40(%rbx), %al
jb 0x4eb90
movq 0x18(%r14), %rdi
movl $0x63, %esi
callq 0xef1ca
movq %rax, 0x30(%rbx)
cmpl $0x1ff, (%rbx)          # imm = 0x1FF
jbe 0x4eb17
leaq 0xc24a0(%rip), %rcx     # 0x110f9c
jmp 0x4eb2d
leaq 0xd0254(%rip), %rsi     # 0x11ed59
xorl %r15d, %r15d
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9df7
movb $0x1, %bpl
jmp 0x4eb8d
cmpl $0x0, 0x7c(%rbx)
leaq 0xf60ae(%rip), %rdx     # 0x144bd0
leaq 0xc2473(%rip), %rcx     # 0x110f9c
cmoveq %rdx, %rcx
leaq 0xd02f0(%rip), %rsi     # 0x11ee24
xorl %ebp, %ebp
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movl $0x69, %esi
callq 0xef37e
movq %rax, 0x70(%rbx)
leaq 0xd02dc(%rip), %rsi     # 0x11ee37
movq %r14, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r14), %rdi
movl $0x71, %esi
callq 0xef37e
movq %rax, 0x38(%rbx)
leaq 0xd02c2(%rip), %rsi     # 0x11ee42
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movb $0x1, %r12b
testb %r12b, %r12b
jne 0x4eba6
leaq 0xd02b8(%rip), %rsi     # 0x11ee54
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9df7
movq %r15, %rdi
callq 0xf6bb0
movl 0x28(%rsp), %esi
movq %r14, %rdi
callq 0xe9595
testb %bpl, %bpl
jne 0x4ed54
movq 0x70(%rbx), %rdx
testq %rdx, %rdx
jle 0x4ec9b
leaq 0xd029d(%rip), %rsi     # 0x11ee74
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq %r14, %rdi
callq 0xf6870
movq %rax, %r15
movq 0x18(%r14), %rdi
movq 0x70(%rbx), %rsi
movl $0x40, %edx
movq %rax, %rcx
movl $0x1, %r8d
movl $0x1, %r9d
callq 0xf01b0
movq %r15, %rdi
callq 0xf7557
leaq 0xd025c(%rip), %rsi     # 0x11ee85
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
cmpb $0x0, 0xd0(%r14)
je 0x4ec86
cmpq $0x0, 0x90(%rbx)
jne 0x4ec59
movq %r14, %rdi
callq 0xea9a9
movq %rax, 0x90(%rbx)
movl 0x6c(%rbx), %ecx
leaq 0xce65e(%rip), %rdx     # 0x11d2c1
movq %r15, %rdi
movl $0x5, %esi
xorl %eax, %eax
callq 0xf6ab0
movq 0x90(%rbx), %rsi
movq %r14, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xea9e4
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq %r15, %rdi
callq 0xf6bb0
cmpl $0x0, 0x7c(%rbx)
je 0x4ecb7
leaq 0xd0033(%rip), %rsi     # 0x11ecdb
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0x4ed54
movl 0x4(%rbx), %edx
testb $0x4, %dl
jne 0x4ed43
leaq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0xe958c
cmpl $0x0, 0x7c(%rbx)
jne 0x4ed54
movl $0x200, %ebp            # imm = 0x200
xorl %eax, %eax
cmpl %ebp, (%rbx)
setae %al
movl %eax, 0x80(%rbx)
movzbl 0x41(%rbx), %ecx
movzbl 0x40(%rbx), %edx
subq %rdx, %rcx
leaq (%rax,%rcx), %rdx
incq %rdx
movq %rdx, 0x48(%rbx)
leaq 0xd0190(%rip), %rsi     # 0x11ee95
movq %r14, 0x8(%rsp)
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movl (%rbx), %eax
cmpl %ebp, %eax
je 0x4ed8e
cmpl $0x100, %eax            # imm = 0x100
jne 0x4eda0
movq $0x75, 0x18(%rbx)
cmpq $0x0, 0x58(%rbx)
movq 0x8(%rsp), %r14
je 0x4f08d
movq $0x0, 0x20(%rbx)
jmp 0x4edb5
leaq 0xcffb7(%rip), %rsi     # 0x11ed01
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9df7
testq %rbx, %rbx
je 0x4ed7f
movq 0x90(%rbx), %rsi
movq %r14, %rdi
callq 0xea9b3
movq 0x50(%rbx), %rsi
movq %r14, %rdi
callq 0xe9752
movq %r14, %rdi
movq %rbx, %rsi
callq 0xe9752
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x76, 0x18(%rbx)
movq $0x4, 0x20(%rbx)
jmp 0x4edb0
movq $0x94, 0x18(%rbx)
movq $0x6, 0x20(%rbx)
movq 0x8(%rsp), %r14
movq 0x20(%rbx), %r8
movq 0x48(%rbx), %rcx
imulq %r8, %rcx
movq %rcx, 0x28(%rbx)
movl 0x18(%rbx), %edx
leaq 0xd00df(%rip), %rsi     # 0x11eeae
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x48(%rbx), %rsi
movl $0x18, %edx
movq %r14, %rdi
callq 0xea259
movq %rax, 0x50(%rbx)
cmpq $0x0, 0x28(%rbx)
je 0x4ee97
cmpl $0x100, (%rbx)          # imm = 0x100
movq 0x48(%rbx), %rax
movq %rbx, 0x10(%rsp)
jne 0x4eec2
testq %rax, %rax
jle 0x4ef34
movl $0x8, %r15d
xorl %r13d, %r13d
movq 0x8(%rsp), %r14
movq 0x18(%rbx), %r12
movq 0x20(%rbx), %rbp
imulq %r13, %rbp
leaq (%r12,%rbp), %rsi
movq 0x18(%r14), %rdi
callq 0xef1ca
movq 0x10(%rsp), %rcx
movq 0x50(%rcx), %rcx
movq %rax, (%rcx,%r15)
movq 0x18(%r14), %rdi
movq 0x10(%rsp), %rbx
leaq (%r12,%rbp), %rsi
addq $0x2, %rsi
callq 0xef1ca
movq 0x50(%rbx), %rcx
subl (%rcx,%r15), %eax
testl %eax, %eax
movl $0x0, %edx
cmovlel %edx, %eax
movl %eax, -0x8(%rcx,%r15)
incq %r13
addq $0x18, %r15
cmpq 0x48(%rbx), %r13
jl 0x4ee32
jmp 0x4ef34
movq 0x48(%rbx), %rcx
testq %rcx, %rcx
jle 0x4ef34
movq 0x58(%rbx), %rdx
addq $0x8, %rax
xorl %esi, %esi
movl %edx, -0x8(%rax)
movq %rsi, (%rax)
addq $0x18, %rax
addq %rdx, %rsi
decq %rcx
jne 0x4eeae
jmp 0x4ef34
testq %rax, %rax
jle 0x4ef34
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x8(%rsp), %r14
movq 0x18(%rbx), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rbx), %r13
imulq %r12, %r13
leaq (%rax,%r13), %rsi
movq 0x18(%r14), %rdi
callq 0xef1ca
movq 0x50(%rbx), %rcx
movl %eax, (%rcx,%r15)
cmpq $0x6, 0x20(%rbx)
movq 0x18(%r14), %rdi
movq 0x20(%rsp), %rax
leaq 0x2(%r13,%rax), %rsi
jne 0x4ef14
callq 0xef37e
jmp 0x4ef19
callq 0xef1ca
movq 0x10(%rsp), %rbx
movq 0x50(%rbx), %rcx
movq %rax, 0x10(%rcx,%r15)
incq %r12
addq $0x18, %r15
cmpq 0x48(%rbx), %r12
jl 0x4eed2
movl $0x0, 0x68(%rbx)
movq 0x48(%rbx), %rax
testq %rax, %rax
movq 0x8(%rsp), %r14
jle 0x4efe9
leaq 0xcff89(%rip), %r12     # 0x11eedd
leaq 0xcffae(%rip), %r13     # 0x11ef09
xorl %ebp, %ebp
xorl %r15d, %r15d
cmpl $0x0, 0x80(%rbx)
setne %cl
decq %rax
cmpq %rax, %r15
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x4ef82
movq 0x50(%rbx), %rax
movb $0x1, 0x4(%rax,%rbp)
movq 0x50(%rbx), %rax
movl $0x100, %ecx            # imm = 0x100
cmpb $0x0, 0x4(%rax,%rbp)
jne 0x4ef99
movzbl 0x40(%rbx), %ecx
addl %r15d, %ecx
leaq (%rax,%rbp), %rdx
xorl %edi, %edi
cmpl $0x100, (%rbx)          # imm = 0x100
setne %dil
movl (%rax,%rbp), %r9d
movq %r13, %rsi
cmoveq %r12, %rsi
movl 0x8(%rdx,%rdi,8), %r8d
movq %r14, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0xe93cf
movq 0x50(%rbx), %rax
movl (%rax,%rbp), %eax
cmpl 0x68(%rbx), %eax
jle 0x4efd5
movl %eax, 0x68(%rbx)
incq %r15
movq 0x48(%rbx), %rax
addq $0x18, %rbp
cmpq %rax, %r15
jl 0x4ef60
movl 0x68(%rbx), %edx
leaq 0xcff42(%rip), %rsi     # 0x11ef35
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movl 0x68(%rbx), %eax
testl %eax, %eax
jle 0x4f064
movl %eax, 0x8(%rbx)
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movl 0x28(%rsp), %esi
movq %r14, %rdi
callq 0xe9595
leaq 0xcff25(%rip), %rsi     # 0x11ef4c
movq %r14, %rdi
xorl %eax, %eax
callq 0xe9226
movq %r14, %rdi
movl $0x1, %esi
callq 0xe9585
movq %r14, %rdi
callq 0xf57ec
movb $0x1, 0x10(%rax)
movl 0x88(%rbx), %ebp
testl %ebp, %ebp
movq %rax, 0x18(%rsp)
je 0x4f075
movq %rax, %r15
movw $0x101, 0x11(%rax)      # imm = 0x101
jmp 0x4f0ab
movl 0x28(%rsp), %esi
movq %r14, %rdi
callq 0xe9595
jmp 0x4ed54
movl 0x84(%rbx), %ebp
testl %ebp, %ebp
je 0x4f09a
movq 0x18(%rsp), %r15
movw $0x1, 0x11(%r15)
jmp 0x4f0ab
movq $0x2, 0x20(%rbx)
jmp 0x4edb5
movq 0x18(%rsp), %r15
movw $0x0, 0x11(%r15)
movl $0x5, %ebp
movl 0x8(%rbx), %eax
movl %eax, (%r15)
movl 0x10(%rbx), %eax
movl %eax, 0x4(%r15)
movq 0x48(%rbx), %rsi
movq %rsi, 0x18(%r15)
movl $0x28, %edx
movq %r14, %rdi
callq 0xea259
movq %rax, 0x20(%r15)
leaq 0x28(%rsp), %rdi
movl %ebp, %esi
callq 0xec207
leaq 0x48(%rsp), %rdi
movl $0x17, %esi
callq 0xec207
cmpq $0x0, 0x48(%rbx)
jle 0x4f2fc
xorl %edx, %edx
movq 0x50(%rbx), %r15
leaq (%rdx,%rdx,2), %r13
leaq (%rdx,%rdx,4), %r12
shlq $0x3, %r12
movq 0x18(%rsp), %rcx
addq 0x20(%rcx), %r12
cmpb $0x0, 0x4(%r15,%r13,8)
movq %rdx, 0x20(%rsp)
je 0x4f12e
movl $0x100, (%r12)          # imm = 0x100
movl $0x2002, %eax           # imm = 0x2002
jmp 0x4f158
movzbl 0x40(%rbx), %eax
leal (%rdx,%rax), %edi
movl %edi, (%r12)
cmpb $0x0, 0x11(%rcx)
je 0x4f15d
cmpl $0x1f, %edi
jg 0x4f14e
cmpb $0x0, 0x78(%rbx)
je 0x4f2ef
leaq 0x28(%rsp), %rsi
callq 0xec6fd
movl %eax, 0x4(%r12)
leaq (%r15,%r13,8), %r13
movslq (%r13), %rcx
movl %ecx, 0x8(%r12)
movq 0x10(%rbx), %rsi
movl %esi, 0xc(%r12)
leaq 0x7(%rcx), %rax
movq %rcx, 0x10(%rsp)
addq $0xe, %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x3, %rcx
imulq %rcx, %rsi
cmpl $0x100, (%rbx)          # imm = 0x100
movq %rcx, 0x18(%r12)
jne 0x4f233
cmpq $0x8000, %rsi           # imm = 0x8000
jg 0x4f2db
movq %r14, %rdi
callq 0xe969b
movq %rax, 0x20(%r12)
cmpq $0x0, 0x10(%rbx)
jle 0x4f2db
xorl %r15d, %r15d
cmpl $0x0, (%r13)
jle 0x4f225
xorl %ebp, %ebp
movq 0x18(%r14), %rdi
movq 0x30(%rbx), %rdx
imulq %r15, %rdx
addq 0x38(%rbx), %rdx
movq 0x8(%r13), %rcx
addq %rbp, %rcx
movl $0x1, %esi
callq 0xf2d3a
testb %al, %al
je 0x4f219
movl %ebp, %ecx
notb %cl
andb $0x7, %cl
movb $0x1, %al
shlb %cl, %al
movq 0x18(%r12), %rcx
imulq %r15, %rcx
movq %rbp, %rdx
addq 0x20(%r12), %rcx
shrq $0x3, %rdx
orb %al, (%rdx,%rcx)
incq %rbp
movslq (%r13), %rax
cmpq %rax, %rbp
jl 0x4f1d1
incq %r15
cmpq 0x10(%rbx), %r15
jl 0x4f1c8
jmp 0x4f2db
cmpq $0x8000, %rsi           # imm = 0x8000
jg 0x4f2db
movq %r14, %rdi
movq %rcx, %r15
callq 0xe969b
movq %rax, 0x20(%r12)
cmpq $0x0, 0x10(%rbx)
jle 0x4f2db
movq %r15, %rcx
cmpq $0x2, %r15
movl $0x1, %eax
cmovlq %rax, %rcx
xorl %r8d, %r8d
cmpl $0x0, 0x10(%rsp)
movq %rbx, %rsi
movq %r13, %r15
movq %r12, %rbp
jle 0x4f2c9
xorl %ebx, %ebx
movq 0x18(%r14), %rdi
movq 0x10(%rsi), %rax
imulq %rbx, %rax
movq %rsi, %r14
movq 0x10(%r15), %rsi
addq %r8, %rsi
addq %rax, %rsi
movq %rcx, %r12
movq %r8, %r13
callq 0xef0d5
movq %r13, %r8
movq %r14, %rsi
movq 0x18(%rbp), %rcx
imulq %r13, %rcx
addq 0x20(%rbp), %rcx
movb %al, (%rbx,%rcx)
movq 0x8(%rsp), %r14
movq %r12, %rcx
incq %rbx
cmpq %rbx, %r12
jne 0x4f280
incq %r8
cmpq 0x10(%rsi), %r8
movq %rsi, %rbx
movq %rbp, %r12
movq %r15, %r13
jl 0x4f26e
movq 0x20(%rsp), %rdx
incq %rdx
cmpq 0x48(%rbx), %rdx
jl 0x4f0f9
jmp 0x4f2fc
addl $0x5f, %edi
leaq 0x48(%rsp), %rsi
jmp 0x4f153
movq 0x90(%rbx), %rdx
movq %r14, %rdi
movq 0x18(%rsp), %r13
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xf5c29
cmpq $0x0, 0x20(%r13)
je 0x4f35b
cmpq $0x0, 0x18(%r13)
movq %r14, %r12
jle 0x4f34c
movl $0x20, %r14d
xorl %r15d, %r15d
movq 0x20(%r13), %rax
movq (%rax,%r14), %rsi
movq %r12, %rdi
callq 0xe9752
incq %r15
addq $0x28, %r14
cmpq 0x18(%r13), %r15
jl 0x4f32f
movq 0x20(%r13), %rsi
movq %r12, %rdi
callq 0xe9752
movq %r12, %r14
movq %r14, %rdi
movq %r13, %rsi
callq 0xf5801
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
jmp 0x4ed54