// File: /workspace/github_c_makefile_star2_O1/igaw[P]jitterdebugger/jitterdebugger.c
// Function: main
int main(int argc, char *argv[])
{
	struct sigaction sa;
	unsigned int i;
	int c, fd, err;
	struct stats *s;
	pthread_t pid, iopid;
	cpu_set_t affinity_available, affinity_set;
	int long_idx;
	long val;
	struct record_data *rec = NULL;
	FILE *rfd = NULL;
	struct system_info *sysinfo;

	/* Command line options */
	unsigned int opt_duration = 0;
	char *opt_dir = NULL;
	char *opt_cmd = NULL;
	char *opt_net = NULL;
	int opt_samples = 0;
	int opt_verbose = 0;

	CPU_ZERO(&affinity_set);

	while (1) {
		c = getopt_long(argc, argv, "c:n:sp:vD:l:b:Ni:o:a:h", long_options,
				&long_idx);
		if (c < 0)
			break;

		switch (c) {
		case 0:
			if (!strcmp(long_options[long_idx].name, "version")) {
				printf("jitterdebugger %s\n",
					JD_VERSION);
				exit(0);
			}
			break;
		case 'o':
			opt_dir = optarg;
			break;
		case 'c':
			opt_cmd = optarg;
			break;
		case 'n':
			opt_net = optarg;
			break;
		case 's':
			opt_samples = 1;
			break;
		case 'p':
			val = parse_dec(optarg);
			if (val < 1 || val > 98)
				err_abort("Invalid value for priority. "
					  "Valid range is [1..98]\n");
			priority = val;
			break;
		case 'v':
			opt_verbose = 1;
			break;
		case 'D':
			val = parse_time(optarg);
			if (val < 0)
				err_abort("Invalid value for duration. "
					"Valid postfixes are 'd', 'h', 'm', 's'\n");
			opt_duration = val;
			break;
		case 'l':
			val = parse_dec(optarg);
			if (val <= 0)
				err_abort("Invalid value for loops. "
					"Valid range is [1..]\n");
			max_loops = val;
			break;
		case 'b':
			val = parse_dec(optarg);
			if (val <= 0)
				err_abort("Invalid value for break. "
					  "Valid range is [1..]\n");
			break_val = val;
			break;
		case 'N':
			interval_resolution = 1;
			break;
		case 'i':
			val = parse_dec(optarg);
			if (val < 1)
				err_abort("Invalid value for interval. "
					  "Valid range is [1..]. "
					  "Default: %u us.\n", sleep_interval_us);
			sleep_interval_us = val;
			break;
		case 'h':
			usage(0);
		case 'a':
			val = cpuset_parse(&affinity_set, optarg);
			if (val < 0) {
				fprintf(stderr, "Invalid value for affinity. Valid range is [0..]\n");
				exit(1);
			}
			break;
		default:
			usage(1);
		}
	}

	if (geteuid() != 0)
		printf("jitterdebugger is not running with root rights.\n");

	sysinfo = collect_system_info();
	if (opt_dir) {
		err = mkdir(opt_dir, 0777);
		if (err) {
			if (errno != EEXIST) {
				err_handler(errno,
					"Creating directory '%s' failed\n",
					opt_dir);
			}
			warn_handler("Directory '%s' already exist: overwriting contents", opt_dir);
		} else {
			store_system_info(opt_dir, sysinfo);
		}
	}

	if (opt_net || opt_samples) {
		if (opt_net && opt_samples) {
			fprintf(stdout, "Can't use both options -s or -n together\n");
			exit(1);
		}

		rec = malloc(sizeof(*rec));
		if (!rec)
			err_handler(ENOMEM, "malloc()");

		if (opt_net) {
			rec->server = strtok(opt_net, " :");
			rec->port = strtok(NULL, " :");

			if (!rec->server || !rec->port) {
				fprintf(stdout, "Invalid server name and/or port string\n");
				exit(1);
			}
		}

		if (opt_samples) {
			if (!opt_dir) {
				fprintf(stdout, "-o/--output is needed with -s option\n");
				exit(1);
			}
			rec->fd = jd_fopen(opt_dir, "samples.raw", "w");
			if (!rec->fd)
				err_handler(errno, "Couldn't create samples.raw file");
		}
	}

	sa.sa_flags = 0;
	sa.sa_handler = sig_handler;
	sigemptyset(&sa.sa_mask);

	if (sigaction(SIGINT, &sa, NULL) < 0)
		err_handler(errno, "sigaction()");

	if (sigaction(SIGTERM, &sa, NULL) < 0)
		err_handler(errno, "sigaction()");

	if (sigaction(SIGALRM, &sa, NULL) < 0)
		err_handler(errno, "sigaction()");

	if (opt_duration > 0)
		alarm(opt_duration);

	if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) {
		if (errno == ENOMEM || errno == EPERM)
			fprintf(stderr, "Nonzero RTLIMIT_MEMLOCK soft resource "
				"limit or missing process privileges "
				"(CAP_IPC_LOCK)\n");
		err_handler(errno, "mlockall()");
	}

	fd = c_states_disable();

	if (break_val != UINT64_MAX)
		open_trace_fds();

	if (CPU_COUNT(&affinity_set)) {
		/*
		 * The user is able to override the affinity mask with
		 * a set which contains more CPUs than
		 * sched_getaffinity() returns.
		 */
		affinity = affinity_set;
	} else {
		if (sched_getaffinity(0, sizeof(cpu_set_t), &affinity_available))
			err_handler(errno, "sched_getaffinity()");
		affinity = affinity_available;
	}

	if (opt_verbose) {
		printf("affinity: ");
		cpuset_fprint(stdout, &affinity);
		printf("\n");
	}

	num_threads = CPU_COUNT(&affinity);
	s = calloc(num_threads, sizeof(struct stats));
	if (!s)
		err_handler(errno, "calloc()");

	err = start_workload(opt_cmd);
	if (err < 0)
		err_handler(errno, "starting workload failed");

	start_measuring(s, rec);

	if (opt_net || opt_samples) {
		rec->stats = s;
		err = pthread_create(&iopid, NULL, store_samples, rec);
		if (err)
			err_handler(err, "pthread_create()");
	}

	if (opt_verbose) {
		err = pthread_create(&pid, NULL, display_stats, s);
		if (err)
			err_handler(err, "pthread_create()");
	}

	for (i = 0; i < num_threads; i++) {
		err = pthread_join(s[i].pid, NULL);
		if (err)
			err_handler(err, "pthread_join()");
	}

	WRITE_ONCE(jd_shutdown, 1);
	stop_workload();

	if (rec) {
		err = pthread_join(iopid, NULL);
		if (err)
			err_handler(err, "pthread_join()");

		if (rec->fd)
			fclose(rec->fd);
		free(rec);
	}

	if (opt_verbose) {
		err = pthread_join(pid, NULL);
		if (err)
			err_handler(err, "pthread_join()");
	} else {
		printf("\n");
		__display_stats(s);
	}

	printf("\n");

	if (opt_dir) {
		rfd = jd_fopen(opt_dir, "results.json", "w");
		if (rfd) {
			dump_stats(rfd, sysinfo, s);
			fclose(rfd);
		} else {
			warn_handler("Couldn't create results.json");
		}
		free_system_info(sysinfo);
	}

	if (opt_verbose && break_val != UINT_MAX) {
		for (i = 0; i < num_threads; i++) {
			if (s[i].max > break_val) {
				const char *unit = "us";
				if (interval_resolution == 1)
					unit = "ns";
				printf("Thread %lu on CPU %u hit %" PRIu64 " %s latency\n",
					(long)s[i].tid, i, s[i].max, unit);
			}
		}
	}

	for (i = 0; i < num_threads; i++) {
		free(s[i].hist);
		if (s[i].rb)
			ringbuffer_free(s[i].rb);
	}
	free(s);

	if (tracemark_fd > 0)
		close(tracemark_fd);

	if (trace_fd > 0)
		close(trace_fd);

	c_states_enable(fd);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rsi, %rbx
