// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]spiped/spiped/main.c
// Function: main
int
main(int argc, char * argv[])
{
	/* Command-line parameters. */
	const char * opt_b = NULL;
	int opt_d = 0;
	int opt_D = 0;
	int opt_e = 0;
	int opt_f = 0;
	int opt_g = 0;
	int opt_F = 0;
	int opt_j = 0;
	const char * opt_k = NULL;
	int opt_n_set = 0;
	size_t opt_n = 0;
	int opt_o_set = 0;
	double opt_o = 0.0;
	const char * opt_p = NULL;
	int opt_r_set = 0;
	double opt_r = 0.0;
	int opt_R = 0;
	int opt_syslog = 0;
	const char * opt_s = NULL;
	const char * opt_t = NULL;
	const char * opt_u = NULL;

	/* Working variables. */
	struct sock_addr * sa_s;
	struct sock_addr * sa_b = NULL;
	struct sock_addr ** sas_t;
	struct proto_secret * K;
	const char * ch;
	char * pidfilename = NULL;
	int s;
	void * dispatch_cookie = NULL;
	int conndone = 0;

	WARNP_INIT;

	/* Parse the command line. */
	while ((ch = GETOPT(argc, argv)) != NULL) {
		GETOPT_SWITCH(ch) {
		GETOPT_OPTARG("-b"):
			if (opt_b)
				usage();
			opt_b = optarg;
			break;
		GETOPT_OPT("-d"):
			if (opt_d || opt_e)
				usage();
			opt_d = 1;
			break;
		GETOPT_OPT("-D"):
			if (opt_D)
				usage();
			opt_D = 1;
			break;
		GETOPT_OPT("-e"):
			if (opt_d || opt_e)
				usage();
			opt_e = 1;
			break;
		GETOPT_OPT("-f"):
			if (opt_f)
				usage();
			opt_f = 1;
			break;
		GETOPT_OPT("-F"):
			if (opt_F)
				usage();
			opt_F = 1;
			break;
		GETOPT_OPT("-g"):
			if (opt_g)
				usage();
			opt_g = 1;
			break;
		GETOPT_OPT("-j"):
			if (opt_j)
				usage();
			opt_j = 1;
			break;
		GETOPT_OPTARG("-k"):
			if (opt_k)
				usage();
			opt_k = optarg;
			break;
		GETOPT_OPTARG("-n"):
			if (opt_n_set)
				usage();
			opt_n_set = 1;
			if (PARSENUM(&opt_n, optarg))
				OPT_EPARSE(ch, optarg);
			if (opt_n == 0)
				opt_n = SIZE_MAX;
			break;
		GETOPT_OPTARG("-o"):
			if (opt_o_set)
				usage();
			opt_o_set = 1;
			if (PARSENUM(&opt_o, optarg, 0, INFINITY))
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPTARG("-p"):
			if (opt_p)
				usage();
			opt_p = optarg;
			break;
		GETOPT_OPTARG("-r"):
			if (opt_r_set)
				usage();
			opt_r_set = 1;
			if (PARSENUM(&opt_r, optarg, 0, INFINITY))
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPT("-R"):
			if (opt_R)
				usage();
			opt_R = 1;
			break;
		GETOPT_OPTARG("-s"):
			if (opt_s)
				usage();
			opt_s = optarg;
			break;
		GETOPT_OPT("--syslog"):
			if (opt_syslog)
				usage();
			opt_syslog = 1;
			break;
		GETOPT_OPTARG("-t"):
			if (opt_t)
				usage();
			opt_t = optarg;
			break;
		GETOPT_OPTARG("-u"):
			if (opt_u != NULL)
				usage();
			opt_u = optarg;
			break;
		GETOPT_OPT("-v"):
			fprintf(stderr, "spiped @VERSION@\n");
			exit(0);
		GETOPT_MISSING_ARG:
			warn0("Missing argument to %s", ch);
			usage();
		GETOPT_DEFAULT:
			warn0("illegal option -- %s", ch);
			usage();
		}
	}
	argc -= optind;
	argv += optind;

	/* We should have processed all the arguments. */
	if (argc != 0)
		usage();
	(void)argv; /* argv is not used beyond this point. */

	/* Set defaults. */
	if (!opt_n_set)
		opt_n = 100;
	if (opt_o == 0.0)
		opt_o = 5.0;
	if (opt_r == 0.0)
		opt_r = 60.0;

	/* Sanity-check options. */
	if (!opt_d && !opt_e)
		usage();
	if (opt_f && opt_g)
		usage();
	if (opt_k == NULL)
		usage();
	if (!(opt_o > 0.0))
		usage();
	if ((opt_r != 60.0) && opt_R)
		usage();
	if ((opt_s == NULL) || sock_addr_validate(opt_s))
		usage();
	if ((opt_t == NULL) || sock_addr_validate(opt_t))
		usage();
	if (opt_b && sock_addr_validate(opt_b))
		usage();

	/*
	 * A limit of SIZE_MAX connections is equivalent to any larger limit;
	 * we'll be unable to allocate memory for socket bookkeeping before we
	 * reach either.
	 */
	if (opt_n > SIZE_MAX)
		opt_n = SIZE_MAX;

	/* Figure out where our pid should be written. */
	if (asprintf(&pidfilename, (opt_p != NULL) ? "%s" : "%s.pid",
	    (opt_p != NULL) ? opt_p : opt_s) == -1) {
		warnp("asprintf");
		goto err0;
	}

	/* Check whether we are running as init (e.g., inside a container). */
	if (getpid() == 1) {
		/* https://github.com/docker/docker/issues/7086 */
		warn0("WARNING: Applying workaround for Docker signal-handling bug");

		/* Bind an explicit signal handler for SIGINT. */
		if (signal(SIGINT, diediedie_handler) == SIG_ERR) {
			warnp("Failed to bind SIGINT signal handler");
		}
	}

	/* Daemonize early if we're going to wait for DNS to be ready. */
	if (opt_D && !opt_F) {
		if (daemonize(pidfilename)) {
			warnp("Failed to daemonize");
			goto err1;
		}

		/* Send to syslog (if applicable). */
		if (opt_syslog)
			warnp_syslog(1);
	}

	/* Resolve source address. */
	while ((sa_s = sock_resolve_one(opt_s, 0)) == NULL) {
		if (!opt_D) {
			warnp("Error resolving socket address: %s", opt_s);
			goto err1;
		}
		sleep(1);
	}

	/* Resolve target address. */
	while ((sas_t = sock_resolve(opt_t)) == NULL) {
		if (!opt_D) {
			warnp("Error resolving socket address: %s", opt_t);
			goto err2;
		}
		sleep(1);
	}
	if (sas_t[0] == NULL) {
		warn0("No addresses found for %s", opt_t);
		goto err3;
	}

	/* Resolve bind address (if applicable). */
	if (opt_b) {
		while ((sa_b = sock_resolve_one(opt_b, 1)) == NULL) {
			if (!opt_D) {
				warnp("Error resolving socket address: %s",
				    opt_b);
				goto err3;
			}
			sleep(1);
		}
	}

	/* Load the keying data. */
	if ((K = proto_crypt_secret(opt_k)) == NULL) {
		warnp("Error reading shared secret");
		goto err4;
	}

	/* Create and bind a socket, and mark it as listening. */
	if ((s = sock_listener(sa_s)) == -1)
		goto err5;

	/* Daemonize and write pid. */
	if (!opt_D && !opt_F) {
		if (daemonize(pidfilename)) {
			warnp("Failed to daemonize");
			goto err6;
		}
		/* Send to syslog (if applicable). */
		if (opt_syslog)
			warnp_syslog(1);
	}

	/* Drop privileges (if applicable). */
	if (opt_u && setuidgid(opt_u, SETUIDGID_SGROUP_LEAVE_WARN)) {
		warnp("Failed to drop privileges");
		goto err7;
	}

	/* Start accepting connections. */
	if ((dispatch_cookie = dispatch_accept(s, opt_t, opt_R ? 0.0 : opt_r,
	    sas_t, sa_b, opt_d, opt_f, opt_g, opt_j, K, opt_n, opt_o,
	    &conndone)) == NULL) {
		warnp("Failed to initialize connection acceptor");
		goto err7;
	}

	/* dispatch is now maintaining sas_t and s. */
	sas_t = NULL;
	s = -1;

	/* Register a handler for SIGTERM. */
	if (graceful_shutdown_initialize(&callback_graceful_shutdown,
	    dispatch_cookie)) {
		warn0("Failed to start graceful_shutdown timer");
		goto err7;
	}

	/*
	 * Loop until an error occurs, or a connection closes if the
	 * command-line argument -1 was given.
	 */
	if (events_spin(&conndone)) {
		warnp("Error running event loop");
		goto err7;
	}

	/* Stop accepting connections and shut down the dispatcher. */
	dispatch_shutdown(dispatch_cookie);

	/* Free the protocol secret structure. */
	proto_crypt_secret_free(K);

	/* Free arrays of resolved addresses. */
	sock_addr_free(sa_s);
	sock_addr_free(sa_b);

	/* Free pid filename. */
	free(pidfilename);

	/* Success! */
	exit(0);

err7:
	dispatch_shutdown(dispatch_cookie);
err6:
	if ((s != -1) && close(s))
		warnp("close");
err5:
	proto_crypt_secret_free(K);
err4:
	sock_addr_free(sa_b);
err3:
	sock_addr_freelist(sas_t);
err2:
	sock_addr_free(sa_s);
err1:
	free(pidfilename);
err0:
	/* Failure! */
	exit(1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rsi, %r12
movl %edi, %ebp
movq $0x0, 0x60(%rsp)
movl $0x0, 0x7c(%rsp)
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x3c90
callq 0x8d0c
movl %ebp, %edi
movq %r12, %rsi
callq 0x6bd8
testq %rax, %rax
jne 0x3e9c
movb $0x1, %bl
xorpd %xmm0, %xmm0
movapd %xmm0, 0xb0(%rsp)
movl $0x64, %eax
movq %rax, 0x48(%rsp)
movq $0x0, 0x28(%rsp)
xorl %eax, %eax
movl $0x0, 0xc(%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
movq $0x0, 0x88(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x80(%rsp)
movapd %xmm0, 0x90(%rsp)
xorl %r13d, %r13d
movq $0x0, 0x20(%rsp)
xorl %r15d, %r15d
movq $0x0, 0x58(%rsp)
movl $0x0, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
leaq 0x148c9(%rip), %rcx     # 0x185f8
cmpl %ebp, (%rcx)
jne 0x47ac
cmpl $0x0, 0x8(%rsp)
setne %cl
orb %al, %cl
testb $0x1, %cl
je 0x47ac
cmpl $0x0, 0xc(%rsp)
setne %al
testl %r14d, %r14d
setne %cl
andb %al, %cl
cmpb $0x1, %cl
je 0x47ac
cmpq $0x0, 0x30(%rsp)
je 0x47ac
xorpd %xmm3, %xmm3
movapd 0xb0(%rsp), %xmm1
movapd %xmm1, %xmm2
cmpeqsd %xmm3, %xmm2
movsd 0xd27b(%rip), %xmm0     # 0x11008
andpd %xmm2, %xmm0
andnpd %xmm1, %xmm2
orpd %xmm0, %xmm2
xorpd %xmm0, %xmm0
ucomisd %xmm0, %xmm2
jbe 0x47ac
movapd 0x90(%rsp), %xmm1
cmpeqsd %xmm1, %xmm3
movsd 0xd253(%rip), %xmm0     # 0x11010
andpd %xmm3, %xmm0
andnpd %xmm1, %xmm3
orpd %xmm0, %xmm3
ucomisd 0xd23f(%rip), %xmm3     # 0x11010
setp %al
setne %cl
orb %al, %cl
andb %r13b, %cl
cmpb $0x1, %cl
je 0x47ac
movapd %xmm3, 0xb0(%rsp)
movapd %xmm2, 0xa0(%rsp)
movq 0x20(%rsp), %rbp
testq %rbp, %rbp
je 0x47ac
movq %rbp, %rdi
callq 0x8ca6
testl %eax, %eax
jne 0x47ac
testq %r15, %r15
je 0x47ac
movq %r15, %rdi
callq 0x8ca6
testl %eax, %eax
jne 0x47ac
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x3e45
callq 0x8ca6
testl %eax, %eax
jne 0x47ac
movq 0x80(%rsp), %rdx
testq %rdx, %rdx
leaq 0xd291(%rip), %rax      # 0x110e8
leaq 0xd287(%rip), %rsi      # 0x110e5
cmoveq %rax, %rsi
cmoveq %rbp, %rdx
leaq 0x60(%rsp), %rdi
xorl %eax, %eax
callq 0x68e4
cmpl $-0x1, %eax
jne 0x491b
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4974
leaq 0xd25f(%rip), %rdi      # 0x110ef
xorl %eax, %eax
callq 0x8eab
jmp 0x47cc
movq %rax, %r14
movq $0x0, 0x18(%rsp)
leaq 0x24931(%rip), %r15     # 0x287e0
leaq 0xd197(%rip), %r13      # 0x1104d
leaq 0x2491b(%rip), %rbx     # 0x287d8
xorpd %xmm0, %xmm0
movapd %xmm0, 0x90(%rsp)
movapd %xmm0, 0xb0(%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, %eax
movq %rax, 0x58(%rsp)
movl $0x0, %eax
movq %rax, 0x10(%rsp)
movl $0x0, %eax
movq %rax, 0x20(%rsp)
movl $0x0, 0x44(%rsp)
movl $0x0, 0x3c(%rsp)
movl $0x0, 0x74(%rsp)
movl $0x0, %eax
movq %rax, 0x80(%rsp)
movl $0x0, 0x70(%rsp)
movq $0x0, 0x48(%rsp)
movl $0x0, 0x38(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x88(%rsp)
movl $0x0, 0x40(%rsp)
movq $0x0, 0x50(%rsp)
movl $0x0, 0xc(%rsp)
movl $0x0, 0xa0(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x6a, (%rsp)
movq (%rsp), %rax
decq %rax
movq %rax, 0xc0(%rsp)
movl $0x0, 0x78(%rsp)
cmpl $0x0, (%r15)
je 0x3fac
movq %r14, %rdi
callq 0x6f1f
addq (%rsp), %rax
jmp 0x3fc0
movq 0xc0(%rsp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rsp)
cmpq $0xa0, %rax
jle 0x4023
cmpq $0xbd, %rax
jle 0x40c1
cmpq $0xcc, %rax
jg 0x4110
cmpq $0xbe, %rax
je 0x4338
cmpq $0xc3, %rax
je 0x4243
cmpq $0xc8, %rax
jne 0x4366
cmpl $0x0, (%r15)
jne 0x4486
movl $0xc8, %esi
subq (%rsp), %rsi
leaq 0xd086(%rip), %rdi      # 0x110a4
jmp 0x430d
cmpq $0x83, %rax
jg 0x4072
cmpq $0x74, %rax
jle 0x4145
cmpq $0x75, %rax
je 0x429c
cmpq $0x7a, %rax
je 0x41e6
cmpq $0x7f, %rax
jne 0x4366
cmpl $0x0, (%r15)
jne 0x4622
movl $0x7f, %esi
subq (%rsp), %rsi
leaq 0xcfec(%rip), %rdi      # 0x11059
jmp 0x4352
cmpq $0x8d, %rax
jle 0x4178
cmpq $0x8e, %rax
je 0x42bb
cmpq $0x93, %rax
je 0x4205
cmpq $0x98, %rax
jne 0x4366
cmpl $0x0, (%r15)
jne 0x467e
movl $0x98, %esi
subq (%rsp), %rsi
leaq 0xcfac(%rip), %rdi      # 0x11068
jmp 0x430d
cmpq $0xac, %rax
jle 0x41af
cmpq $0xad, %rax
je 0x42f3
cmpq $0xb4, %rax
je 0x4224
cmpq $0xb9, %rax
jne 0x4366
cmpl $0x0, (%r15)
jne 0x465c
movl $0xb9, %esi
subq (%rsp), %rsi
leaq 0xcf8a(%rip), %rdi      # 0x11095
jmp 0x430d
cmpq $0xcd, %rax
je 0x431c
cmpq $0xd0, %rax
jne 0x435e
cmpl $0x0, (%r15)
jne 0x4760
movl $0xd0, %edi
subq (%rsp), %rdi
callq 0x70ed
jmp 0x3f98
cmpq $0x6b, %rax
je 0x4262
cmpq $0x70, %rax
jne 0x4366
cmpl $0x0, (%r15)
jne 0x45d7
movl $0x70, %esi
subq (%rsp), %rsi
leaq 0xcedd(%rip), %rdi      # 0x11050
jmp 0x4352
cmpq $0x84, %rax
je 0x427d
cmpq $0x89, %rax
jne 0x4366
cmpl $0x0, (%r15)
jne 0x44a8
movl $0x89, %esi
subq (%rsp), %rsi
leaq 0xceb5(%rip), %rdi      # 0x1105f
jmp 0x4352
cmpq $0xa1, %rax
je 0x42d7
cmpq $0xa8, %rax
jne 0x4366
cmpl $0x0, (%r15)
jne 0x43a2
movl $0xa8, %esi
subq (%rsp), %rsi
leaq 0xceab(%rip), %rdi      # 0x1108c
jmp 0x430d
cmpl $0x0, (%r15)
jne 0x452c
movl $0x7a, %esi
subq (%rsp), %rsi
leaq 0xce56(%rip), %rdi      # 0x11056
jmp 0x4352
cmpl $0x0, (%r15)
jne 0x463a
movl $0x93, %esi
subq (%rsp), %rsi
leaq 0xce46(%rip), %rdi      # 0x11065
jmp 0x430d
cmpl $0x0, (%r15)
jne 0x446e
movl $0xb4, %esi
subq (%rsp), %rsi
leaq 0xce54(%rip), %rdi      # 0x11092
jmp 0x4352
cmpl $0x0, (%r15)
jne 0x444c
movl $0xc3, %esi
subq (%rsp), %rsi
leaq 0xce44(%rip), %rdi      # 0x110a1
jmp 0x430d
cmpl $0x0, (%r15)
jne 0x4600
movl $0x6b, %esi
subq (%rsp), %rsi
movq %r13, %rdi
jmp 0x430d
cmpl $0x0, (%r15)
jne 0x44c2
movl $0x84, %esi
subq (%rsp), %rsi
leaq 0xcdc5(%rip), %rdi      # 0x1105c
jmp 0x4352
cmpl $0x0, (%r15)
jne 0x44f2
movl $0x75, %esi
subq (%rsp), %rsi
leaq 0xcd9d(%rip), %rdi      # 0x11053
jmp 0x4352
cmpl $0x0, (%r15)
jne 0x450c
movl $0x8e, %esi
subq (%rsp), %rsi
leaq 0xcd8d(%rip), %rdi      # 0x11062
jmp 0x4352
cmpl $0x0, (%r15)
jne 0x43ca
movl $0xa1, %esi
subq (%rsp), %rsi
leaq 0xcd98(%rip), %rdi      # 0x11089
jmp 0x430d
cmpl $0x0, (%r15)
jne 0x4555
movl $0xad, %esi
subq (%rsp), %rsi
leaq 0xcd82(%rip), %rdi      # 0x1108f
movl $0x1, %edx
callq 0x6fdc
jmp 0x3f98
cmpl $0x0, (%r15)
jne 0x4769
movl $0xcd, %esi
subq (%rsp), %rsi
leaq 0xcd71(%rip), %rdi      # 0x110a7
jmp 0x4352
cmpl $0x0, (%r15)
jne 0x44da
movl $0xbe, %esi
subq (%rsp), %rsi
leaq 0xcd46(%rip), %rdi      # 0x11098
xorl %edx, %edx
callq 0x6fdc
jmp 0x3f98
cmpq $0xd3, %rax
je 0x4396
cmpl $0x0, (%r15)
jne 0x4790
cmpl $0x0, 0x78(%rsp)
jne 0x3f98
movl $0xd3, %edi
subq (%rsp), %rdi
callq 0x712d
movl $0x1, 0x78(%rsp)
jmp 0x3f98
movl $0x1, (%r15)
jmp 0x46fe
movq (%rbx), %rax
testq %rax, %rax
je 0x4804
cmpq $0x0, 0x80(%rsp)
movq %rax, 0x80(%rsp)
je 0x46fe
jmp 0x47ac
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x4823
cmpl $0x0, 0x70(%rsp)
jne 0x47ac
callq 0x3480
movq %rax, %r13
movl $0x0, (%rax)
movq %rbx, %rdi
leaq 0x68(%rsp), %rsi
callq 0x3690
movapd %xmm0, 0xb0(%rsp)
movq 0x68(%rsp), %rcx
movl $0x16, %eax
cmpq %rbx, %rcx
je 0x47db
cmpb $0x0, (%rcx)
jne 0x47db
xorpd %xmm0, %xmm0
ucomisd 0xb0(%rsp), %xmm0
ja 0x47d6
cmpl $0x0, (%r13)
jne 0x47df
movl $0x1, 0x70(%rsp)
jmp 0x46f0
movq (%rbx), %rax
testq %rax, %rax
je 0x48be
cmpq $0x0, 0x10(%rsp)
movq %rax, 0x10(%rsp)
je 0x46fe
jmp 0x47ac
cmpl $0x0, 0x3c(%rsp)
movl $0x1, 0x3c(%rsp)
je 0x46fe
jmp 0x47ac
movq (%rbx), %rax
testq %rax, %rax
je 0x4842
cmpq $0x0, 0x58(%rsp)
movq %rax, 0x58(%rsp)
je 0x46fe
jmp 0x47ac
cmpl $0x0, 0x50(%rsp)
movl $0x1, %eax
movq %rax, 0x50(%rsp)
je 0x46fe
jmp 0x47ac
cmpl $0x0, 0x40(%rsp)
movl $0x1, 0x40(%rsp)
je 0x46fe
jmp 0x47ac
cmpl $0x0, 0x44(%rsp)
movl $0x1, 0x44(%rsp)
je 0x46fe
jmp 0x47ac
cmpl $0x0, 0x28(%rsp)
movl $0x1, %eax
movq %rax, 0x28(%rsp)
je 0x46fe
jmp 0x47ac
cmpl $0x0, 0x88(%rsp)
movl $0x1, %eax
movq %rax, 0x88(%rsp)
je 0x46fe
jmp 0x47ac
movl 0xa0(%rsp), %eax
orl %eax, 0x8(%rsp)
jne 0x47ac
movl $0x0, 0x8(%rsp)
movl $0x1, 0xa0(%rsp)
jmp 0x46fe
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x4861
cmpl $0x0, 0x74(%rsp)
jne 0x47ac
callq 0x3480
movq %rax, %r13
movl $0x0, (%rax)
movq %rbx, %rdi
leaq 0x68(%rsp), %rsi
callq 0x3690
movapd %xmm0, 0x90(%rsp)
movq 0x68(%rsp), %rcx
movl $0x16, %eax
cmpq %rbx, %rcx
je 0x47db
cmpb $0x0, (%rcx)
jne 0x47db
xorpd %xmm0, %xmm0
ucomisd 0x90(%rsp), %xmm0
ja 0x47d6
cmpl $0x0, (%r13)
jne 0x47df
movl $0x1, 0x74(%rsp)
jmp 0x46f0
movl 0xa0(%rsp), %eax
orl %eax, 0x8(%rsp)
jne 0x47ac
movl $0x1, 0x8(%rsp)
movl $0x0, 0xa0(%rsp)
jmp 0x46fe
movq (%rbx), %rax
testq %rax, %rax
je 0x4880
cmpq $0x0, 0x18(%rsp)
movq %rax, 0x18(%rsp)
je 0x46fe
jmp 0x47ac
cmpl $0x0, 0xc(%rsp)
movl $0x1, 0xc(%rsp)
je 0x46fe
jmp 0x47ac
movq (%rbx), %rax
testq %rax, %rax
je 0x48dd
cmpq $0x0, 0x30(%rsp)
movq %rax, 0x30(%rsp)
je 0x46fe
jmp 0x47ac
movq (%rbx), %rax
testq %rax, %rax
je 0x48fc
cmpq $0x0, 0x20(%rsp)
movq %rax, 0x20(%rsp)
je 0x46fe
jmp 0x47ac
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x489f
cmpl $0x0, 0x38(%rsp)
jne 0x47ac
callq 0x3480
movq %rax, %r13
movl $0x0, (%rax)
movq %rbx, %rdi
leaq 0x68(%rsp), %rsi
xorl %edx, %edx
callq 0x3040
movq 0x68(%rsp), %rcx
cmpq %rbx, %rcx
je 0x46c1
cmpb $0x0, (%rcx)
je 0x46c9
movl $0x16, (%r13)
cmpl $0x0, (%r13)
jne 0x47df
cmpq $0x1, %rax
movl $0x0, %ecx
sbbq %rcx, %rcx
orq %rax, %rcx
movq %rcx, 0x48(%rsp)
movl $0x1, 0x38(%rsp)
leaq 0x240e1(%rip), %rbx     # 0x287d8
leaq 0xc94f(%rip), %r13      # 0x1104d
movl %ebp, %edi
movq %r12, %rsi
callq 0x6bd8
movq %rax, %r14
testq %rax, %rax
jne 0x3f79
cmpl $0x0, 0x38(%rsp)
movl $0x64, %eax
movq 0x48(%rsp), %rcx
cmoveq %rax, %rcx
movq %rcx, 0x48(%rsp)
cmpl $0x0, 0xa0(%rsp)
setne %al
cmpl $0x0, 0x3c(%rsp)
setne %r13b
cmpl $0x0, 0x40(%rsp)
setne %r12b
cmpl $0x0, 0x44(%rsp)
sete %bl
movq 0x50(%rsp), %r14
movq 0x10(%rsp), %r15
jmp 0x3d28
leaq 0xc955(%rip), %rdi      # 0x110bc
jmp 0x4797
movq 0x13880(%rip), %rax     # 0x17ff0
movq (%rax), %rcx
leaq 0xc930(%rip), %rdi      # 0x110aa
movl $0x11, %esi
movl $0x1, %edx
callq 0x3570
xorl %edi, %edi
callq 0x3140
leaq 0xc93c(%rip), %rdi      # 0x110d3
movq %r14, %rsi
xorl %eax, %eax
callq 0x8eab
callq 0x3480
movl $0x0, (%rax)
movq 0x1383d(%rip), %rax     # 0x17ff0
movq (%rax), %rcx
leaq 0xca8d(%rip), %rdi      # 0x1124a
movl $0x124, %esi            # imm = 0x124
movl $0x1, %edx
callq 0x3570
movl $0x1, %edi
callq 0x3140
movl $0x22, %eax
movl %eax, (%r13)
leaq 0x23ff2(%rip), %rax     # 0x287d8
movq (%rax), %rdx
leaq 0xc87b(%rip), %rdi      # 0x1106b
movq %r14, %rsi
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%r13)
jmp 0x47cc
leaq 0xc815(%rip), %rdi      # 0x11020
leaq 0xc81d(%rip), %rsi      # 0x1102f
leaq 0xc81d(%rip), %rcx      # 0x11036
movl $0xa8, %edx
callq 0x3150
leaq 0xc7f6(%rip), %rdi      # 0x11020
leaq 0xc7fe(%rip), %rsi      # 0x1102f
leaq 0xc7fe(%rip), %rcx      # 0x11036
movl $0xa1, %edx
callq 0x3150
leaq 0xc7d7(%rip), %rdi      # 0x11020
leaq 0xc7df(%rip), %rsi      # 0x1102f
leaq 0xc7df(%rip), %rcx      # 0x11036
movl $0xc8, %edx
callq 0x3150
leaq 0xc7b8(%rip), %rdi      # 0x11020
leaq 0xc7c0(%rip), %rsi      # 0x1102f
leaq 0xc7c0(%rip), %rcx      # 0x11036
movl $0xad, %edx
callq 0x3150
leaq 0xc799(%rip), %rdi      # 0x11020
leaq 0xc7a1(%rip), %rsi      # 0x1102f
leaq 0xc7a1(%rip), %rcx      # 0x11036
movl $0x6b, %edx
callq 0x3150
leaq 0xc77a(%rip), %rdi      # 0x11020
leaq 0xc782(%rip), %rsi      # 0x1102f
leaq 0xc782(%rip), %rcx      # 0x11036
movl $0x98, %edx
callq 0x3150
leaq 0xc75b(%rip), %rdi      # 0x11020
leaq 0xc763(%rip), %rsi      # 0x1102f
leaq 0xc763(%rip), %rcx      # 0x11036
movl $0xc3, %edx
callq 0x3150
leaq 0xc73c(%rip), %rdi      # 0x11020
leaq 0xc744(%rip), %rsi      # 0x1102f
leaq 0xc744(%rip), %rcx      # 0x11036
movl $0x93, %edx
callq 0x3150
leaq 0xc71d(%rip), %rdi      # 0x11020
leaq 0xc725(%rip), %rsi      # 0x1102f
leaq 0xc725(%rip), %rcx      # 0x11036
movl $0xb9, %edx
callq 0x3150
movb %bl, 0x90(%rsp)
callq 0x3220
cmpl $0x1, %eax
jne 0x49a9
leaq 0xc7c5(%rip), %rdi      # 0x110f8
xorl %eax, %eax
callq 0x8eab
callq 0x3480
movq %rax, %rbx
movl $0x0, (%rax)
leaq 0x567(%rip), %rsi       # 0x4eb6
movl $0x2, %edi
callq 0x3050
cmpq $-0x1, %rax
jne 0x49a9
cmpl $0x0, (%rbx)
jne 0x4990
leaq 0xc7c9(%rip), %rdi      # 0x11134
xorl %eax, %eax
callq 0x8eab
jmp 0x49a4
movq %rax, %rbx
leaq 0xc771(%rip), %rdi      # 0x110ef
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%rbx)
jmp 0x47cc
leaq 0xc79d(%rip), %rdi      # 0x11134
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%rbx)
movq 0x20(%rsp), %rbp
cmpl $0x0, 0x28(%rsp)
sete %al
orb %r12b, %al
testb $0x1, %al
je 0x49fd
movq %rbp, %rdi
xorl %esi, %esi
callq 0x82ab
testq %rax, %rax
movq %r14, 0x50(%rsp)
jne 0x4a60
cmpl $0x0, 0x28(%rsp)
jne 0x4a42
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4b52
leaq 0xc781(%rip), %rdi      # 0x1116d
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x8eab
jmp 0x4e6d
movq 0x60(%rsp), %rdi
callq 0x69e8
testl %eax, %eax
jne 0x4a21
cmpb $0x0, 0x90(%rsp)
jne 0x49b8
movl $0x1, %edi
callq 0x8fac
jmp 0x49b8
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4afa
leaq 0xc723(%rip), %rdi      # 0x11159
xorl %eax, %eax
callq 0x8eab
jmp 0x4e6d
movq 0x20(%rsp), %r14
movl $0x1, %edi
callq 0x3320
movq %r14, %rdi
xorl %esi, %esi
callq 0x82ab
testq %rax, %rax
je 0x4a47
movq %rax, %rbx
movq %r15, 0x10(%rsp)
movq %r15, %rdi
callq 0x7d08
testq %rax, %rax
jne 0x4abe
cmpl $0x0, 0x28(%rsp)
jne 0x4aa2
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4b73
leaq 0xc6dc(%rip), %rdi      # 0x1116d
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x8eab
jmp 0x4e65
movq 0x10(%rsp), %r15
movl $0x1, %edi
callq 0x3320
movq %r15, %rdi
callq 0x7d08
testq %rax, %rax
je 0x4aa7
movq %rax, %r14
cmpq $0x0, (%rax)
jne 0x4aea
leaq 0xc6c2(%rip), %rdi      # 0x11190
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x8eab
callq 0x3480
movl $0x0, (%rax)
jmp 0x4e5d
cmpq $0x0, 0x18(%rsp)
jne 0x4b0d
xorl %r15d, %r15d
jmp 0x4bb9
movq %rax, %rbx
leaq 0xc655(%rip), %rdi      # 0x11159
xorl %eax, %eax
callq 0x8d8c
jmp 0x4b68
movq 0x18(%rsp), %rdi
movl $0x1, %esi
callq 0x82ab
testq %rax, %rax
jne 0x4bb6
cmpl $0x0, 0x28(%rsp)
jne 0x4b95
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4cec
leaq 0xc62c(%rip), %rdi      # 0x1116d
movq 0x18(%rsp), %rsi
xorl %eax, %eax
callq 0x8eab
jmp 0x4e5d
movq %rax, %rbx
leaq 0xc611(%rip), %rdi      # 0x1116d
movq 0x20(%rsp), %rsi
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%rbx)
jmp 0x4e6d
movq %rax, %r14
leaq 0xc5f0(%rip), %rdi      # 0x1116d
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%r14)
jmp 0x4e65
movq 0x18(%rsp), %rbp
movl $0x1, %edi
callq 0x3320
movq %rbp, %rdi
movl $0x1, %esi
callq 0x82ab
testq %rax, %rax
je 0x4b9a
movq %rax, %r15
movq 0x30(%rsp), %rdi
callq 0x9d90
testq %rax, %rax
jne 0x4be9
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4cce
leaq 0xc5cd(%rip), %rdi      # 0x111aa
xorl %eax, %eax
callq 0x8eab
jmp 0x4e55
movq %rax, %rbp
movq %rbx, %rdi
callq 0x845e
movl %eax, 0x30(%rsp)
cmpl $-0x1, %eax
je 0x4e4d
cmpl $0x0, 0x28(%rsp)
setne %al
orb %r12b, %al
testb $0x1, %al
jne 0x4c36
movq 0x60(%rsp), %rdi
callq 0x69e8
testl %eax, %eax
jne 0x4d69
cmpb $0x0, 0x90(%rsp)
jne 0x4c36
movl $0x1, %edi
callq 0x8fac
cmpq $0x0, 0x58(%rsp)
je 0x4c55
movq 0x58(%rsp), %rdi
movl $0x1, %esi
callq 0x78a0
testl %eax, %eax
jne 0x4d86
xorpd %xmm0, %xmm0
testb %r13b, %r13b
jne 0x4c67
movapd 0xb0(%rsp), %xmm0
subq $0x8, %rsp
leaq 0x84(%rsp), %rax
movl 0x38(%rsp), %edi
movq 0x18(%rsp), %rsi
movq %r14, %rdx
movq %r15, %rcx
movl 0x10(%rsp), %r8d
movl 0x14(%rsp), %r9d
movapd 0xa8(%rsp), %xmm1
pushq %rax
pushq 0x58(%rsp)
pushq %rbp
pushq 0xa8(%rsp)
pushq 0x78(%rsp)
callq 0x4ec8
addq $0x30, %rsp
testq %rax, %rax
jne 0x4d0e
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4da0
leaq 0xc517(%rip), %rdi      # 0x111e0
jmp 0x4d97
movq %rax, %r12
leaq 0xc4d2(%rip), %rdi      # 0x111aa
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%r12)
jmp 0x4e55
movq %rax, %r15
leaq 0xc477(%rip), %rdi      # 0x1116d
movq 0x18(%rsp), %rsi
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%r15)
jmp 0x4e5d
movq %rax, %r13
leaq 0x1a6(%rip), %rdi       # 0x4ebe
movq %rax, %rsi
callq 0xac20
testl %eax, %eax
jne 0x4dac
leaq 0x7c(%rsp), %rdi
callq 0x5661
testl %eax, %eax
jne 0x4e7c
movq %r13, %rdi
callq 0x508b
movq %rbp, %rdi
callq 0x9fcb
movq %rbx, %rdi
callq 0x83fe
movq %r15, %rdi
callq 0x83fe
movq 0x60(%rsp), %rdi
callq 0x32b0
jmp 0x4789
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4dd2
leaq 0xc3df(%rip), %rdi      # 0x11159
xorl %eax, %eax
callq 0x8eab
jmp 0x4e0d
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4ded
leaq 0xc42f(%rip), %rdi      # 0x111c6
xorl %eax, %eax
callq 0x8eab
jmp 0x4e06
movq %rax, %r13
leaq 0xc436(%rip), %rdi      # 0x111e0
jmp 0x4df7
leaq 0xc456(%rip), %rdi      # 0x11209
xorl %eax, %eax
callq 0x8eab
callq 0x3480
movl $0x0, (%rax)
movq %r13, %rdi
callq 0x508b
xorl %r14d, %r14d
jmp 0x4e4d
movq %rax, %r13
leaq 0xc37d(%rip), %rdi      # 0x11159
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%r13)
jmp 0x4e0d
movq %rax, %r13
leaq 0xc3cf(%rip), %rdi      # 0x111c6
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%r13)
xorl %edi, %edi
callq 0x508b
movl 0x30(%rsp), %edi
callq 0x30d0
testl %eax, %eax
je 0x4e4d
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4e34
leaq 0xc8b2(%rip), %rdi      # 0x116dd
xorl %eax, %eax
callq 0x8eab
jmp 0x4e4d
movq %rax, %r13
leaq 0xc89f(%rip), %rdi      # 0x116dd
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%r13)
movq %rbp, %rdi
callq 0x9fcb
movq %r15, %rdi
callq 0x83fe
movq %r14, %rdi
callq 0x841a
movq %rbx, %rdi
callq 0x83fe
movq 0x60(%rsp), %rdi
callq 0x32b0
jmp 0x47cc
callq 0x3480
cmpl $0x0, (%rax)
jne 0x4e99
leaq 0xc3a4(%rip), %rdi      # 0x11231
xorl %eax, %eax
callq 0x8eab
jmp 0x4dc5
movq %rax, %r14
leaq 0xc38e(%rip), %rdi      # 0x11231
xorl %eax, %eax
callq 0x8d8c
movl $0x0, (%r14)
jmp 0x4dc5