// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/storyboard.c
// Function: de_run_storyboard
static void de_run_storyboard(deark *c, de_module_params *mparams)
{
	struct storyboard_ctx *d = NULL;
	u8 b;

	d = de_malloc(c, sizeof(struct storyboard_ctx));
	d->input_encoding = de_get_input_encoding(c, NULL, DE_ENCODING_CP437);

	b = de_getbyte(2);
	if(b=='_') {
		de_declare_fmt(c, "Storyboard picture (old)");
		de_run_storyboard_oldfmt(c, d, mparams);
	}
	else if(b==0xc1) {
		de_declare_fmt(c, "Storyboard picture (new)");
		de_run_storyboard_newfmt(c, d, mparams);
	}
	else {
		d->need_errmsg = 1;
	}

	if(d) {
		if(d->need_errmsg) {
			de_err(c, "Bad or unsupported Storyboard image");
		}
		de_free(c, d);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %r15
movl $0x880, %esi            # imm = 0x880
callq 0xe969b
movq %rax, %rbp
movq %rax, %r12
movq %r15, %rdi
xorl %esi, %esi
movl $0xd, %edx
callq 0xeb7d1
movl %eax, (%rbp)
movq 0x18(%r15), %rdi
movl $0x2, %esi
callq 0xef0d5
cmpb $-0x3f, %al
movq %r15, 0x10(%rsp)
je 0xe6f3c
movzbl %al, %eax
cmpl $0x5f, %eax
jne 0xe6f31
leaq 0x5ea32(%rip), %rsi     # 0x14593e
movq %r15, %rdi
callq 0xeb6d6
leaq 0x8(%rsp), %rsi
movq $0x6, (%rsi)
movq 0x18(%r15), %rdi
callq 0xef14d
testb %al, %al
je 0xe6fc5
movb $0x1, 0x6(%r12)
jmp 0xe7c2e
leaq 0x5ea14(%rip), %rsi     # 0x145957
movq %r15, %rdi
callq 0xeb6d6
movq 0x18(%r15), %rdi
leaq 0x3c(%rsp), %rbx
movl $0x4, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0xeeee8
movzbl 0x1(%rbx), %eax
movl %eax, %edx
xorb $-0x7c, %dl
movb 0x3(%rbx), %cl
movl %ecx, %esi
xorb $0x8, %sil
orb %dl, %sil
jne 0xe6f9a
movq $0x140, 0x50(%r12)      # imm = 0x140
movq $0xc8, 0x58(%r12)
movq $0x2, 0x8(%r12)
jmp 0xe70b6
movl %eax, %edx
xorb $-0x7c, %dl
movl %ecx, %esi
xorb $0x1, %sil
orb %dl, %sil
jne 0xe7067
movq $0x280, 0x50(%r12)      # imm = 0x280
movq $0xc8, 0x58(%r12)
jmp 0xe70ad
movq 0x18(%r15), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
callq 0xef14d
movb %al, 0x4(%r12)
movzbl %al, %edx
leaq 0x42897(%rip), %rsi     # 0x12987c
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9226
addq $0x3, (%rbx)
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xef1ed
movq %rax, 0x20(%r12)
leaq 0x5e989(%rip), %rsi     # 0x145994
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0xef1ed
movq %rax, 0x18(%r12)
leaq 0x5e977(%rip), %rsi     # 0x1459a6
movq %r15, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movzbl 0x4(%r12), %edx
cmpl $0x6, %edx
je 0xe77fc
cmpl $0x4, %edx
je 0xe77f1
cmpl $0x3, %edx
jne 0xe7b49
movb $0x1, 0x5(%r12)
jmp 0xe7805
movl %eax, %edx
xorb $-0x7c, %dl
movl %ecx, %esi
xorb $0x3, %sil
orb %dl, %sil
jne 0xe708b
movq $0x280, 0x50(%r12)      # imm = 0x280
movq $0x15e, 0x58(%r12)      # imm = 0x15E
jmp 0xe70ad
movl %eax, %edx
xorb $-0x7c, %dl
xorb $0x7, %cl
orb %dl, %cl
jne 0xe7b8d
movq $0x280, 0x50(%r12)      # imm = 0x280
movq $0x1e0, 0x58(%r12)      # imm = 0x1E0
movq $0x4, 0x8(%r12)
movq 0x50(%r12), %rdx
testq %rdx, %rdx
jle 0xe7224
movl 0x58(%r12), %eax
movb 0x8(%r12), %cl
movl $0x1, %r8d
shll %cl, %r8d
leaq 0x5e954(%rip), %rsi     # 0x145a32
xorl %ebx, %ebx
movq %r15, %rdi
movl %eax, %ecx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%r15), %rdi
movl $0x5, %esi
callq 0xef1ca
movq %rax, 0x10(%r12)
movq 0x18(%r15), %rdi
movl $0x7, %esi
callq 0xef1ca
movq %rax, 0x18(%r12)
movq 0x10(%r12), %rsi
movq %r15, %rdi
movq %rax, %rdx
callq 0xe9b05
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq %r15, %rdi
callq 0xf241d
testl %eax, %eax
je 0xe723a
movq 0x8(%r12), %rax
cmpq $0x2, %rax
movq %rbp, 0x30(%rsp)
je 0xe7322
cmpq $0x8, %rax
je 0xe7244
cmpq $0x4, %rax
jne 0xe73a3
leaq 0x371f9(%rip), %rbx     # 0x11e364
leaq 0x40(%rsp), %r14
xorl %r13d, %r13d
movq 0x18(%r15), %rdi
leaq 0xd(%r13), %rsi
callq 0xef0d5
movzbl %al, %ebp
cmpb $0x6, %bpl
jne 0xe7199
movl $0x14, %edx
cmpq $0xc8, 0x58(%r12)
je 0xe719b
movl %ebp, %edx
movl $0x1e, %edi
xorl %esi, %esi
callq 0xecac6
movl %eax, 0x47c(%r12,%r13,4)
movl $0x20, %esi
movq %r14, %rdi
movq %rbx, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0xe8d67
movl 0x47c(%r12,%r13,4), %edx
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xe9c1e
incq %r13
cmpq $0x10, %r13
jne 0xe7173
cmpq $0xc8, 0x58(%r12)
leaq 0x5e898(%rip), %rcx     # 0x145a90
leaq 0x5e881(%rip), %rax     # 0x145a80
cmoveq %rcx, %rax
xorl %ecx, %ecx
movzbl (%rax,%rcx), %edx
movl 0x47c(%r12,%rdx,4), %edx
movl %edx, 0x7c(%r12,%rcx,4)
incq %rcx
cmpq $0x10, %rcx
jne 0xe7205
jmp 0xe73a3
leaq 0x5e7e1(%rip), %rsi     # 0x145a0c
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0xe7c2e
xorl %ebp, %ebp
xorl %r14d, %r14d
jmp 0xe7c13
xorl %ebp, %ebp
leaq 0x80(%rbp), %rsi
movq 0x18(%r15), %rdi
callq 0xef0d5
movl %eax, %ebx
movq 0x18(%r15), %rdi
leaq 0x180(%rbp), %rsi
callq 0xef0d5
movl %eax, %r15d
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x280(%rbp), %rsi
callq 0xef0d5
movl %eax, %r14d
movzbl %bl, %edi
movl %edi, 0x18(%rsp)
callq 0xecde3
movl %eax, %r13d
movzbl %r15b, %r15d
movl %r15d, %edi
callq 0xecde3
movl %eax, %ebx
movzbl %r14b, %r14d
movl %r14d, %edi
callq 0xecde3
movzbl %r13b, %ecx
shll $0x10, %ecx
movzbl %bl, %edx
shll $0x8, %edx
orl %ecx, %edx
movzbl %al, %eax
orl %edx, %eax
orl $0xff000000, %eax       # imm = 0xFF000000
movl %eax, 0x7c(%r12,%rbp,4)
movl $0x40, %esi
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
leaq 0x29cab(%rip), %rdx     # 0x110f89
movl 0x18(%rsp), %ecx
movl %r15d, %r8d
movq 0x10(%rsp), %r15
movl %r14d, %r9d
xorl %eax, %eax
callq 0xe8d67
movl 0x7c(%r12,%rbp,4), %edx
movq %r15, %rdi
movq %rbp, %rsi
movq %rbx, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xe9c1e
incq %rbp
cmpq $0x100, %rbp            # imm = 0x100
jne 0xe7246
jmp 0xe73a3
movq 0x18(%r15), %rdi
movl $0xd, %esi
callq 0xef0d5
andb $0xf, %al
xorl %esi, %esi
cmpb $0x6, %al
sete %sil
leaq 0x47c(%rbp), %rcx
addl $0x3, %esi
xorl %ebx, %ebx
movl $0x4, %r8d
movl $0xa, %edi
xorl %edx, %edx
xorl %r9d, %r9d
callq 0xecbbc
movq 0x18(%r15), %rdi
movl $0xe, %esi
callq 0xef0d5
andb $0xf, %al
movzbl %al, %edx
movl $0x14, %edi
xorl %esi, %esi
callq 0xecac6
movl %eax, 0x47c(%r12)
leaq 0x5e6a5(%rip), %rax     # 0x145a2e
movzbl (%rbx,%rax), %ecx
movl 0x47c(%r12,%rcx,4), %ecx
movl %ecx, 0x7c(%r12,%rbx,4)
incq %rbx
cmpq $0x4, %rbx
jne 0xe7389
movq 0x8(%r12), %rax
movq 0x10(%r12), %rcx
cmpq $0x7, %rax
jg 0xe73e7
movl $0x8, %esi
movq %rcx, %rdi
callq 0xea80b
leaq 0x7(%rax), %rcx
testq %rax, %rax
cmovnsq %rax, %rcx
sarq $0x3, %rcx
movq %rcx, 0x60(%r12)
imulq 0x18(%r12), %rcx
movq %rcx, 0x68(%r12)
imulq 0x8(%r12), %rcx
jmp 0xe73f5
shrq $0x3, %rax
imulq %rax, %rcx
imulq 0x18(%r12), %rcx
movq %rcx, 0x38(%r12)
movq %r15, %rdi
movq %rcx, %rsi
movl $0x1, %edx
callq 0xf0faf
movq %rax, %r14
movq %rax, %rdi
callq 0xf0e3f
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
movq 0x18(%r15), %rax
movb 0x78(%r12), %cl
xorl %edx, %edx
movb %cl, 0x28(%rsp)
cmpb $0x1, %cl
sete %dl
xorl $0x7f, %edx
movl %edx, 0x18(%rsp)
movq 0x70(%r12), %rcx
testq %rcx, %rcx
movl $0x800, %edx            # imm = 0x800
cmovgq %rcx, %rdx
movq 0x18(%rax), %r15
movq %rdx, (%rsi)
movq $0x0, 0x20(%rsp)
xorl %r13d, %r13d
movl $0x3, %ebx
cmpq 0x38(%r12), %r13
jge 0xe755c
cmpq %r15, 0x8(%rsp)
jge 0xe755c
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef14d
testb %al, %al
je 0xe74bd
movzbl %al, %ebp
cmpl %ebp, 0x18(%rsp)
jae 0xe74d2
cmpl $0x7f, %ebp
jne 0xe7569
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef1ed
movq %rax, %rbp
jmp 0xe74d5
movq %r15, %rbp
subq 0x8(%rsp), %rbp
xorl %eax, %eax
testq %rbp, %rbp
cmovleq %rax, %rbp
movb $0x1, %cl
jmp 0xe74d9
andl $0x7f, %ebp
movb $0x1, %cl
xorl %eax, %eax
movb $0x1, %dl
testb %cl, %cl
je 0xe7516
testb %al, %al
je 0xe7539
xorl %ebx, %ebx
testb %dl, %dl
jne 0xe755c
movq %r14, %rdi
callq 0xf0ea4
movq 0x10(%r12), %rax
cmpq %rbp, %rax
jl 0xe75ba
movq 0x18(%r14), %rsi
subq %rax, %rsi
movq %r14, %rdi
movq %rbp, %rdx
movq %r14, %rcx
callq 0xefabc
jmp 0xe755c
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef14d
movzbl %al, %esi
movq %r14, %rdi
movq %rbp, %rdx
callq 0xf14bd
jmp 0xe7557
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
movq %r14, %rcx
callq 0xefabc
addq %rbp, 0x8(%rsp)
addq %rbp, %r13
xorl %ebx, %ebx
testl %ebx, %ebx
je 0xe7461
jmp 0xe760d
cmpb $0x1, 0x28(%rsp)
sete %cl
cmpb $-0x3, %al
setae %dl
cmpb $-0x7f, %al
jb 0xe758a
andb %dl, %cl
jne 0xe758a
andl $0x7f, %ebp
movb $0x1, %al
xorl %ecx, %ecx
jmp 0xe74d9
cmpl $0xff, %ebp
je 0xe75f2
cmpl $0xfe, %ebp
je 0xe75d1
cmpl $0xfd, %ebp
jne 0xe75ba
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef1ed
movq %rax, %rbp
jmp 0xe75e7
movb $0x1, 0x6(%r12)
movl $0x4, %ebx
movl $0x1, %eax
movq %rax, 0x20(%rsp)
jmp 0xe755c
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef14d
movzbl %al, %ebp
movb $0x1, %al
xorl %edx, %edx
movb $0x1, %cl
jmp 0xe74db
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x8(%rsp), %rsi
callq 0xef1ed
movq %rax, %rbp
jmp 0xe7581
addl $-0x3, %ebx
cmpl $0x1, %ebx
ja 0xe7648
cmpb $0x0, 0x6(%r12)
movq 0x10(%rsp), %r15
je 0xe763e
movq 0x8(%rsp), %rdx
leaq 0x5e421(%rip), %rsi     # 0x145a4f
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9df7
movb $0x0, 0x6(%r12)
cmpl $0x0, 0x20(%rsp)
setne %al
jmp 0xe764d
movq 0x10(%rsp), %r15
testb $0x1, %al
je 0xe765a
xorl %ebx, %ebx
xorl %ebp, %ebp
jmp 0xe7c13
movq %r14, %rdi
callq 0xf0ea4
movq %r15, %rdi
callq 0xea9a9
movq %rax, %rbx
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq %r15, %rdi
movl $0x3, %ecx
callq 0xf2cab
movq %rax, %rbp
cmpq $0x7, 0x8(%r12)
jg 0xe7779
movq %rbx, 0x18(%rsp)
movl $0x0, 0x8(%rsp)
cmpq $0x0, 0x68(%r12)
jle 0xe776d
xorl %r15d, %r15d
cmpl $0x0, 0x8(%r12)
je 0xe76de
xorl %ebx, %ebx
movq 0x68(%r12), %rsi
imulq %rbx, %rsi
addq %r15, %rsi
movq %r14, %rdi
callq 0xef0d5
movb %al, 0x8(%rsp,%rbx)
incq %rbx
movl 0x8(%r12), %eax
cmpq %rax, %rbx
jb 0xe76b9
movq %r15, %rax
cqto
idivq 0x18(%r12)
movq %rdx, %r13
xorl %ebx, %ebx
movq %r15, %rax
cqto
idivq 0x18(%r12)
movl 0x8(%r12), %edx
testq %rdx, %rdx
je 0xe7736
movl $0x1, %esi
movl %ebx, %ecx
shll %cl, %esi
xorl %ecx, %ecx
xorl %edi, %edi
movzbl 0x8(%rsp,%rcx), %r8d
movl $0x1, %r9d
shll %cl, %r9d
andl %esi, %r8d
testl %r8d, %r8d
cmovel %r8d, %r9d
orl %r9d, %edi
incq %rcx
cmpq %rcx, %rdx
jne 0xe770e
movl %edi, %ecx
jmp 0xe7738
xorl %ecx, %ecx
shlq $0x3, %rax
subq %rbx, %rax
addq $0x7, %rax
movl 0x7c(%r12,%rcx,4), %ecx
movq %rbp, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0xf2afd
incq %rbx
cmpq $0x8, %rbx
jne 0xe76ed
incq %r15
cmpq 0x68(%r12), %r15
jl 0xe76af
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %rbx
jmp 0xe77a0
movq 0x10(%r12), %rcx
movq 0x30(%rsp), %r8
addq $0x7c, %r8
movl $0x0, (%rsp)
movl $0x8, %edx
movq %r14, %rdi
xorl %esi, %esi
movq %rbp, %r9
callq 0xf35b8
movq 0x50(%r12), %rax
cmpq $0x280, %rax            # imm = 0x280
je 0xe7bd4
cmpq $0x140, %rax            # imm = 0x140
jne 0xe7c06
cmpq $0xc8, 0x58(%r12)
jne 0xe7bcc
movl $0x1, 0x78(%rbx)
movabsq $0x4018000000000000, %rax # imm = 0x4018000000000000
movq %rax, 0x80(%rbx)
movsd 0x5e12c(%rip), %xmm0    # 0x145918
jmp 0xe7bfe
movq $0x2, 0x8(%r12)
jmp 0xe7805
movq $0x1, 0x8(%r12)
cmpb $0x0, 0x5(%r12)
je 0xe7a64
cmpl $0x3, %edx
jne 0xe7b5f
movq 0x8(%rsp), %rbx
movq $0x10000, 0x38(%r12)    # imm = 0x10000
xorl %r13d, %r13d
movl $0xfa0, %esi            # imm = 0xFA0
movq %r15, %rdi
xorl %edx, %edx
callq 0xf0faf
movq %rax, %r14
movq %rax, %rdi
callq 0xf0e3f
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe7e2f
testl %eax, %eax
je 0xe7b65
movq %r14, %rdi
callq 0xf0ea4
movq 0x20(%r12), %rdx
leaq -0x50(%rdx), %rsi
movl $0x19, %ecx
movl $0x50, %eax
cmpq $0x140, %rsi            # imm = 0x140
ja 0xe78ac
movq 0x18(%r12), %rsi
leaq -0x14(%rsi), %rdi
cmpq $0x50, %rdi
ja 0xe78ac
movq %rsi, %rax
imulq %rdx, %rax
shrq %rdx
cmpq 0x18(%r14), %rax
movl $0x50, %eax
cmoveq %rdx, %rax
cmoveq %rsi, %rcx
movq %r14, 0x20(%rsp)
movq %rax, 0x28(%r12)
movq %rcx, 0x30(%r12)
movq %r15, %rdi
xorl %esi, %esi
callq 0xf43cc
movq %rax, %rbx
movb $0x1, 0x2(%rax)
cmpq $0x50, 0x28(%r12)
jg 0xe78dc
cmpq $0x1a, 0x30(%r12)
jl 0xe78e0
movb $0x1, 0x3(%rbx)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xf44ef
movq %rbx, %rcx
addq $0x20, %rcx
movl $0x10, %r8d
movl $0x14, %edi
xorl %esi, %esi
xorl %edx, %edx
xorl %r9d, %r9d
callq 0xecbbc
movq $0x1, 0x10(%rbx)
movl $0x1, %esi
movl $0x8, %edx
movq %r15, %rdi
callq 0xea259
movq %rax, 0x18(%rbx)
movl $0x18, %esi
movq %r15, %rdi
callq 0xe969b
movq 0x18(%rbx), %rcx
movq %rax, (%rcx)
movq %rbx, 0x28(%rsp)
movq 0x18(%rbx), %rax
movq (%rax), %rbx
movq 0x28(%r12), %rax
movq %rax, (%rbx)
movq 0x30(%r12), %rsi
movq %rsi, 0x8(%rbx)
movl $0x8, %edx
movq %r15, %rdi
callq 0xea259
movq %rax, 0x10(%rbx)
movl (%r12), %esi
leaq 0x40(%rsp), %rdi
callq 0xec207
cmpq $0x0, 0x30(%r12)
jle 0xe7a4a
xorl %ebp, %ebp
movq 0x28(%r12), %rsi
movl $0x14, %edx
movq %r15, %rdi
callq 0xea259
movq 0x10(%rbx), %rcx
movq %rax, (%rcx,%rbp,8)
movq 0x28(%r12), %rsi
testq %rsi, %rsi
movq %r12, %r14
movq 0x20(%rsp), %r12
jle 0xe7a35
xorl %r13d, %r13d
xorl %r15d, %r15d
imulq %rbp, %rsi
addq %r15, %rsi
movq %r12, %rdi
callq 0xef0d5
movb %al, 0x18(%rsp)
movq 0x28(%r14), %rsi
imulq %rbp, %rsi
addq 0x40(%r14), %rsi
addq %r15, %rsi
movq %r12, %rdi
callq 0xef0d5
movl %eax, %ecx
andb $0xf, %cl
shrb $0x4, %al
movzbl %cl, %ecx
movq 0x10(%rbx), %rdx
movq (%rdx,%rbp,8), %rdx
movl %ecx, 0x8(%rdx,%r13)
movzbl %al, %eax
movl %eax, 0xc(%rdx,%r13)
movzbl 0x18(%rsp), %edi
movl %edi, (%rdx,%r13)
leaq 0x40(%rsp), %rsi
callq 0xec6fd
movq 0x10(%rbx), %rcx
movq (%rcx,%rbp,8), %rcx
movl %eax, 0x4(%rcx,%r13)
incq %r15
movq 0x28(%r14), %rsi
addq $0x14, %r13
cmpq %rsi, %r15
jl 0xe79bb
incq %rbp
cmpq 0x30(%r14), %rbp
movq 0x10(%rsp), %r15
movq %r14, %r12
jl 0xe7985
movq %r15, %rdi
movq 0x28(%rsp), %r13
movq %r13, %rsi
callq 0xf455b
movq 0x20(%rsp), %r14
jmp 0xe7b65
movq 0x8(%rsp), %rbx
movq 0x18(%r12), %rcx
movq 0x20(%r12), %rsi
movq %rsi, %rax
imulq %rcx, %rax
movq %rax, 0x38(%r12)
movl $0x8, %eax
xorl %edx, %edx
idivq 0x8(%r12)
imulq %rax, %rsi
movq %rsi, 0x10(%r12)
movq %r15, %rdi
movq %rcx, %rdx
callq 0xe9b05
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
movq %r15, %rdi
callq 0xf241d
testl %eax, %eax
je 0xe7c2e
movq 0x38(%r12), %rsi
movq %r15, %rdi
movl $0x1, %edx
callq 0xf0faf
movq %rax, %r14
movq %rax, %rdi
callq 0xf0e3f
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0xe7e2f
testl %eax, %eax
je 0xe7c2e
movq %r14, %rdi
callq 0xf0ea4
movq %r15, %rdi
callq 0xea9a9
movq %rax, %r13
addq $0x7c, %rbp
cmpb $0x6, 0x4(%r12)
movl $0x1, 0x78(%rax)
jne 0xe7c93
movabsq $0x4028000000000000, %rax # imm = 0x4028000000000000
movq %rax, 0x80(%r13)
movabsq $0x4014000000000000, %rax # imm = 0x4014000000000000
movq %rax, 0x88(%r13)
movq $-0x1000000, 0x7c(%r12) # imm = 0xFF000000
jmp 0xe7cd2
leaq 0x5de61(%rip), %rsi     # 0x1459b1
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9df7
jmp 0xe7c2e
xorl %r14d, %r14d
xorl %r13d, %r13d
testq %r13, %r13
je 0xe7b80
movq %r15, %rdi
movq %r13, %rsi
callq 0xf43d6
movq %r15, %rdi
movq %r13, %rsi
callq 0xf448e
movq %r14, %rdi
callq 0xf0b13
jmp 0xe7c2e
cmpl $0x86, %eax
je 0xe7c64
cmpl $0x85, %eax
jne 0xe70b6
movq $0x140, 0x50(%r12)      # imm = 0x140
movq $0xc8, 0x58(%r12)
movq $0x8, 0x8(%r12)
movq $0x740, 0x70(%r12)      # imm = 0x740
jmp 0xe70b6
cmpq $0x280, %rax            # imm = 0x280
jne 0xe7c06
movq 0x58(%r12), %rax
cmpq $0x1e0, %rax            # imm = 0x1E0
je 0xe7c06
movl $0x1, 0x78(%rbx)
movabsq $0x407e000000000000, %rcx # imm = 0x407E000000000000
movq %rcx, 0x80(%rbx)
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x88(%rbx)
movq %rbp, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xf2917
movq %r14, %rdi
callq 0xf0b13
movq %rbp, %rdi
callq 0xf28d4
movq %r15, %rdi
movq %rbx, %rsi
callq 0xea9b3
cmpb $0x0, 0x6(%r12)
je 0xe7c47
leaq 0x5dd33(%rip), %rsi     # 0x145970
movq %r15, %rdi
xorl %eax, %eax
callq 0xe9df7
movq %r15, %rdi
movq %r12, %rsi
callq 0xe9752
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq $0x280, 0x50(%r12)      # imm = 0x280
movq $0x1e0, 0x58(%r12)      # imm = 0x1E0
movq $0x8, 0x8(%r12)
movq $0xb00, 0x70(%r12)      # imm = 0xB00
movb $0x1, 0x78(%r12)
jmp 0xe70b6
movabsq $0x4018000000000000, %rax # imm = 0x4018000000000000
movq %rax, 0x80(%r13)
movabsq $0x4014000000000000, %rax # imm = 0x4014000000000000
movq %rax, 0x88(%r13)
movl $0x4, %r8d
movl $0xa, %edi
movl $0x3, %esi
xorl %edx, %edx
movq %rbp, %rcx
xorl %r9d, %r9d
callq 0xecbbc
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rdx
xorl %eax, %eax
cmpq $0x1, 0x8(%r12)
setne %al
leal 0x1(,%rax,2), %ecx
movq %r15, %rdi
callq 0xf2cab
movq %rax, %rbx
movq 0x8(%r12), %rdx
movq 0x20(%r12), %rcx
movl $0x0, (%rsp)
movq %r14, %rdi
xorl %esi, %esi
movq %rbp, %r8
movq %rax, %r9
callq 0xf35b8
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xf2917
movq %r14, %rdi
callq 0xf0b13
movq %rbx, %rdi
callq 0xf28d4
movq %r15, %rdi
movq %r13, %rsi
jmp 0xe7c29