// File: /workspace/github_cpp_makefile_star2_O2/rpavlik[P]edid-decode/edid-decode.cpp
// Function: main
int main(int argc, char **argv)
{
	char short_options[26 * 2 * 2 + 1];
	enum output_format out_fmt = OUT_FMT_DEFAULT;
	gtf_parsed_data gtf_data;
	int ret;

	while (1) {
		int option_index = 0;
		unsigned idx = 0;
		unsigned i, val;
		const timings *t;
		char buf[16];

		for (i = 0; long_options[i].name; i++) {
			if (!isalpha(long_options[i].val))
				continue;
			short_options[idx++] = long_options[i].val;
			if (long_options[i].has_arg == required_argument)
				short_options[idx++] = ':';
		}
		short_options[idx] = 0;
		int ch = getopt_long(argc, argv, short_options,
				     long_options, &option_index);
		if (ch == -1)
			break;

		options[ch] = 1;
		switch (ch) {
		case OptHelp:
			usage();
			return -1;
		case OptOutputFormat:
			if (!strcmp(optarg, "hex")) {
				out_fmt = OUT_FMT_HEX;
			} else if (!strcmp(optarg, "raw")) {
				out_fmt = OUT_FMT_RAW;
			} else if (!strcmp(optarg, "carray")) {
				out_fmt = OUT_FMT_CARRAY;
			} else if (!strcmp(optarg, "xml")) {
				out_fmt = OUT_FMT_XML;
			} else {
				usage();
				exit(1);
			}
			break;
		case OptSTD: {
			unsigned char byte1, byte2 = 0;
			char *endptr;

			byte1 = strtoul(optarg, &endptr, 0);
			if (*endptr == ',')
				byte2 = strtoul(endptr + 1, NULL, 0);
			state.print_standard_timing("", byte1, byte2, false, true);
			break;
		}
		case OptDMT:
			val = strtoul(optarg, NULL, 0);
			t = find_dmt_id(val);
			if (t) {
				sprintf(buf, "DMT 0x%02x", val);
				state.print_timings("", t, buf, "", true, false);
			} else {
				fprintf(stderr, "Unknown DMT code 0x%02x.\n", val);
			}
			break;
		case OptVIC:
			val = strtoul(optarg, NULL, 0);
			t = find_vic_id(val);
			if (t) {
				sprintf(buf, "VIC %3u", val);
				state.print_timings("", t, buf, "", true, false);
			} else {
				fprintf(stderr, "Unknown VIC code %u.\n", val);
			}
			break;
		case OptHDMIVIC:
			val = strtoul(optarg, NULL, 0);
			t = find_hdmi_vic_id(val);
			if (t) {
				sprintf(buf, "HDMI VIC %u", val);
				state.print_timings("", t, buf, "", true, false);
			} else {
				fprintf(stderr, "Unknown HDMI VIC code %u.\n", val);
			}
			break;
		case OptCVT:
			parse_cvt(optarg);
			break;
		case OptGTF:
			parse_gtf(optarg, gtf_data);
			break;
		case ':':
			fprintf(stderr, "Option '%s' requires a value.\n",
				argv[optind]);
			usage();
			return -1;
		case '?':
			fprintf(stderr, "Unknown argument '%s'.\n",
				argv[optind]);
			usage();
			return -1;
		}
	}
	if (optind == argc && options[OptVersion]) {
		if (strlen(STRING(SHA)))
			printf("edid-decode SHA: %s %s\n", STRING(SHA), STRING(DATE));
		else
			printf("edid-decode SHA: not available\n");
		return 0;
	}

	if (options[OptListEstTimings])
		state.list_established_timings();
	if (options[OptListDMTs])
		state.list_dmts();
	if (options[OptListVICs])
		state.cta_list_vics();
	if (options[OptListHDMIVICs])
		state.cta_list_hdmi_vics();

	if (options[OptListEstTimings] || options[OptListDMTs] ||
	    options[OptListVICs] || options[OptListHDMIVICs])
		return 0;

	if (options[OptCVT] || options[OptDMT] || options[OptVIC] ||
	    options[OptHDMIVIC] || options[OptSTD])
		return 0;

	if (options[OptGTF] && (!gtf_data.params_from_edid || optind == argc)) {
		show_gtf(gtf_data);
		return 0;
	}

	if (optind == argc)
		ret = edid_from_file("-", stdout);
	else
		ret = edid_from_file(argv[optind], argv[optind + 1] ? stderr : stdout);

	if (ret && options[OptPhysicalAddress]) {
		printf("f.f.f.f\n");
		return 0;
	}
	if (optind < argc - 1)
		return ret ? ret : edid_to_file(argv[optind + 1], out_fmt);

	if (options[OptGTF]) {
		timings t;

		// Find the Secondary Curve
		state.preparse_detailed_block(edid + 0x36);
		state.preparse_detailed_block(edid + 0x48);
		state.preparse_detailed_block(edid + 0x5a);
		state.preparse_detailed_block(edid + 0x6c);

		t = state.calc_gtf_mode(gtf_data.w, gtf_data.h, gtf_data.freq,
					gtf_data.interlaced, gtf_data.ip_parm,
					gtf_data.overscan);
		unsigned hbl = t.hfp + t.hsync + t.hbp;
		unsigned htotal = t.hact + hbl;
		double hor_freq_khz = htotal ? (double)t.pixclk_khz / htotal : 0;

		if (state.base.supports_sec_gtf &&
		    hor_freq_khz >= state.base.sec_gtf_start_freq) {
			t = state.calc_gtf_mode(gtf_data.w, gtf_data.h, gtf_data.freq,
						gtf_data.interlaced, gtf_data.ip_parm,
						gtf_data.overscan, true,
						state.base.C, state.base.M,
						state.base.K, state.base.J);
		}
		calc_ratio(&t);
		if (t.hfp <= 0)
			state.print_timings("", &t, "GTF", "INVALID: Hfront <= 0", true, false);
		else
			state.print_timings("", &t, "GTF", "", true, false);
		return 0;
	}

	return ret ? ret : state.parse_edid();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, 0x70(%rsp)
movl %edi, 0x30(%rsp)
leaq 0x2e6f3(%rip), %rbx     # 0x34260
movq 0x2e464(%rip), %rax     # 0x33fd8
movq %rax, 0x80(%rsp)
movq %rax, 0x58(%rsp)
movq %rax, 0x50(%rsp)
movq %rax, 0x60(%rsp)
movq %rax, 0x40(%rsp)
movq %rax, 0x68(%rsp)
movl %eax, 0x20(%rsp)
movl $0x0, 0x2c(%rsp)
andl $0x0, 0x7c(%rsp)
xorl %r14d, %r14d
xorl %r15d, %r15d
movl %r14d, %r12d
shlq $0x5, %r12
cmpq $0x0, (%r12,%rbx)
movl %r15d, %r13d
je 0x5bfc
addq %rbx, %r12
movl 0x18(%r12), %ebp
movl %ebp, %edi
callq 0x33e0
testl %eax, %eax
je 0x5bf7
leal 0x1(%r15), %eax
movb %bpl, 0x170(%rsp,%r13)
cmpl $0x1, 0x8(%r12)
jne 0x5bf4
addl $0x2, %r15d
movl %eax, %eax
movb $0x3a, 0x170(%rsp,%rax)
jmp 0x5bf7
movl %eax, %r15d
incl %r14d
jmp 0x5bac
movb $0x0, 0x170(%rsp,%r13)
movl 0x30(%rsp), %edi
movq 0x70(%rsp), %rsi
leaq 0x170(%rsp), %rdx
movq %rbx, %rcx
leaq 0x7c(%rsp), %r8
callq 0x3410
pushq $-0x1
popq %rbp
cmpl $-0x1, %eax
je 0x6327
movslq %eax, %rcx
leaq 0x33487(%rip), %rdx     # 0x390c0
movb $0x1, (%rcx,%rdx)
leal -0x83(%rax), %ecx
cmpl $0x5, %ecx
ja 0x5cc1
leaq 0x14421(%rip), %rdx     # 0x1a070
movslq (%rdx,%rcx,4), %rax
addq %rdx, %rax
leaq 0x2d943(%rip), %r13     # 0x335a0
jmpq *%rax
movq 0x2e35a(%rip), %rax     # 0x33fc0
movq (%rax), %rdi
xorl %r12d, %r12d
leaq 0xb8(%rsp), %rsi
xorl %edx, %edx
callq 0x30c0
movq %rax, %r15
movq 0xb8(%rsp), %rdi
cmpb $0x2c, (%rdi)
jne 0x5c9a
incq %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x30c0
movq %rax, %r12
movzbl %r15b, %edx
movzbl %r12b, %ecx
leaq 0x2ea57(%rip), %rdi     # 0x34700
leaq 0x14fd9(%rip), %rsi     # 0x1ac89
xorl %r8d, %r8d
pushq $0x1
popq %r9
callq 0x8800
jmp 0x5ba1
cmpl $0x6f, %eax
je 0x5f28
cmpl $0x68, %eax
je 0x6892
cmpl $0x3a, %eax
je 0x6867
cmpl $0x3f, %eax
jne 0x5ba1
jmp 0x685e
movq 0x2e2cf(%rip), %rax     # 0x33fc0
movq (%rax), %rax
movq %rax, 0x48(%rsp)
xorpd %xmm1, %xmm1
xorl %r15d, %r15d
movq $0x0, 0xb0(%rsp)
xorl %r13d, %r13d
xorl %r14d, %r14d
movq $0x0, 0xa8(%rsp)
xorl %r12d, %r12d
cmpb $0x0, (%rax)
je 0x619a
movsd %xmm2, 0x10(%rsp)
movsd %xmm1, 0x18(%rsp)
leaq 0x48(%rsp), %rdi
leaq 0x2d81e(%rip), %rsi     # 0x33560
leaq 0xb8(%rsp), %rdx
callq 0x3250
cmpl $-0x1, %eax
je 0x6b3a
movl %eax, %ebp
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
movsd 0x10(%rsp), %xmm2
je 0x5d80
xorl %esi, %esi
callq 0x31c0
movapd %xmm0, %xmm2
movsd 0x18(%rsp), %xmm1
jmp 0x5d9b
cmpl $0x6, %ebp
movsd 0x18(%rsp), %xmm1
ja 0x6b85
pushq $0x58
popq %rax
btl %ebp, %eax
jae 0x6b85
cmpl $0x6, %ebp
ja 0x5e3c
movl %ebp, %eax
leaq 0x1430b(%rip), %rcx     # 0x1a0b8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movapd %xmm2, %xmm0
cmpneqsd 0x1429f(%rip), %xmm0    # 0x1a060
jmpq *%rax
movapd %xmm2, %xmm0
movsd %xmm2, 0x10(%rsp)
callq 0x3100
movsd 0x10(%rsp), %xmm2
movsd 0x18(%rsp), %xmm1
cvttsd2si %xmm0, %r12
jmp 0x5e3c
movb $0x1, %al
movq %rax, 0xa8(%rsp)
jmp 0x5e3c
movapd %xmm2, %xmm1
jmp 0x5e3c
movq %xmm0, %r13
andl $0x1, %r13d
jmp 0x5e3c
movapd %xmm2, %xmm0
movsd %xmm2, 0x10(%rsp)
callq 0x3100
movsd 0x10(%rsp), %xmm2
movsd 0x18(%rsp), %xmm1
cvttsd2si %xmm0, %r15
jmp 0x5e3c
cvttsd2si %xmm2, %rax
movq %rax, 0xb0(%rsp)
jmp 0x5e3c
movq %xmm0, %r14
andl $0x1, %r14d
movq 0x48(%rsp), %rax
jmp 0x5d21
movq 0x2e173(%rip), %rax     # 0x33fc0
movq (%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x30c0
movq %rax, %r15
movzbl %r15b, %edi
callq 0xbf2b
testq %rax, %rax
je 0x62e1
movq %rax, %r12
leaq 0x110(%rsp), %r14
movq %r14, %rdi
leaq 0x14a81(%rip), %rsi     # 0x1a904
jmp 0x5f01
movq 0x2e134(%rip), %rax     # 0x33fc0
movq (%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x30c0
movq %rax, %r15
movzbl %r15b, %edi
callq 0xbf6a
testq %rax, %rax
je 0x62f4
movq %rax, %r12
leaq 0x110(%rsp), %r14
movq %r14, %rdi
leaq 0x14a60(%rip), %rsi     # 0x1a922
jmp 0x5f01
movq 0x2e0f5(%rip), %rax     # 0x33fc0
movq (%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x30c0
movq %rax, %r15
movzbl %r15b, %edi
callq 0x7d78
testq %rax, %rax
je 0x6307
movq %rax, %r12
leaq 0x110(%rsp), %r14
movq %r14, %rdi
leaq 0x149de(%rip), %rsi     # 0x1a8df
movl %r15d, %edx
xorl %eax, %eax
callq 0x3070
andl $0x0, (%rsp)
leaq 0x2e7ea(%rip), %rdi     # 0x34700
leaq 0x14d6c(%rip), %rsi     # 0x1ac89
movq %r12, %rdx
movq %r14, %rcx
jmp 0x6233
movq 0x2e091(%rip), %rax     # 0x33fc0
movq (%rax), %r15
movq %r15, %rdi
leaq 0x14990(%rip), %rsi     # 0x1a8cc
callq 0x3350
testl %eax, %eax
je 0x62bd
movq %r15, %rdi
leaq 0x1497d(%rip), %rsi     # 0x1a8d0
callq 0x3350
testl %eax, %eax
je 0x62c9
movq %r15, %rdi
leaq 0x1496a(%rip), %rsi     # 0x1a8d4
callq 0x3350
testl %eax, %eax
je 0x62d5
movq %r15, %rdi
leaq 0x1495a(%rip), %rsi     # 0x1a8db
callq 0x3350
pushq $0x4
popq %rcx
movl %ecx, 0x2c(%rsp)
testl %eax, %eax
je 0x5ba1
jmp 0x6b78
movq 0x2e01f(%rip), %rax     # 0x33fc0
movq (%rax), %rax
movq %rax, 0x48(%rsp)
movb $0x1, %cl
movl %ecx, 0x20(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x18(%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
movsd 0x14092(%rip), %xmm0    # 0x1a058
movsd %xmm0, 0xa0(%rsp)
movsd 0x14079(%rip), %xmm0    # 0x1a050
movsd %xmm0, 0x90(%rsp)
movsd 0x14060(%rip), %xmm0    # 0x1a048
movsd %xmm0, 0x88(%rsp)
movsd 0x14047(%rip), %xmm0    # 0x1a040
movsd %xmm0, 0x98(%rsp)
movq $0x0, 0x60(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x68(%rsp)
xorl %ebp, %ebp
cmpb $0x0, (%rax)
je 0x6244
leaq 0x48(%rsp), %rdi
movq %r13, %rsi
leaq 0xb8(%rsp), %rdx
callq 0x3250
cmpl $-0x1, %eax
je 0x6b3a
movl %eax, %r15d
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
setne %al
leal -0x8(%r15), %ecx
cmpl $-0x3, %ecx
setae %cl
orb %al, %cl
je 0x6b58
cmpl $0xb, %r15d
je 0x6075
cmpl $0x8, %r15d
jne 0x6087
xorl %esi, %esi
callq 0x31c0
addsd %xmm0, %xmm0
callq 0x3100
jmp 0x6093
testq %rdi, %rdi
je 0x6099
xorl %esi, %esi
callq 0x31c0
movsd %xmm0, 0x10(%rsp)
cmpl $0xb, %r15d
ja 0x6190
movl %r15d, %eax
leaq 0x13fdb(%rip), %rcx     # 0x1a088
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsd 0x10(%rsp), %xmm0
callq 0x3100
cvttsd2si %xmm0, %r14
jmp 0x6190
movsd 0x10(%rsp), %xmm0
mulsd 0x13f37(%rip), %xmm0    # 0x1a010
movsd %xmm0, 0x98(%rsp)
jmp 0x6188
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
pushq $0x3
jmp 0x612b
movsd 0x10(%rsp), %xmm0
callq 0x3100
movsd %xmm0, 0x90(%rsp)
jmp 0x6188
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
pushq $0x1
jmp 0x612b
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
pushq $0x2
popq %rbp
jmp 0x6190
movb $0x1, %al
movq %rax, 0x68(%rsp)
jmp 0x6190
movsd 0x10(%rsp), %xmm0
callq 0x3100
cvttsd2si %xmm0, %r12
jmp 0x6190
movb $0x1, %al
movq %rax, 0x40(%rsp)
jmp 0x6190
movb $0x1, %al
movq %rax, 0x60(%rsp)
jmp 0x6190
movsd 0x10(%rsp), %xmm0
callq 0x3100
movsd %xmm0, 0x88(%rsp)
jmp 0x6188
movsd 0x10(%rsp), %xmm0
mulsd 0x13e91(%rip), %xmm0    # 0x1a010
movsd %xmm0, 0xa0(%rsp)
movl $0x0, 0x20(%rsp)
movq 0x48(%rsp), %rax
jmp 0x601f
testl %r12d, %r12d
je 0x6b9f
testl %r15d, %r15d
je 0x6b9f
ucomisd 0x13eac(%rip), %xmm1    # 0x1a060
jne 0x61bc
jnp 0x6b9f
movapd %xmm1, %xmm0
mulsd 0x13e48(%rip), %xmm0    # 0x1a010
testb $0x1, %r13b
jne 0x61d2
movapd %xmm1, %xmm0
movzbl %r14b, %eax
andl $0x1, %eax
movl %eax, 0x8(%rsp)
movzbl 0xa8(%rsp), %eax
andl $0x1, %eax
movl %eax, (%rsp)
movzbl %r13b, %r9d
andl $0x1, %r9d
leaq 0xb8(%rsp), %r14
movq %r14, %rdi
leaq 0x2e4fb(%rip), %r13     # 0x34700
movq %r13, %rsi
movl %r12d, %edx
movl %r15d, %ecx
movq 0xb0(%rsp), %r8
callq 0x1984c
andl $0x0, (%rsp)
movq %r13, %rdi
leaq 0x14a60(%rip), %rsi     # 0x1ac89
movq %r14, %rdx
leaq 0x24b9b(%rip), %rcx     # 0x2adce
movq %rsi, %r8
pushq $0x1
popq %r9
callq 0x3af0
jmp 0x5ba1
testl %r14d, %r14d
je 0x6bc9
testl %r12d, %r12d
je 0x6bc9
movsd 0x18(%rsp), %xmm0
ucomisd 0x13dfc(%rip), %xmm0    # 0x1a060
jne 0x626c
jnp 0x6bb4
movsd 0x18(%rsp), %xmm0
mulsd 0x13d96(%rip), %xmm0    # 0x1a010
movsd %xmm0, 0x38(%rsp)
movsd 0x18(%rsp), %xmm0
cmpl $0x1, %ebp
je 0x6291
movsd %xmm0, 0x38(%rsp)
movl %ebp, 0x34(%rsp)
movq %r12, 0x50(%rsp)
movq %r14, 0x58(%rsp)
testb $0x1, 0x40(%rsp)
jne 0x62ac
movsd %xmm0, 0x38(%rsp)
movl 0x20(%rsp), %eax
andb 0x68(%rsp), %al
movl %eax, 0x20(%rsp)
jmp 0x5ba1
pushq $0x1
popq %rax
movl %eax, 0x2c(%rsp)
jmp 0x5ba1
pushq $0x2
popq %rax
movl %eax, 0x2c(%rsp)
jmp 0x5ba1
pushq $0x3
popq %rax
movl %eax, 0x2c(%rsp)
jmp 0x5ba1
movq 0x2dcf0(%rip), %rax     # 0x33fd8
movq (%rax), %rdi
leaq 0x1461a(%rip), %rsi     # 0x1a90c
jmp 0x6318
movq 0x2dcdd(%rip), %rax     # 0x33fd8
movq (%rax), %rdi
leaq 0x14629(%rip), %rsi     # 0x1a92e
jmp 0x6318
movq 0x2dcca(%rip), %rax     # 0x33fd8
movq (%rax), %rdi
leaq 0x145d2(%rip), %rsi     # 0x1a8ea
movl %r15d, %edx
xorl %eax, %eax
callq 0x3360
jmp 0x5ba1
movq 0x2dcb2(%rip), %rbx     # 0x33fe0
movl 0x30(%rsp), %eax
cmpl %eax, (%rbx)
jne 0x6363
cmpb $0x0, 0x32e05(%rip)     # 0x39142
je 0x6363
leaq 0x14532(%rip), %rdi     # 0x1a878
leaq 0x14543(%rip), %rsi     # 0x1a890
leaq 0x14549(%rip), %rdx     # 0x1a89d
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x3030
jmp 0x689a
cmpb $0x0, 0x32ddf(%rip)     # 0x39149
je 0x6378
leaq 0x2e38d(%rip), %rdi     # 0x34700
callq 0x7da2
cmpb $0x0, 0x32dcb(%rip)     # 0x3914a
je 0x638d
leaq 0x2e378(%rip), %rdi     # 0x34700
callq 0x7f54
cmpb $0x0, 0x32db7(%rip)     # 0x3914b
je 0x63a2
leaq 0x2e363(%rip), %rdi     # 0x34700
callq 0xc018
xorl %r15d, %r15d
cmpb $0x0, 0x32da0(%rip)     # 0x3914c
je 0x63c6
leaq 0x2e34b(%rip), %rdi     # 0x34700
callq 0xc0ea
cmpb $0x0, 0x32d8b(%rip)     # 0x3914c
setne %al
jmp 0x63c8
xorl %eax, %eax
cmpb $0x0, 0x32d7a(%rip)     # 0x39149
jne 0x689a
cmpb $0x0, 0x32d6e(%rip)     # 0x3914a
jne 0x689a
cmpb $0x0, 0x32d62(%rip)     # 0x3914b
jne 0x689a
testb %al, %al
jne 0x689a
cmpl $0x0, 0x32d46(%rip)     # 0x39144
jne 0x689a
cmpb $0x0, 0x32d38(%rip)     # 0x39143
jne 0x689a
movl (%rbx), %eax
cmpl 0x30(%rsp), %eax
setne %cl
cmpb $0x0, 0x32d27(%rip)     # 0x39148
je 0x64d8
movl 0x20(%rsp), %edx
andb %cl, %dl
jne 0x64d8
movzbl 0x68(%rsp), %eax
andl $0x1, %eax
movl %eax, 0x8(%rsp)
movzbl 0x60(%rsp), %eax
andl $0x1, %eax
movl %eax, (%rsp)
movzbl 0x40(%rsp), %r8d
andl $0x1, %r8d
leaq 0x2e2a5(%rip), %rbx     # 0x34700
leaq 0xb8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
movq 0x58(%rsp), %rdx
movq 0x50(%rsp), %rcx
movsd 0x38(%rsp), %xmm0
movl 0x34(%rsp), %r9d
movsd 0xa0(%rsp), %xmm1
movsd 0x90(%rsp), %xmm2
movsd 0x88(%rsp), %xmm3
movsd 0x98(%rsp), %xmm4
callq 0x19264
movq %r14, %rdi
callq 0x38fe
andl $0x0, (%rsp)
leaq 0x18537(%rip), %rcx     # 0x1e9f1
leaq 0x147c8(%rip), %rsi     # 0x1ac89
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r14, %rdx
movq %rsi, %r8
callq 0x3af0
jmp 0x689a
cmpl 0x30(%rsp), %eax
jne 0x64f1
movq 0x2dacb(%rip), %rax     # 0x33fb0
movq (%rax), %rsi
leaq 0x14e7b(%rip), %rdi     # 0x1b36a
jmp 0x651e
cltq
movq 0x70(%rsp), %rcx
movq (%rcx,%rax,8), %rdi
cmpq $0x0, 0x8(%rcx,%rax,8)
jne 0x6513
movq 0x2daa5(%rip), %rax     # 0x33fb0
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
movq (%rax), %rsi
callq 0x6bed
testl %eax, %eax
je 0x6541
cmpb $0x0, 0x32be2(%rip)     # 0x39110
je 0x6541
leaq 0x14e35(%rip), %rdi     # 0x1b36c
callq 0x33b0
jmp 0x689a
movslq (%rbx), %rcx
movl 0x30(%rsp), %edx
decl %edx
cmpl %edx, %ecx
jge 0x66a7
testl %eax, %eax
jne 0x6897
movq 0x70(%rsp), %rax
movq 0x8(%rax,%rcx,8), %rbx
cmpb $0x2d, (%rbx)
jne 0x6573
cmpb $0x0, 0x1(%rbx)
je 0x6b1b
leaq 0x14358(%rip), %rsi     # 0x1a8d2
movq %rbx, %rdi
callq 0x32d0
testq %rax, %rax
je 0x6b2d
movq %rax, %r14
movq 0x2da1b(%rip), %rax     # 0x33fb0
movq (%rax), %rcx
xorl %eax, %eax
cmpq %rcx, %r14
setne %al
incl %eax
movl 0x2c(%rsp), %ecx
testl %ecx, %ecx
cmovnel %ecx, %eax
movl 0x2e14f(%rip), %ecx     # 0x34700
movq %rcx, 0x10(%rsp)
cmpl $0x2, %eax
je 0x69d7
cmpl $0x3, %eax
je 0x68c7
cmpl $0x4, %eax
jne 0x69eb
leaq 0x14bc1(%rip), %rdi     # 0x1b199
pushq $0x37
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
movq %r14, %rcx
callq 0x3470
leaq 0x14be1(%rip), %rdi     # 0x1b1d1
pushq $0xa
popq %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x3470
leaq 0x14bd7(%rip), %rdi     # 0x1b1dc
pushq $0x27
popq %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x3470
leaq 0x14bea(%rip), %rdi     # 0x1b204
pushq $0xb
popq %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x3470
movq 0x10(%rsp), %rax
shrl $0x7, %eax
movq %rax, 0x10(%rsp)
leaq 0x32b94(%rip), %rbp     # 0x391d0
leaq 0x14bdf(%rip), %r15     # 0x1b222
leaq 0x13e81(%rip), %r12     # 0x1a4cb
xorl %r13d, %r13d
cmpq 0x10(%rsp), %r13
je 0x6ad2
movq %r14, %rdi
leaq 0x14bae(%rip), %rsi     # 0x1b210
movl %r13d, %edx
xorl %eax, %eax
callq 0x3360
xorl %ebx, %ebx
cmpq $0x80, %rbx
je 0x668e
movzbl (%rbp,%rbx), %edx
movq %r14, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x3360
incq %rbx
jmp 0x666e
movq %r14, %rdi
movq %r15, %rsi
movl %r13d, %edx
xorl %eax, %eax
callq 0x3360
incq %r13
subq $-0x80, %rbp
jmp 0x664d
cmpb $0x0, 0x32a9a(%rip)     # 0x39148
je 0x68af
leaq 0x2e045(%rip), %rbx     # 0x34700
leaq 0x32b44(%rip), %rsi     # 0x39206
movq %rbx, %rdi
callq 0xa026
leaq 0x32b47(%rip), %rsi     # 0x39218
movq %rbx, %rdi
callq 0xa026
leaq 0x32b4a(%rip), %rsi     # 0x3922a
movq %rbx, %rdi
callq 0xa026
leaq 0x32b4d(%rip), %rsi     # 0x3923c
movq %rbx, %rdi
callq 0xa026
movzbl 0x60(%rsp), %r14d
andl $0x0, 0x8(%rsp)
andl $0x1, %r14d
movl %r14d, (%rsp)
movzbl 0x40(%rsp), %ebp
andl $0x1, %ebp
leaq 0xb8(%rsp), %rdi
movsd 0x13936(%rip), %xmm1    # 0x1a058
movsd 0x13926(%rip), %xmm2    # 0x1a050
movsd 0x13916(%rip), %xmm3    # 0x1a048
movsd 0x13906(%rip), %xmm4    # 0x1a040
movq %rbx, %rsi
movq 0x58(%rsp), %rdx
movq 0x50(%rsp), %rcx
movsd 0x38(%rsp), %xmm0
movl %ebp, %r8d
movl 0x34(%rsp), %r9d
callq 0x19264
cmpb $0x1, 0x2e031(%rip)     # 0x34792
jne 0x681a
movl 0xd4(%rsp), %eax
addl 0xb8(%rsp), %eax
addl 0xd8(%rsp), %eax
xorpd %xmm0, %xmm0
addl 0xdc(%rsp), %eax
je 0x679e
movl 0xc8(%rsp), %ecx
cvtsi2sd %rcx, %xmm0
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
movl 0x2dff0(%rip), %eax     # 0x34794
cvtsi2sd %rax, %xmm1
ucomisd %xmm1, %xmm0
jb 0x681a
movsd 0x2dfe1(%rip), %xmm1    # 0x34798
leaq 0x2df42(%rip), %rsi     # 0x34700
movsd 0x2dfda(%rip), %xmm2    # 0x347a0
movsd 0x2dfda(%rip), %xmm3    # 0x347a8
movsd 0x2dfda(%rip), %xmm4    # 0x347b0
movl %r14d, (%rsp)
movl $0x1, 0x8(%rsp)
leaq 0x110(%rsp), %rbx
movq %rbx, %rdi
movq 0x58(%rsp), %rdx
movq 0x50(%rsp), %rcx
movsd 0x38(%rsp), %xmm0
movl %ebp, %r8d
movl 0x34(%rsp), %r9d
callq 0x19264
pushq $0x15
popq %rcx
leaq 0xb8(%rsp), %rdi
movq %rbx, %rsi
rep  movsl (%rsi), %es:(%rdi)
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
callq 0x38fe
cmpl $0x0, 0x1c(%rbx)
leaq 0x1414b(%rip), %r8      # 0x1a980
leaq 0x1444d(%rip), %rsi     # 0x1ac89
cmovgq %rsi, %r8
andl $0x0, (%rsp)
leaq 0x2deb5(%rip), %rdi     # 0x34700
leaq 0x1819f(%rip), %rcx     # 0x1e9f1
pushq $0x1
popq %r9
movq %rbx, %rdx
jmp 0x64ce
leaq 0x14103(%rip), %rsi     # 0x1a968
jmp 0x686e
leaq 0x140db(%rip), %rsi     # 0x1a949
movq 0x2d763(%rip), %rax     # 0x33fd8
movq (%rax), %rdi
movq 0x2d761(%rip), %rax     # 0x33fe0
movslq (%rax), %rax
movq 0x70(%rsp), %rcx
movq (%rcx,%rax,8), %rdx
xorl %eax, %eax
callq 0x3360
callq 0x6be1
movl %ebp, %r15d
movl %r15d, %eax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, %r15d
testl %eax, %eax
jne 0x689a
leaq 0x2de43(%rip), %rdi     # 0x34700
callq 0x5564
movl %eax, %r15d
jmp 0x689a
leaq 0x1485b(%rip), %rdi     # 0x1b129
pushq $0x1f
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x3470
movq 0x10(%rsp), %rax
shrl $0x7, %eax
movq %rax, 0x10(%rsp)
leaq 0x328e0(%rip), %r12     # 0x391d0
leaq 0x1485b(%rip), %r15     # 0x1b152
xorl %r13d, %r13d
cmpq 0x10(%rsp), %r13
je 0x69c5
testq %r13, %r13
je 0x6915
pushq $0xa
popq %rdi
movq %r14, %rsi
callq 0x3300
movq %r13, 0x20(%rsp)
movq %r13, %rbx
shlq $0x7, %rbx
leaq 0x328a8(%rip), %rax     # 0x391d0
addq %rax, %rbx
movq %r12, 0x18(%rsp)
xorl %r13d, %r13d
cmpq $0x7f, %r13
ja 0x6984
movzbl (%rbx,%r13), %edx
movq %r14, %rdi
leaq 0x14801(%rip), %rsi     # 0x1b149
xorl %eax, %eax
callq 0x3360
pushq $0x1
popq %rbp
cmpq $0x8, %rbp
je 0x696f
movzbl (%r12,%rbp), %edx
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x3360
incq %rbp
jmp 0x6952
pushq $0xa
popq %rdi
movq %r14, %rsi
callq 0x3300
addq $0x8, %r13
addq $0x8, %r12
jmp 0x6933
movq %rbx, %rdi
callq 0x7308
testl %eax, %eax
movq 0x20(%rsp), %r13
jne 0x69b4
movq %rbx, %rdi
callq 0x731d
movzbl %al, %ecx
movq %r14, %rdi
leaq 0x147b1(%rip), %rsi     # 0x1b15b
movl %r13d, %edx
xorl %eax, %eax
callq 0x3360
incq %r13
movq 0x18(%rsp), %r12
subq $-0x80, %r12
jmp 0x68fa
leaq 0x147c9(%rip), %rdi     # 0x1b195
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
jmp 0x6af7
leaq 0x327f2(%rip), %rdi     # 0x391d0
pushq $0x1
popq %rdx
movq 0x10(%rsp), %rsi
jmp 0x6af7
movq 0x10(%rsp), %rax
shrl $0x7, %eax
movq %rax, 0x10(%rsp)
leaq 0x327d1(%rip), %r12     # 0x391d0
leaq 0x146ea(%rip), %r15     # 0x1b0f0
xorl %ebx, %ebx
cmpq 0x10(%rsp), %rbx
je 0x6aff
testq %rbx, %rbx
je 0x6a23
pushq $0xa
popq %rdi
movq %r14, %rsi
callq 0x3300
movq %rbx, 0x20(%rsp)
movq %rbx, %r13
shlq $0x7, %r13
leaq 0x3279a(%rip), %rax     # 0x391d0
addq %rax, %r13
movq %r12, 0x18(%rsp)
xorl %ebx, %ebx
cmpq $0x7f, %rbx
ja 0x6a92
movzbl (%r13,%rbx), %edx
movq %r14, %rdi
leaq 0x1469b(%rip), %rsi     # 0x1b0f1
xorl %eax, %eax
callq 0x3360
pushq $0x1
popq %rbp
cmpq $0x10, %rbp
je 0x6a7d
movzbl (%r12,%rbp), %edx
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x3360
incq %rbp
jmp 0x6a60
pushq $0xa
popq %rdi
movq %r14, %rsi
callq 0x3300
addq $0x10, %rbx
addq $0x10, %r12
jmp 0x6a40
movq %r13, %rdi
callq 0x7308
testl %eax, %eax
movq 0x20(%rsp), %rbx
jne 0x6ac1
movq %r13, %rdi
callq 0x731d
movzbl %al, %ecx
movq %r14, %rdi
leaq 0x1463e(%rip), %rsi     # 0x1b0f6
movl %ebx, %edx
xorl %eax, %eax
callq 0x3360
incq %rbx
movq 0x18(%rsp), %r12
subq $-0x80, %r12
jmp 0x6a08
leaq 0x14755(%rip), %rdi     # 0x1b22e
pushq $0xc
popq %rsi
pushq $0x1
popq %rbx
movq %rbx, %rdx
movq %r14, %rcx
callq 0x3470
leaq 0x1474a(%rip), %rdi     # 0x1b23b
pushq $0xb
popq %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x3470
movq 0x2d4aa(%rip), %rax     # 0x33fb0
cmpq (%rax), %r14
je 0x6b13
movq %r14, %rdi
callq 0x3260
xorl %r15d, %r15d
jmp 0x689a
movq 0x2d48e(%rip), %rax     # 0x33fb0
movq (%rax), %rcx
movq %rcx, %r14
jmp 0x6598
movq %rbx, %rdi
callq 0x3200
jmp 0x6897
movq 0x2d497(%rip), %rax     # 0x33fd8
movq (%rax), %rcx
leaq 0x1438b(%rip), %rdi     # 0x1aed6
pushq $0x1e
popq %rsi
pushq $0x1
popq %rdx
callq 0x3470
jmp 0x6b78
movq 0x2d479(%rip), %rax     # 0x33fd8
movq (%rax), %rdi
movslq %r15d, %rax
movq (%r13,%rax,8), %rdx
leaq 0x14384(%rip), %rsi     # 0x1aef5
xorl %eax, %eax
callq 0x3360
callq 0x6be1
pushq $0x1
popq %rdi
callq 0x32e0
movq 0x2d44c(%rip), %rax     # 0x33fd8
movq (%rax), %rdi
movslq %ebp, %rax
leaq 0x2c9c7(%rip), %rcx     # 0x33560
movq (%rcx,%rax,8), %rdx
jmp 0x6b6a
movq 0x2d432(%rip), %rax     # 0x33fd8
movq (%rax), %rcx
leaq 0x142e4(%rip), %rdi     # 0x1ae94
pushq $0x22
jmp 0x6b4d
movq 0x2d41d(%rip), %rax     # 0x33fd8
movq (%rax), %rcx
leaq 0x14371(%rip), %rdi     # 0x1af36
pushq $0x2d
jmp 0x6b4d
movq 0x2d408(%rip), %rax     # 0x33fd8
movq (%rax), %rcx
leaq 0x1433e(%rip), %rdi     # 0x1af18
pushq $0x1d
jmp 0x6b4d