// File: /workspace/github_cpp_makefile_star2_O1/rpavlik[P]edid-decode/edid-decode.cpp
// Function: edid_state::print_timings(char const*, timings const*, char const*, char const*, bool, bool)
bool edid_state::print_timings(const char *prefix, const struct timings *t,
			       const char *type, const char *flags,
			       bool detailed, bool do_checks)
{
	if (!t) {
		// Should not happen
		if (do_checks)
			fail("Unknown video timings.\n");
		return false;
	}

	if (detailed && options[OptShortTimings])
		detailed = false;
	if (options[OptLongTimings])
		detailed = true;

	unsigned vact = t->vact;
	unsigned hbl = t->hfp + t->hsync + t->hbp + 2 * t->hborder;
	unsigned vbl = t->vfp + t->vsync + t->vbp + 2 * t->vborder;
	unsigned htotal = t->hact + hbl;
	double hor_freq_khz = htotal ? (double)t->pixclk_khz / htotal : 0;

	if (t->interlaced)
		vact /= 2;

	if (t->ycbcr420)
		hor_freq_khz /= 2;

	double vtotal = vact + vbl;

	bool ok = true;

	if (!t->hact || !hbl || !t->hfp || !t->hsync ||
	    !vact || !vbl || (!t->vfp && !t->interlaced && !t->even_vtotal) || !t->vsync) {
		if (do_checks)
			fail("0 values in the video timing:\n"
			     "    Horizontal Active/Blanking %u/%u\n"
			     "    Horizontal Frontporch/Sync Width %u/%u\n"
			     "    Vertical Active/Blanking %u/%u\n"
			     "    Vertical Frontporch/Sync Width %u/%u\n",
			     t->hact, hbl, t->hfp, t->hsync, vact, vbl, t->vfp, t->vsync);
		ok = false;
	}

	if (t->even_vtotal)
		vtotal = vact + t->vfp + t->vsync + t->vbp;
	else if (t->interlaced)
		vtotal = vact + t->vfp + t->vsync + t->vbp + 0.5;

	double refresh = (double)t->pixclk_khz * 1000.0 / (htotal * vtotal);

	std::string s;
	unsigned rb = t->rb & ~RB_ALT;
	if (rb) {
		bool alt = t->rb & RB_ALT;
		s = "RB";
		// Mark RB_CVT_V3 as preliminary since CVT 1.3 has not been
		// released yet.
		if (rb == RB_CVT_V2)
			s += std::string("v2") + (alt ? ",video-optimized" : "");
		else if (rb == RB_CVT_V3)
			s += std::string("v3-is-preliminary") + (alt ? ",h-blank-160" : "");
	}
	add_str(s, flags);
	if (t->hsize_mm || t->vsize_mm)
		add_str(s, std::to_string(t->hsize_mm) + " mm x " + std::to_string(t->vsize_mm) + " mm");
	if (t->hsize_mm > dtd_max_hsize_mm)
		dtd_max_hsize_mm = t->hsize_mm;
	if (t->vsize_mm > dtd_max_vsize_mm)
		dtd_max_vsize_mm = t->vsize_mm;
	if (!s.empty())
		s = " (" + s + ")";
	unsigned pixclk_khz = t->pixclk_khz / (t->ycbcr420 ? 2 : 1);

	char buf[10];

	sprintf(buf, "%u%s", t->vact, t->interlaced ? "i" : "");
	printf("%s%s: %5ux%-5s %7.3f Hz %3u:%-3u %7.3f kHz %8.3f MHz%s\n",
	       prefix, type,
	       t->hact, buf,
	       refresh,
	       t->hratio, t->vratio,
	       hor_freq_khz,
	       pixclk_khz / 1000.0,
	       s.c_str());

	unsigned len = strlen(prefix) + 2;

	if (!t->ycbcr420 && detailed && options[OptXModeLineTimings])
		print_modeline(len, t, refresh);
	else if (!t->ycbcr420 && detailed && options[OptFBModeTimings])
		print_fbmode(len, t, refresh, hor_freq_khz);
	else if (!t->ycbcr420 && detailed && options[OptV4L2Timings])
		print_v4l2_timing(t, refresh, type);
	else if (detailed)
		print_detailed_timing(len + strlen(type) + 6, t);

	if (!do_checks)
		return ok;

	if (!memcmp(type, "DTD", 3)) {
		unsigned vic, dmt;
		const timings *vic_t = cta_close_match_to_vic(*t, vic);

		if (vic_t)
			warn("DTD is similar but not identical to VIC %u.\n", vic);

		const timings *dmt_t = close_match_to_dmt(*t, dmt);
		if (!vic_t && dmt_t)
			warn("DTD is similar but not identical to DMT 0x%02x.\n", dmt);
	}

	if (refresh) {
		min_vert_freq_hz = min(min_vert_freq_hz, refresh);
		max_vert_freq_hz = max(max_vert_freq_hz, refresh);
	}
	if (hor_freq_khz) {
		min_hor_freq_hz = min(min_hor_freq_hz, hor_freq_khz * 1000.0);
		max_hor_freq_hz = max(max_hor_freq_hz, hor_freq_khz * 1000.0);
		max_pixclk_khz = max(max_pixclk_khz, pixclk_khz);
		if (t->pos_pol_hsync && !t->pos_pol_vsync && t->vsync == 3)
			base.max_pos_neg_hor_freq_khz = hor_freq_khz;
	}

	if (t->ycbcr420 && t->pixclk_khz < 590000)
		warn_once("Some YCbCr 4:2:0 timings are invalid for HDMI (which requires an RGB timings pixel rate >= 590 MHz).\n");
	if (t->hfp <= 0)
		fail("0 or negative horizontal front porch.\n");
	if (t->hbp <= 0)
		fail("0 or negative horizontal back porch.\n");
	if (t->vbp <= 0)
		fail("0 or negative vertical back porch.\n");
	if (!base.max_display_width_mm && !base.max_display_height_mm) {
		/* this is valid */
	} else if (!t->hsize_mm && !t->vsize_mm) {
		/* this is valid */
	} else if (t->hsize_mm > base.max_display_width_mm + 9 ||
		   t->vsize_mm > base.max_display_height_mm + 9) {
		fail("Mismatch of image size %ux%u mm vs display size %ux%u mm.\n",
		     t->hsize_mm, t->vsize_mm, base.max_display_width_mm, base.max_display_height_mm);
	} else if (t->hsize_mm < base.max_display_width_mm - 9 &&
		   t->vsize_mm < base.max_display_height_mm - 9) {
		fail("Mismatch of image size %ux%u mm vs display size %ux%u mm.\n",
		     t->hsize_mm, t->vsize_mm, base.max_display_width_mm, base.max_display_height_mm);
	}
	return ok;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rcx, 0x58(%rsp)
movq %rdi, 0x108(%rsp)
testq %rdx, %rdx
je 0x3f60
movl %r9d, %r13d
movq %r8, %rbp
movq %rdx, %rbx
movq %rsi, 0x90(%rsp)
cmpb $0x0, 0x3b1fa(%rip)     # 0x3f0f3
sete 0xc0(%rsp)
cmpb $0x0, 0x3b1e4(%rip)     # 0x3f0ec
setne %r14b
movl (%rdx), %edx
movl 0x1c(%rbx), %r8d
movl 0x20(%rbx), %r9d
leal (%r9,%r8), %eax
addl 0x24(%rbx), %eax
movl 0x4(%rbx), %r15d
movl 0x3c(%rbx), %ecx
leal (%rax,%rcx,2), %eax
movl 0x2c(%rbx), %r10d
movl 0x30(%rbx), %r11d
leal (%r11,%r10), %esi
addl 0x34(%rbx), %esi
movl 0x40(%rbx), %edi
movl %edx, %ecx
addl %eax, %ecx
movl %ecx, %r12d
movq %r12, 0x50(%rsp)
je 0x3f85
movl 0x10(%rbx), %ecx
cvtsi2sd %rcx, %xmm1
cvtsi2sd %r12, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x68(%rsp)
jmp 0x3f8f
cmpb $0x0, 0x150(%rsp)
je 0x4073
leaq 0x1c1e8(%rip), %rsi     # 0x2015d
xorl %ebp, %ebp
xorl %edi, %edi
xorl %eax, %eax
callq 0x37ec
jmp 0x4c8b
xorpd %xmm0, %xmm0
movsd %xmm0, 0x68(%rsp)
movb 0x18(%rbx), %cl
shrl %cl, %r15d
cmpb $0x0, 0x50(%rbx)
je 0x3faf
movsd 0x68(%rsp), %xmm0
mulsd 0x1c05f(%rip), %xmm0    # 0x20008
movsd %xmm0, 0x68(%rsp)
leal (%rsi,%rdi,2), %r12d
testl %r8d, %r8d
je 0x4001
testl %eax, %eax
je 0x4001
testl %edx, %edx
je 0x4001
testl %r9d, %r9d
je 0x4001
testl %r15d, %r15d
je 0x4001
testl %r12d, %r12d
je 0x4001
testl %r10d, %r10d
setne %sil
orb %cl, %sil
testb $0x1, %sil
jne 0x3fe5
cmpb $0x1, 0x44(%rbx)
jne 0x4001
testl %r11d, %r11d
setne %sil
movb 0x150(%rsp), %cl
xorb $0x1, %cl
movl %esi, 0x64(%rsp)
orb %sil, %cl
je 0x400b
jmp 0x403b
cmpb $0x0, 0x150(%rsp)
je 0x4033
leaq 0x1c163(%rip), %rsi     # 0x20175
movl $0x0, 0x64(%rsp)
xorl %edi, %edi
movl %eax, %ecx
xorl %eax, %eax
pushq %r11
pushq %r10
pushq %r12
pushq %r15
callq 0x37ec
addq $0x20, %rsp
jmp 0x403b
movl $0x0, 0x64(%rsp)
cmpb $0x1, 0x44(%rbx)
jne 0x404f
addl 0x2c(%rbx), %r15d
addl 0x30(%rbx), %r15d
addl 0x34(%rbx), %r15d
jmp 0x407d
cmpb $0x1, 0x18(%rbx)
jne 0x407a
addl 0x2c(%rbx), %r15d
addl 0x30(%rbx), %r15d
addl 0x34(%rbx), %r15d
xorps %xmm0, %xmm0
cvtsi2sd %r15, %xmm0
addsd 0x1bf97(%rip), %xmm0    # 0x20008
jmp 0x4085
xorl %ebp, %ebp
jmp 0x4c8b
addl %r12d, %r15d
xorps %xmm0, %xmm0
cvtsi2sd %r15, %xmm0
movsd %xmm0, 0xb8(%rsp)
movl 0x10(%rbx), %eax
movq %rax, 0x110(%rsp)
leaq 0xd8(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0x14(%rbx), %r12d
movl %r12d, %r15d
andl $0xffffff7f, %r15d      # imm = 0xFFFFFF7F
je 0x4264
leaq 0x1c165(%rip), %rcx     # 0x20230
leaq 0xc8(%rsp), %rdi
movl $0x2, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3390
cmpl $0x3, %r15d
je 0x415a
cmpl $0x2, %r15d
jne 0x4264
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x28fab(%rip), %rsi     # 0x2d0ad
leaq 0x28fa6(%rip), %rdx     # 0x2d0af
leaq 0x8(%rsp), %rdi
callq 0x8f6e
testb %r12b, %r12b
leaq 0x1cb5c(%rip), %rax     # 0x20c79
leaq 0x1c10f(%rip), %rsi     # 0x20233
cmovnsq %rax, %rsi
leaq 0x8(%rsp), %rdi
callq 0x3420
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x41c2
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x41cc
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1c0da(%rip), %rsi     # 0x20244
leaq 0x1c0e4(%rip), %rdx     # 0x20255
leaq 0x8(%rsp), %rdi
callq 0x8f6e
testb %r12b, %r12b
leaq 0x1caf4(%rip), %rax     # 0x20c79
leaq 0x1c0ca(%rip), %rsi     # 0x20256
cmovnsq %rax, %rsi
leaq 0x8(%rsp), %rdi
callq 0x3420
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x41fd
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x4207
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0xc8(%rsp), %rdi
callq 0x30b0
jmp 0x4236
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0xc8(%rsp), %rdi
callq 0x30b0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x424d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4264
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %rbp, %rsi
callq 0x8a3c
leaq 0xc8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x57d1
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x42a3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
movl 0x48(%rbx), %ebp
testl %ebp, %ebp
jne 0x42b4
cmpl $0x0, 0x4c(%rbx)
je 0x45d2
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x4302
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x42fb
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x4300
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x4302
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x42ca
addl $-0x3, %eax
jmp 0x4302
addl $-0x2, %eax
jmp 0x4302
decl %eax
movb %r14b, 0x4f(%rsp)
movl %eax, %esi
leaq 0x80(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x70(%rsp), %rdi
xorl %edx, %edx
callq 0x32a0
leaq 0x70(%rsp), %r15
movq (%r15), %rdi
movl 0x8(%r15), %esi
movl %ebp, %edx
callq 0x8c91
leaq 0x1bf28(%rip), %rsi     # 0x20263
movq %r15, %rdi
callq 0x3420
leaq 0xf8(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4373
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0x437c
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0xf0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x4c(%rbx), %ebp
movl $0x1, %eax
cmpl $0xa, %ebp
jb 0x43e8
movl $0x4, %eax
movl $0xd1b71759, %ecx       # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x43e1
cmpl $0x3e7, %edx            # imm = 0x3E7
jbe 0x43e6
cmpl $0x2710, %edx           # imm = 0x2710
jb 0x43e8
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx          # imm = 0x1869F
movl %esi, %edx
ja 0x43b0
addl $-0x3, %eax
jmp 0x43e8
addl $-0x2, %eax
jmp 0x43e8
decl %eax
movl %eax, %esi
leaq 0xa8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x98(%rsp), %rdi
xorl %edx, %edx
callq 0x32a0
movq 0x98(%rsp), %rdi
movl 0xa0(%rsp), %esi
movl %ebp, %edx
callq 0x8c91
movq 0xe8(%rsp), %rcx
movq 0xf0(%rsp), %r8
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r15, %rcx
je 0x444a
movq 0xf8(%rsp), %rsi
cmpq %rsi, %rax
leaq 0x38(%rsp), %rbp
jbe 0x4470
movl $0xf, %esi
cmpq %r12, 0x98(%rsp)
je 0x446b
movq 0xa8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x4487
movq 0x98(%rsp), %rsi
leaq 0xe8(%rsp), %rdi
callq 0x30b0
jmp 0x4498
leaq 0x98(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3290
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x44bc
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x44c4
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x1bd82(%rip), %rsi     # 0x2026a
leaq 0x8(%rsp), %rdi
callq 0x3420
movq %rbp, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4515
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x451e
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc8(%rsp), %rdi
callq 0x57d1
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x455e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4579
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x4596
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x45b3
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x45cd
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x3260
movb 0x4f(%rsp), %r14b
movl 0x48(%rbx), %eax
movq 0x108(%rsp), %rcx
cmpl 0x74(%rcx), %eax
jbe 0x45e5
movl %eax, 0x74(%rcx)
movl 0x4c(%rbx), %eax
cmpl 0x78(%rcx), %eax
leaq 0x38(%rsp), %r12
movq 0x50(%rsp), %rbp
jbe 0x45fa
movl %eax, 0x78(%rcx)
cmpq $0x0, 0xd0(%rsp)
je 0x46bc
leaq 0x28f1f(%rip), %rsi     # 0x2d52f
leaq 0x8(%rsp), %rdi
leaq 0xc8(%rsp), %rdx
callq 0x8a79
leaq 0x2825c(%rip), %rsi     # 0x2c885
leaq 0x8(%rsp), %rdi
callq 0x3420
movq %r12, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4656
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x4660
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %r15
movq %rdx, 0x8(%r15)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc8(%rsp), %rdi
movq %r15, %rsi
callq 0x32d0
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x46a1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x46bc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
cvtsi2sdq 0x110(%rsp), %xmm2
xorps %xmm0, %xmm0
cvtsi2sd %rbp, %xmm0
movsd 0xb8(%rsp), %xmm1
mulsd %xmm0, %xmm1
andb 0xc0(%rsp), %r13b
mulsd 0x1b925(%rip), %xmm2    # 0x20010
orb %r13b, %r14b
divsd %xmm1, %xmm2
movsd %xmm2, 0x50(%rsp)
movl 0x10(%rbx), %r12d
movb 0x50(%rbx), %cl
shrl %cl, %r12d
movl 0x4(%rbx), %edx
leaq 0x1bb67(%rip), %r15     # 0x20273
cmpb $0x0, 0x18(%rbx)
leaq 0x1c562(%rip), %rcx     # 0x20c79
cmovneq %r15, %rcx
leaq 0x1bb4c(%rip), %rsi     # 0x2026e
leaq 0xe8(%rsp), %rbp
movq %rbp, %rdi
xorl %eax, %eax
callq 0x3070
movl (%rbx), %ecx
movl 0x8(%rbx), %r9d
movl 0xc(%rbx), %r10d
movq %r12, 0xc0(%rsp)
xorps %xmm2, %xmm2
cvtsi2sd %r12, %xmm2
divsd 0x1b8ba(%rip), %xmm2    # 0x20010
leaq 0x1bb18(%rip), %rdi     # 0x20275
movq 0x90(%rsp), %r12
movq %r12, %rsi
movq 0x58(%rsp), %r13
movq %r13, %rdx
movq %rbp, %r8
movsd 0x50(%rsp), %xmm0
movsd 0x68(%rsp), %xmm1
movb $0x3, %al
pushq 0xc8(%rsp)
pushq %r10
callq 0x3030
addq $0x10, %rsp
movq %r12, %rdi
callq 0x3110
movq %rax, %r12
movb 0x50(%rbx), %al
testb %al, %al
je 0x4891
testb %r14b, %r14b
je 0x4a69
movq %r13, %rdi
callq 0x3110
leal (%r12,%rax), %ebp
addl $0x8, %ebp
movl 0x1c(%rbx), %ecx
movl 0x20(%rbx), %r8d
movl 0x24(%rbx), %r9d
leaq 0x292b3(%rip), %r14     # 0x2da86
cmpb $0x0, 0x28(%rbx)
leaq 0x1b919(%rip), %r15     # 0x200f7
movq %r15, %r10
cmovneq %r14, %r10
subq $0x8, %rsp
leaq 0x1c48e(%rip), %rdi     # 0x20c7e
leaq 0x1c482(%rip), %rdx     # 0x20c79
movl %ebp, %esi
xorl %eax, %eax
pushq %r10
callq 0x3030
addq $0x10, %rsp
movl 0x3c(%rbx), %esi
testl %esi, %esi
je 0x481b
leaq 0x1c494(%rip), %rdi     # 0x20ca8
xorl %eax, %eax
callq 0x3030
movl $0xa, %edi
callq 0x3310
movl 0x2c(%rbx), %ecx
movl 0x30(%rbx), %r8d
movl 0x34(%rbx), %r9d
leaq 0x1c47d(%rip), %rdi     # 0x20cb4
leaq 0x1c43b(%rip), %rdx     # 0x20c79
movl %ebp, %esi
xorl %eax, %eax
callq 0x3030
cmpb $0x0, 0x45(%rbx)
jne 0x4866
cmpb $0x0, 0x38(%rbx)
movq %r15, %rsi
cmovneq %r14, %rsi
leaq 0x1c477(%rip), %rdi     # 0x20cd6
xorl %eax, %eax
callq 0x3030
movl 0x40(%rbx), %esi
testl %esi, %esi
je 0x487b
leaq 0x1c46b(%rip), %rdi     # 0x20cdf
xorl %eax, %eax
callq 0x3030
cmpb $0x0, 0x44(%rbx)
je 0x49e6
leaq 0x1c45f(%rip), %r15     # 0x20ceb
jmp 0x4a55
cmpb $0x0, 0x3a860(%rip)     # 0x3f0f8
leal 0x2(%r12), %esi
setne %cl
andb %r14b, %cl
cmpb $0x1, %cl
jne 0x49a5
xorl %r14d, %r14d
cmpb $0x0, 0x44(%rbx)
jne 0x48ba
movzbl 0x18(%rbx), %r14d
movl 0x3c(%rbx), %r11d
movl 0x1c(%rbx), %r10d
addl %r11d, %r10d
addl 0x24(%rbx), %r11d
movl 0x40(%rbx), %eax
movl 0x2c(%rbx), %r12d
addl %eax, %r12d
movl (%rbx), %ecx
cmpb $0x0, 0x18(%rbx)
leaq 0x1c399(%rip), %rdx     # 0x20c79
cmoveq %rdx, %r15
movl 0x4(%rbx), %r8d
movl 0x10(%rbx), %edi
xorps %xmm1, %xmm1
cvtsi2sd %rdi, %xmm1
divsd 0x1b715(%rip), %xmm1    # 0x20010
addl %ecx, %r10d
movl 0x20(%rbx), %ebp
addl %r10d, %ebp
addl %ebp, %r11d
addl %r8d, %r12d
movl 0x30(%rbx), %r13d
addl %r12d, %r13d
addl %eax, %r14d
addl 0x34(%rbx), %r14d
addl %r13d, %r14d
movzbl 0x28(%rbx), %eax
xorl $0x1, %eax
leal 0x2b(,%rax,2), %eax
movq %rax, 0x90(%rsp)
subq $0x8, %rsp
leaq 0x1c073(%rip), %rdi     # 0x209af
movsd 0x58(%rsp), %xmm0
movq %r15, %r9
movb $0x2, %al
pushq 0x98(%rsp)
pushq %r14
pushq %r13
pushq %r12
pushq %r8
pushq %r11
pushq %rbp
pushq %r10
pushq %rcx
callq 0x3030
addq $0x50, %rsp
cmpb $0x0, 0x45(%rbx)
jne 0x4987
movzbl 0x38(%rbx), %eax
xorl $0x1, %eax
leal 0x2b(,%rax,2), %esi
leaq 0x1c072(%rip), %rdi     # 0x209f2
xorl %eax, %eax
callq 0x3030
cmpb $0x1, 0x18(%rbx)
movq 0x58(%rsp), %r13
jne 0x49a0
leaq 0x1c062(%rip), %rdi     # 0x209fb
xorl %eax, %eax
callq 0x3030
jmp 0x4a5f
testb %al, %al
jne 0x47a9
cmpb $0x0, 0x3a732(%rip)     # 0x3f0e6
setne %cl
andb %r14b, %cl
cmpb $0x1, %cl
jne 0x4c9f
movl (%rbx), %ecx
movl 0x4(%rbx), %r8d
movsd 0x1b637(%rip), %xmm1    # 0x20008
cmpb $0x0, 0x18(%rbx)
jne 0x53cb
movsd 0x50(%rsp), %xmm0
jmp 0x53d5
cmpb $0x1, 0x18(%rbx)
jne 0x4a5f
leaq 0x1c8b7(%rip), %rdi     # 0x212aa
callq 0x3380
movl 0x2c(%rbx), %ecx
movl 0x30(%rbx), %r8d
movl 0x34(%rbx), %r9d
leaq 0x1c2ee(%rip), %rdi     # 0x20cf8
leaq 0x1c268(%rip), %rdx     # 0x20c79
movl %ebp, %esi
xorl %eax, %eax
callq 0x3030
cmpb $0x0, 0x45(%rbx)
jne 0x4a39
cmpb $0x0, 0x38(%rbx)
cmovneq %r14, %r15
leaq 0x1c2a7(%rip), %rdi     # 0x20cd6
movq %r15, %rsi
xorl %eax, %eax
callq 0x3030
movl 0x40(%rbx), %esi
leaq 0x1c2d7(%rip), %r15     # 0x20d1a
testl %esi, %esi
je 0x4a55
leaq 0x1c291(%rip), %rdi     # 0x20cdf
xorl %eax, %eax
callq 0x3030
movq %r15, %rdi
xorl %eax, %eax
callq 0x3030
movl $0xa, %edi
callq 0x3310
cmpb $0x0, 0x150(%rsp)
movq 0x108(%rsp), %r14
movl 0x64(%rsp), %ebp
je 0x4c66
movzwl (%r13), %eax
xorl $0x5444, %eax           # imm = 0x5444
movzbl 0x2(%r13), %ecx
xorl $0x44, %ecx
orw %ax, %cx
jne 0x4af4
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0xe1fc
movq %rax, %r15
testq %rax, %rax
je 0x4ac6
movl 0x28(%rsp), %edx
leaq 0x1b7f7(%rip), %rsi     # 0x202b1
movl $0x1, %edi
xorl %eax, %eax
callq 0x37ec
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x91c3
testq %r15, %r15
jne 0x4af4
testq %rax, %rax
je 0x4af4
movl 0x8(%rsp), %edx
leaq 0x1b7f6(%rip), %rsi     # 0x202de
movl $0x1, %edi
xorl %eax, %eax
callq 0x37ec
xorpd %xmm0, %xmm0
movsd 0x50(%rsp), %xmm3
ucomisd %xmm0, %xmm3
jne 0x4b06
jnp 0x4b26
movsd 0x60(%r14), %xmm1
movsd 0x68(%r14), %xmm2
minsd %xmm3, %xmm1
movsd %xmm1, 0x60(%r14)
maxsd %xmm3, %xmm2
movsd %xmm2, 0x68(%r14)
movsd 0x68(%rsp), %xmm2
ucomisd %xmm0, %xmm2
jne 0x4b34
jnp 0x4ba5
movl 0x54(%r14), %eax
movl 0x58(%r14), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd 0x1b4c4(%rip), %xmm1    # 0x20010
mulsd %xmm2, %xmm1
minsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, 0x54(%r14)
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
maxsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, 0x58(%r14)
movl 0x70(%r14), %eax
movq 0xc0(%rsp), %rcx
cmpl %ecx, %eax
cmoval %eax, %ecx
movl %ecx, 0x70(%r14)
cmpb $0x1, 0x28(%rbx)
jne 0x4ba5
cmpb $0x0, 0x38(%rbx)
jne 0x4ba5
cmpl $0x3, 0x30(%rbx)
jne 0x4ba5
cvttsd2si %xmm2, %rax
movl %eax, 0x17c(%r14)
cmpb $0x1, 0x50(%rbx)
jne 0x4bd7
cmpl $0x900af, 0x10(%rbx)    # imm = 0x900AF
ja 0x4bd7
cmpb $0x0, 0x3a5e5(%rip)     # 0x3f1a0
jne 0x4bd7
movb $0x1, 0x3a5dc(%rip)     # 0x3f1a0
leaq 0x1b744(%rip), %rsi     # 0x2030f
movl $0x1, %edi
xorl %eax, %eax
callq 0x37ec
cmpl $0x0, 0x1c(%rbx)
jg 0x4bed
leaq 0x1b791(%rip), %rsi     # 0x20375
xorl %edi, %edi
xorl %eax, %eax
callq 0x37ec
cmpl $0x0, 0x24(%rbx)
jg 0x4c03
leaq 0x1b7a2(%rip), %rsi     # 0x2039c
xorl %edi, %edi
xorl %eax, %eax
callq 0x37ec
cmpl $0x0, 0x34(%rbx)
jg 0x4c19
leaq 0x1b7b2(%rip), %rsi     # 0x203c2
xorl %edi, %edi
xorl %eax, %eax
callq 0x37ec
movl 0x174(%r14), %r8d
movl 0x178(%r14), %r9d
movl %r8d, %eax
orl %r9d, %eax
je 0x4c66
movl 0x48(%rbx), %edx
testl %edx, %edx
jne 0x4c3c
cmpl $0x0, 0x4c(%rbx)
je 0x4c66
leal 0x9(%r8), %eax
cmpl %eax, %edx
ja 0x4c53
movl 0x4c(%rbx), %ecx
leal 0x9(%r9), %eax
cmpl %eax, %ecx
jbe 0x53aa
movl 0x4c(%rbx), %ecx
leaq 0x1b789(%rip), %rsi     # 0x203e6
xorl %edi, %edi
xorl %eax, %eax
callq 0x37ec
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x4c8b
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3260
movl %ebp, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb %al, %al
jne 0x47a9
cmpb $0x0, 0x3a448(%rip)     # 0x3f0f6
setne %al
andb %r14b, %al
cmpb $0x1, %al
jne 0x47a9
movl (%rbx), %esi
cmpb $0x0, 0x18(%rbx)
movl $0x49, %eax
movl $0x50, %ecx
cmovnel %eax, %ecx
movsd 0x50(%rsp), %xmm1
cvttsd2si %xmm1, %r8
movl 0x4(%rbx), %edx
movl %r8d, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
subsd %xmm0, %xmm1
mulsd 0x1b324(%rip), %xmm1    # 0x20018
addsd 0x1b30c(%rip), %xmm1    # 0x20008
cvttsd2si %xmm1, %r9
leaq 0x1bdbd(%rip), %rdi     # 0x20ac5
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x3030
leaq 0x1c51e(%rip), %rdi     # 0x21237
callq 0x3380
movl (%rbx), %esi
movl 0x4(%rbx), %edx
movzbl 0x18(%rbx), %ecx
leaq 0x1bdbf(%rip), %rdi     # 0x20aed
xorl %eax, %eax
callq 0x3030
leaq 0x1c535(%rip), %rax     # 0x21271
leaq 0x1c515(%rip), %rcx     # 0x21258
cmpb $0x0, 0x38(%rbx)
cmovneq %rax, %rcx
leaq 0x1c53c(%rip), %rax     # 0x2128e
leaq 0x1c4fa(%rip), %rdi     # 0x21253
cmovneq %rax, %rdi
cmpb $0x0, 0x28(%rbx)
cmovneq %rcx, %rdi
callq 0x3380
movl 0x3c(%rbx), %r8d
movl 0x1c(%rbx), %edx
addl %r8d, %edx
addl 0x24(%rbx), %r8d
movl 0x40(%rbx), %r10d
movl 0x2c(%rbx), %r9d
addl %r10d, %r9d
addl 0x34(%rbx), %r10d
movl 0x10(%rbx), %eax
imulq $0x3e8, %rax, %rsi      # imm = 0x3E8
movl 0x20(%rbx), %ecx
movl 0x30(%rbx), %r11d
movb 0x18(%rbx), %al
testb %al, %al
movl $0x0, %r15d
cmovnel %r9d, %r15d
movl $0x0, %r13d
cmovnel %r11d, %r13d
cmpb $0x1, %al
jne 0x4dc1
movzbl 0x44(%rbx), %r14d
xorl $0x1, %r14d
addl %r10d, %r14d
subq $0x8, %rsp
leaq 0x1bd45(%rip), %rdi     # 0x20b11
xorl %r12d, %r12d
xorl %eax, %eax
pushq %r14
pushq %r13
pushq %r15
pushq %r10
pushq %r11
callq 0x3030
addq $0x30, %rsp
leaq 0x38(%rsp), %rbp
movq %rbp, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movb $0x0, 0x38(%rsp)
movl $0x0, 0x98(%rsp)
cmpb $0x1, 0x18(%rbx)
movq 0x58(%rsp), %r15
jne 0x4e91
cmpb $0x0, 0x44(%rbx)
jne 0x4e91
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x70(%rsp), %rsi
movq $0x14, (%rsi)
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x3410
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x70(%rsp), %rcx
movq %rcx, 0x10(%rsi)
movupd 0x1bcf2(%rip), %xmm0    # 0x20b44
movupd %xmm0, (%rax)
movl $0x454e494c, 0x10(%rax) # imm = 0x454E494C
movq %rcx, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax,%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8241
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4e91
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movzwl (%r15), %eax
xorl $0x4956, %eax           # imm = 0x4956
movzbl 0x2(%r15), %ecx
xorl $0x43, %ecx
orw %ax, %cx
jne 0x4fb2
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x70(%rsp), %rsi
movq $0x19, (%rsi)
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x3410
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x70(%rsp), %rcx
movq %rcx, 0x10(%rsi)
movups 0x1bc7e(%rip), %xmm0    # 0x20b62
movups %xmm0, 0x9(%rax)
movupd 0x1bc69(%rip), %xmm0    # 0x20b59
movupd %xmm0, (%rax)
movq %rcx, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax,%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8241
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4f28
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x70(%rsp), %rsi
movq $0x16, (%rsi)
xorl %edx, %edx
callq 0x3410
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x70(%rsp), %rcx
movq %rcx, 0x10(%rsi)
movupd 0x1bc17(%rip), %xmm0    # 0x20b73
movupd %xmm0, (%rax)
movabsq $0x4f454449565f4543, %rdx # imm = 0x4F454449565F4543
movq %rdx, 0xe(%rax)
movq %rcx, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax,%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8241
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x4fa2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x4(%r15), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x30c0
movq %rax, %r12
movabsq $0x43495620494d4448, %r14 # imm = 0x43495620494D4448
xorl %r13d, %r13d
cmpq %r14, (%r15)
jne 0x516a
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x70(%rsp), %rsi
movq $0x17, (%rsi)
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x3410
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x70(%rsp), %rcx
movq %rcx, 0x10(%rsi)
movupd 0x1bb91(%rip), %xmm0    # 0x20b93
movupd %xmm0, (%rax)
movabsq $0x4349565f494d4448, %rdx # imm = 0x4349565F494D4448
movq %rdx, 0xf(%rax)
movq %rcx, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax,%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8241
movq 0x58(%rsp), %r12
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x504d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x70(%rsp), %rsi
movq $0x16, (%rsi)
xorl %edx, %edx
callq 0x3410
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x70(%rsp), %rcx
movq %rcx, 0x10(%rsi)
movupd 0x1baf2(%rip), %xmm0    # 0x20b73
movupd %xmm0, (%rax)
movabsq $0x4f454449565f4543, %rdx # imm = 0x4F454449565F4543
movq %rdx, 0xe(%rax)
movq %rcx, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax,%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8241
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x50c7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
leaq 0x9(%r12), %rdi
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
callq 0x30c0
movq %rax, %r13
movzbl %r13b, %edi
callq 0xe174
movl %eax, %ebp
testb %al, %al
je 0x5165
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x70(%rsp), %rsi
movq $0x19, (%rsi)
xorl %edx, %edx
callq 0x3410
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x70(%rsp), %rcx
movq %rcx, 0x10(%rsi)
movups 0x1ba45(%rip), %xmm0    # 0x20b62
movups %xmm0, 0x9(%rax)
movupd 0x1ba30(%rip), %xmm0    # 0x20b59
movupd %xmm0, (%rax)
movq %rcx, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax,%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8241
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5161
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movzbl %bpl, %r12d
leaq 0x38(%rsp), %rbp
testl %r12d, %r12d
je 0x520f
movsd 0x1aea5(%rip), %xmm1    # 0x20020
movsd 0x50(%rsp), %xmm0
callq 0x32f0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x520f
jp 0x520f
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x70(%rsp), %rsi
movq $0x19, (%rsi)
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x3410
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x70(%rsp), %rcx
movq %rcx, 0x10(%rsi)
movups 0x1b9e9(%rip), %xmm0    # 0x20bb4
movups %xmm0, 0x9(%rax)
movupd 0x1b9d4(%rip), %xmm0    # 0x20bab
movupd %xmm0, (%rax)
movq %rcx, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax,%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8241
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x520f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
cmpl $0x0, 0x14(%rbx)
je 0x5292
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x70(%rsp), %rsi
movq $0x1b, (%rsi)
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x3410
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x70(%rsp), %rcx
movq %rcx, 0x10(%rsi)
movups 0x1b982(%rip), %xmm0    # 0x20bd0
movups %xmm0, 0xb(%rax)
movupd 0x1b96b(%rip), %xmm0    # 0x20bc5
movupd %xmm0, (%rax)
movq %rcx, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax,%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8241
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5292
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
cmpl $0x0, 0x8(%rbx)
je 0x531f
cmpl $0x0, 0xc(%rbx)
je 0x531f
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x70(%rsp), %rsi
movq $0x1d, (%rsi)
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x3410
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
movq 0x70(%rsp), %rcx
movq %rcx, 0x10(%rsi)
movups 0x1b913(%rip), %xmm0    # 0x20bee
movups %xmm0, 0xd(%rax)
movupd 0x1b8fa(%rip), %xmm0    # 0x20be1
movupd %xmm0, (%rax)
movq %rcx, 0x8(%rsi)
movq (%rsi), %rax
movb $0x0, (%rax,%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8241
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x531f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x58(%rsp), %rdx
movzwl (%rdx), %eax
xorl $0x4956, %eax           # imm = 0x4956
movzbl 0x2(%rdx), %ecx
xorl $0x43, %ecx
leaq 0x1b8c5(%rip), %rsi     # 0x20bff
orw %ax, %cx
je 0x559f
cmpq %r14, (%rdx)
je 0x559f
movq 0x58(%rsp), %rdx
movzwl (%rdx), %eax
xorl $0x4d44, %eax           # imm = 0x4D44
movzbl 0x2(%rdx), %ecx
xorl $0x54, %ecx
orw %ax, %cx
je 0x558f
movzwl (%rdx), %eax
xorl $0x5643, %eax           # imm = 0x5643
movzbl 0x2(%rdx), %ecx
xorl $0x54, %ecx
orw %ax, %cx
je 0x5598
movzwl (%rdx), %eax
xorl $0x5447, %eax           # imm = 0x5447
movzbl 0x2(%rdx), %ecx
xorl $0x46, %ecx
orw %ax, %cx
leaq 0x1b8a1(%rip), %rax     # 0x20c3b
leaq 0x1b5e2(%rip), %rsi     # 0x20983
cmoveq %rax, %rsi
jmp 0x559f
leal -0x9(%r8), %eax
cmpl %eax, %edx
setae %al
leal -0x9(%r9), %esi
cmpl %esi, %ecx
setae %sil
orb %al, %sil
je 0x4c56
jmp 0x4c66
movsd 0x50(%rsp), %xmm0
mulsd %xmm1, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %r9
leaq 0x1b637(%rip), %r10     # 0x20a1c
leaq 0x1b88d(%rip), %rbp     # 0x20c79
cmoveq %rbp, %r10
addq $-0x8, %rsp
leaq 0x1b60b(%rip), %rdi     # 0x20a06
xorl %r14d, %r14d
movl %esi, 0x98(%rsp)
movq %rbp, %rdx
xorl %eax, %eax
pushq %r10
callq 0x3030
addq $0x10, %rsp
addl $0xa, %r12d
movl 0x10(%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x1abe4(%rip), %xmm0    # 0x20010
leaq 0x1b5ef(%rip), %rdi     # 0x20a22
movl %r12d, %esi
movq %rbp, %rdx
movsd 0x68(%rsp), %xmm1
movsd 0x50(%rsp), %xmm2
movb $0x3, %al
callq 0x3030
movl (%rbx), %ecx
movl 0x4(%rbx), %r8d
addq $-0x8, %rsp
leaq 0x1b5f0(%rip), %rdi     # 0x20a4d
movl %r12d, %esi
movq %rbp, %rdx
movl %ecx, %r9d
xorl %eax, %eax
pushq %r8
callq 0x3030
addq $0x10, %rsp
movzbl 0x18(%rbx), %ecx
cmpb $0x0, 0x44(%rbx)
movl %ecx, %edx
cmovnel %r14d, %edx
movl 0x3c(%rbx), %r8d
movl 0x1c(%rbx), %r9d
addl %r8d, %r9d
addl 0x24(%rbx), %r8d
movl 0x40(%rbx), %r10d
movl 0x2c(%rbx), %r11d
addl %r10d, %r11d
addl 0x34(%rbx), %r10d
movl 0x10(%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movl 0x20(%rbx), %r14d
movsd 0x1ab72(%rip), %xmm1    # 0x20028
divsd %xmm0, %xmm1
addsd 0x1ab46(%rip), %xmm1    # 0x20008
cvttsd2si %xmm1, %rsi
movq %rsi, %rdi
sarq $0x3f, %rdi
subsd 0x1ab5a(%rip), %xmm1    # 0x20030
cvttsd2si %xmm1, %rax
shll %cl, %r10d
shll %cl, %r11d
andq %rdi, %rax
orq %rsi, %rax
addl %edx, %r11d
movl 0x30(%rbx), %r15d
shll %cl, %r15d
leaq 0x1b571(%rip), %rdi     # 0x20a69
movl %r12d, %esi
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
pushq %r15
pushq %r14
pushq %r11
pushq %r10
callq 0x3030
addq $0x20, %rsp
cmpb $0x1, 0x18(%rbx)
jne 0x5532
leaq 0x1b56b(%rip), %rdi     # 0x20a8c
leaq 0x1b751(%rip), %rdx     # 0x20c79
movl %r12d, %esi
xorl %eax, %eax
callq 0x3030
cmpb $0x1, 0x28(%rbx)
jne 0x5550
leaq 0x1b55c(%rip), %rdi     # 0x20a9b
leaq 0x1b733(%rip), %rdx     # 0x20c79
movl %r12d, %esi
xorl %eax, %eax
callq 0x3030
cmpb $0x1, 0x38(%rbx)
jne 0x556e
leaq 0x1b54d(%rip), %rdi     # 0x20aaa
leaq 0x1b715(%rip), %rdx     # 0x20c79
movl %r12d, %esi
xorl %eax, %eax
callq 0x3030
leaq 0x1b544(%rip), %rdi     # 0x20ab9
leaq 0x1b6fd(%rip), %rdx     # 0x20c79
movl 0x90(%rsp), %esi
xorl %eax, %eax
callq 0x3030
jmp 0x4a69
leaq 0x1b67f(%rip), %rsi     # 0x20c15
jmp 0x559f
leaq 0x1b689(%rip), %rsi     # 0x20c28
leaq 0x1b6a8(%rip), %r15     # 0x20c4e
movq %r15, %rdi
xorl %eax, %eax
callq 0x3030
cmpq $0x0, 0x30(%rsp)
je 0x55bf
movq 0x28(%rsp), %rsi
jmp 0x55c6
leaq 0x1b3bd(%rip), %rsi     # 0x20983
movq %r15, %rdi
xorl %eax, %eax
callq 0x3030
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
leaq 0x1b67b(%rip), %rdi     # 0x20c58
movl %r12d, %ecx
movl %r13d, %r8d
xorl %eax, %eax
callq 0x3030
leaq 0x1bcb6(%rip), %rdi     # 0x212a7
callq 0x3380
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x560d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
movq 0x58(%rsp), %r13
jmp 0x4a69
jmp 0x5646
jmp 0x5662
jmp 0x562d
jmp 0x5662
jmp 0x5662
jmp 0x5646
jmp 0x5662
jmp 0x562d
jmp 0x5646
jmp 0x5662
jmp 0x5662
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
jne 0x5653
jmp 0x5665
jmp 0x5662
jmp 0x5646
jmp 0x5662
jmp 0x5646
jmp 0x5662
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x5665
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x5665
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
jmp 0x578d
jmp 0x5676
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x5697
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x5697
jmp 0x5694
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x56cf
jmp 0x57a4
jmp 0x57a1
jmp 0x57a1
jmp 0x57a1
jmp 0x57a1
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x57a4
movq 0x18(%rsp), %rsi
jmp 0x5797
jmp 0x57a1
jmp 0x57a1
jmp 0x57a1
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x5707
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x5707
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5727
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x5727
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x5749
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x5749
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x576b
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x576b
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x57a4
movq 0x80(%rsp), %rsi
jmp 0x5797
jmp 0x57a1
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x57a4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3260
jmp 0x57a4
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x57c9
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x3260
movq %rbx, %rdi
callq 0x3400