// File: /workspace/github_c_makefile_star2_O2/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, %r14
movl %edi, %r15d
xorpd %xmm0, %xmm0
leaq 0x1a0(%rsp), %rax
movapd %xmm0, (%rax)
movapd %xmm0, 0x10(%rax)
movapd %xmm0, 0x20(%rax)
movapd %xmm0, 0x30(%rax)
movapd %xmm0, 0x40(%rax)
movapd %xmm0, 0x50(%rax)
movapd %xmm0, 0x60(%rax)
movapd %xmm0, 0x70(%rax)
movq $0x0, 0x8(%rsp)
leaq 0x5c7a(%rip), %rbp      # 0x8260
leaq 0x40(%rsp), %r12
leaq 0x2a6e(%rip), %r13      # 0x5060
movq $0x0, 0x38(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x20(%rsp)
xorl %ecx, %ecx
movl $0x0, 0x14(%rsp)
movl %ecx, %ebx
movl %r15d, %edi
movq %r14, %rsi
leaq 0x2a92(%rip), %rdx      # 0x50b8
movq %rbp, %rcx
movq %r12, %r8
callq 0x2140
testl %eax, %eax
js 0x27af
leal -0x61(%rax), %ecx
cmpl $0x15, %ecx
ja 0x2671
movslq (%r13,%rcx,4), %rax
addq %r13, %rax
pushq $0x1
popq %rcx
jmpq *%rax
movq 0x5983(%rip), %rax      # 0x7fd8
movq (%rax), %rsi
leaq 0x1a0(%rsp), %rdi
callq 0x427f
movl %ebx, %ecx
testq %rax, %rax
jns 0x2617
jmp 0x35e2
cmpl $0x4e, %eax
je 0x27a1
cmpl $0x44, %eax
je 0x2783
testl %eax, %eax
jne 0x3573
movslq 0x40(%rsp), %rax
shlq $0x5, %rax
movq (%rax,%rbp), %rdi
leaq 0x2a30(%rip), %rsi      # 0x50cf
callq 0x2220
movl %ebx, %ecx
testl %eax, %eax
jne 0x2617
jmp 0x35f7
movq 0x591e(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
callq 0x3676
leaq -0x63(%rax), %rcx
cmpq $-0x63, %rcx
jbe 0x3582
movl %eax, 0x5d2a(%rip)      # 0x8400
jmp 0x27a8
movq 0x58f6(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
callq 0x3676
testq %rax, %rax
jle 0x35ad
movl %eax, 0x5d17(%rip)      # 0x8410
jmp 0x27a8
movq 0x58d3(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
callq 0x3676
testq %rax, %rax
jle 0x35cd
movq %rax, 0x5ceb(%rip)      # 0x8408
jmp 0x27a8
movq 0x58af(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
callq 0x3676
testq %rax, %rax
jle 0x359a
movl %eax, 0x5ce8(%rip)      # 0x8428
jmp 0x27a8
movq 0x588f(%rip), %rax      # 0x7fd8
movq (%rax), %rax
movq %rax, 0x48(%rsp)
jmp 0x27a8
movl %ebx, %ecx
pushq $0x1
popq %rax
movl %eax, 0x14(%rsp)
jmp 0x2617
movq 0x5870(%rip), %rax      # 0x7fd8
movq (%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x27a8
movq 0x585f(%rip), %rax      # 0x7fd8
movq (%rax), %rax
movq %rax, 0x38(%rsp)
jmp 0x27a8
movq 0x584e(%rip), %rax      # 0x7fd8
movq (%rax), %rdi
callq 0x40a1
movq %rax, 0x8(%rsp)
testq %rax, %rax
jns 0x27a8
jmp 0x3613
movb $0x1, 0x5c84(%rip)      # 0x842c
movl %ebx, %ecx
jmp 0x2617
callq 0x21a0
testl %eax, %eax
je 0x27c4
leaq 0x31d2(%rip), %rdi      # 0x5991
callq 0x20a0
callq 0x47c0
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %r15
testq %r15, %r15
movq 0x20(%rsp), %r12
je 0x2847
movq %r15, %rdi
movl $0x1ff, %esi            # imm = 0x1FF
callq 0x2080
testl %eax, %eax
je 0x283a
callq 0x2070
movl (%rax), %edi
cmpl $0x11, %edi
je 0x2819
leaq 0x2a3d(%rip), %rsi      # 0x523e
leaq 0x2a5f(%rip), %rdx      # 0x5267
leaq 0x2a69(%rip), %rcx      # 0x5278
movq %r15, %r8
xorl %eax, %eax
callq 0x3ee1
leaq 0x2a5d(%rip), %rdi      # 0x527d
leaq 0x2a40(%rip), %rsi      # 0x5267
leaq 0x2a4a(%rip), %rdx      # 0x5278
movq %r15, %rcx
xorl %eax, %eax
callq 0x3fae
jmp 0x2847
movq %r15, %rdi
movq 0x30(%rsp), %rsi
callq 0x488e
testq %r12, %r12
setne %al
testl %ebx, %ebx
setne %r13b
orb %al, %r13b
cmpb $0x1, %r13b
jne 0x2942
testl %ebx, %ebx
setne %al
testq %r12, %r12
setne %cl
andb %al, %cl
cmpb $0x1, %cl
je 0x3637
pushq $0x20
popq %rdi
callq 0x22a0
movq %rax, 0x18(%rsp)
testq %rax, %rax
jne 0x28a7
leaq 0x2a55(%rip), %rsi      # 0x52e4
leaq 0x29d1(%rip), %rdx      # 0x5267
leaq 0x29db(%rip), %rcx      # 0x5278
pushq $0xc
popq %rdi
xorl %eax, %eax
callq 0x3ee1
testq %r12, %r12
je 0x28ec
leaq 0x2a43(%rip), %r14      # 0x52f6
movq %r12, %rdi
movq %r14, %rsi
callq 0x2350
movq 0x18(%rsp), %r12
movq %rax, 0x8(%r12)
xorl %edi, %edi
movq %r14, %rsi
callq 0x2350
movq %rax, 0x10(%r12)
cmpq $0x0, 0x8(%r12)
je 0x364c
testq %rax, %rax
je 0x364c
testl %ebx, %ebx
je 0x294b
testq %r15, %r15
je 0x3661
leaq 0x2a47(%rip), %rsi      # 0x5347
leaq 0x2a4a(%rip), %rdx      # 0x5351
movq %r15, %rdi
callq 0x44b1
movq 0x18(%rsp), %rcx
movq %rax, 0x18(%rcx)
testq %rax, %rax
jne 0x294b
callq 0x2070
movl (%rax), %edi
leaq 0x2a28(%rip), %rsi      # 0x5353
leaq 0x2935(%rip), %rdx      # 0x5267
leaq 0x293f(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x3ee1
jmp 0x294b
movq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rbx
leaq 0x110(%rsp), %rdi
andl $0x0, 0x80(%rdi)
leaq 0xe5e(%rip), %rax       # 0x37c4
movq %rax, -0x8(%rdi)
callq 0x2250
pushq $0x2
popq %rdi
leaq 0x108(%rsp), %rsi
xorl %edx, %edx
callq 0x20b0
testl %eax, %eax
jns 0x29a8
callq 0x2070
movl (%rax), %edi
leaq 0x29ea(%rip), %rsi      # 0x537d
leaq 0x28cd(%rip), %rdx      # 0x5267
leaq 0x28d7(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x3ee1
pushq $0xf
popq %rdi
leaq 0x108(%rsp), %rsi
xorl %edx, %edx
callq 0x20b0
testl %eax, %eax
jns 0x29e1
callq 0x2070
movl (%rax), %edi
leaq 0x29b1(%rip), %rsi      # 0x537d
leaq 0x2894(%rip), %rdx      # 0x5267
leaq 0x289e(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x3ee1
pushq $0xe
popq %rdi
leaq 0x108(%rsp), %rsi
xorl %edx, %edx
callq 0x20b0
testl %eax, %eax
jns 0x2a1a
callq 0x2070
movl (%rax), %edi
leaq 0x2978(%rip), %rsi      # 0x537d
leaq 0x285b(%rip), %rdx      # 0x5267
leaq 0x2865(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x3ee1
testl %ebx, %ebx
je 0x2a25
movl %ebx, %edi
callq 0x21c0
pushq $0x3
popq %rdi
callq 0x22f0
testl %eax, %eax
jns 0x2a69
callq 0x2070
movq %rax, %rbx
movl (%rax), %edi
cmpl $0xc, %edi
je 0x3529
cmpl $0x1, %edi
je 0x3529
leaq 0x2998(%rip), %rsi      # 0x53ec
leaq 0x280c(%rip), %rdx      # 0x5267
leaq 0x2816(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x3ee1
pushq $0x1
popq %rbx
andl $0x0, 0x50(%rsp)
leaq 0x2ac5(%rip), %r15      # 0x553d
movq %r15, %rdi
movl $0x80002, %esi          # imm = 0x80002
xorl %eax, %eax
callq 0x2320
cmpl $-0x1, %eax
movl %eax, 0x2c(%rsp)
jne 0x2aa1
callq 0x2070
movl (%rax), %edi
cmpl $0x4, %edi
je 0x2a78
movq %rax, %r14
jmp 0x2aaf
testl %eax, %eax
jns 0x2add
callq 0x2070
movq %rax, %r14
movl (%rax), %edi
cmpl $0x2, %edi
je 0x2aec
cmpl $0xd, %edi
je 0x354c
leaq 0x2aa8(%rip), %rsi      # 0x556c
leaq 0x279c(%rip), %rdx      # 0x5267
leaq 0x2aaa(%rip), %rcx      # 0x557c
xorl %eax, %eax
callq 0x3ee1
movl 0x2c(%rsp), %eax
leaq 0x50(%rsp), %rsi
pushq $0x4
popq %rdx
movl %eax, %edi
callq 0x20f0
cmpq $-0x1, 0x5914(%rip)     # 0x8408
je 0x2bb4
leaq 0x2a8c(%rip), %r14      # 0x558d
pushq $0x1
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x2320
cmpl $-0x1, %eax
jne 0x2b2a
callq 0x2070
movl (%rax), %edi
cmpl $0x4, %edi
je 0x2b04
orl $-0x1, 0x58f0(%rip)     # 0x8418
jmp 0x2b3b
movl %eax, 0x58e8(%rip)      # 0x8418
testl %eax, %eax
jns 0x2b57
callq 0x2070
movl (%rax), %edi
leaq 0x2a2a(%rip), %rsi      # 0x556c
leaq 0x271e(%rip), %rdx      # 0x5267
leaq 0x2a89(%rip), %rcx      # 0x55d9
xorl %eax, %eax
callq 0x3ee1
leaq 0x2a54(%rip), %r14      # 0x55b2
pushq $0x1
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x2320
cmpl $-0x1, %eax
jne 0x2b87
callq 0x2070
movl (%rax), %edi
cmpl $0x4, %edi
je 0x2b61
orl $-0x1, 0x588f(%rip)     # 0x8414
jmp 0x2b98
movl %eax, 0x5887(%rip)      # 0x8414
testl %eax, %eax
jns 0x2bb4
callq 0x2070
movl (%rax), %edi
leaq 0x29cd(%rip), %rsi      # 0x556c
leaq 0x26c1(%rip), %rdx      # 0x5267
leaq 0x2a2c(%rip), %rcx      # 0x55d9
xorl %eax, %eax
callq 0x3ee1
movl $0x80, %edi
leaq 0x1a0(%rsp), %r14
movq %r14, %rsi
callq 0x2120
testl %eax, %eax
jne 0x2c0b
leaq 0x228(%rsp), %r14
movl $0x80, %esi
xorl %edi, %edi
movq %r14, %rdx
callq 0x23e0
testl %eax, %eax
je 0x2c0b
callq 0x2070
movl (%rax), %edi
leaq 0x280a(%rip), %rsi      # 0x5400
leaq 0x266a(%rip), %rdx      # 0x5267
leaq 0x2674(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x3ee1
leaq 0x581e(%rip), %rdi      # 0x8430
pushq $0x10
popq %rcx
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
cmpl $0x0, 0x14(%rsp)
je 0x2c4e
leaq 0x27f4(%rip), %rdi      # 0x541d
xorl %eax, %eax
callq 0x2150
movq 0x5399(%rip), %rax      # 0x7fd0
movq (%rax), %rdi
leaq 0x57ef(%rip), %rsi      # 0x8430
callq 0x4121
pushq $0xa
popq %rdi
callq 0x2050
leaq 0x57db(%rip), %r14      # 0x8430
movl $0x80, %edi
movq %r14, %rsi
callq 0x2120
movl %eax, 0x5848(%rip)      # 0x84b0
movl %eax, %edi
pushq $0x50
popq %rsi
callq 0x2210
movq %rax, %r15
testq %rax, %rax
jne 0x2c9d
callq 0x2070
movl (%rax), %edi
leaq 0x27a0(%rip), %rsi      # 0x5428
leaq 0x25d8(%rip), %rdx      # 0x5267
leaq 0x25e2(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x3ee1
movb %r13b, 0x7(%rsp)
movq %r15, 0x8(%rsp)
movq 0x48(%rsp), %rdi
callq 0x4648
testl %eax, %eax
jns 0x2cd8
callq 0x2070
movl (%rax), %edi
leaq 0x2777(%rip), %rsi      # 0x543a
leaq 0x259d(%rip), %rdx      # 0x5267
leaq 0x25a7(%rip), %rcx      # 0x5278
xorl %eax, %eax
callq 0x3ee1
leaq 0xd0(%rsp), %rdi
callq 0x2200
leaq 0x257b(%rip), %r12      # 0x5267
xorl %edi, %edi
xorl %r13d, %r13d
movl 0x57b9(%rip), %eax      # 0x84b0
cmpq %rax, %rdi
jae 0x2f4c
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, %r13d           # imm = 0x3FF
ja 0x2d65
movl %r13d, %eax
shrl $0x6, %eax
movq (%r14,%rax,8), %rsi
movq %rbx, %rdx
movl %r13d, %ecx
shlq %cl, %rdx
btq %r13, %rsi
jb 0x2d6a
incl %r13d
jmp 0x2d43
orq %rdx, 0x50(%rsp,%rax,8)
movq %rdi, 0x20(%rsp)
imulq $0x50, %rdi, %rbp
movq 0x8(%rsp), %r15
movl %r13d, 0xc(%r15,%rbp)
orq $-0x1, 0x18(%r15,%rbp)
cmpb $0x0, 0x569d(%rip)      # 0x842c
movl $0x3e8, %edi            # imm = 0x3E8
movl $0xf4240, %eax          # imm = 0xF4240
cmovnel %eax, %edi
movl %edi, 0x28(%r15,%rbp)
pushq $0x8
popq %rsi
callq 0x2210
movq %rax, 0x30(%r15,%rbp)
testq %rax, %rax
jne 0x2dd2
callq 0x2070
movl (%rax), %edi
leaq 0x2667(%rip), %rsi      # 0x5428
movq %r12, %rdx
leaq 0x281d(%rip), %rcx      # 0x55e8
xorl %eax, %eax
callq 0x3ee1
addq %r15, %rbp
cmpq $0x0, 0x18(%rsp)
je 0x2e0b
movl $0x100000, %edi         # imm = 0x100000
callq 0x3e14
movq %rax, 0x48(%rbp)
testq %rax, %rax
jne 0x2e0b
pushq $0xc
popq %rdi
leaq 0x27fe(%rip), %rsi      # 0x55f8
movq %r12, %rdx
leaq 0x27e4(%rip), %rcx      # 0x55e8
xorl %eax, %eax
callq 0x3ee1
movl $0x80, %esi
leaq 0xd0(%rsp), %r15
movq %r15, %rdi
leaq 0x50(%rsp), %rdx
callq 0x2060
testl %eax, %eax
je 0x2e43
movl %eax, %edi
leaq 0x27e3(%rip), %rsi      # 0x5615
movq %r12, %rdx
leaq 0x27ac(%rip), %rcx      # 0x55e8
xorl %eax, %eax
callq 0x3ee1
movq %r15, %rdi
pushq $0x1
popq %rsi
callq 0x2190
testl %eax, %eax
je 0x2e6c
movl %eax, %edi
leaq 0x27e1(%rip), %rsi      # 0x563c
movq %r12, %rdx
leaq 0x2783(%rip), %rcx      # 0x55e8
xorl %eax, %eax
callq 0x3ee1
movl 0x558e(%rip), %eax      # 0x8400
movl %eax, 0x44(%rsp)
movq %r15, %rdi
leaq 0x44(%rsp), %rsi
callq 0x2390
testl %eax, %eax
je 0x2ea1
movl %eax, %edi
leaq 0x27d3(%rip), %rsi      # 0x5663
movq %r12, %rdx
leaq 0x274e(%rip), %rcx      # 0x55e8
xorl %eax, %eax
callq 0x3ee1
movq %r15, %rdi
pushq $0x1
popq %rsi
callq 0x2090
testl %eax, %eax
je 0x2eca
movl %eax, %edi
leaq 0x27d0(%rip), %rsi      # 0x5689
movq %r12, %rdx
leaq 0x2725(%rip), %rcx      # 0x55e8
xorl %eax, %eax
callq 0x3ee1
movq %rbp, %rdi
movq %r15, %rsi
leaq 0xcc4(%rip), %rdx       # 0x3b9b
movq %rbp, %rcx
callq 0x2300
testl %eax, %eax
je 0x2f09
movl %eax, %ebp
cmpl $0x16, %eax
je 0x2f2e
cmpl $0x1, %ebp
je 0x2f19
movl %ebp, %edi
leaq 0x2564(%rip), %rsi      # 0x545c
movq %r12, %rdx
leaq 0x26e6(%rip), %rcx      # 0x55e8
xorl %eax, %eax
callq 0x3ee1
incl %r13d
movq 0x20(%rsp), %rdi
incq %rdi
jmp 0x2cf1
movq 0x50d8(%rip), %rax      # 0x7ff8
movq (%rax), %rcx
leaq 0x2787(%rip), %rdi      # 0x56b1
pushq $0x3b
jmp 0x2f41
movq 0x50c3(%rip), %rax      # 0x7ff8
movq (%rax), %rcx
leaq 0x27ae(%rip), %rdi      # 0x56ed
pushq $0x40
popq %rsi
movq %rbx, %rdx
callq 0x23c0
jmp 0x2eef
leaq 0xd0(%rsp), %rdi
callq 0x2380
cmpb $0x0, 0x7(%rsp)
movq 0x8(%rsp), %r15
je 0x2fa5
movq 0x18(%rsp), %rcx
movq %r15, (%rcx)
leaq 0x85b(%rip), %rdx       # 0x37cf
leaq 0xd0(%rsp), %rdi
xorl %esi, %esi
callq 0x2300
testl %eax, %eax
je 0x2fa5
leaq 0x24ce(%rip), %rsi      # 0x545c
leaq 0x22d2(%rip), %rdx      # 0x5267
leaq 0x22dc(%rip), %rcx      # 0x5278
movl %eax, %edi
xorl %eax, %eax
callq 0x3ee1
cmpl $0x0, 0x14(%rsp)
je 0x2fe4
leaq 0xada(%rip), %rdx       # 0x3a8d
leaq 0x50(%rsp), %rdi
xorl %esi, %esi
movq %r15, %rcx
callq 0x2300
testl %eax, %eax
je 0x2fe4
leaq 0x248f(%rip), %rsi      # 0x545c
leaq 0x2293(%rip), %rdx      # 0x5267
leaq 0x229d(%rip), %rcx      # 0x5278
movl %eax, %edi
xorl %eax, %eax
callq 0x3ee1
leaq 0x248b(%rip), %rbx      # 0x5476
leaq 0x2275(%rip), %r14      # 0x5267
movq %r15, %r12
leaq 0x227c(%rip), %r15      # 0x5278
xorl %r13d, %r13d
movl 0x54ab(%rip), %eax      # 0x84b0
cmpq %rax, %r13
jae 0x3034
movq (%r12), %rdi
xorl %esi, %esi
callq 0x2400
testl %eax, %eax
je 0x302b
movl %eax, %edi
movq %rbx, %rsi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x3ee1
incq %r13
addq $0x50, %r12
jmp 0x2fff
movl $0x1, 0x5476(%rip)      # 0x84b4
callq 0x470a
cmpq $0x0, 0x18(%rsp)
movq 0x38(%rsp), %rbx
movq 0x8(%rsp), %r15
je 0x30a3
movq 0xd0(%rsp), %rdi
xorl %esi, %esi
callq 0x2400
testl %eax, %eax
je 0x3086
leaq 0x2407(%rip), %rsi      # 0x5476
leaq 0x21f1(%rip), %rdx      # 0x5267
leaq 0x21fb(%rip), %rcx      # 0x5278
movl %eax, %edi
xorl %eax, %eax
callq 0x3ee1
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x3099
callq 0x2110
movq 0x18(%rsp), %rdi
callq 0x2040
cmpl $0x0, 0x14(%rsp)
je 0x30da
movq 0x50(%rsp), %rdi
xorl %esi, %esi
callq 0x2400
testl %eax, %eax
je 0x30ea
leaq 0x23b5(%rip), %rsi      # 0x5476
leaq 0x219f(%rip), %rdx      # 0x5267
leaq 0x21a9(%rip), %rcx      # 0x5278
movl %eax, %edi
xorl %eax, %eax
callq 0x3ee1
jmp 0x30ea
pushq $0xa
popq %rdi
callq 0x2050
movq %r15, %rdi
callq 0x3b02
pushq $0xa
popq %rdi
callq 0x2050
testq %rbx, %rbx
je 0x342f
leaq 0x238c(%rip), %rsi      # 0x548e
leaq 0x2248(%rip), %rdx      # 0x5351
movq %rbx, %rdi
callq 0x44b1
testq %rax, %rax
je 0x3409
movq %rax, %rbx
leaq 0x271f(%rip), %rdi      # 0x5843
pushq $0x2
popq %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
movq %rax, %rcx
callq 0x23c0
leaq 0x26e8(%rip), %rdi      # 0x5825
pushq $0x10
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x23c0
leaq 0x26e4(%rip), %rdi      # 0x5836
pushq $0xf
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x23c0
movq 0x30(%rsp), %r14
movq (%r14), %rdx
leaq 0x26d7(%rip), %rsi      # 0x5846
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2230
movq 0x8(%r14), %rdx
leaq 0x26d8(%rip), %rsi      # 0x585c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2230
movq 0x10(%r14), %rdx
leaq 0x26da(%rip), %rsi      # 0x5873
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2230
movq 0x18(%r14), %rdx
leaq 0x26db(%rip), %rsi      # 0x5889
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2230
movq 0x20(%r14), %rdx
leaq 0x26dc(%rip), %rsi      # 0x589f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2230
movl 0x28(%r14), %edx
leaq 0x26dd(%rip), %rsi      # 0x58b5
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2230
cmpb $0x0, 0x5243(%rip)      # 0x842c
movl $0x3e8, %edx            # imm = 0x3E8
pushq $0x1
popq %rax
cmovnel %eax, %edx
leaq 0x26d2(%rip), %rsi      # 0x58cd
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2230
leaq 0x2721(%rip), %rdi      # 0x592d
pushq $0x5
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x23c0
leaq 0x26c8(%rip), %rdi      # 0x58e9
pushq $0xb
popq %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x23c0
leaq 0x1f30(%rip), %r15      # 0x5166
leaq 0x2633(%rip), %r14      # 0x5870
leaq 0x26d3(%rip), %rbp      # 0x5917
xorl %r12d, %r12d
movl 0x5263(%rip), %eax      # 0x84b0
cmpq %rax, %r12
jae 0x33cc
xorl %r13d, %r13d
movq %rbx, %rdi
leaq 0x2692(%rip), %rsi      # 0x58f5
movl %r12d, %edx
xorl %eax, %eax
callq 0x2230
leaq 0x268e(%rip), %rdi      # 0x5902
pushq $0x14
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x23c0
movq %r12, 0x20(%rsp)
imulq $0x50, %r12, %r12
addq 0x8(%rsp), %r12
xorl %eax, %eax
movl 0x28(%r12), %ecx
cmpq %rcx, %r13
jae 0x32da
movq 0x30(%r12), %rcx
cmpq $0x0, (%rcx,%r13,8)
je 0x32d5
testl %eax, %eax
movq %r14, %rdi
cmoveq %r15, %rdi
movq %rbx, %rsi
callq 0x2180
movq 0x30(%r12), %rax
movq (%rax,%r13,8), %rcx
movq %rbx, %rdi
movq %rbp, %rsi
movl %r13d, %edx
xorl %eax, %eax
callq 0x2230
pushq $0x1
popq %rax
incq %r13
jmp 0x3292
testl %eax, %eax
je 0x32e9
pushq $0xa
popq %rdi
movq %rbx, %rsi
callq 0x21e0
leaq 0x2639(%rip), %rdi      # 0x5929
pushq $0x9
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x23c0
movq 0x40(%r12), %rdx
movq %rbx, %rdi
leaq 0x2626(%rip), %rsi      # 0x5933
xorl %eax, %eax
callq 0x2230
movq 0x18(%r12), %rdx
movq %rbx, %rdi
leaq 0x2625(%rip), %rsi      # 0x5948
xorl %eax, %eax
callq 0x2230
movq 0x10(%r12), %rdx
movq %rbx, %rdi
leaq 0x2622(%rip), %rsi      # 0x595b
xorl %eax, %eax
callq 0x2230
movdqu 0x38(%r12), %xmm0
movdqa %xmm0, %xmm1
pand 0x1cbd(%rip), %xmm1     # 0x5010
por 0x1cc5(%rip), %xmm1     # 0x5020
psrlq $0x20, %xmm0
por 0x1cc8(%rip), %xmm0     # 0x5030
subpd 0x1cd0(%rip), %xmm0     # 0x5040
addpd %xmm1, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
divsd %xmm1, %xmm0
movq %rbx, %rdi
leaq 0x25e4(%rip), %rsi      # 0x596e
movb $0x1, %al
callq 0x2230
movl 0x5119(%rip), %eax      # 0x84b0
decl %eax
movq 0x20(%rsp), %r12
cmpq %rax, %r12
leaq 0x25e2(%rip), %rdx      # 0x598a
leaq 0x1db8(%rip), %rax      # 0x5167
cmoveq %rax, %rdx
movq %rbx, %rdi
leaq 0x25c4(%rip), %rsi      # 0x5981
xorl %eax, %eax
callq 0x2230
incq %r12
jmp 0x3247
leaq 0x25b9(%rip), %rdi      # 0x598c
pushq $0x4
popq %rsi
pushq $0x1
popq %r14
movq %r14, %rdx
movq %rbx, %rcx
callq 0x23c0
leaq 0x25a2(%rip), %rdi      # 0x598e
pushq $0x2
popq %rsi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x23c0
movq %rbx, %rdi
callq 0x2110
movq 0x8(%rsp), %r15
jmp 0x3425
leaq 0x208b(%rip), %rdi      # 0x549b
leaq 0x1e50(%rip), %rsi      # 0x5267
leaq 0x1e5a(%rip), %rdx      # 0x5278
xorl %eax, %eax
callq 0x3fae
movq 0x30(%rsp), %rdi
callq 0x4a40
movl 0x507b(%rip), %ebp      # 0x84b0
cmpl $0x0, 0x14(%rsp)
je 0x34ac
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x4fc0(%rip)      # 0x8408
je 0x34ac
addq $0x10, %r15
leaq 0x2070(%rip), %r12      # 0x54c5
leaq 0x2066(%rip), %r13      # 0x54c2
leaq 0x2065(%rip), %rbx      # 0x54c8
xorl %r14d, %r14d
movl %ebp, %eax
cmpq %rax, %r14
jae 0x34a7
movq (%r15), %rcx
cmpq 0x4f91(%rip), %rcx      # 0x8408
jbe 0x349e
cmpb $0x0, 0x4fac(%rip)      # 0x842c
movq %r13, %r8
cmovneq %r12, %r8
movslq -0x8(%r15), %rsi
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x2150
movl 0x5012(%rip), %ebp      # 0x84b0
incq %r14
addq $0x50, %r15
jmp 0x3466
movq 0x8(%rsp), %r15
movq %r15, %rbx
addq $0x30, %rbx
xorl %r14d, %r14d
movl %ebp, %eax
cmpq %rax, %r14
jae 0x34e2
movq (%rbx), %rdi
callq 0x2040
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x34d9
callq 0x3e57
movl 0x4fd7(%rip), %ebp      # 0x84b0
incq %r14
addq $0x50, %rbx
jmp 0x34b6
movq %r15, %rdi
callq 0x2040
movl 0x4f24(%rip), %edi      # 0x8414
testl %edi, %edi
jle 0x34f9
callq 0x21d0
movl 0x4f19(%rip), %edi      # 0x8418
testl %edi, %edi
jle 0x3508
callq 0x21d0
movl 0x2c(%rsp), %edi
testl %edi, %edi
js 0x3515
callq 0x21d0
xorl %eax, %eax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4ac8(%rip), %rax      # 0x7ff8
movq (%rax), %rcx
leaq 0x1e58(%rip), %rdi      # 0x5392
pushq $0x59
popq %rsi
pushq $0x1
popq %rdx
callq 0x23c0
movl (%rbx), %edi
jmp 0x2a4d
movq 0x4aa5(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
leaq 0x1ff5(%rip), %rsi      # 0x5552
leaq 0x1fd9(%rip), %rdx      # 0x553d
xorl %eax, %eax
callq 0x2230
movl (%r14), %edi
jmp 0x2abd
pushq $0x1
popq %rdi
callq 0x3680
xorl %edi, %edi
callq 0x3680
movq 0x4a6f(%rip), %rax      # 0x7ff8
movq (%rax), %rcx
leaq 0x1b5b(%rip), %rdi      # 0x50ee
pushq $0x34
jmp 0x3626
movq 0x4a57(%rip), %rax      # 0x7ff8
movq (%rax), %rcx
leaq 0x1bbd(%rip), %rdi      # 0x5168
jmp 0x35de
movq 0x4a44(%rip), %rax      # 0x7ff8
movq (%rax), %rdi
movl 0x4e53(%rip), %edx      # 0x8410
leaq 0x1c04(%rip), %rsi      # 0x51c8
xorl %eax, %eax
callq 0x2230
jmp 0x362f
movq 0x4a24(%rip), %rax      # 0x7ff8
movq (%rax), %rcx
leaq 0x1bba(%rip), %rdi      # 0x5198
pushq $0x2f
jmp 0x3626
movq 0x4a0f(%rip), %rax      # 0x7ff8
movq (%rax), %rcx
leaq 0x1c19(%rip), %rdi      # 0x520c
pushq $0x31
jmp 0x3626
leaq 0x1ad9(%rip), %rdi      # 0x50d7
leaq 0x1ae5(%rip), %rsi      # 0x50ea
xorl %eax, %eax
callq 0x2150
xorl %edi, %edi
callq 0x23b0
movq 0x49de(%rip), %rax      # 0x7ff8
movq (%rax), %rcx
leaq 0x1aff(%rip), %rdi      # 0x5123
pushq $0x44
popq %rsi
pushq $0x1
popq %rdx
callq 0x23c0
pushq $0x1
popq %rdi
callq 0x23b0
movq 0x4992(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1c72(%rip), %rdi      # 0x52ba
pushq $0x29
jmp 0x3626
movq 0x497d(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1c9c(%rip), %rdi      # 0x52f9
pushq $0x27
jmp 0x3626
movq 0x4968(%rip), %rax      # 0x7fd0
movq (%rax), %rcx
leaq 0x1caf(%rip), %rdi      # 0x5321
pushq $0x25
jmp 0x3626