// File: /workspace/github_c_makefile_star2_O3/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 0x2972(%rip), %rdx      # 0x50b8
leaq 0x5b13(%rip), %r13      # 0x8260
leaq 0x34(%rsp), %r8
movq %r13, %rcx
callq 0x2140
testl %eax, %eax
js 0x2989
movq $0x0, 0x28(%rsp)
leaq 0x2946(%rip), %r14      # 0x50b8
leaq 0x34(%rsp), %rbp
leaq 0x28e2(%rip), %r12      # 0x5060
movl $0x0, 0x20(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x18(%rsp)
cmpl $0x60, %eax
jle 0x27e9
addl $-0x61, %eax
cmpl $0x15, %eax
ja 0x37e2
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
movq 0x580d(%rip), %rax      # 0x7fd8
movq (%rax), %rsi
leaq 0x110(%rsp), %rdi
callq 0x4580
testq %rax, %rax
jns 0x2945
jmp 0x37bc
testl %eax, %eax
je 0x2906
cmpl $0x44, %eax
je 0x2928
cmpl $0x4e, %eax
jne 0x37e2
movb $0x1, 0x5c22(%rip)      # 0x842c
jmp 0x2945
movq 0x57c2(%rip), %rax      # 0x7fd8
movq (%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0x2945
movq 0x57ae(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x42f3
testq %rax, %rax
jle 0x37b2
movl %eax, 0x5bc8(%rip)      # 0x8410
jmp 0x2945
movq 0x5784(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x42f3
leaq -0x63(%rax), %rcx
cmpq $-0x63, %rcx
jbe 0x37a8
movl %eax, 0x5b89(%rip)      # 0x8400
jmp 0x2945
movq 0x5755(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x42f3
testq %rax, %rax
jle 0x37ad
movl %eax, 0x5b87(%rip)      # 0x8428
jmp 0x2945
movq 0x572b(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
movl $0xa, %esi
xorl %edx, %edx
callq 0x42f3
testq %rax, %rax
jle 0x37b7
movq %rax, 0x5b3c(%rip)      # 0x8408
jmp 0x2945
movl $0x1, 0x20(%rsp)
jmp 0x2945
movq 0x56f9(%rip), %rax      # 0x7fd8
movq (%rax), %rax
movq %rax, 0x40(%rsp)
jmp 0x2945
movq 0x56e8(%rip), %rax      # 0x7fd8
movq (%rax), %rax
movq %rax, 0x38(%rsp)
jmp 0x2945
movl $0x1, %eax
movq %rax, 0x28(%rsp)
jmp 0x2945
movslq 0x34(%rsp), %rax
shlq $0x5, %rax
movq (%rax,%r13), %rdi
leaq 0x27b5(%rip), %rsi      # 0x50cf
callq 0x2220
testl %eax, %eax
jne 0x2945
jmp 0x37c6
movq 0x56a9(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
callq 0x4355
movq %rax, 0x18(%rsp)
testq %rax, %rax
js 0x37c1
movl %r15d, %edi
movq %rbx, %rsi
movq %r14, %rdx
movq %r13, %rcx
movq %rbp, %r8
callq 0x2140
testl %eax, %eax
jns 0x27aa
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 0x2999
xorl %ebx, %ebx
xorl %r12d, %r12d
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r14d, %r14d
xorl %r15d, %r15d
callq 0x21a0
testl %eax, %eax
je 0x29ae
leaq 0x2fe8(%rip), %rdi      # 0x5991
callq 0x20a0
callq 0x4ab4
movq %rax, 0x20(%rsp)
testq %r12, %r12
je 0x2a27
movq %r12, %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x2080
testl %eax, %eax
je 0x2a1a
callq 0x2070
movl (%rax), %edi
cmpl $0x11, %edi
je 0x29f9
leaq 0x285d(%rip), %rsi      # 0x523e
leaq 0x287f(%rip), %rdx      # 0x5267
leaq 0x2889(%rip), %rcx      # 0x5278
movq %r12, %r8
xorl %eax, %eax
callq 0x418c
leaq 0x287d(%rip), %rdi      # 0x527d
leaq 0x2860(%rip), %rsi      # 0x5267
leaq 0x286a(%rip), %rdx      # 0x5278
movq %r12, %rcx
xorl %eax, %eax
callq 0x425b
jmp 0x2a27
movq %r12, %rdi
movq 0x20(%rsp), %rsi
callq 0x4b84
testq %rbp, %rbp
setne %al
orb %r14b, %al
movb %al, 0xf(%rsp)
testb $0x1, %al
je 0x2b25
testq %rbp, %rbp
setne %al
andb %r14b, %al
cmpb $0x1, %al
je 0x37ec
movl $0x20, %edi
callq 0x22a0
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x2a82
leaq 0x287c(%rip), %rsi      # 0x52e4
leaq 0x27f8(%rip), %rdx      # 0x5267
leaq 0x2802(%rip), %rcx      # 0x5278
movl $0xc, %edi
xorl %eax, %eax
callq 0x418c
testq %rbp, %rbp
je 0x2ace
leaq 0x2868(%rip), %rsi      # 0x52f6
movq %rbp, %rdi
callq 0x2350
movq 0x10(%rsp), %rcx
movq %r13, %rbp
movq %rcx, %r13
movq %rax, 0x8(%rcx)
xorl %edi, %edi
leaq 0x2848(%rip), %rsi      # 0x52f6
callq 0x2350
movq %rax, 0x10(%r13)
cmpq $0x0, 0x8(%r13)
je 0x3804
movq %rbp, %r13
testq %rax, %rax
je 0x3804
testb %r14b, %r14b
je 0x2b2e
testq %r12, %r12
je 0x381c
leaq 0x2864(%rip), %rsi      # 0x5347
leaq 0x2867(%rip), %rdx      # 0x5351
movq %r12, %rdi
callq 0x47a4
movq 0x10(%rsp), %rcx
movq %rax, 0x18(%rcx)
testq %rax, %rax
jne 0x2b2e
callq 0x2070
movl (%rax), %edi
leaq 0x2845(%rip), %rsi      # 0x5353
leaq 0x2752(%rip), %rdx      # 0x5267
leaq 0x275c(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x418c
jmp 0x2b2e
movq $0x0, 0x10(%rsp)
leaq 0x198(%rsp), %rdi
movl $0x0, 0x80(%rdi)
leaq 0xe47(%rip), %rax       # 0x398e
movq %rax, -0x8(%rdi)
callq 0x2250
leaq 0x190(%rsp), %rsi
movl $0x2, %edi
xorl %edx, %edx
callq 0x20b0
testl %eax, %eax
jns 0x2b8b
callq 0x2070
movl (%rax), %edi
leaq 0x2807(%rip), %rsi      # 0x537d
leaq 0x26ea(%rip), %rdx      # 0x5267
leaq 0x26f4(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x418c
leaq 0x190(%rsp), %rsi
movl $0xf, %edi
xorl %edx, %edx
callq 0x20b0
testl %eax, %eax
jns 0x2bc6
callq 0x2070
movl (%rax), %edi
leaq 0x27cc(%rip), %rsi      # 0x537d
leaq 0x26af(%rip), %rdx      # 0x5267
leaq 0x26b9(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x418c
leaq 0x190(%rsp), %rsi
movl $0xe, %edi
xorl %edx, %edx
callq 0x20b0
testl %eax, %eax
jns 0x2c01
callq 0x2070
movl (%rax), %edi
leaq 0x2791(%rip), %rsi      # 0x537d
leaq 0x2674(%rip), %rdx      # 0x5267
leaq 0x267e(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x418c
testl %ebx, %ebx
je 0x2c0c
movl %ebx, %edi
callq 0x21c0
movl $0x3, %edi
callq 0x22f0
testl %eax, %eax
jns 0x2c52
callq 0x2070
movq %rax, %rbx
movl (%rax), %edi
cmpl $0xc, %edi
je 0x3754
cmpl $0x1, %edi
je 0x3754
leaq 0x27af(%rip), %rsi      # 0x53ec
leaq 0x2623(%rip), %rdx      # 0x5267
leaq 0x262d(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x418c
movl $0x0, 0x50(%rsp)
leaq 0x28dc(%rip), %r14      # 0x553d
movq %r14, %rdi
movl $0x80002, %esi          # imm = 0x80002
xorl %eax, %eax
callq 0x2320
movl %eax, %ebp
cmpl $-0x1, %eax
jne 0x2c88
callq 0x2070
movl (%rax), %edi
cmpl $0x4, %edi
je 0x2c61
movq %rax, %rbx
jmp 0x2c96
testl %ebp, %ebp
jns 0x2cc0
callq 0x2070
movq %rax, %rbx
movl (%rax), %edi
cmpl $0x2, %edi
je 0x2cd1
cmpl $0xd, %edi
je 0x377b
leaq 0x28c1(%rip), %rsi      # 0x556c
leaq 0x25b5(%rip), %rdx      # 0x5267
leaq 0x28c3(%rip), %rcx      # 0x557c
xorl %eax, %eax
callq 0x418c
leaq 0x50(%rsp), %rsi
movl $0x4, %edx
movl %ebp, %edi
callq 0x20f0
cmpq $-0x1, 0x572f(%rip)     # 0x8408
je 0x2d9f
leaq 0x28a7(%rip), %rbx      # 0x558d
movq %rbx, %rdi
movl $0x1, %esi
xorl %eax, %eax
callq 0x2320
cmpl $-0x1, %eax
jne 0x2d12
callq 0x2070
movl (%rax), %edi
cmpl $0x4, %edi
je 0x2ce6
movl $0xffffffff, 0x5708(%rip) # imm = 0xFFFFFFFF
jmp 0x2d23
movl %eax, 0x5700(%rip)      # 0x8418
testl %eax, %eax
jns 0x2d3f
callq 0x2070
movl (%rax), %edi
leaq 0x2842(%rip), %rsi      # 0x556c
leaq 0x2536(%rip), %rdx      # 0x5267
leaq 0x28a1(%rip), %rcx      # 0x55d9
xorl %eax, %eax
callq 0x418c
leaq 0x286c(%rip), %rbx      # 0x55b2
movq %rbx, %rdi
movl $0x1, %esi
xorl %eax, %eax
callq 0x2320
cmpl $-0x1, %eax
jne 0x2d72
callq 0x2070
movl (%rax), %edi
cmpl $0x4, %edi
je 0x2d46
movl $0xffffffff, 0x56a4(%rip) # imm = 0xFFFFFFFF
jmp 0x2d83
movl %eax, 0x569c(%rip)      # 0x8414
testl %eax, %eax
jns 0x2d9f
callq 0x2070
movl (%rax), %edi
leaq 0x27e2(%rip), %rsi      # 0x556c
leaq 0x24d6(%rip), %rdx      # 0x5267
leaq 0x2841(%rip), %rcx      # 0x55d9
xorl %eax, %eax
callq 0x418c
leaq 0x110(%rsp), %rbx
movl $0x80, %edi
movq %rbx, %rsi
callq 0x2120
testl %eax, %eax
jne 0x2df6
leaq 0x228(%rsp), %rbx
movl $0x80, %esi
xorl %edi, %edi
movq %rbx, %rdx
callq 0x23e0
testl %eax, %eax
je 0x2df6
callq 0x2070
movl (%rax), %edi
leaq 0x261f(%rip), %rsi      # 0x5400
leaq 0x247f(%rip), %rdx      # 0x5267
leaq 0x2489(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x418c
leaq 0x5633(%rip), %rdi      # 0x8430
movl $0x10, %ecx
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
testb %r15b, %r15b
je 0x2e3b
leaq 0x2609(%rip), %rdi      # 0x541d
xorl %eax, %eax
callq 0x2150
movq 0x51ae(%rip), %rax      # 0x7fd0
movq (%rax), %rdi
leaq 0x5604(%rip), %rsi      # 0x8430
callq 0x43ee
movl $0xa, %edi
callq 0x2050
leaq 0x55ee(%rip), %rbx      # 0x8430
movl $0x80, %edi
movq %rbx, %rsi
callq 0x2120
movl %eax, 0x565b(%rip)      # 0x84b0
movl %eax, %edi
movl $0x50, %esi
callq 0x2210
movq %rax, 0x18(%rsp)
testq %rax, %rax
jne 0x2e8e
callq 0x2070
movl (%rax), %edi
leaq 0x25af(%rip), %rsi      # 0x5428
leaq 0x23e7(%rip), %rdx      # 0x5267
leaq 0x23f1(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x418c
movl %ebp, 0x48(%rsp)
movq %r12, 0x38(%rsp)
movq %r15, 0x28(%rsp)
movq %r13, %rdi
callq 0x4938
testl %eax, %eax
jns 0x2ecb
callq 0x2070
movl (%rax), %edi
leaq 0x2584(%rip), %rsi      # 0x543a
leaq 0x23aa(%rip), %rdx      # 0x5267
leaq 0x23b4(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x418c
leaq 0xd8(%rsp), %rdi
callq 0x2200
cmpl $0x0, 0x55d1(%rip)      # 0x84b0
je 0x312a
leaq 0x237b(%rip), %r14      # 0x5267
leaq 0x26f5(%rip), %r15      # 0x55e8
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 0x2f5b
movl %ebp, %eax
shrl $0x6, %eax
movq (%rbx,%rax,8), %rsi
movl $0x1, %edx
movl %ebp, %ecx
shlq %cl, %rdx
btq %rbp, %rsi
jb 0x2f5f
incl %ebp
jmp 0x2f3a
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, 0x549b(%rip)      # 0x842c
movl $0x3e8, %edi            # imm = 0x3E8
movl $0xf4240, %eax          # imm = 0xF4240
cmovnel %eax, %edi
movl %edi, 0x28(%r14,%r12)
movl $0x8, %esi
callq 0x2210
movq %rax, 0x30(%r14,%r12)
testq %rax, %rax
jne 0x2fd2
callq 0x2070
movl (%rax), %edi
leaq 0x2463(%rip), %rsi      # 0x5428
movq %r15, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x418c
addq %r14, %r12
cmpq $0x0, 0x10(%rsp)
movq %r15, %r14
movq %r13, %r15
je 0x3010
movl $0x100000, %edi         # imm = 0x100000
callq 0x40b0
movq %rax, 0x48(%r12)
testq %rax, %rax
jne 0x3010
movl $0xc, %edi
leaq 0x25f5(%rip), %rsi      # 0x55f8
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x418c
movl $0x80, %esi
leaq 0xd8(%rsp), %r13
movq %r13, %rdi
leaq 0x50(%rsp), %rdx
callq 0x2060
testl %eax, %eax
je 0x3044
movl %eax, %edi
leaq 0x25de(%rip), %rsi      # 0x5615
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x418c
movq %r13, %rdi
movl $0x1, %esi
callq 0x2190
testl %eax, %eax
je 0x306b
movl %eax, %edi
leaq 0x25de(%rip), %rsi      # 0x563c
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x418c
movl 0x538f(%rip), %eax      # 0x8400
movl %eax, 0x4c(%rsp)
movq %r13, %rdi
leaq 0x4c(%rsp), %rsi
callq 0x2390
testl %eax, %eax
je 0x309c
movl %eax, %edi
leaq 0x25d4(%rip), %rsi      # 0x5663
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x418c
movq %r13, %rdi
movl $0x1, %esi
callq 0x2090
testl %eax, %eax
je 0x30c3
movl %eax, %edi
leaq 0x25d3(%rip), %rsi      # 0x5689
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x418c
movq %r12, %rdi
movq %r13, %rsi
leaq 0xd38(%rip), %rdx       # 0x3e08
movq %r12, %rcx
callq 0x2300
testl %eax, %eax
je 0x3101
movl %eax, %r12d
cmpl $0x16, %eax
je 0x3123
cmpl $0x1, %r12d
je 0x311c
movl %r12d, %edi
leaq 0x2368(%rip), %rsi      # 0x545c
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x418c
incl %ebp
movq 0x40(%rsp), %rdi
incq %rdi
movl 0x539f(%rip), %eax      # 0x84b0
cmpq %rax, %rdi
jb 0x2ef7
jmp 0x312a
callq 0x25a2
jmp 0x30ea
callq 0x2580
jmp 0x30ea
leaq 0xd8(%rsp), %rdi
callq 0x2380
testb $0x1, 0xf(%rsp)
movq 0x18(%rsp), %rbx
je 0x3183
movq 0x10(%rsp), %rcx
movq %rbx, (%rcx)
leaq 0x847(%rip), %rdx       # 0x3999
leaq 0xd8(%rsp), %rdi
xorl %esi, %esi
callq 0x2300
testl %eax, %eax
je 0x3183
leaq 0x22f0(%rip), %rsi      # 0x545c
leaq 0x20f4(%rip), %rdx      # 0x5267
leaq 0x20fe(%rip), %rcx      # 0x5278
movl %eax, %edi
xorl %eax, %eax
callq 0x418c
movq 0x28(%rsp), %rbp
testb %bpl, %bpl
je 0x31c5
leaq 0xb50(%rip), %rdx       # 0x3ce4
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
movq %rbx, %rcx
callq 0x2300
testl %eax, %eax
je 0x31c5
leaq 0x22ae(%rip), %rsi      # 0x545c
leaq 0x20b2(%rip), %rdx      # 0x5267
leaq 0x20bc(%rip), %rcx      # 0x5278
movl %eax, %edi
xorl %eax, %eax
callq 0x418c
cmpl $0x0, 0x52e4(%rip)      # 0x84b0
je 0x321e
leaq 0x22a1(%rip), %rbx      # 0x5476
leaq 0x208b(%rip), %r14      # 0x5267
leaq 0x2095(%rip), %r15      # 0x5278
movq 0x18(%rsp), %r12
xorl %r13d, %r13d
movq (%r12), %rdi
xorl %esi, %esi
callq 0x2400
testl %eax, %eax
je 0x320c
movl %eax, %edi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x418c
incq %r13
movl 0x529b(%rip), %eax      # 0x84b0
addq $0x50, %r12
cmpq %rax, %r13
jb 0x31eb
movl $0x1, 0x528c(%rip)      # 0x84b4
callq 0x49fc
cmpq $0x0, 0x10(%rsp)
movq 0x38(%rsp), %rbx
movq 0x18(%rsp), %r15
je 0x328d
movq 0xd8(%rsp), %rdi
xorl %esi, %esi
callq 0x2400
testl %eax, %eax
je 0x3270
leaq 0x221d(%rip), %rsi      # 0x5476
leaq 0x2007(%rip), %rdx      # 0x5267
leaq 0x2011(%rip), %rcx      # 0x5278
movl %eax, %edi
xorl %eax, %eax
callq 0x418c
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x3283
callq 0x2110
movq 0x10(%rsp), %rdi
callq 0x2040
testb %bpl, %bpl
je 0x32c2
movq 0x50(%rsp), %rdi
xorl %esi, %esi
callq 0x2400
testl %eax, %eax
je 0x32d4
leaq 0x21cd(%rip), %rsi      # 0x5476
leaq 0x1fb7(%rip), %rdx      # 0x5267
leaq 0x1fc1(%rip), %rcx      # 0x5278
movl %eax, %edi
xorl %eax, %eax
callq 0x418c
jmp 0x32d4
movl $0xa, %edi
callq 0x2050
movq %r15, %rdi
callq 0x3d64
movl $0xa, %edi
callq 0x2050
testq %rbx, %rbx
je 0x3646
leaq 0x21a0(%rip), %rsi      # 0x548e
leaq 0x205c(%rip), %rdx      # 0x5351
movq %rbx, %rdi
callq 0x47a4
testq %rax, %rax
je 0x3620
movq %rax, %r14
leaq 0x2533(%rip), %rdi      # 0x5843
movl $0x2, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x23c0
leaq 0x24fc(%rip), %rdi      # 0x5825
movl $0x10, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x23c0
leaq 0x24f4(%rip), %rdi      # 0x5836
movl $0xf, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x23c0
movq 0x20(%rsp), %rbx
movq (%rbx), %rdx
leaq 0x24e3(%rip), %rsi      # 0x5846
movq %r14, %rdi
xorl %eax, %eax
callq 0x2230
movq 0x8(%rbx), %rdx
leaq 0x24e4(%rip), %rsi      # 0x585c
movq %r14, %rdi
xorl %eax, %eax
callq 0x2230
movq 0x10(%rbx), %rdx
leaq 0x24e6(%rip), %rsi      # 0x5873
movq %r14, %rdi
xorl %eax, %eax
callq 0x2230
movq 0x18(%rbx), %rdx
leaq 0x24e7(%rip), %rsi      # 0x5889
movq %r14, %rdi
xorl %eax, %eax
callq 0x2230
movq 0x20(%rbx), %rdx
leaq 0x24e8(%rip), %rsi      # 0x589f
movq %r14, %rdi
xorl %eax, %eax
callq 0x2230
movl 0x28(%rbx), %edx
leaq 0x24ea(%rip), %rsi      # 0x58b5
movq %r14, %rdi
xorl %eax, %eax
callq 0x2230
cmpb $0x0, 0x5050(%rip)      # 0x842c
movl $0x1, %eax
movl $0x3e8, %edx            # imm = 0x3E8
cmovnel %eax, %edx
leaq 0x24dd(%rip), %rsi      # 0x58cd
movq %r14, %rdi
xorl %eax, %eax
callq 0x2230
leaq 0x252c(%rip), %rdi      # 0x592d
movl $0x5, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x23c0
leaq 0x24cf(%rip), %rdi      # 0x58e9
movl $0xb, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x23c0
cmpl $0x0, 0x507d(%rip)      # 0x84b0
je 0x35df
leaq 0x2541(%rip), %rbp      # 0x5981
xorl %ebx, %ebx
movq %r14, %rdi
leaq 0x24a9(%rip), %rsi      # 0x58f5
movl %ebx, %edx
xorl %eax, %eax
callq 0x2230
movl $0x14, %esi
movl $0x1, %edx
leaq 0x249c(%rip), %rdi      # 0x5902
movq %r14, %rcx
callq 0x23c0
leaq (%rbx,%rbx,4), %rax
shlq $0x4, %rax
leaq (%r15,%rax), %r13
movl 0x28(%r15,%rax), %eax
testl %eax, %eax
je 0x34f6
movb $0x1, %r15b
xorl %r12d, %r12d
leaq 0x1cd6(%rip), %rdi      # 0x5166
movq 0x30(%r13), %rcx
movl %eax, %eax
cmpq $0x0, (%rcx,%r12,8)
jne 0x34a7
incq %r12
cmpq %rax, %r12
jb 0x3496
jmp 0x34e3
movq %r14, %rsi
callq 0x2180
movq 0x30(%r13), %rax
movq (%rax,%r12,8), %rcx
xorl %r15d, %r15d
movq %r14, %rdi
leaq 0x2453(%rip), %rsi      # 0x5917
movl %r12d, %edx
xorl %eax, %eax
callq 0x2230
movl 0x28(%r13), %eax
incq %r12
leaq 0x2394(%rip), %rdi      # 0x5870
cmpq %rax, %r12
jb 0x3490
jmp 0x34e9
testb $0x1, %r15b
jne 0x34f6
movl $0xa, %edi
movq %r14, %rsi
callq 0x21e0
movl $0x9, %esi
movl $0x1, %edx
leaq 0x2422(%rip), %rdi      # 0x5929
movq %r14, %rcx
callq 0x23c0
movq 0x40(%r13), %rdx
movq %r14, %rdi
leaq 0x2416(%rip), %rsi      # 0x5933
xorl %eax, %eax
callq 0x2230
movq 0x18(%r13), %rdx
movq %r14, %rdi
leaq 0x2416(%rip), %rsi      # 0x5948
xorl %eax, %eax
callq 0x2230
movq 0x10(%r13), %rdx
movq %r14, %rdi
leaq 0x2414(%rip), %rsi      # 0x595b
xorl %eax, %eax
callq 0x2230
movdqu 0x38(%r13), %xmm0
movdqa %xmm0, %xmm1
pand 0x1ab0(%rip), %xmm1     # 0x5010
por 0x1ab8(%rip), %xmm1     # 0x5020
psrlq $0x20, %xmm0
por 0x1abb(%rip), %xmm0     # 0x5030
subpd 0x1ac3(%rip), %xmm0     # 0x5040
addpd %xmm1, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
divsd %xmm1, %xmm0
movq %r14, %rdi
leaq 0x23d7(%rip), %rsi      # 0x596e
movb $0x1, %al
callq 0x2230
movl 0x4f0c(%rip), %eax      # 0x84b0
decl %eax
cmpq %rax, %rbx
leaq 0x23da(%rip), %rdx      # 0x598a
leaq 0x1bb0(%rip), %rax      # 0x5167
cmoveq %rax, %rdx
movq %r14, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x2230
incq %rbx
movl 0x4edf(%rip), %eax      # 0x84b0
cmpq %rax, %rbx
movq 0x18(%rsp), %r15
jb 0x3442
leaq 0x23a6(%rip), %rdi      # 0x598c
movl $0x4, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x23c0
leaq 0x238f(%rip), %rdi      # 0x598e
movl $0x2, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x23c0
movq %r14, %rdi
callq 0x2110
movq 0x28(%rsp), %rbp
jmp 0x363c
leaq 0x1e74(%rip), %rdi      # 0x549b
leaq 0x1c39(%rip), %rsi      # 0x5267
leaq 0x1c43(%rip), %rdx      # 0x5278
xorl %eax, %eax
callq 0x425b
movq 0x20(%rsp), %rdi
callq 0x4d3c
movq 0x4dbb(%rip), %rax      # 0x8408
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
setne %cl
andb %cl, %bpl
movq %rbp, %rdx
movl 0x4e4c(%rip), %ebp      # 0x84b0
testl %ebp, %ebp
setne %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x36ce
addq $0x10, %r15
leaq 0x1e4a(%rip), %r12      # 0x54c5
leaq 0x1e40(%rip), %r13      # 0x54c2
leaq 0x1e3f(%rip), %rbx      # 0x54c8
xorl %r14d, %r14d
movq (%r15), %rcx
cmpq %rax, %rcx
jbe 0x36c0
cmpb $0x0, 0x4d91(%rip)      # 0x842c
movq %r13, %r8
cmovneq %r12, %r8
movslq -0x8(%r15), %rsi
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x2150
movq 0x4d4e(%rip), %rax      # 0x8408
movl 0x4df0(%rip), %ebp      # 0x84b0
incq %r14
movl %ebp, %ecx
addq $0x50, %r15
cmpq %rcx, %r14
jb 0x368c
testl %ebp, %ebp
movq 0x18(%rsp), %r15
je 0x370b
movq %r15, %rbx
addq $0x48, %rbx
xorl %r14d, %r14d
movq -0x18(%rbx), %rdi
callq 0x2040
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x36fd
callq 0x40f9
movl 0x4db3(%rip), %ebp      # 0x84b0
incq %r14
movl %ebp, %eax
addq $0x50, %rbx
cmpq %rax, %r14
jb 0x36e1
movq %r15, %rdi
callq 0x2040
movl 0x4cfb(%rip), %edi      # 0x8414
testl %edi, %edi
jle 0x3722
callq 0x21d0
movl 0x4cf0(%rip), %edi      # 0x8418
testl %edi, %edi
movl 0x48(%rsp), %ebx
jle 0x3735
callq 0x21d0
testl %ebx, %ebx
js 0x3740
movl %ebx, %edi
callq 0x21d0
xorl %eax, %eax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x489d(%rip), %rax      # 0x7ff8
movq (%rax), %rcx
leaq 0x1c2d(%rip), %rdi      # 0x5392
movl $0x59, %esi
movl $0x1, %edx
callq 0x23c0
movl (%rbx), %edi
jmp 0x2c36
movq 0x4876(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
leaq 0x1dc6(%rip), %rsi      # 0x5552
leaq 0x1daa(%rip), %rdx      # 0x553d
xorl %eax, %eax
callq 0x2230
movl (%rbx), %edi
jmp 0x2ca4
xorl %edi, %edi
callq 0x3846
callq 0x255b
callq 0x2511
callq 0x24c5
callq 0x24ec
callq 0x24a0
callq 0x2536
leaq 0x190a(%rip), %rdi      # 0x50d7
leaq 0x1916(%rip), %rsi      # 0x50ea
xorl %eax, %eax
callq 0x2150
xorl %edi, %edi
callq 0x23b0
movl $0x1, %edi
callq 0x3846
movq 0x47dd(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1abd(%rip), %rdi      # 0x52ba
movl $0x29, %esi
jmp 0x3832
movq 0x47c5(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1ae4(%rip), %rdi      # 0x52f9
movl $0x27, %esi
jmp 0x3832
movq 0x47ad(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1af4(%rip), %rdi      # 0x5321
movl $0x25, %esi
movl $0x1, %edx
callq 0x23c0
movl $0x1, %edi
callq 0x23b0