// File: /workspace/github_c_makefile_star2_O3/Tarsnap[P]kivaloo/lbs-dynamodb/main.c
// Function: main
int
main(int argc, char * argv[])
{
	/* State variables. */
	struct wire_requestqueue * Q_DDBKV;
	struct wire_requestqueue * Q_DDBKV_M;
	struct metadata * M;
	struct deleteto * deleter;
	struct state * S;
	struct dispatch_state * D;
	int s;
	int s_t;
	int s_m;

	/* Command-line parameters. */
	char * opt_s = NULL;
	char * opt_t = NULL;
	char * opt_m = NULL;
	char * opt_p = NULL;
	int opt_1 = 0;

	/* Working variables. */
	struct sock_addr ** sas_s;
	struct sock_addr ** sas_t;
	struct sock_addr ** sas_m;
	uint64_t itemsz_64;
	size_t itemsz;
	uint8_t tableid[32];
	const char * ch;

	WARNP_INIT;

	/* Parse the command line. */
	while ((ch = GETOPT(argc, argv)) != NULL) {
		GETOPT_SWITCH(ch) {
		GETOPT_OPTARG("-p"):
			if (opt_p != NULL)
				usage();
			if ((opt_p = 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_OPTARG("-t"):
			if (opt_t != NULL)
				usage();
			if ((opt_t = strdup(optarg)) == NULL)
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPTARG("-m"):
			if (opt_m != NULL)
				usage();
			if ((opt_m = strdup(optarg)) == NULL)
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPT("--version"):
			fprintf(stderr, "kivaloo-lbs-dynamodb @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_s == NULL)
		usage();
	if (opt_t == NULL)
		usage();
	if (opt_m == NULL)
		usage();

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

	/* Resolve the target (dynamodb-kv daemon) addresses. */
	if ((sas_t = sock_resolve(opt_t)) == NULL) {
		warnp("Error resolving socket address: %s", opt_t);
		exit(1);
	}
	if (sas_t[0] == NULL) {
		warn0("No addresses found for %s", opt_t);
		exit(1);
	}
	if ((sas_m = sock_resolve(opt_m)) == NULL) {
		warnp("Error resolving socket address: %s", opt_m);
		exit(1);
	}
	if (sas_m[0] == NULL) {
		warn0("No addresses found for %s", opt_m);
		exit(1);
	}

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

	/* Connect to the dynamodb-kv daemons. */
	if ((s_t = sock_connect(sas_t)) == -1)
		exit(1);
	if ((s_m = sock_connect(sas_m)) == -1)
		exit(1);

	/* Create queues of requests to the dynamodb-kv daemons. */
	if ((Q_DDBKV = wire_requestqueue_init(s_t)) == NULL) {
		warnp("Cannot create DynamoDB-KV request queue");
		exit(1);
	}
	if ((Q_DDBKV_M = wire_requestqueue_init(s_m)) == NULL) {
		warnp("Cannot create DynamoDB-KV request queue");
		exit(1);
	}

	/*
	 * Create a metadata handler; this also atomically takes ownership of
	 * the metadata with respect to other lbs-dynamodb processes.
	 */
	if ((M = metadata_init(Q_DDBKV_M, &itemsz_64, tableid)) == NULL) {
		warnp("Error initializing state metadata handler");
		exit(1);
	}

	/* Sanity-check the item size recorded in the metadata. */
	if ((itemsz_64 < 512) || (itemsz_64 > 8192)) {
		warn0("Invalid lbs-dynamodb item size: %" PRIu64, itemsz_64);
		exit(1);
	}
	itemsz = (size_t)itemsz_64;

	/* Create a deleter. */
	if ((deleter = deleteto_init(Q_DDBKV, M)) == NULL) {
		warnp("Error initializing garbage collection");
		exit(1);
	}

	/* Initialize the internal state. */
	if ((S = state_init(Q_DDBKV, itemsz, tableid, M)) == NULL) {
		warnp("Error initializing state from DynamoDB");
		exit(1);
	}

	/* 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);
	}

	/* Handle connections, one at once. */
	do {
		/* Accept a connection. */
		if ((D = dispatch_accept(S, deleter, s)) == NULL)
			exit(1);

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

		/* Close and free the connection. */
		if (dispatch_done(D))
			exit(1);
	} while (opt_1 == 0);

	/* Clean up the internal state. */
	state_free(S);

	/*
	 * Shut down deleting (cleanly if possible, but we don't care if we
	 * encounter an error at this point).
	 */
	deleteto_stop(deleter);

	/* Shut down the metadata handler. */
	metadata_free(M);

	/* Shut down the dynamodb-kv request queues. */
	wire_requestqueue_destroy(Q_DDBKV_M);
	wire_requestqueue_free(Q_DDBKV_M);
	wire_requestqueue_destroy(Q_DDBKV);
	wire_requestqueue_free(Q_DDBKV);

	/* Close sockets. */
	if (close(s_m))
		warnp("close");
	if (close(s_t))
		warnp("close");
	if (close(s))
		warnp("close");

	/* Free socket addresses. */
	sock_addr_freelist(sas_m);
	sock_addr_freelist(sas_t);
	sock_addr_freelist(sas_s);

	/* Free option strings. */
	free(opt_s);
	free(opt_p);
	free(opt_m);
	free(opt_t);

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edi, %r14d
movq $0x0, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x29bb
callq 0x9530
movl %r14d, %edi
movq 0x40(%rsp), %rsi
callq 0x7770
testq %rax, %rax
jne 0x29dc
leaq 0x11b34(%rip), %rax     # 0x14508
cmpl %r14d, (%rax)
callq 0x3338
movq %rax, %r12
movq $0x0, 0x10(%rsp)
leaq 0x21db9(%rip), %r15     # 0x247a8
leaq 0xa662(%rip), %rbp      # 0xd058
leaq 0xa65e(%rip), %r13      # 0xd05b
leaq 0xc630(%rip), %rbx      # 0xf034
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movl $0x0, 0x34(%rsp)
movq $0x0, 0x38(%rsp)
movl %r14d, 0xc(%rsp)
movq $0x48, 0x18(%rsp)
movq 0x18(%rsp), %rax
decq %rax
movq %rax, 0x70(%rsp)
movl $0x0, 0x54(%rsp)
cmpl $0x0, (%r15)
je 0x2a5f
movq %r12, %rdi
callq 0x7ab7
addq 0x18(%rsp), %rax
jmp 0x2a6d
movq 0x70(%rsp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x70(%rsp)
cmpq $0x60, %rax
jg 0x2aad
cmpq $0x54, %rax
jg 0x2adc
cmpq $0x49, %rax
je 0x2b57
cmpq $0x4f, %rax
jne 0x2ba4
cmpl $0x0, (%r15)
jne 0x2bf9
movl $0x4f, %esi
subq 0x18(%rsp), %rsi
leaq 0xa5aa(%rip), %rdi      # 0xd052
jmp 0x2b8f
cmpq $0x68, %rax
jg 0x2b0c
cmpq $0x61, %rax
je 0x2b34
cmpq $0x64, %rax
jne 0x2ba4
cmpl $0x0, (%r15)
jne 0x2be1
movl $0x64, %esi
subq 0x18(%rsp), %rsi
movq %rbx, %rdi
jmp 0x2b4b
cmpq $0x55, %rax
je 0x2b74
cmpq $0x5b, %rax
jne 0x2ba4
cmpl $0x0, (%r15)
jne 0x2ca6
movl $0x5b, %esi
subq 0x18(%rsp), %rsi
movq %rbp, %rdi
jmp 0x2b8f
cmpq $0x69, %rax
jne 0x2b9e
cmpl $0x0, (%r15)
jne 0x2d49
movl $0x69, %edi
subq 0x18(%rsp), %rdi
callq 0x7c85
jmp 0x2a4a
cmpl $0x0, (%r15)
jne 0x2d22
movl $0x61, %esi
subq 0x18(%rsp), %rsi
movq %r13, %rdi
xorl %edx, %edx
callq 0x7b74
jmp 0x2a4a
cmpl $0x0, (%r15)
jne 0x2c33
movl $0x49, %esi
subq 0x18(%rsp), %rsi
leaq 0xa4bf(%rip), %rdi      # 0xd031
jmp 0x2b8f
cmpl $0x0, (%r15)
jne 0x2c6f
movl $0x55, %esi
subq 0x18(%rsp), %rsi
leaq 0xa4c6(%rip), %rdi      # 0xd055
movl $0x1, %edx
callq 0x7b74
jmp 0x2a4a
cmpq $0x6c, %rax
je 0x2bd5
cmpl $0x0, (%r15)
jne 0x2d52
cmpl $0x0, 0x54(%rsp)
jne 0x2a4a
movl $0x6c, %edi
subq 0x18(%rsp), %rdi
callq 0x7cc5
movl $0x1, 0x54(%rsp)
jmp 0x2a4a
movl $0x1, (%r15)
jmp 0x2cdc
cmpl $0x0, 0x34(%rsp)
movl $0x1, 0x34(%rsp)
je 0x2cdc
jmp 0x2d1d
leaq 0x21ba0(%rip), %rax     # 0x247a0
movq (%rax), %r14
testq %r14, %r14
je 0x2df8
cmpq $0x0, 0x10(%rsp)
jne 0x2d1d
movq %r14, %rdi
callq 0x2390
movq %rax, 0x10(%rsp)
testq %rax, %rax
jne 0x2cd7
jmp 0x2d73
leaq 0x21b66(%rip), %rax     # 0x247a0
movq (%rax), %r14
testq %r14, %r14
je 0x2dba
cmpq $0x0, 0x38(%rsp)
jne 0x2d1d
movq %r14, %rdi
callq 0x2390
movq %rax, 0x48(%rsp)
testq %rax, %rax
je 0x2d73
movq %rax, 0x38(%rsp)
jmp 0x2cd7
leaq 0x21b2a(%rip), %rax     # 0x247a0
movq (%rax), %r14
testq %r14, %r14
je 0x2e17
cmpq $0x0, 0x28(%rsp)
jne 0x2d1d
movq %r14, %rdi
callq 0x2390
testq %rax, %rax
je 0x2d73
movq %rax, 0x28(%rsp)
jmp 0x2cd7
leaq 0x21af3(%rip), %rax     # 0x247a0
movq (%rax), %r14
testq %r14, %r14
je 0x2dd9
cmpq $0x0, 0x20(%rsp)
jne 0x2d1d
movq %r14, %rdi
callq 0x2390
testq %rax, %rax
je 0x2d73
movq %rax, 0x20(%rsp)
movl 0xc(%rsp), %r14d
movl %r14d, %edi
movq 0x40(%rsp), %rsi
callq 0x7770
movq %rax, %r12
testq %rax, %rax
jne 0x2a2c
leaq 0x1180c(%rip), %rax     # 0x14508
cmpl %r14d, (%rax)
jne 0x2d1d
cmpq $0x0, 0x10(%rsp)
je 0x2d1d
cmpq $0x0, 0x28(%rsp)
je 0x2d1d
cmpq $0x0, 0x20(%rsp)
jne 0x2e36
callq 0x3338
movq 0x112cf(%rip), %rax     # 0x13ff8
movq (%rax), %rcx
leaq 0xa332(%rip), %rdi      # 0xd065
movl $0x1f, %esi
movl $0x1, %edx
callq 0x2370
xorl %edi, %edi
callq 0x2350
leaq 0xa335(%rip), %rdi      # 0xd085
jmp 0x2d59
leaq 0xa343(%rip), %rdi      # 0xd09c
movq %r12, %rsi
xorl %eax, %eax
callq 0x96cf
callq 0x20a0
movl $0x0, (%rax)
callq 0x3338
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2d93
leaq 0xa2b0(%rip), %rdi      # 0xd034
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x96cf
jmp 0x2db0
movq %rax, %rbx
leaq 0xa297(%rip), %rdi      # 0xd034
movq %r12, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x95b0
movl $0x0, (%rbx)
movl $0x1, %edi
callq 0x2350
leaq 0xa243(%rip), %rdi      # 0xd004
leaq 0xa24b(%rip), %rsi      # 0xd013
leaq 0xa24b(%rip), %rcx      # 0xd01a
movl $0x49, %edx
callq 0x21a0
leaq 0xa224(%rip), %rdi      # 0xd004
leaq 0xa22c(%rip), %rsi      # 0xd013
leaq 0xa22c(%rip), %rcx      # 0xd01a
movl $0x5b, %edx
callq 0x21a0
leaq 0xa205(%rip), %rdi      # 0xd004
leaq 0xa20d(%rip), %rsi      # 0xd013
leaq 0xa20d(%rip), %rcx      # 0xd01a
movl $0x4f, %edx
callq 0x21a0
leaq 0xa1e6(%rip), %rdi      # 0xd004
leaq 0xa1ee(%rip), %rsi      # 0xd013
leaq 0xa1ee(%rip), %rcx      # 0xd01a
movl $0x55, %edx
callq 0x21a0
movq 0x10(%rsp), %rdi
callq 0x852c
testq %rax, %rax
jne 0x2e67
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2e93
leaq 0xa25b(%rip), %rdi      # 0xd0b1
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x96cf
jmp 0x2db0
movq %rax, %r12
cmpq $0x0, (%rax)
jne 0x2eae
leaq 0xa25d(%rip), %rdi      # 0xd0d4
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x96cf
callq 0x20a0
movl $0x0, (%rax)
jmp 0x2db0
movq %rax, %rbx
leaq 0xa214(%rip), %rdi      # 0xd0b1
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x95b0
jmp 0x2daa
movq 0x28(%rsp), %rdi
callq 0x852c
testq %rax, %rax
jne 0x2ed5
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2eec
leaq 0xa1e3(%rip), %rdi      # 0xd0b1
movq 0x28(%rsp), %rsi
jmp 0x2e5b
movq %rax, %r13
cmpq $0x0, (%rax)
jne 0x2efd
leaq 0xa1ef(%rip), %rdi      # 0xd0d4
movq 0x28(%rsp), %rsi
jmp 0x2e7c
movq %rax, %rbx
leaq 0xa1bb(%rip), %rdi      # 0xd0b1
movq 0x28(%rsp), %rsi
jmp 0x2ea2
movq 0x20(%rsp), %rdi
callq 0x852c
testq %rax, %rax
jne 0x2f27
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x2f43
leaq 0xa194(%rip), %rdi      # 0xd0b1
movq 0x20(%rsp), %rsi
jmp 0x2e5b
movq %rax, 0x40(%rsp)
cmpq $0x0, (%rax)
jne 0x2f57
leaq 0xa19b(%rip), %rdi      # 0xd0d4
movq 0x20(%rsp), %rsi
jmp 0x2e7c
movq %rax, %rbx
leaq 0xa164(%rip), %rdi      # 0xd0b1
movq 0x20(%rsp), %rsi
jmp 0x2ea2
cmpq $0x0, 0x8(%r12)
je 0x2f7d
leaq 0xa188(%rip), %rdi      # 0xd0ee
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0x96cf
callq 0x20a0
movl $0x0, (%rax)
movq (%r12), %rdi
callq 0x8c82
cmpl $-0x1, %eax
je 0x2db0
movl %eax, %ebp
movq %r13, %rdi
callq 0x8e44
movl %eax, 0xc(%rsp)
cmpl $-0x1, %eax
je 0x2db0
movq 0x40(%rsp), %rdi
callq 0x8e44
movl %eax, 0x38(%rsp)
cmpl $-0x1, %eax
je 0x2db0
movl 0xc(%rsp), %edi
callq 0xab28
movq %rax, 0x60(%rsp)
testq %rax, %rax
je 0x2fe3
movl 0x38(%rsp), %edi
callq 0xab28
movq %rax, 0x68(%rsp)
testq %rax, %rax
jne 0x3016
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x3000
leaq 0xa130(%rip), %rdi      # 0xd124
xorl %eax, %eax
callq 0x96cf
jmp 0x2db0
movq %rax, %rbx
leaq 0xa11a(%rip), %rdi      # 0xd124
xorl %eax, %eax
callq 0x95b0
jmp 0x2daa
leaq 0x78(%rsp), %rsi
leaq 0x80(%rsp), %rdx
movq 0x68(%rsp), %rdi
callq 0x4288
movq %rax, 0x58(%rsp)
testq %rax, %rax
jne 0x304a
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x306d
leaq 0xa104(%rip), %rdi      # 0xd14c
jmp 0x2ff4
movq 0x78(%rsp), %r14
leaq -0x2001(%r14), %rax
cmpq $-0x1e02, %rax          # imm = 0xE1FE
ja 0x3079
leaq 0xa111(%rip), %rdi      # 0xd176
movq %r14, %rsi
jmp 0x2e7c
movq %rax, %rbx
leaq 0xa0d5(%rip), %rdi      # 0xd14c
jmp 0x300a
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x3fa0
testq %rax, %rax
jne 0x30a3
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x30db
leaq 0xa0fc(%rip), %rdi      # 0xd19a
jmp 0x2ff4
movq %rax, %r15
leaq 0x80(%rsp), %rdx
movq 0x60(%rsp), %rdi
movq %r14, %rsi
movq 0x58(%rsp), %rcx
callq 0x3a44
testq %rax, %rax
jne 0x30ea
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x312e
leaq 0xa0ea(%rip), %rdi      # 0xd1c0
jmp 0x2ff4
movq %rax, %rbx
leaq 0xa0b5(%rip), %rdi      # 0xd19a
jmp 0x300a
movq %rax, %r14
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
jne 0x3142
leaq 0xa0e9(%rip), %rsi      # 0xd1e7
leaq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x71b0
cmpl $-0x1, %eax
jne 0x313d
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x3251
leaq 0xa0c5(%rip), %rdi      # 0xd1ee
jmp 0x2ff4
movq %rax, %rbx
leaq 0xa088(%rip), %rdi      # 0xd1c0
jmp 0x300a
movq 0x48(%rsp), %rdi
callq 0x72b4
testl %eax, %eax
jne 0x3207
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x337c
movq %rax, %rbx
testq %rax, %rax
je 0x2db0
callq 0x4b0c
testl %eax, %eax
jne 0x321d
movq %rbx, %rdi
callq 0x35c6
testl %eax, %eax
jne 0x3168
movq %rbx, %rdi
callq 0x35e4
testl %eax, %eax
jne 0x2db0
cmpl $0x0, 0x34(%rsp)
je 0x314f
movq %r14, %rdi
callq 0x3f74
movq %r15, %rdi
callq 0x41a5
movq 0x58(%rsp), %rdi
callq 0x47b5
movq 0x68(%rsp), %rbx
movq %rbx, %rdi
callq 0xb219
movq %rbx, %rdi
callq 0xb22d
movq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0xb219
movq %rbx, %rdi
callq 0xb22d
movl 0x38(%rsp), %edi
callq 0x21c0
testl %eax, %eax
je 0x3277
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x3260
leaq 0xaf9e(%rip), %rdi      # 0xe19c
xorl %eax, %eax
callq 0x96cf
jmp 0x3277
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x3233
leaq 0x9fdf(%rip), %rdi      # 0xd1f7
jmp 0x2ff4
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x3242
leaq 0x9fdd(%rip), %rdi      # 0xd20b
jmp 0x2ff4
movq %rax, %rbx
leaq 0x9fba(%rip), %rdi      # 0xd1f7
jmp 0x300a
movq %rax, %rbx
leaq 0x9fbf(%rip), %rdi      # 0xd20b
jmp 0x300a
movq %rax, %rbx
leaq 0x9f93(%rip), %rdi      # 0xd1ee
jmp 0x300a
movq %rax, %rbx
leaq 0xaf32(%rip), %rdi      # 0xe19c
xorl %eax, %eax
callq 0x95b0
movl $0x0, (%rbx)
movl 0xc(%rsp), %edi
callq 0x21c0
testl %eax, %eax
je 0x32b5
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x329e
leaq 0xaf07(%rip), %rdi      # 0xe19c
xorl %eax, %eax
callq 0x96cf
jmp 0x32b5
movq %rax, %rbx
leaq 0xaef4(%rip), %rdi      # 0xe19c
xorl %eax, %eax
callq 0x95b0
movl $0x0, (%rbx)
movl %ebp, %edi
callq 0x21c0
testl %eax, %eax
je 0x32f1
callq 0x20a0
cmpl $0x0, (%rax)
jne 0x32da
leaq 0xaecb(%rip), %rdi      # 0xe19c
xorl %eax, %eax
callq 0x96cf
jmp 0x32f1
movq %rax, %rbx
leaq 0xaeb8(%rip), %rdi      # 0xe19c
xorl %eax, %eax
callq 0x95b0
movl $0x0, (%rbx)
movq 0x40(%rsp), %rdi
callq 0x8c3e
movq %r13, %rdi
callq 0x8c3e
movq %r12, %rdi
callq 0x8c3e
movq 0x10(%rsp), %rdi
callq 0x2040
movq 0x48(%rsp), %rdi
callq 0x2040
movq 0x20(%rsp), %rdi
callq 0x2040
movq 0x28(%rsp), %rdi
callq 0x2040
jmp 0x2d42