// File: /workspace/github_c_makefile_star2_O3/jsummers[P]deark/src/deark-char.c
// Function: de_char_output_to_file
void de_char_output_to_file(deark *c, struct de_char_context *charctx)
{
	i64 i;
	const char *s;
	int n;
	struct charextractx *ectx = NULL;

	ectx = de_malloc(c, sizeof(struct charextractx));

	de_char_decide_output_format(c, charctx);

	if(charctx->prefer_9col_mode) {
		ectx->vga_9col_mode = 1;
	}

	s = de_get_ext_option(c, "char:charwidth");
	if(s) {
		n = de_atoi(s);
		if(n>=9) {
			ectx->vga_9col_mode = 1;
		}
		else if(n>=1) {
			ectx->vga_9col_mode = 0;
		}
	}

	ectx->scrstats = de_mallocarray(c, charctx->nscreens, sizeof(struct screen_stats));

	for(i=0; i<charctx->nscreens; i++) {
		do_prescan_screen(c, charctx, ectx, i);
	}

	switch(charctx->outfmt) {
	case 1:
		de_char_output_to_image_files(c, charctx, ectx);
		break;
	default:
		de_char_output_to_html_file(c, charctx, ectx);
	}

	if(ectx) {
		de_free(c, ectx->scrstats);
	}
	de_free(c, ectx);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x50, %esi
callq 0xe8b2b
movq %rax, %rbp
movq %rbx, (%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf3fdf
movq %r14, 0x10(%rsp)
cmpb $0x0, 0x1(%r14)
je 0xf408e
movb $0x1, (%rbp)
leaq 0x55637(%rip), %rsi     # 0x1496cc
movq (%rsp), %rdi
callq 0xe9b74
testq %rax, %rax
je 0xf40bb
movq %rax, %rdi
callq 0xe9c2a
movb $0x1, %cl
cmpl $0x8, %eax
jg 0xf40b8
testl %eax, %eax
jle 0xf40bb
xorl %ecx, %ecx
movb %cl, (%rbp)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rsi
movl $0x88, %edx
movq (%rsp), %rdi
callq 0xe96f7
movq 0x10(%rsp), %rsi
movq %rax, 0x48(%rbp)
cmpq $0x0, 0x10(%rsi)
jle 0xf423a
xorl %ecx, %ecx
xorl %edx, %edx
movq 0x18(%rsi), %rsi
movq (%rsi,%rdx,8), %rsi
movq 0x8(%rsi), %r9
testq %r9, %r9
jle 0xf41c9
movq (%rsi), %r11
movq %rdx, %rdi
shlq $0x7, %rdi
leaq (%rdi,%rdx,8), %rdi
xorl %r8d, %r8d
testq %r11, %r11
jle 0xf41bd
movl $0x12, %r9d
xorl %r10d, %r10d
movq 0x10(%rsi), %r11
testq %r11, %r11
je 0xf41a6
movq (%r11,%r8,8), %r11
testq %r11, %r11
je 0xf41a6
movl -0xa(%r11,%r9), %ebx
cmpq $0xf, %rbx
ja 0xf4157
movb $0x1, 0x6(%rbp,%rbx)
movq 0x48(%rbp), %rax
leaq (%rax,%rdi), %rbx
movl -0xa(%r11,%r9), %r14d
incl (%rbx,%r14,4)
jmp 0xf415b
movb $0x1, 0x5(%rbp)
movl -0x6(%r11,%r9), %ebx
cmpq $0xf, %rbx
ja 0xf417f
movb $0x1, 0x16(%rbp,%rbx)
movq 0x48(%rbp), %rax
movl -0x6(%r11,%r9), %ebx
leaq (%rax,%rdi), %r14
incl 0x40(%r14,%rbx,4)
jmp 0xf4183
movb $0x1, 0x5(%rbp)
cmpb $0x0, -0x2(%r11,%r9)
je 0xf418f
movb $0x1, 0x2(%rbp)
cmpb $0x0, -0x1(%r11,%r9)
je 0xf419b
movb $0x1, 0x3(%rbp)
cmpb $0x0, (%r11,%r9)
je 0xf41a6
movb $0x1, 0x4(%rbp)
incq %r10
movq (%rsi), %r11
addq $0x14, %r9
cmpq %r10, %r11
jg 0xf4122
movq 0x8(%rsi), %r9
incq %r8
cmpq %r8, %r9
jg 0xf4110
movq %rdx, %rsi
shlq $0x7, %rsi
leaq (%rsi,%rdx,8), %rsi
movl (%rax,%rsi), %edi
movl 0x40(%rax,%rsi), %r9d
movq $0x0, 0x80(%rax)
leaq (%rax,%rcx), %rsi
movl $0x1, %r8d
movl (%rsi,%r8,4), %r10d
cmpl %edi, %r10d
jbe 0xf4204
movl %r8d, 0x80(%rax)
movl %r10d, %edi
movl 0x40(%rsi,%r8,4), %r10d
cmpl %r9d, %r10d
jbe 0xf4218
movl %r8d, 0x84(%rax)
movl %r10d, %r9d
incq %r8
cmpq $0x10, %r8
jne 0xf41f1
incq %rdx
addq $0x88, %rcx
movq 0x10(%rsp), %rsi
cmpq 0x10(%rsi), %rdx
jl 0xf40ea
cmpl $0x1, 0x8(%rsi)
movq %rbp, 0x28(%rsp)
jne 0xf4278
cmpb $0x0, 0x4(%rbp)
je 0xf4262
leaq 0x55489(%rip), %rsi     # 0x1496db
movq (%rsp), %rdi
xorl %eax, %eax
callq 0xe8faa
movq 0x10(%rsp), %rsi
movq 0x60(%rsi), %rax
testq %rax, %rax
je 0xf4a10
movb $0x1, 0x1(%rbp)
jmp 0xf4b2a
cmpq $0x0, 0x60(%rsi)
je 0xf4297
cmpb $0x0, 0x4(%rsi)
jne 0xf4297
leaq 0x5549e(%rip), %rsi     # 0x14972a
movq (%rsp), %rdi
xorl %eax, %eax
callq 0xe8faa
cmpb $0x0, 0x5(%rbp)
movq (%rsp), %rdi
je 0xf42b3
leaq 0x554c9(%rip), %rsi     # 0x149771
xorl %eax, %eax
callq 0xe9393
movq (%rsp), %rdi
leaq 0x4c1f8(%rip), %rsi     # 0x1404b2
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xefda1
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0xf0855
movb $0x1, %bl
movq 0x10(%rsp), %rax
cmpq $0x0, 0x68(%rax)
jne 0xf42e9
cmpq $0x0, 0x70(%rax)
je 0xf4e31
movq (%rsp), %r14
cmpb $0x0, 0xcc(%r14)
je 0xf4314
cmpb $0x0, 0xce(%r14)
jne 0xf4314
movq 0x8(%rsp), %rdi
movl $0xfeff, %esi           # imm = 0xFEFF
callq 0xec1c4
movq (%rsp), %r14
leaq 0x4d3fb(%rip), %rsi     # 0x141716
movq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0xf10ed
leaq 0x4d3f8(%rip), %rsi     # 0x141727
movq %r12, %rdi
callq 0xf10ed
leaq 0x4d3f1(%rip), %rsi     # 0x14172f
movq %r12, %rdi
callq 0xf10ed
cmpb $0x0, 0xce(%r14)
leaq 0x2ffa4(%rip), %rax     # 0x1242f9
leaq 0x4d3f0(%rip), %rdx     # 0x14174c
cmoveq %rax, %rdx
leaq 0x4d3d0(%rip), %rsi     # 0x141737
movq %r12, %rdi
xorl %eax, %eax
callq 0xf08da
leaq 0x55465(%rip), %rsi     # 0x1497dd
movq %r12, %rdi
callq 0xf10ed
movq 0x10(%rsp), %r15
movq 0x68(%r15), %rsi
movq %r14, %rdi
movq %r12, %rdx
callq 0xf4ed9
leaq 0x4d3c1(%rip), %rsi     # 0x14175c
movq %r12, %rdi
callq 0xf10ed
leaq 0x4d3bc(%rip), %rsi     # 0x141766
movq %r12, %rdi
callq 0xf10ed
leaq 0x5542c(%rip), %rsi     # 0x1497e5
movq %r12, %rdi
callq 0xf10ed
leaq 0x55518(%rip), %rsi     # 0x1498e0
movq %r12, %rdi
callq 0xf10ed
testb %bl, %bl
jne 0xf43de
cmpq $0x0, 0x90(%r15)
je 0xf4447
leaq 0x5552b(%rip), %rsi     # 0x149910
movq %r12, %rdi
callq 0xf10ed
leaq 0x55566(%rip), %rsi     # 0x14995a
movq %r12, %rdi
callq 0xf10ed
cmpq $0x0, 0x90(%r15)
je 0xf4424
leaq 0x55583(%rip), %rsi     # 0x149990
movq %r12, %rdi
callq 0xf10ed
leaq 0x555ce(%rip), %rsi     # 0x1499ea
movq %r12, %rdi
callq 0xf10ed
leaq 0x555f7(%rip), %rsi     # 0x149a22
movq %r12, %rdi
callq 0xf10ed
leaq 0x55612(%rip), %rsi     # 0x149a4c
movq %r12, %rdi
callq 0xf10ed
movq 0x10(%rsp), %r15
addq $0x20, %r15
leaq 0x6(%rbp), %r8
leaq 0x5560c(%rip), %rdx     # 0x149a62
leaq 0x21b69(%rip), %rcx     # 0x115fc6
movq %r12, %rdi
movq %r15, %rsi
callq 0xf4fa0
leaq 0x16(%rbp), %r8
leaq 0x555f2(%rip), %rdx     # 0x149a65
leaq 0x555ee(%rip), %rcx     # 0x149a68
movq %r12, %rdi
movq %r15, %rsi
callq 0xf4fa0
cmpb $0x0, 0x2(%rbp)
je 0xf449a
leaq 0x555e7(%rip), %rsi     # 0x149a79
movq %r12, %rdi
callq 0xf10ed
cmpb $0x0, 0x3(%rbp)
je 0xf44b1
leaq 0x555f6(%rip), %rsi     # 0x149a9d
movq 0x8(%rsp), %rdi
callq 0xf10ed
cmpb $0x0, 0x4(%rbp)
movq 0x8(%rsp), %r14
je 0xf44cb
leaq 0x55601(%rip), %rsi     # 0x149ac4
movq %r14, %rdi
callq 0xf10ed
leaq 0x4d3e0(%rip), %rsi     # 0x1418b2
movq %r14, %rdi
callq 0xf10ed
leaq 0x4d3db(%rip), %rsi     # 0x1418bc
movq %r14, %rdi
callq 0xf10ed
leaq 0x4d3d5(%rip), %rsi     # 0x1418c5
movq %r14, %rdi
callq 0xf10ed
testb %bl, %bl
je 0xf45d4
leaq 0x5568d(%rip), %rsi     # 0x149b94
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0xf10ed
movq 0x10(%rsp), %r14
movq 0x68(%r14), %rcx
leaq 0x35b3d(%rip), %rdx     # 0x12a061
movq (%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf501e
movq 0x78(%r14), %rcx
leaq 0x5566d(%rip), %rdx     # 0x149bab
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf501e
movq 0x70(%r14), %rcx
leaq 0x488d0(%rip), %rdx     # 0x13ce24
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf501e
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r15
cmpb $0x0, 0x80(%r14)
je 0xf45a2
leaq 0x80(%r14), %rdi
leaq 0x80(%rsp), %r13
movl $0x40, %edx
movq %r13, %rsi
xorl %ecx, %ecx
callq 0xeaf46
movq %r15, %rdi
movq %r13, %rsi
movl $0x2, %edx
callq 0xf65e3
leaq 0x35a1b(%rip), %rdx     # 0x129fc4
movq (%rsp), %rdi
movq 0x8(%rsp), %rbx
movq %rbx, %rsi
movq %r15, %rcx
callq 0xf501e
movq %r15, %rdi
callq 0xf6753
leaq 0x556b1(%rip), %rsi     # 0x149c7d
movq %rbx, %rdi
callq 0xf10ed
movq 0x10(%rsp), %rbx
movq 0x90(%rbx), %rdi
callq 0xf678d
testl %eax, %eax
jne 0xf468d
leaq 0x555a0(%rip), %rsi     # 0x149b94
movq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0xf10ed
leaq 0x55608(%rip), %rsi     # 0x149c10
movq %r14, %rdi
callq 0xf10ed
leaq 0x55609(%rip), %rsi     # 0x149c20
movq %r14, %rdi
xorl %eax, %eax
callq 0xf08da
leaq 0x555e1(%rip), %r15     # 0x149c09
movq %r14, %rdi
movq %r15, %rsi
callq 0xf10ed
leaq 0x55606(%rip), %rsi     # 0x149c40
movq %r14, %rdi
callq 0xf10ed
leaq 0x555b0(%rip), %rsi     # 0x149bf9
movq %r14, %rdi
callq 0xf10ed
movq 0x90(%rbx), %rsi
movq (%rsp), %rdi
movq %r14, %rdx
callq 0xf4ed9
leaq 0x555cd(%rip), %rsi     # 0x149c38
movq %r14, %rdi
callq 0xf10ed
movq %r14, %rdi
movq %r15, %rsi
callq 0xf10ed
leaq 0x555f8(%rip), %rsi     # 0x149c7d
movq %r14, %rdi
callq 0xf10ed
cmpq $0x0, 0x10(%rbx)
movq 0x8(%rsp), %r14
jle 0xf49e7
leaq 0x80(%rsp), %r15
xorl %edx, %edx
movq 0x18(%rbx), %rax
xorl %ecx, %ecx
movl %ecx, 0x70(%rsp)
movq %rcx, 0x40(%rsp)
movl %ecx, 0x48(%rsp)
movq (%rax,%rdx,8), %r13
leaq 0x88(%rsp), %rax
movl %ecx, 0x8(%rax)
movq %rcx, (%rax)
movl $0x20, 0x84(%rsp)
movq %r14, %rdi
leaq 0x5556f(%rip), %rsi     # 0x149c50
movq %rdx, %rbx
callq 0xf10ed
movq %r14, %rdi
leaq 0x55577(%rip), %rsi     # 0x149c6a
callq 0xf10ed
movq 0x48(%rbp), %rax
movq %rbx, %rcx
shlq $0x7, %rcx
movq %rbx, 0x78(%rsp)
leaq (%rcx,%rbx,8), %rcx
movq %rcx, 0x60(%rsp)
movq 0x80(%rax,%rcx), %rax
movq %rax, 0x68(%rsp)
movq %r14, %rdi
leaq 0x68(%rsp), %rsi
xorl %edx, %edx
callq 0xf50b0
movq 0x8(%r13), %rax
testq %rax, %rax
jle 0xf4995
movq (%r13), %rcx
movb $0x1, %bpl
movq $0x0, 0x58(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x50(%rsp)
movq $0x0, 0x30(%rsp)
movl $0x0, 0x20(%rsp)
movl $0x0, 0x38(%rsp)
xorl %edx, %edx
testq %rcx, %rcx
jle 0xf495c
testl %edx, %edx
sete %al
xorl %r14d, %r14d
xorl %r12d, %r12d
movq %r13, %rbx
movq 0x10(%r13), %rcx
movq %r15, %r13
testq %rcx, %rcx
je 0xf47ae
movq 0x58(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
leaq (%rcx,%r14), %r13
testq %rcx, %rcx
cmoveq %r15, %r13
movzbl 0x13(%r13), %edx
movl $0x20, %ecx
testb $0x8, %dl
jne 0xf47d7
movl 0x4(%r13), %r15d
andl $0x20, %edx
shrl $0x5, %edx
testl %r15d, %r15d
sete %sil
orb %dl, %sil
je 0xf4912
cmpb $0x0, 0x10(%r13)
je 0xf47e2
xorl %edx, %edx
jmp 0xf47ea
cmpb $0x0, 0x11(%r13)
sete %dl
movl %ecx, %r15d
testb $0x1, %al
jne 0xf485d
movl 0x38(%rsp), %eax
cmpl %eax, 0x8(%r13)
sete %al
orb %dl, %al
testb $0x1, %al
je 0xf4845
movl 0x20(%rsp), %eax
cmpl %eax, 0xc(%r13)
jne 0xf4845
movq 0x30(%rsp), %rax
cmpb %al, 0x10(%r13)
jne 0xf4845
movq 0x50(%rsp), %rax
cmpb %al, 0x11(%r13)
jne 0xf4845
movq 0x18(%rsp), %rax
cmpb %al, 0x12(%r13)
jne 0xf4845
testb $0x1, %bpl
je 0xf493d
movq (%rsp), %rdi
movq 0x8(%rsp), %rbp
jmp 0xf48e2
cmpb $0x0, 0x4b(%rsp)
jne 0xf485d
movq 0x8(%rsp), %rdi
leaq 0x553e0(%rip), %rsi     # 0x149c38
callq 0xf10ed
testb $0x1, %bpl
movq 0x8(%rsp), %rbp
jne 0xf4877
movq %rbp, %rdi
leaq 0x1b915(%rip), %rsi     # 0x110187
callq 0xf10ed
movq 0x8(%r13), %rax
movq %rax, 0x40(%rsp)
movb 0x10(%r13), %al
movb %al, 0x48(%rsp)
movb 0x11(%r13), %al
movb %al, 0x49(%rsp)
movb 0x12(%r13), %al
movb %al, 0x4a(%rsp)
movq 0x28(%rsp), %rax
movq 0x48(%rax), %rdx
addq 0x60(%rsp), %rdx
movq %rbp, %rdi
leaq 0x40(%rsp), %rsi
callq 0xf50b0
movl 0x8(%r13), %eax
movl %eax, 0x38(%rsp)
movl 0xc(%r13), %eax
movl %eax, 0x20(%rsp)
movb 0x10(%r13), %al
movq %rax, 0x30(%rsp)
movb 0x11(%r13), %al
movq %rax, 0x50(%rsp)
movb 0x12(%r13), %al
movq %rax, 0x18(%rsp)
movq (%rsp), %rdi
movq %rbx, %r13
movq %rbp, %rsi
movl %r15d, %edx
callq 0xeca70
incq %r12
movq (%rbx), %rcx
addq $0x14, %r14
movb $0x1, %bpl
xorl %eax, %eax
cmpq %r12, %rcx
leaq 0x80(%rsp), %r15
jg 0xf478b
jmp 0xf4953
cmpl $0x20, %r15d
jge 0xf4920
movl $0x3f, %r15d
jmp 0xf4936
movl %r15d, %ecx
andl $0x7fffff7f, %ecx       # imm = 0x7FFFFF7F
cmpl $0x20, %ecx
jne 0xf4936
movl %r15d, %ecx
jmp 0xf47d7
xorl %edx, %edx
jmp 0xf47ed
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
leaq 0x1b83b(%rip), %rsi     # 0x110187
callq 0xf10ed
jmp 0xf48de
movq 0x8(%r13), %rax
movl $0x1, %edx
movq 0x58(%rsp), %rdi
incq %rdi
xorl %ebp, %ebp
movq %rdi, 0x58(%rsp)
cmpq %rdi, %rax
jg 0xf4777
testl %edx, %edx
movq 0x28(%rsp), %rbp
je 0xf4995
cmpb $0x0, 0x4b(%rsp)
jne 0xf4995
movq 0x8(%rsp), %rdi
leaq 0x552a8(%rip), %rsi     # 0x149c38
callq 0xf10ed
cmpb $0x0, 0x73(%rsp)
jne 0xf49ad
movq 0x8(%rsp), %rdi
leaq 0x55290(%rip), %rsi     # 0x149c38
callq 0xf10ed
movq 0x8(%rsp), %r14
movq %r14, %rdi
leaq 0x552b4(%rip), %rsi     # 0x149c70
callq 0xf10ed
movq %r14, %rdi
leaq 0x552ac(%rip), %rsi     # 0x149c77
callq 0xf10ed
movq 0x78(%rsp), %rdx
incq %rdx
movq 0x10(%rsp), %rbx
cmpq 0x10(%rbx), %rdx
jl 0xf46a7
leaq 0x4d23e(%rip), %rsi     # 0x141c2c
movq %r14, %rdi
callq 0xf10ed
movq %r14, %rdi
callq 0xf052b
testq %rbp, %rbp
movq (%rsp), %rbx
jne 0xf4e08
jmp 0xf4e14
movb $0x0, 0x1(%rbp)
movq (%rsp), %rbx
movq %rbx, %rdi
callq 0xf5358
movq %rax, %r15
movq %rax, 0x28(%rbp)
callq 0xec640
movq %rax, %r12
movq $0x10d, 0x18(%r15)      # imm = 0x10D
movabsq $0x1000000008, %rax     # imm = 0x1000000008
movq %rax, (%r15)
movw $0x101, 0x10(%r15)      # imm = 0x101
movl $0x10d, %esi            # imm = 0x10D
movl $0x28, %edx
movq %rbx, %rdi
callq 0xe96f7
movq %rax, 0x20(%r15)
movq 0x18(%r15), %rcx
testq %rcx, %rcx
jle 0xf4a87
movsd (%r15), %xmm0
addq $0x18, %rax
movlps %xmm0, -0x10(%rax)
movq $0x1, (%rax)
addq $0x28, %rax
decq %rcx
jne 0xf4a73
leaq 0x80(%rsp), %rdi
movl $0xd, %esi
callq 0xebbf7
cmpq $0x0, 0x18(%r15)
jle 0xf4ad9
xorl %ebx, %ebx
leaq 0x80(%rsp), %r13
xorl %ebp, %ebp
movq 0x20(%r15), %r14
movl %ebp, (%r14,%rbx)
movl %ebp, %edi
movq %r13, %rsi
callq 0xec0ad
movl %eax, 0x4(%r14,%rbx)
movq %r12, 0x20(%r14,%rbx)
incq %rbp
addq $0x10, %r12
addq $0x28, %rbx
cmpq 0x18(%r15), %rbp
jl 0xf4aac
movl $0x2800, %eax           # imm = 0x2800
addq 0x20(%r15), %rax
leaq 0x55217(%rip), %rcx     # 0x149d00
xorl %edx, %edx
leaq 0x551ce(%rip), %rsi     # 0x149cc0
movl $0xfffffff, (%rax)      # imm = 0xFFFFFFF
movl (%rdx,%rsi), %edi
movl %edi, 0x4(%rax)
movq %rcx, 0x20(%rax)
addq $0x4, %rdx
addq $0x10, %rcx
addq $0x28, %rax
cmpq $0x34, %rdx
jne 0xf4af2
movq $0x100, 0x8(%r15)       # imm = 0x100
movq 0x28(%rsp), %rbp
movq 0x28(%rbp), %rax
movq 0x10(%rsp), %rsi
movq %rax, 0x30(%rbp)
movl $0x9, %ecx
cmpb $0x0, (%rbp)
jne 0xf4b3c
movslq (%rax), %rcx
movq %rcx, 0x38(%rbp)
movslq 0x4(%rax), %rax
movq %rax, 0x40(%rbp)
cmpq $0x0, 0x10(%rsi)
movq (%rsp), %rbx
jle 0xf4de7
leaq 0x80(%rsi), %rax
movq %rax, 0x60(%rsp)
xorl %ecx, %ecx
movq 0x18(%rsi), %rax
movq %rcx, 0x50(%rsp)
movq (%rax,%rcx,8), %rax
movq 0x38(%rbp), %r15
movq 0x40(%rbp), %r12
imulq (%rax), %r15
movq %rax, 0x30(%rsp)
imulq 0x8(%rax), %r12
movq %rbx, %rdi
movq %rsi, %r14
movq %r15, %rsi
movq %r12, %rdx
callq 0xf1db1
testl %eax, %eax
je 0xf4db4
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl $0x3, %ecx
callq 0xf266a
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
callq 0xea504
movq %rax, 0x18(%rsp)
cmpb $0x0, 0x3(%r14)
movq %r14, %rdx
movq 0x30(%rsp), %rbx
jne 0xf4c21
cmpq $0x10, 0x40(%rbp)
jne 0xf4c21
movq 0x38(%rbp), %rax
movsd 0x54ac0(%rip), %xmm0    # 0x1496a8
cmpq $0x8, %rax
je 0xf4bfc
cmpq $0x9, %rax
jne 0xf4c21
movsd 0x54ab4(%rip), %xmm0    # 0x1496b0
movq 0x18(%rsp), %rcx
movl $0x1, 0x78(%rcx)
movsd %xmm0, 0x80(%rcx)
movabsq $0x4079000000000000, %rax # imm = 0x4079000000000000
movq %rax, 0x88(%rcx)
movq 0x60(%rsp), %rax
cmpb $0x0, (%rax)
je 0xf4c37
movups (%rax), %xmm0
movq 0x18(%rsp), %rax
movups %xmm0, 0x68(%rax)
movq 0x8(%rbx), %rcx
testq %rcx, %rcx
movq 0x20(%rsp), %r14
jle 0xf4d9d
movq (%rbx), %rax
xorl %r15d, %r15d
testq %rax, %rax
jle 0xf4d91
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x10(%rbx), %rax
movq (%rax,%r15,8), %r13
testq %r13, %r13
je 0xf4d75
leaq (%r12,%r13), %rax
movzbl 0x13(%r13,%r12), %r11d
xorl %r10d, %r10d
movq 0x28(%rsp), %rbx
cmpb $0x0, 0x1(%rbx)
sete %r10b
movl (%rax,%r10,4), %eax
movq %rax, 0x8(%rsp)
movl 0x8(%r13,%r12), %eax
movl 0xc(%r13,%r12), %r14d
subq $0x8, %rsp
movq 0x8(%rsp), %rdi
movq %rdx, %rsi
movq %rbx, %rdx
movq 0x28(%rsp), %rcx
movq %rbp, %r8
movq %r15, %r9
movq %r11, 0x40(%rsp)
pushq %r11
pushq %r14
movq 0x38(%rsp), %r14
pushq %rax
pushq %r10
pushq 0x30(%rsp)
callq 0xf4e4f
addq $0x30, %rsp
cmpb $0x0, 0x10(%r13,%r12)
je 0xf4d1a
movl 0x8(%r13,%r12), %eax
movl 0xc(%r13,%r12), %r10d
movq 0x38(%rsp), %r11
orl $0x1, %r11d
subq $0x8, %rsp
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
movq %rbp, %r8
movq %r15, %r9
pushq %r11
pushq %r10
pushq %rax
pushq $0x1
pushq $0x5f
callq 0xf4e4f
addq $0x30, %rsp
movq 0x38(%rsp), %rcx
cmpb $0x0, 0x11(%r13,%r12)
movq 0x10(%rsp), %rdx
movq 0x30(%rsp), %rbx
je 0xf4d75
movl 0x8(%r13,%r12), %eax
movl 0xc(%r13,%r12), %r10d
movq %rcx, %r11
orl $0x1, %r11d
subq $0x8, %rsp
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rcx
movq %rbp, %r8
movq %r15, %r9
pushq %r11
pushq %r10
pushq %rax
pushq $0x1
pushq $0x2d
callq 0xf4e4f
movq 0x40(%rsp), %rdx
addq $0x30, %rsp
incq %rbp
movq (%rbx), %rax
addq $0x14, %r12
cmpq %rbp, %rax
jg 0xf4c5d
movq 0x8(%rbx), %rcx
movq 0x28(%rsp), %rbp
incq %r15
cmpq %r15, %rcx
jg 0xf4c4f
movq %r14, %rdi
movq %r14, %rbx
movq 0x18(%rsp), %r14
movq %r14, %rsi
xorl %edx, %edx
callq 0xf22d0
jmp 0xf4db9
xorl %r14d, %r14d
xorl %ebx, %ebx
movq %rbx, %rdi
callq 0xf228d
movq (%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xea50e
movq 0x50(%rsp), %rcx
incq %rcx
movq 0x10(%rsp), %rsi
cmpq 0x10(%rsi), %rcx
jl 0xf4b65
movq 0x28(%rbp), %rax
testq %rax, %rax
je 0xf4e08
movq 0x20(%rax), %rsi
movq %rbx, %rdi
callq 0xe8be2
movq 0x28(%rbp), %rsi
movq %rbx, %rdi
callq 0xf536d
movq 0x48(%rbp), %rsi
movq %rbx, %rdi
callq 0xe8be2
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xe8be2
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x78(%rax)
movq (%rsp), %r14
jne 0xf42ed
cmpb $0x0, 0x80(%rax)
setne %bl
jmp 0xf42ed