// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]kivaloo/s3/main.c
// Function: main
int
main(int argc, char * argv[])
{
	/* State variables. */
	struct s3_request_queue * Q;
	struct dns_reader * DR;
	struct dispatch_state * D;
	int s;

	/* Command-line parameters. */
	char * opt_k = NULL;
	char * opt_l = NULL;
	char * opt_p = NULL;
	size_t opt_n = 16;
	char * opt_r = NULL;
	char * opt_s = NULL;
	int opt_1 = 0;

	/* Working variable. */
	char * s3_key_id;
	char * s3_key_secret;
	struct sock_addr ** sas;
	char * s3_host;
	struct logging_file * logfile;
	size_t i;
	const char * ch;

	WARNP_INIT;

	/* Parse the command line. */
	while ((ch = GETOPT(argc, argv)) != NULL) {
		GETOPT_SWITCH(ch) {
		GETOPT_OPTARG("-k"):
			if (opt_k != NULL)
				usage();
			if ((opt_k = strdup(optarg)) == NULL)
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPTARG("-l"):
			if (opt_l != NULL)
				usage();
			if ((opt_l = strdup(optarg)) == NULL)
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPTARG("-n"):
			if (opt_n != 16)
				usage();
			if (PARSENUM(&opt_n, optarg, 1, 250)) {
				warn0("Maximum number of connections must"
				    " be in [1, 250]");
				exit(1);
			}
			break;
		GETOPT_OPTARG("-p"):
			if (opt_p != NULL)
				usage();
			if ((opt_p = strdup(optarg)) == NULL)
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPTARG("-r"):
			if (opt_r != NULL)
				usage();
			if ((opt_r = strdup(optarg)) == NULL)
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPTARG("-s"):
			if (opt_s != NULL)
				usage();
			if ((opt_s = strdup(optarg)) == NULL)
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPT("--version"):
			fprintf(stderr, "kivaloo-s3 @VERSION@\n");
			exit(0);
		GETOPT_OPT("-1"):
			if (opt_1 != 0)
				usage();
			opt_1 = 1;
			break;
		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. */

	/* Sanity-check options. */
	if (opt_k == NULL)
		usage();
	if (opt_r == NULL)
		usage();
	if (opt_s == NULL)
		usage();

	/* Read the key file. */
	if (aws_readkeys(opt_k, &s3_key_id, &s3_key_secret)) {
		warnp("Error reading S3 keys from %s", opt_k);
		exit(1);
	}

	/* Create an S3 request queue. */
	if ((Q = s3_request_queue_init(s3_key_id, s3_key_secret, opt_r,
	    opt_n)) == NULL) {
		warnp("Error creating S3 request queue");
		exit(1);
	}

	/* Construct the S3 endpoint host name. */
	if (asprintf(&s3_host, "s3.%s.amazonaws.com:80", opt_r) == -1) {
		warnp("asprintf");
		exit(1);
	}

	/* Perform an initial DNS lookup for the S3 endpoint. */
	if ((sas = sock_resolve(s3_host)) == NULL) {
		warnp("Error resolving S3 endpoint: %s", s3_host);
		exit(1);
	}

	/* Add addresses to the request queue. */
	for (i = 0; sas[i] != NULL; i++) {
		if (s3_request_queue_addaddr(Q, sas[i], 600)) {
			warnp("Error adding S3 endpoint address");
			exit(1);
		}
	}

	/* Free the initial set of S3 endpoint addresses. */
	sock_addr_freelist(sas);

	/* Resolve the listening address. */
	if ((sas = sock_resolve(opt_s)) == NULL) {
		warnp("Error resolving socket address: %s", opt_s);
		exit(1);
	}
	if (sas[0] == NULL) {
		warn0("No addresses found for %s", opt_s);
		exit(1);
	}

	/* Create and bind a socket, and mark it as listening. */
	if (sas[1] != NULL)
		warn0("Listening on first of multiple addresses found for %s",
		    opt_s);
	if ((s = sock_listener(sas[0])) == -1)
		exit(1);

	/* If requested, create a log file. */
	if (opt_l != NULL) {
		if ((logfile = logging_open(opt_l)) == NULL) {
			warnp("Cannot open log file");
			exit(1);
		}
		s3_request_queue_log(Q, logfile);
	} else {
		logfile = NULL;
	}

	/* Daemonize and write pid. */
	if (opt_p == NULL) {
		if (asprintf(&opt_p, "%s.pid", opt_s) == -1) {
			warnp("asprintf");
			exit(1);
		}
	}
	if (daemonize(opt_p)) {
		warnp("Failed to daemonize");
		exit(1);
	}

	/* Start DNS lookups. */
	if ((DR = dns_reader_start(Q, s3_host)) == NULL) {
		warnp("Failed to start DNS resolution");
		exit(1);
	}

	/* Handle connections, one at once. */
	do {
		/* accept a connection. */
		if ((D = dispatch_accept(Q, s)) == NULL) {
			warnp("Error accepting new connection");
			exit(1);
		}

		/* Loop until the connection dies. */
		do {
			if (events_run()) {
				warnp("Error running event loop");
				exit(1);
			}
		} while (dispatch_alive(D));

		/* Clean up the connection. */
		if (dispatch_done(D))
			exit(1);
	} while (opt_1 == 0);

	/* Stop DNS lookups. */
	dns_reader_stop(DR);

	/* Free the S3 request queue. */
	s3_request_queue_free(Q);

	/* Close the log file, if we have one. */
	if (logfile != NULL)
		logging_close(logfile);

	/* Close the listening socket. */
	if (close(s))
		warnp("close");

	/* Free the address structures. */
	sock_addr_freelist(sas);

	/* Free string allocated by asprintf. */
	free(s3_host);

	/* Free key strings. */
	free(s3_key_id);
	insecure_memzero(s3_key_secret, strlen(s3_key_secret));
	free(s3_key_secret);

	/* Free option strings. */
	free(opt_k);
	free(opt_l);
	free(opt_p);
	free(opt_r);
	free(opt_s);

	/* Success! */
	return (0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
andq $0x0, 0x20(%rsp)
movl %edi, 0x28(%rsp)
movq %rsi, 0x68(%rsp)
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x2666
callq 0x93e0
movq $0x0, 0x18(%rsp)
pushq $0x10
popq %rax
movq %rax, 0x30(%rsp)
leaq 0x261fa(%rip), %r15     # 0x28878
pushq $0x1
popq %r14
leaq 0xda0a(%rip), %rbp      # 0x10093
pushq $0x76
popq %r13
movq $0x0, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl 0x28(%rsp), %edi
movq 0x68(%rsp), %rsi
callq 0x777c
testq %rax, %rax
je 0x2a4e
movq %rax, %rbx
movq $0x46, (%rsp)
movq (%rsp), %rax
decq %rax
movq %rax, 0x58(%rsp)
movl $0x0, 0x2c(%rsp)
pushq $0x47
popq %r12
cmpl $0x0, (%r15)
je 0x26fe
movq %rbx, %rdi
callq 0x7b91
addq (%rsp), %rax
jmp 0x270c
movq 0x58(%rsp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x58(%rsp)
cmpq $0x47, %rax
je 0x27d4
cmpq $0x4d, %rax
je 0x279a
cmpq $0x53, %rax
je 0x27b7
cmpq $0x5c, %rax
je 0x280b
cmpq $0x62, %rax
je 0x287a
cmpq $0x68, %rax
je 0x2840
cmpq $0x6e, %rax
je 0x285a
cmpq $0x71, %rax
je 0x27f1
cmpq $0x76, %rax
je 0x2825
cmpq $0x79, %rax
je 0x289b
cmpl $0x0, (%r15)
jne 0x2d71
cmpl $0x0, 0x2c(%rsp)
jne 0x26ea
pushq $0x79
popq %rdi
subq (%rsp), %rdi
callq 0x7efe
movl $0x1, 0x2c(%rsp)
jmp 0x26ea
cmpl $0x0, (%r15)
jne 0x2996
pushq $0x4d
popq %rsi
subq (%rsp), %rsi
leaq 0xd8a0(%rip), %rdi      # 0x10052
jmp 0x288e
cmpl $0x0, (%r15)
jne 0x28ed
pushq $0x53
popq %rsi
subq (%rsp), %rsi
leaq 0xd886(%rip), %rdi      # 0x10055
jmp 0x288e
cmpl $0x0, (%r15)
jne 0x29c4
movq %r12, %rsi
subq (%rsp), %rsi
leaq 0xd845(%rip), %rdi      # 0x10031
jmp 0x288e
cmpl $0x0, (%r15)
jne 0x28d8
pushq $0x71
popq %rsi
subq (%rsp), %rsi
leaq 0xd8aa(%rip), %rdi      # 0x100b3
jmp 0x286e
cmpl $0x0, (%r15)
jne 0x2965
pushq $0x5c
popq %rsi
subq (%rsp), %rsi
leaq 0xd867(%rip), %rdi      # 0x1008a
jmp 0x288e
cmpl $0x0, (%r15)
jne 0x2d7a
movq %r13, %rdi
subq (%rsp), %rdi
callq 0x7e73
jmp 0x26ea
cmpl $0x0, (%r15)
jne 0x29f2
pushq $0x68
popq %rsi
subq (%rsp), %rsi
leaq 0xd838(%rip), %rdi      # 0x10090
jmp 0x288e
cmpl $0x0, (%r15)
jne 0x2d98
pushq $0x6e
popq %rsi
subq (%rsp), %rsi
movq %rbp, %rdi
xorl %edx, %edx
callq 0x7ca9
jmp 0x26ea
cmpl $0x0, (%r15)
jne 0x28a7
pushq $0x62
popq %rsi
subq (%rsp), %rsi
leaq 0xd7ff(%rip), %rdi      # 0x1008d
movl %r14d, %edx
callq 0x7ca9
jmp 0x26ea
movl $0x1, (%r15)
jmp 0x26b0
leaq 0x25fc2(%rip), %rax     # 0x28870
movq (%rax), %r12
testq %r12, %r12
je 0x2ea7
cmpq $0x0, 0x40(%rsp)
jne 0x2dd1
movq %r12, %rdi
callq 0x24b0
movq %rax, 0x40(%rsp)
jmp 0x2a1e
cmpl $0x0, 0xc(%rsp)
movl %r14d, 0xc(%rsp)
je 0x26b0
jmp 0x2dd1
leaq 0x25f7c(%rip), %rax     # 0x28870
movq (%rax), %r12
testq %r12, %r12
je 0x2e43
cmpq $0x10, 0x30(%rsp)
jne 0x2dd1
callq 0x20a0
movq %rax, %rbx
andl $0x0, (%rax)
movq %r12, %rdi
leaq 0x70(%rsp), %rsi
xorl %edx, %edx
callq 0x2410
movq %rax, 0x30(%rsp)
movq 0x70(%rsp), %rcx
pushq $0x16
popq %rax
cmpq %r12, %rcx
je 0x2955
cmpb $0x0, (%rcx)
jne 0x2955
movq 0x30(%rsp), %rax
movq $-0xfb, %rdx
leaq (%rax,%rdx), %rcx
pushq $0x22
popq %rax
cmpq %rdx, %rcx
ja 0x2957
movl %eax, (%rbx)
cmpl $0x0, (%rbx)
je 0x26b0
jmp 0x2e30
leaq 0x25f04(%rip), %rax     # 0x28870
movq (%rax), %r12
testq %r12, %r12
je 0x2e14
cmpq $0x0, 0x20(%rsp)
jne 0x2dd1
movq %r12, %rdi
callq 0x24b0
movq %rax, 0x20(%rsp)
jmp 0x2a1e
leaq 0x25ed3(%rip), %rax     # 0x28870
movq (%rax), %r12
testq %r12, %r12
je 0x2e5c
cmpq $0x0, 0x38(%rsp)
jne 0x2dd1
movq %r12, %rdi
callq 0x24b0
movq %rax, 0x38(%rsp)
jmp 0x2a1e
leaq 0x25ea5(%rip), %rax     # 0x28870
movq (%rax), %r12
testq %r12, %r12
je 0x2e75
cmpq $0x0, 0x18(%rsp)
jne 0x2dd1
movq %r12, %rdi
callq 0x24b0
movq %rax, 0x18(%rsp)
jmp 0x2a1e
leaq 0x25e77(%rip), %rax     # 0x28870
movq (%rax), %r12
testq %r12, %r12
je 0x2e8e
cmpq $0x0, 0x10(%rsp)
jne 0x2dd1
movq %r12, %rdi
callq 0x24b0
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x26b0
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2df4
leaq 0xd5f8(%rip), %rdi      # 0x10034
movq %rbx, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x95ec
jmp 0x2d69
leaq 0x15b63(%rip), %rax     # 0x185b8
movl 0x28(%rsp), %ecx
cmpl %ecx, (%rax)
jne 0x2dd1
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
movq 0x10(%rsp), %r12
movq 0x40(%rsp), %r14
je 0x2dd1
testq %r14, %r14
je 0x2dd1
testq %r12, %r12
je 0x2dd1
leaq 0x60(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x3e14
testl %eax, %eax
jne 0x2ede
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq %r14, %rdx
movq 0x30(%rsp), %rcx
callq 0xa218
testq %rax, %rax
je 0x2efa
movq %rax, %rbx
leaq 0xd654(%rip), %rsi      # 0x10120
leaq 0x48(%rsp), %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x74a4
cmpl $-0x1, %eax
je 0x2ec4
movq 0x48(%rsp), %rdi
callq 0x8568
testq %rax, %rax
je 0x2f14
movq %rax, %r14
movq %rax, %r15
movq (%r15), %rsi
testq %rsi, %rsi
je 0x2b34
movq %rbx, %rdi
movl $0x258, %edx            # imm = 0x258
callq 0xa2fe
addq $0x8, %r15
testl %eax, %eax
je 0x2afd
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2de5
leaq 0xd631(%rip), %rdi      # 0x10160
jmp 0x2d4c
movq %r14, %rdi
callq 0x8b67
movq %r12, %rdi
callq 0x8568
testq %rax, %rax
je 0x2f30
movq %rax, %r14
movq (%rax), %rdi
testq %rdi, %rdi
je 0x2f56
cmpq $0x0, 0x8(%r14)
je 0x2b7f
leaq 0xd654(%rip), %rdi      # 0x101be
movq %r12, %rsi
xorl %eax, %eax
callq 0x95ec
callq 0x20a0
andl $0x0, (%rax)
movq (%r14), %rdi
callq 0x8b99
cmpl $-0x1, %eax
je 0x2d69
movl %eax, %ebp
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x2bb7
callq 0x9770
testq %rax, %rax
je 0x2fb7
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0xa2f9
jmp 0x2bba
xorl %r15d, %r15d
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
jne 0x2be8
leaq 0xd63e(%rip), %rsi      # 0x10209
leaq 0x20(%rsp), %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x74a4
cmpl $-0x1, %eax
je 0x2ec4
movq 0x20(%rsp), %rdi
callq 0x7598
testl %eax, %eax
jne 0x2f74
movq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0x3084
testq %rax, %rax
je 0x2f8e
movq %rax, %r12
movq %rbx, %rdi
movl %ebp, %esi
callq 0x3524
movq %rax, %r13
testq %rax, %rax
je 0x2dbb
callq 0x42a4
testl %eax, %eax
jne 0x2d3b
movq %r13, %rdi
callq 0x373a
testl %eax, %eax
jne 0x2c24
movq %r13, %rdi
callq 0x374f
testl %eax, %eax
jne 0x2d69
cmpl $0x0, 0xc(%rsp)
je 0x2c0e
movq %r12, %rdi
callq 0x3401
movq %rbx, %rdi
callq 0xa4fe
testq %r15, %r15
je 0x2c71
movq %r15, %rdi
callq 0x9dc9
movl %ebp, %edi
callq 0x2200
testl %eax, %eax
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %r12
movq 0x40(%rsp), %r13
je 0x2cb9
callq 0x20a0
cmpl $0x0, (%rax)
je 0x2cab
movq %rax, %rbx
leaq 0xd9de(%rip), %rdi      # 0x1067d
xorl %eax, %eax
callq 0x945d
andl $0x0, (%rbx)
jmp 0x2cb9
leaq 0xd9cb(%rip), %rdi      # 0x1067d
xorl %eax, %eax
callq 0x95ec
movq %r14, %rdi
callq 0x8b67
movq 0x48(%rsp), %rdi
callq 0x2040
movq 0x60(%rsp), %rdi
callq 0x2040
movq 0x50(%rsp), %rbx
movq %rbx, %rdi
callq 0x2170
leaq 0x158e7(%rip), %rcx     # 0x185d0
movq (%rcx), %rcx
movq %rbx, %rdi
movq %rax, %rsi
callq *%rcx
movq 0x50(%rsp), %rdi
callq 0x2040
movq %r15, %rdi
callq 0x2040
movq 0x38(%rsp), %rdi
callq 0x2040
movq 0x20(%rsp), %rdi
callq 0x2040
movq %r13, %rdi
callq 0x2040
movq %r12, %rdi
callq 0x2040
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2d55
leaq 0xd516(%rip), %rdi      # 0x10262
xorl %eax, %eax
callq 0x95ec
jmp 0x2d69
movq %rax, %rbx
leaq 0xd503(%rip), %rdi      # 0x10262
xorl %eax, %eax
callq 0x945d
andl $0x0, (%rbx)
pushq $0x1
popq %rdi
callq 0x2470
leaq 0xd355(%rip), %rdi      # 0x100cd
jmp 0x2d81
leaq 0xd335(%rip), %rdi      # 0x100b6
movq %rbx, %rsi
xorl %eax, %eax
callq 0x95ec
callq 0x20a0
andl $0x0, (%rax)
callq 0x3041
movq 0x15259(%rip), %rax     # 0x17ff8
movq (%rax), %rcx
leaq 0xd2f4(%rip), %rdi      # 0x1009d
pushq $0x15
popq %rsi
pushq $0x1
popq %rdx
callq 0x2490
xorl %edi, %edi
callq 0x2470
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2dd6
leaq 0xd477(%rip), %rdi      # 0x10243
jmp 0x2d4c
callq 0x3041
movq %rax, %rbx
leaq 0xd463(%rip), %rdi      # 0x10243
jmp 0x2d5f
movq %rax, %rbx
leaq 0xd371(%rip), %rdi      # 0x10160
jmp 0x2d5f
movq %rax, %r14
leaq 0xd236(%rip), %rdi      # 0x10034
movq %rbx, %rsi
movq %r12, %rdx
xorl %eax, %eax
callq 0x945d
andl $0x0, (%r14)
jmp 0x2d69
leaq 0xd1e9(%rip), %rdi      # 0x10004
leaq 0xd1f1(%rip), %rsi      # 0x10013
leaq 0xd1f1(%rip), %rcx      # 0x1001a
pushq $0x5c
jmp 0x2ebe
leaq 0xd221(%rip), %rdi      # 0x10058
xorl %eax, %eax
callq 0x95ec
jmp 0x2d66
leaq 0xd1ba(%rip), %rdi      # 0x10004
leaq 0xd1c2(%rip), %rsi      # 0x10013
leaq 0xd1c2(%rip), %rcx      # 0x1001a
pushq $0x53
jmp 0x2ebe
leaq 0xd1a1(%rip), %rdi      # 0x10004
leaq 0xd1a9(%rip), %rsi      # 0x10013
leaq 0xd1a9(%rip), %rcx      # 0x1001a
pushq $0x4d
jmp 0x2ebe
leaq 0xd188(%rip), %rdi      # 0x10004
leaq 0xd190(%rip), %rsi      # 0x10013
leaq 0xd190(%rip), %rcx      # 0x1001a
pushq $0x47
jmp 0x2ebe
leaq 0xd16f(%rip), %rdi      # 0x10004
leaq 0xd177(%rip), %rsi      # 0x10013
leaq 0xd177(%rip), %rcx      # 0x1001a
pushq $0x68
jmp 0x2ebe
leaq 0xd156(%rip), %rdi      # 0x10004
leaq 0xd15e(%rip), %rsi      # 0x10013
leaq 0xd15e(%rip), %rcx      # 0x1001a
pushq $0x62
popq %rdx
callq 0x21e0
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2fa8
leaq 0xd25e(%rip), %rdi      # 0x10137
jmp 0x2d4c
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2fcd
leaq 0xd1ef(%rip), %rdi      # 0x100e2
movq 0x18(%rsp), %rsi
jmp 0x2f4a
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2fde
leaq 0xd1f1(%rip), %rdi      # 0x10100
jmp 0x2d4c
callq 0x20a0
cmpl $0x0, (%rax)
movq 0x48(%rsp), %rsi
jne 0x2fed
leaq 0xd212(%rip), %rdi      # 0x10140
jmp 0x2f4a
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2ff9
leaq 0xd23c(%rip), %rdi      # 0x10181
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x95ec
jmp 0x2d69
leaq 0xd247(%rip), %rdi      # 0x101a4
movq %r12, %rsi
xorl %eax, %eax
callq 0x95ec
callq 0x20a0
andl $0x0, (%rax)
jmp 0x2d69
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x3014
leaq 0xd287(%rip), %rdi      # 0x10210
jmp 0x2d4c
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x3023
leaq 0xd281(%rip), %rdi      # 0x10224
jmp 0x2d4c
movq %rax, %rbx
leaq 0xd185(%rip), %rdi      # 0x10137
jmp 0x2d5f
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x3032
leaq 0xd22c(%rip), %rdi      # 0x101f4
jmp 0x2d4c
movq %rax, %rbx
leaq 0xd10b(%rip), %rdi      # 0x100e2
movq 0x18(%rsp), %rsi
jmp 0x3008
movq %rax, %rbx
leaq 0xd118(%rip), %rdi      # 0x10100
jmp 0x2d5f
movq %rax, %rbx
leaq 0xd149(%rip), %rdi      # 0x10140
jmp 0x3008
movq %rax, %rbx
leaq 0xd17e(%rip), %rdi      # 0x10181
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x945d
jmp 0x2d66
movq %rax, %rbx
leaq 0xd1f2(%rip), %rdi      # 0x10210
jmp 0x2d5f
movq %rax, %rbx
leaq 0xd1f7(%rip), %rdi      # 0x10224
jmp 0x2d5f
movq %rax, %rbx
leaq 0xd1b8(%rip), %rdi      # 0x101f4
jmp 0x2d5f