movl %edi, %r15d
xorpd %xmm0, %xmm0
movapd %xmm0, 0x110(%rsp)
movapd %xmm0, 0x120(%rsp)
movapd %xmm0, 0x130(%rsp)
movapd %xmm0, 0x140(%rsp)
movapd %xmm0, 0x150(%rsp)
movapd %xmm0, 0x160(%rsp)
movapd %xmm0, 0x170(%rsp)
movapd %xmm0, 0x180(%rsp)
leaq 0x28f2(%rip), %rdx      # 0x5088
leaq 0x5ac3(%rip), %r13      # 0x8260
leaq 0x34(%rsp), %r8
movq %r13, %rcx
callq 0x2150
testl %eax, %eax
js 0x29d9
movq $0x0, 0x28(%rsp)
leaq 0x28c6(%rip), %r14      # 0x5088
leaq 0x34(%rsp), %rbp
leaq 0x2862(%rip), %r12      # 0x5030
movl $0x0, 0x20(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x18(%rsp)
cmpl $0x60, %eax
jle 0x2839
addl $-0x61, %eax
cmpl $0x15, %eax
ja 0x37e0
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
movq 0x57bd(%rip), %rax      # 0x7fd8
movq (%rax), %rsi
leaq 0x110(%rsp), %rdi
callq 0x4580
testq %rax, %rax
jns 0x2995
jmp 0x37ba
testl %eax, %eax
je 0x2956
cmpl $0x44, %eax
je 0x2978
cmpl $0x4e, %eax
jne 0x37e0
movb $0x1, 0x5bd2(%rip)      # 0x842c
jmp 0x2995
movq 0x5772(%rip), %rax      # 0x7fd8
movq (%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0x2995
movq 0x575e(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x42eb
testq %rax, %rax
jle 0x37b0
movl %eax, 0x5b78(%rip)      # 0x8410
jmp 0x2995
movq 0x5734(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x42eb
leaq -0x63(%rax), %rcx
cmpq $-0x63, %rcx
jbe 0x37a6
movl %eax, 0x5b39(%rip)      # 0x8400
jmp 0x2995
movq 0x5705(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x42eb
testq %rax, %rax
jle 0x37ab
movl %eax, 0x5b37(%rip)      # 0x8428
jmp 0x2995
movq 0x56db(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x42eb
testq %rax, %rax
jle 0x37b5
movq %rax, 0x5aec(%rip)      # 0x8408
jmp 0x2995
movl $0x1, 0x20(%rsp)
jmp 0x2995
movq 0x56a9(%rip), %rax      # 0x7fd8
movq (%rax), %rax
movq %rax, 0x40(%rsp)
jmp 0x2995
movq 0x5698(%rip), %rax      # 0x7fd8
movq (%rax), %rax
movq %rax, 0x38(%rsp)
jmp 0x2995
movl $0x1, %eax
movq %rax, 0x28(%rsp)
jmp 0x2995
movslq 0x34(%rsp), %rax
shlq $0x5, %rax
movq (%rax,%r13), %rdi
leaq 0x2735(%rip), %rsi      # 0x509f
callq 0x2230
testl %eax, %eax
jne 0x2995
jmp 0x37c4
movq 0x5659(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
callq 0x434d
movq %rax, 0x18(%rsp)
testq %rax, %rax
js 0x37bf
movl %r15d, %edi
movq %rbx, %rsi
movq %r14, %rdx
movq %r13, %rcx
movq %rbp, %r8
callq 0x2150
testl %eax, %eax
jns 0x27fa
cmpl $0x0, 0x20(%rsp)
setne %r14b
cmpl $0x0, 0x28(%rsp)
setne %r15b
movq 0x38(%rsp), %r12
movq 0x40(%rsp), %r13
movq 0x18(%rsp), %rbx
movq 0x10(%rsp), %rbp
jmp 0x29e9
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r14d, %r14d
xorl %r15d, %r15d
callq 0x21b0
testl %eax, %eax
je 0x29fe
leaq 0x2f68(%rip), %rdi      # 0x5961
callq 0x20b0
callq 0x4abc
movq %rax, 0x20(%rsp)
testq %r12, %r12
je 0x2a77
movq %r12, %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x2090
testl %eax, %eax
je 0x2a6a
callq 0x2070
movl (%rax), %edi
cmpl $0x11, %edi
je 0x2a49
leaq 0x27dd(%rip), %rsi      # 0x520e
leaq 0x27ff(%rip), %rdx      # 0x5237
leaq 0x2809(%rip), %rcx      # 0x5248
movq %r12, %r8
xorl %eax, %eax
callq 0x4184
leaq 0x27fd(%rip), %rdi      # 0x524d
leaq 0x27e0(%rip), %rsi      # 0x5237
leaq 0x27ea(%rip), %rdx      # 0x5248
movq %r12, %rcx
xorl %eax, %eax
callq 0x4253
jmp 0x2a77
movq %r12, %rdi
movq 0x20(%rsp), %rsi
callq 0x4b8c
testq %rbp, %rbp
setne %al
orb %r14b, %al
movb %al, 0xf(%rsp)
testb $0x1, %al
je 0x2b75
testq %rbp, %rbp
setne %al
andb %r14b, %al
cmpb $0x1, %al
je 0x37ea
movl $0x20, %edi
callq 0x22b0
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x2ad2
leaq 0x27fc(%rip), %rsi      # 0x52b4
leaq 0x2778(%rip), %rdx      # 0x5237
leaq 0x2782(%rip), %rcx      # 0x5248
movl $0xc, %edi
xorl %eax, %eax
callq 0x4184
testq %rbp, %rbp
je 0x2b1e
leaq 0x27e8(%rip), %rsi      # 0x52c6
movq %rbp, %rdi
callq 0x2360
movq 0x10(%rsp), %rcx
movq %r13, %rbp
movq %rcx, %r13
movq %rax, 0x8(%rcx)
xorl %edi, %edi
leaq 0x27c8(%rip), %rsi      # 0x52c6
callq 0x2360
movq %rax, 0x10(%r13)
cmpq $0x0, 0x8(%r13)
je 0x3802
movq %rbp, %r13
testq %rax, %rax
je 0x3802
testb %r14b, %r14b
je 0x2b7e
testq %r12, %r12
je 0x381a
leaq 0x27e4(%rip), %rsi      # 0x5317
leaq 0x27e7(%rip), %rdx      # 0x5321
movq %r12, %rdi
callq 0x47ac
movq 0x10(%rsp), %rcx
movq %rax, 0x18(%rcx)
testq %rax, %rax
jne 0x2b7e
callq 0x2070
movl (%rax), %edi
leaq 0x27c5(%rip), %rsi      # 0x5323
leaq 0x26d2(%rip), %rdx      # 0x5237
leaq 0x26dc(%rip), %rcx      # 0x5248
xorl %eax, %eax
callq 0x4184
jmp 0x2b7e
movq $0x0, 0x10(%rsp)
leaq 0x198(%rsp), %rdi
movl $0x0, 0x80(%rdi)
leaq 0xdf5(%rip), %rax       # 0x398c
movq %rax, -0x8(%rdi)
callq 0x2260
leaq 0x190(%rsp), %rsi
movl $0x2, %edi
xorl %edx, %edx
callq 0x20c0
testl %eax, %eax
jns 0x2bdb
callq 0x2070
movl (%rax), %edi
leaq 0x2787(%rip), %rsi      # 0x534d
leaq 0x266a(%rip), %rdx      # 0x5237
leaq 0x2674(%rip), %rcx      # 0x5248
xorl %eax, %eax
callq 0x4184
leaq 0x190(%rsp), %rsi
movl $0xf, %edi
xorl %edx, %edx
callq 0x20c0
testl %eax, %eax
jns 0x2c16
callq 0x2070
movl (%rax), %edi
leaq 0x274c(%rip), %rsi      # 0x534d
leaq 0x262f(%rip), %rdx      # 0x5237
leaq 0x2639(%rip), %rcx      # 0x5248
xorl %eax, %eax
callq 0x4184
leaq 0x190(%rsp), %rsi
movl $0xe, %edi
xorl %edx, %edx
callq 0x20c0
testl %eax, %eax
jns 0x2c51
callq 0x2070
movl (%rax), %edi
leaq 0x2711(%rip), %rsi      # 0x534d
leaq 0x25f4(%rip), %rdx      # 0x5237
leaq 0x25fe(%rip), %rcx      # 0x5248
xorl %eax, %eax
callq 0x4184
testl %ebx, %ebx
je 0x2c5c
movl %ebx, %edi
callq 0x21d0
movl $0x3, %edi
callq 0x2300
testl %eax, %eax
jns 0x2ca4
callq 0x2070
movq %rax, %rbx
movl (%rax), %eax
cmpl $0xc, %eax
je 0x378b
cmpl $0x1, %eax
je 0x378b
movl (%rbx), %edi
leaq 0x272d(%rip), %rsi      # 0x53bc
leaq 0x25a1(%rip), %rdx      # 0x5237
leaq 0x25ab(%rip), %rcx      # 0x5248
xorl %eax, %eax
callq 0x4184
movl $0x0, 0x50(%rsp)
leaq 0x285a(%rip), %rbx      # 0x550d
movq %rbx, %rdi
movl $0x80002, %esi          # imm = 0x80002
xorl %eax, %eax
callq 0x2330
movl %eax, %r14d
cmpl $-0x1, %eax
jne 0x2cd4
callq 0x2070
cmpl $0x4, (%rax)
je 0x2cb3
testl %r14d, %r14d
jns 0x2d0f
callq 0x2070
movq %rax, %rbx
movl (%rax), %eax
cmpl $0x2, %eax
je 0x2d21
cmpl $0xd, %eax
je 0x3795
movl (%rbx), %edi
leaq 0x2842(%rip), %rsi      # 0x553c
leaq 0x2536(%rip), %rdx      # 0x5237
leaq 0x2844(%rip), %rcx      # 0x554c
xorl %eax, %eax
callq 0x4184
leaq 0x50(%rsp), %rsi
movl $0x4, %edx
movl %r14d, %edi
callq 0x2100
cmpq $-0x1, 0x56df(%rip)     # 0x8408
movq %r15, 0x28(%rsp)
je 0x2de1
leaq 0x2822(%rip), %rbx      # 0x555d
movq %rbx, %rdi
movl $0x1, %esi
xorl %eax, %eax
callq 0x2330
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x2d5b
callq 0x2070
cmpl $0x4, (%rax)
je 0x2d3b
movl %ebp, 0x56b7(%rip)      # 0x8418
testl %ebp, %ebp
jns 0x2d88
callq 0x2070
movl (%rax), %edi
leaq 0x27c9(%rip), %rsi      # 0x553c
leaq 0x24bd(%rip), %rdx      # 0x5237
leaq 0x2828(%rip), %rcx      # 0x55a9
xorl %eax, %eax
callq 0x4184
leaq 0x27f3(%rip), %rbx      # 0x5582
movq %rbx, %rdi
movl $0x1, %esi
xorl %eax, %eax
callq 0x2330
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x2daf
callq 0x2070
cmpl $0x4, (%rax)
je 0x2d8f
movl %ebp, 0x565f(%rip)      # 0x8414
testl %ebp, %ebp
movq 0x28(%rsp), %r15
jns 0x2de1
callq 0x2070
movl (%rax), %edi
leaq 0x2770(%rip), %rsi      # 0x553c
leaq 0x2464(%rip), %rdx      # 0x5237
leaq 0x27cf(%rip), %rcx      # 0x55a9
xorl %eax, %eax
callq 0x4184
leaq 0x110(%rsp), %rbx
movl $0x80, %edi
movq %rbx, %rsi
callq 0x2130
testl %eax, %eax
jne 0x2e38
leaq 0x228(%rsp), %rbx
movl $0x80, %esi
xorl %edi, %edi
movq %rbx, %rdx
callq 0x23f0
testl %eax, %eax
je 0x2e38
callq 0x2070
movl (%rax), %edi
leaq 0x25ad(%rip), %rsi      # 0x53d0
leaq 0x240d(%rip), %rdx      # 0x5237
leaq 0x2417(%rip), %rcx      # 0x5248
xorl %eax, %eax
callq 0x4184
leaq 0x55f1(%rip), %rdi      # 0x8430
movl $0x10, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
testb %r15b, %r15b
je 0x2e7d
leaq 0x2597(%rip), %rdi      # 0x53ed
xorl %eax, %eax
callq 0x2160
movq 0x516c(%rip), %rax      # 0x7fd0
movq (%rax), %rdi
leaq 0x55c2(%rip), %rsi      # 0x8430
callq 0x43e6
movl $0xa, %edi
callq 0x2050
leaq 0x55ac(%rip), %rbx      # 0x8430
movl $0x80, %edi
movq %rbx, %rsi
callq 0x2130
movl %eax, 0x5619(%rip)      # 0x84b0
movl %eax, %edi
movl $0x50, %esi
callq 0x2220
movq %rax, %r15
testq %rax, %rax
jne 0x2ece
callq 0x2070
movl (%rax), %edi
leaq 0x253f(%rip), %rsi      # 0x53f8
leaq 0x2377(%rip), %rdx      # 0x5237
leaq 0x2381(%rip), %rcx      # 0x5248
xorl %eax, %eax
callq 0x4184
movq %r15, 0x18(%rsp)
movl %r14d, 0x48(%rsp)
movq %r12, 0x38(%rsp)
movq %r13, %rdi
callq 0x4940
testl %eax, %eax
jns 0x2f0c
callq 0x2070
movl (%rax), %edi
leaq 0x2513(%rip), %rsi      # 0x540a
leaq 0x2339(%rip), %rdx      # 0x5237
leaq 0x2343(%rip), %rcx      # 0x5248
xorl %eax, %eax
callq 0x4184
leaq 0xd8(%rsp), %rdi
callq 0x2210
cmpl $0x0, 0x5590(%rip)      # 0x84b0
je 0x316b
leaq 0x230a(%rip), %r14      # 0x5237
leaq 0x2684(%rip), %r15      # 0x55b8
xorl %edi, %edi
xorl %ebp, %ebp
xorpd %xmm0, %xmm0
movapd %xmm0, 0xc0(%rsp)
movapd %xmm0, 0xb0(%rsp)
movapd %xmm0, 0xa0(%rsp)
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0x80(%rsp)
movapd %xmm0, 0x70(%rsp)
movapd %xmm0, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
cmpl $0x3ff, %ebp            # imm = 0x3FF
ja 0x2f9c
movl %ebp, %eax
shrl $0x6, %eax
movq (%rbx,%rax,8), %rsi
movl $0x1, %edx
movl %ebp, %ecx
shlq %cl, %rdx
btq %rbp, %rsi
jb 0x2fa0
incl %ebp
jmp 0x2f7b
movq %r15, %r13
movq %r14, %r15
orq %rdx, 0x50(%rsp,%rax,8)
movq %rdi, 0x40(%rsp)
leaq (%rdi,%rdi,4), %r12
shlq $0x4, %r12
movq 0x18(%rsp), %r14
movl %ebp, 0xc(%r14,%r12)
movq $-0x1, 0x18(%r14,%r12)
cmpb $0x0, 0x545a(%rip)      # 0x842c
movl $0x3e8, %edi            # imm = 0x3E8
movl $0xf4240, %eax          # imm = 0xF4240
cmovnel %eax, %edi
movl %edi, 0x28(%r14,%r12)
movl $0x8, %esi
callq 0x2220
movq %rax, 0x30(%r14,%r12)
testq %rax, %rax
jne 0x3013
callq 0x2070
movl (%rax), %edi
leaq 0x23f2(%rip), %rsi      # 0x53f8
movq %r15, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x4184
addq %r14, %r12
cmpq $0x0, 0x10(%rsp)
movq %r15, %r14
movq %r13, %r15
je 0x3051
movl $0x100000, %edi         # imm = 0x100000
callq 0x40a8
movq %rax, 0x48(%r12)
testq %rax, %rax
jne 0x3051
movl $0xc, %edi
leaq 0x2584(%rip), %rsi      # 0x55c8
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x4184
movl $0x80, %esi
leaq 0xd8(%rsp), %r13
movq %r13, %rdi
leaq 0x50(%rsp), %rdx
callq 0x2060
testl %eax, %eax
je 0x3085
movl %eax, %edi
leaq 0x256d(%rip), %rsi      # 0x55e5
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x4184
movq %r13, %rdi
movl $0x1, %esi
callq 0x21a0
testl %eax, %eax
je 0x30ac
movl %eax, %edi
leaq 0x256d(%rip), %rsi      # 0x560c
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x4184
movl 0x534e(%rip), %eax      # 0x8400
movl %eax, 0x4c(%rsp)
movq %r13, %rdi
leaq 0x4c(%rsp), %rsi
callq 0x23a0
testl %eax, %eax
je 0x30dd
movl %eax, %edi
leaq 0x2563(%rip), %rsi      # 0x5633
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x4184
movq %r13, %rdi
movl $0x1, %esi
callq 0x20a0
testl %eax, %eax
je 0x3104
movl %eax, %edi
leaq 0x2562(%rip), %rsi      # 0x5659
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x4184
movq %r12, %rdi
movq %r13, %rsi
leaq 0xd05(%rip), %rdx       # 0x3e16
movq %r12, %rcx
callq 0x2310
testl %eax, %eax
je 0x3142
movl %eax, %r12d
cmpl $0x16, %eax
je 0x3164
cmpl $0x1, %r12d
je 0x315d
movl %r12d, %edi
leaq 0x22f7(%rip), %rsi      # 0x542c
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x4184
incl %ebp
movq 0x40(%rsp), %rdi
incq %rdi
movl 0x535e(%rip), %eax      # 0x84b0
cmpq %rax, %rdi
jb 0x2f38
jmp 0x316b
callq 0x25f9
jmp 0x312b
callq 0x25d7
jmp 0x312b
leaq 0xd8(%rsp), %rdi
callq 0x2390
testb $0x1, 0xf(%rsp)
je 0x31c4
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rax, (%rcx)
leaq 0x804(%rip), %rdx       # 0x3997
leaq 0xd8(%rsp), %rdi
xorl %esi, %esi
callq 0x2310
testl %eax, %eax
je 0x31c4
leaq 0x227f(%rip), %rsi      # 0x542c
leaq 0x2083(%rip), %rdx      # 0x5237
leaq 0x208d(%rip), %rcx      # 0x5248
movl %eax, %edi
xorl %eax, %eax
callq 0x4184
movq 0x28(%rsp), %rbp
testb %bpl, %bpl
je 0x3208
leaq 0xb16(%rip), %rdx       # 0x3ceb
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
movq 0x18(%rsp), %rcx
callq 0x2310
testl %eax, %eax
je 0x3208
leaq 0x223b(%rip), %rsi      # 0x542c
leaq 0x203f(%rip), %rdx      # 0x5237
leaq 0x2049(%rip), %rcx      # 0x5248
movl %eax, %edi
xorl %eax, %eax
callq 0x4184
cmpl $0x0, 0x52a1(%rip)      # 0x84b0
je 0x3261
leaq 0x222e(%rip), %rbx      # 0x5446
leaq 0x2018(%rip), %r14      # 0x5237
leaq 0x2022(%rip), %r15      # 0x5248
movq 0x18(%rsp), %r12
xorl %r13d, %r13d
movq (%r12), %rdi
xorl %esi, %esi
callq 0x2410
testl %eax, %eax
je 0x324f
movl %eax, %edi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x4184
incq %r13
movl 0x5258(%rip), %eax      # 0x84b0
addq $0x50, %r12
cmpq %rax, %r13
jb 0x322e
movl $0x1, 0x5249(%rip)      # 0x84b4
callq 0x4a04
cmpq $0x0, 0x10(%rsp)
movq 0x38(%rsp), %rbx
je 0x32cb
movq 0xd8(%rsp), %rdi
xorl %esi, %esi
callq 0x2410
testl %eax, %eax
je 0x32ae
leaq 0x21af(%rip), %rsi      # 0x5446
leaq 0x1f99(%rip), %rdx      # 0x5237
leaq 0x1fa3(%rip), %rcx      # 0x5248
movl %eax, %edi
xorl %eax, %eax
callq 0x4184
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x32c1
callq 0x2120
movq 0x10(%rsp), %rdi
callq 0x2040
testb %bpl, %bpl
je 0x3300
movq 0x50(%rsp), %rdi
xorl %esi, %esi
callq 0x2410
testl %eax, %eax
je 0x3314
leaq 0x215f(%rip), %rsi      # 0x5446
leaq 0x1f49(%rip), %rdx      # 0x5237
leaq 0x1f53(%rip), %rcx      # 0x5248
movl %eax, %edi
xorl %eax, %eax
callq 0x4184
jmp 0x3314
movl $0xa, %edi
callq 0x2050
movq 0x18(%rsp), %rdi
callq 0x3d6b
movl $0xa, %edi
callq 0x2050
testq %rbx, %rbx
je 0x3688
leaq 0x2130(%rip), %rsi      # 0x545e
leaq 0x1fec(%rip), %rdx      # 0x5321
movq %rbx, %rdi
callq 0x47ac
testq %rax, %rax
je 0x3662
movq %rax, %rbx
leaq 0x24c3(%rip), %rdi      # 0x5813
movl $0x2, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x23d0
leaq 0x248c(%rip), %rdi      # 0x57f5
movl $0x10, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23d0
leaq 0x2484(%rip), %rdi      # 0x5806
movl $0xf, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23d0
movq 0x20(%rsp), %r14
movq (%r14), %rdx
leaq 0x2473(%rip), %rsi      # 0x5816
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2240
movq 0x8(%r14), %rdx
leaq 0x2474(%rip), %rsi      # 0x582c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2240
movq 0x10(%r14), %rdx
leaq 0x2476(%rip), %rsi      # 0x5843
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2240
movq 0x18(%r14), %rdx
leaq 0x2477(%rip), %rsi      # 0x5859
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2240
movq 0x20(%r14), %rdx
leaq 0x2478(%rip), %rsi      # 0x586f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2240
movl 0x28(%r14), %edx
leaq 0x2479(%rip), %rsi      # 0x5885
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2240
cmpb $0x0, 0x500f(%rip)      # 0x842c
movl $0x1, %eax
movl $0x3e8, %edx            # imm = 0x3E8
cmovnel %eax, %edx
leaq 0x246c(%rip), %rsi      # 0x589d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2240
leaq 0x24bb(%rip), %rdi      # 0x58fd
movl $0x5, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23d0
leaq 0x245e(%rip), %rdi      # 0x58b9
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23d0
cmpl $0x0, 0x503c(%rip)      # 0x84b0
je 0x3621
leaq 0x23bf(%rip), %rbp      # 0x5840
leaq 0x245f(%rip), %r14      # 0x58e7
xorl %r15d, %r15d
movq %rbx, %rdi
leaq 0x2430(%rip), %rsi      # 0x58c5
movl %r15d, %edx
xorl %eax, %eax
callq 0x2240
movl $0x14, %esi
movl $0x1, %edx
leaq 0x2422(%rip), %rdi      # 0x58d2
movq %rbx, %rcx
callq 0x23d0
leaq (%r15,%r15,4), %rax
shlq $0x4, %rax
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax), %r13
cmpl $0x0, 0x28(%rcx,%rax)
je 0x3532
xorl %r12d, %r12d
xorl %eax, %eax
movq 0x30(%r13), %rcx
cmpq $0x0, (%rcx,%r12,8)
je 0x3515
testl %eax, %eax
movq %rbp, %rdi
leaq 0x1c4a(%rip), %rax      # 0x5136
cmoveq %rax, %rdi
movq %rbx, %rsi
callq 0x2190
movq 0x30(%r13), %rax
movq (%rax,%r12,8), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movl %r12d, %edx
xorl %eax, %eax
callq 0x2240
movl $0x1, %eax
incq %r12
movl 0x28(%r13), %ecx
cmpq %rcx, %r12
jb 0x34d5
testl %eax, %eax
je 0x3532
movl $0xa, %edi
movq %rbx, %rsi
callq 0x21f0
movl $0x9, %esi
movl $0x1, %edx
leaq 0x23b6(%rip), %rdi      # 0x58f9
movq %rbx, %rcx
callq 0x23d0
movq 0x40(%r13), %rdx
movq %rbx, %rdi
leaq 0x23aa(%rip), %rsi      # 0x5903
xorl %eax, %eax
callq 0x2240
movq 0x18(%r13), %rdx
movq %rbx, %rdi
leaq 0x23aa(%rip), %rsi      # 0x5918
xorl %eax, %eax
callq 0x2240
movq 0x10(%r13), %rdx
movq %rbx, %rdi
leaq 0x23a8(%rip), %rsi      # 0x592b
xorl %eax, %eax
callq 0x2240
movsd 0x38(%r13), %xmm1
movsd 0x1a78(%rip), %xmm2     # 0x5010
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x1a7d(%rip), %xmm3     # 0x5020
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x40(%r13), %xmm1
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq %rbx, %rdi
leaq 0x2364(%rip), %rsi      # 0x593e
movb $0x1, %al
callq 0x2240
movl 0x4ec9(%rip), %eax      # 0x84b0
decl %eax
cmpq %rax, %r15
leaq 0x2367(%rip), %rdx      # 0x595a
leaq 0x1b3d(%rip), %rax      # 0x5137
cmoveq %rax, %rdx
movq %rbx, %rdi
leaq 0x2349(%rip), %rsi      # 0x5951
xorl %eax, %eax
callq 0x2240
incq %r15
movl 0x4e98(%rip), %eax      # 0x84b0
cmpq %rax, %r15
jb 0x348b
leaq 0x2334(%rip), %rdi      # 0x595c
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23d0
leaq 0x231d(%rip), %rdi      # 0x595e
movl $0x2, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x23d0
movq %rbx, %rdi
callq 0x2120
movq 0x28(%rsp), %rbp
jmp 0x367e
leaq 0x1e02(%rip), %rdi      # 0x546b
leaq 0x1bc7(%rip), %rsi      # 0x5237
leaq 0x1bd1(%rip), %rdx      # 0x5248
xorl %eax, %eax
callq 0x4253
movq 0x20(%rsp), %rdi
callq 0x4d44
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x4d74(%rip)      # 0x8408
setne %al
andb %al, %bpl
cmpb $0x1, %bpl
movq 0x18(%rsp), %rbp
jne 0x3707
cmpl $0x0, 0x4e04(%rip)      # 0x84b0
je 0x3707
leaq 0x10(%rbp), %r15
leaq 0x1ddc(%rip), %r12      # 0x5495
leaq 0x1dd2(%rip), %r13      # 0x5492
leaq 0x1dd1(%rip), %rbx      # 0x5498
xorl %r14d, %r14d
movq (%r15), %rcx
cmpq 0x4d34(%rip), %rcx      # 0x8408
jbe 0x36f5
cmpb $0x0, 0x4d4f(%rip)      # 0x842c
movq %r13, %r8
cmovneq %r12, %r8
movslq -0x8(%r15), %rsi
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x2160
incq %r14
movl 0x4db2(%rip), %eax      # 0x84b0
addq $0x50, %r15
cmpq %rax, %r14
jb 0x36ca
cmpl $0x0, 0x4da2(%rip)      # 0x84b0
je 0x3742
movq %rbp, %rbx
addq $0x48, %rbx
xorl %r14d, %r14d
movq -0x18(%rbx), %rdi
callq 0x2040
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3730
callq 0x40f1
incq %r14
movl 0x4d77(%rip), %eax      # 0x84b0
addq $0x50, %rbx
cmpq %rax, %r14
jb 0x371a
movq %rbp, %rdi
callq 0x2040
movl 0x4cc4(%rip), %edi      # 0x8414
testl %edi, %edi
jle 0x3759
callq 0x21e0
movl 0x4cb9(%rip), %edi      # 0x8418
testl %edi, %edi
movl 0x48(%rsp), %ebx
jle 0x376c
callq 0x21e0
testl %ebx, %ebx
js 0x3777
movl %ebx, %edi
callq 0x21e0
xorl %eax, %eax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2590
jmp 0x2c86
callq 0x25b2
jmp 0x2cf1
xorl %edi, %edi
callq 0x3844
callq 0x256b
callq 0x2521
callq 0x24d5
callq 0x24fc
callq 0x24b0
callq 0x2546
leaq 0x18dc(%rip), %rdi      # 0x50a7
leaq 0x18e8(%rip), %rsi      # 0x50ba
xorl %eax, %eax
callq 0x2160
xorl %edi, %edi
callq 0x23c0
movl $0x1, %edi
callq 0x3844
movq 0x47df(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1a8f(%rip), %rdi      # 0x528a
movl $0x29, %esi
jmp 0x3830
movq 0x47c7(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1ab6(%rip), %rdi      # 0x52c9
movl $0x27, %esi
jmp 0x3830
movq 0x47af(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1ac6(%rip), %rdi      # 0x52f1
movl $0x25, %esi
movl $0x1, %edx
callq 0x23d0
movl $0x1, %edi
callq 0x23c0