// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]kivaloo/dynamodb-kv/main.c
// Function: main
int
main(int argc, char * argv[])
{
	/* State variables. */
	struct serverpool * SP;
	struct dynamodb_request_queue * QW;
	struct dynamodb_request_queue * QR;
	struct dispatch_state * D;
	int s;

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

	/* Working variable. */
	char * dynamodb_host;
	char * key_id;
	char * key_secret;
	struct sock_addr ** sas;
	struct logging_file * logfile;
	struct capacity_reader * M;
	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("-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_OPTARG("-t"):
			if (opt_t != NULL)
				usage();
			if ((opt_t = strdup(optarg)) == NULL)
				OPT_EPARSE(ch, optarg);
			break;
		GETOPT_OPT("--version"):
			fprintf(stderr, "dynamodb-kv @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. */

	/* Verify that we have mandatory options. */
	if (opt_k == NULL)
		usage();
	if (opt_r == NULL)
		usage();
	if (opt_s == NULL)
		usage();
	if (opt_t == NULL)
		usage();

	/* Construct the DynamoDB endpoint host name. */
	if (asprintf(&dynamodb_host, "dynamodb.%s.amazonaws.com:443",
	    opt_r) == -1) {
		warnp("asprintf");
		exit(1);
	}

	/* Start looking up addresses for DynamoDB endpoints. */
	if ((SP = serverpool_create(dynamodb_host, 15, 120)) == NULL) {
		warnp("Error starting DNS lookups for %s", dynamodb_host);
		exit(1);
	}

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

	/* Create DynamoDB request queues for writes and reads. */
	if ((QW = dynamodb_request_queue_init(key_id, key_secret,
	    opt_r, SP)) == NULL) {
		warnp("Error creating DynamoDB request queue");
		exit(1);
	}
	if ((QR = dynamodb_request_queue_init(key_id, key_secret,
	    opt_r, SP)) == NULL) {
		warnp("Error creating DynamoDB request queue");
		exit(1);
	}

	/* Start reading table throughput parameters. */
	if ((M = capacity_init(key_id, key_secret, opt_t, opt_r,
	    SP, QW, QR)) == NULL) {
		warnp("Error reading DynamoDB table metadata");
		exit(1);
	}

	/* 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);
		}
		dynamodb_request_queue_log(QW, logfile);
		dynamodb_request_queue_log(QR, 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);
	}

	/* Handle connections, one at once. */
	do {
		/* accept a connection. */
		if ((D = dispatch_accept(QW, QR, opt_t, 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);

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

	/* Stop performing DescribeTable requests. */
	capacity_free(M);

	/* Free DynamoDB request queues. */
	dynamodb_request_queue_free(QR);
	dynamodb_request_queue_free(QW);

	/* Stop DNS lookups. */
	serverpool_free(SP);

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

	/* Free key strings. */
	free(key_id);
	insecure_memzero(key_secret, strlen(key_secret));
	free(key_secret);

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
andq $0x0, 0x48(%rsp)
movl %edi, 0x18(%rsp)
movq %rsi, 0x30(%rsp)
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x37d9
callq 0xa894
movq $0x0, 0x78(%rsp)
leaq 0x2916f(%rip), %r13     # 0x2c958
pushq $0x1
popq %r12
leaq 0xf86d(%rip), %rbx      # 0x13061
pushq $0x75
popq %r14
movq $0x0, 0x58(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x60(%rsp)
movl 0x18(%rsp), %edi
movq 0x30(%rsp), %rsi
callq 0x8898
testq %rax, %rax
je 0x3bf5
movq %rax, %rbp
movq $0x48, 0x8(%rsp)
movq 0x8(%rsp), %rax
decq %rax
movq %rax, 0x80(%rsp)
movl $0x0, 0x54(%rsp)
cmpl $0x0, (%r13)
je 0x387e
movq %rbp, %rdi
callq 0x8cad
addq 0x8(%rsp), %rax
jmp 0x3892
movq 0x80(%rsp), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x80(%rsp)
cmpq $0x49, %rax
je 0x3964
cmpq $0x4f, %rax
je 0x3926
cmpq $0x55, %rax
je 0x3945
cmpq $0x5b, %rax
je 0x399f
cmpq $0x61, %rax
je 0x3a16
cmpq $0x67, %rax
je 0x39d8
cmpq $0x6d, %rax
je 0x39f4
cmpq $0x70, %rax
je 0x3983
cmpq $0x75, %rax
je 0x39bb
cmpq $0x78, %rax
je 0x3a39
cmpl $0x0, (%r13)
jne 0x3bab
cmpl $0x0, 0x54(%rsp)
jne 0x3868
pushq $0x78
popq %rdi
subq 0x8(%rsp), %rdi
callq 0x901a
movl $0x1, 0x54(%rsp)
jmp 0x3868
cmpl $0x0, (%r13)
jne 0x3af3
pushq $0x4f
popq %rsi
subq 0x8(%rsp), %rsi
leaq 0xf712(%rip), %rdi      # 0x13052
jmp 0x3a2c
cmpl $0x0, (%r13)
jne 0x3a8c
pushq $0x55
popq %rsi
subq 0x8(%rsp), %rsi
leaq 0xf6f6(%rip), %rdi      # 0x13055
jmp 0x3a2c
cmpl $0x0, (%r13)
jne 0x3b21
pushq $0x49
popq %rsi
subq 0x8(%rsp), %rsi
leaq 0xf6b3(%rip), %rdi      # 0x13031
jmp 0x3a2c
cmpl $0x0, (%r13)
jne 0x3a77
pushq $0x70
popq %rsi
subq 0x8(%rsp), %rsi
leaq 0xf6e5(%rip), %rdi      # 0x13082
jmp 0x3a0a
cmpl $0x0, (%r13)
jne 0x3ac2
pushq $0x5b
popq %rsi
subq 0x8(%rsp), %rsi
leaq 0xf69f(%rip), %rdi      # 0x13058
jmp 0x3a2c
cmpl $0x0, (%r13)
jne 0x3bb4
movq %r14, %rdi
subq 0x8(%rsp), %rdi
callq 0x8f8f
jmp 0x3868
cmpl $0x0, (%r13)
jne 0x3b4f
pushq $0x67
popq %rsi
subq 0x8(%rsp), %rsi
leaq 0xf66c(%rip), %rdi      # 0x1305e
jmp 0x3a2c
cmpl $0x0, (%r13)
jne 0x3bd2
pushq $0x6d
popq %rsi
subq 0x8(%rsp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x8dc5
jmp 0x3868
cmpl $0x0, (%r13)
jne 0x3a46
pushq $0x61
popq %rsi
subq 0x8(%rsp), %rsi
leaq 0xf62f(%rip), %rdi      # 0x1305b
movl %r12d, %edx
callq 0x8dc5
jmp 0x3868
movl $0x1, (%r13)
jmp 0x382d
leaq 0x28f03(%rip), %rax     # 0x2c950
movq (%rax), %r15
testq %r15, %r15
je 0x3c53
cmpq $0x0, 0x10(%rsp)
jne 0x3c2c
movq %r15, %rdi
callq 0x3620
movq %rax, 0x10(%rsp)
jmp 0x3b7b
cmpl $0x0, 0x24(%rsp)
movl %r12d, 0x24(%rsp)
je 0x382d
jmp 0x3c2c
leaq 0x28ebd(%rip), %rax     # 0x2c950
movq (%rax), %r15
testq %r15, %r15
je 0x3c9e
cmpq $0x0, 0x78(%rsp)
jne 0x3c2c
movq %r15, %rdi
callq 0x3620
movq %rax, 0x48(%rsp)
movq %rax, 0x78(%rsp)
jmp 0x3b7b
leaq 0x28e87(%rip), %rax     # 0x2c950
movq (%rax), %r15
testq %r15, %r15
je 0x3cb7
cmpq $0x0, 0x58(%rsp)
jne 0x3c2c
movq %r15, %rdi
callq 0x3620
movq %rax, 0x58(%rsp)
jmp 0x3b7b
leaq 0x28e56(%rip), %rax     # 0x2c950
movq (%rax), %r15
testq %r15, %r15
je 0x3c6c
cmpq $0x0, 0x38(%rsp)
jne 0x3c2c
movq %r15, %rdi
callq 0x3620
movq %rax, 0x38(%rsp)
jmp 0x3b7b
leaq 0x28e28(%rip), %rax     # 0x2c950
movq (%rax), %r15
testq %r15, %r15
je 0x3cd0
cmpq $0x0, 0x60(%rsp)
jne 0x3c2c
movq %r15, %rdi
callq 0x3620
movq %rax, 0x60(%rsp)
jmp 0x3b7b
leaq 0x28dfa(%rip), %rax     # 0x2c950
movq (%rax), %r15
testq %r15, %r15
je 0x3c85
cmpq $0x0, 0x28(%rsp)
jne 0x3c2c
movq %r15, %rdi
callq 0x3620
movq %rax, 0x28(%rsp)
testq %rax, %rax
jne 0x382d
callq 0x3040
cmpl $0x0, (%rax)
jne 0x3c31
leaq 0xf49b(%rip), %rdi      # 0x13034
movq %rbp, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xaaa0
jmp 0x3c4b
leaq 0xf4ea(%rip), %rdi      # 0x1309c
jmp 0x3bbb
leaq 0xf4ca(%rip), %rdi      # 0x13085
movq %rbp, %rsi
xorl %eax, %eax
callq 0xaaa0
callq 0x3040
andl $0x0, (%rax)
callq 0x418a
movq 0x18407(%rip), %rax     # 0x1bfe0
movq (%rax), %rcx
leaq 0xf488(%rip), %rdi      # 0x1306b
pushq $0x16
popq %rsi
pushq $0x1
popq %rdx
callq 0x3670
xorl %edi, %edi
callq 0x3490
leaq 0x18a7c(%rip), %rax     # 0x1c678
movl 0x18(%rsp), %ecx
cmpl %ecx, (%rax)
jne 0x3c2c
movq 0x60(%rsp), %r14
testq %r14, %r14
je 0x3c2c
movq 0x58(%rsp), %r12
testq %r12, %r12
je 0x3c2c
cmpq $0x0, 0x10(%rsp)
je 0x3c2c
cmpq $0x0, 0x28(%rsp)
jne 0x3ced
callq 0x418a
movq %rax, %rbx
leaq 0xf3f9(%rip), %rdi      # 0x13034
movq %rbp, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0xa911
andl $0x0, (%rbx)
pushq $0x1
popq %rdi
callq 0x3490
leaq 0xf3aa(%rip), %rdi      # 0x13004
leaq 0xf3b2(%rip), %rsi      # 0x13013
leaq 0xf3b2(%rip), %rcx      # 0x1301a
pushq $0x61
jmp 0x3ce7
leaq 0xf391(%rip), %rdi      # 0x13004
leaq 0xf399(%rip), %rsi      # 0x13013
leaq 0xf399(%rip), %rcx      # 0x1301a
pushq $0x4f
jmp 0x3ce7
leaq 0xf378(%rip), %rdi      # 0x13004
leaq 0xf380(%rip), %rsi      # 0x13013
leaq 0xf380(%rip), %rcx      # 0x1301a
pushq $0x67
jmp 0x3ce7
leaq 0xf35f(%rip), %rdi      # 0x13004
leaq 0xf367(%rip), %rsi      # 0x13013
leaq 0xf367(%rip), %rcx      # 0x1301a
pushq $0x55
jmp 0x3ce7
leaq 0xf346(%rip), %rdi      # 0x13004
leaq 0xf34e(%rip), %rsi      # 0x13013
leaq 0xf34e(%rip), %rcx      # 0x1301a
pushq $0x5b
jmp 0x3ce7
leaq 0xf32d(%rip), %rdi      # 0x13004
leaq 0xf335(%rip), %rsi      # 0x13013
leaq 0xf335(%rip), %rcx      # 0x1301a
pushq $0x49
popq %rdx
callq 0x3220
leaq 0xf3bd(%rip), %rsi      # 0x130b1
leaq 0x70(%rsp), %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x85c0
cmpl $-0x1, %eax
jne 0x3d25
callq 0x3040
cmpl $0x0, (%rax)
jne 0x3d59
leaq 0xf3b6(%rip), %rdi      # 0x130cf
xorl %eax, %eax
callq 0xaaa0
jmp 0x3c4b
movq 0x70(%rsp), %rdi
pushq $0xf
popq %rsi
pushq $0x78
popq %rdx
callq 0xce58
testq %rax, %rax
jne 0x3d6f
callq 0x3040
cmpl $0x0, (%rax)
movq 0x70(%rsp), %rsi
jne 0x3dd5
leaq 0xf384(%rip), %rdi      # 0x130d8
jmp 0x3df5
movq %rax, %rbx
leaq 0xf36c(%rip), %rdi      # 0x130cf
xorl %eax, %eax
callq 0xa911
jmp 0x3c48
movq %rax, %rbx
leaq 0x68(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq %r14, %rdi
callq 0x4f30
testl %eax, %eax
jne 0x3de1
movq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0xb7b0
testq %rax, %rax
je 0x3dbf
movq %rax, %r14
movq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0xb7b0
testq %rax, %rax
jne 0x3e29
callq 0x3040
cmpl $0x0, (%rax)
jne 0x3e1a
leaq 0xf349(%rip), %rdi      # 0x13119
jmp 0x3d19
movq %rax, %rbx
leaq 0xf2f9(%rip), %rdi      # 0x130d8
jmp 0x3e0e
callq 0x3040
cmpl $0x0, (%rax)
jne 0x3e01
leaq 0xf308(%rip), %rdi      # 0x130fa
movq %r14, %rsi
xorl %eax, %eax
callq 0xaaa0
jmp 0x3c4b
movq %rax, %rbx
leaq 0xf2ef(%rip), %rdi      # 0x130fa
movq %r14, %rsi
xorl %eax, %eax
callq 0xa911
jmp 0x3c48
movq %rax, %rbx
leaq 0xf2f5(%rip), %rdi      # 0x13119
jmp 0x3d63
movq %rax, %r15
movq 0x68(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %rax, (%rsp)
movq 0x28(%rsp), %rdx
movq %r12, %rcx
movq %rbx, %r8
movq %r14, %r9
callq 0x4204
testq %rax, %rax
jne 0x3e68
callq 0x3040
cmpl $0x0, (%rax)
jne 0x3e9a
leaq 0xf2dc(%rip), %rdi      # 0x1313f
jmp 0x3d19
movq %rax, %r12
movq 0x10(%rsp), %rdi
callq 0x9a1c
movq %rax, 0x18(%rsp)
testq %rax, %rax
jne 0x3ea9
callq 0x3040
cmpl $0x0, (%rax)
jne 0x3ed6
leaq 0xf2d5(%rip), %rdi      # 0x13165
movq 0x10(%rsp), %rsi
jmp 0x3df5
movq %rax, %rbx
leaq 0xf29b(%rip), %rdi      # 0x1313f
jmp 0x3d63
movq 0x18(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
jne 0x3eea
leaq 0xf2cb(%rip), %rdi      # 0x13188
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0xaaa0
callq 0x3040
andl $0x0, (%rax)
jmp 0x3c4b
movq %rax, %rbx
leaq 0xf285(%rip), %rdi      # 0x13165
movq 0x10(%rsp), %rsi
jmp 0x3e0e
movq 0x18(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x3f19
leaq 0xf2a5(%rip), %rdi      # 0x131a2
movq 0x10(%rsp), %rsi
xorl %eax, %eax
callq 0xaaa0
callq 0x3040
andl $0x0, (%rax)
movq 0x18(%rsp), %rax
movq (%rax), %rdi
callq 0xa04d
cmpl $-0x1, %eax
je 0x3c4b
movl %eax, %ebp
cmpq $0x0, 0x38(%rsp)
jne 0x3f3c
movq $0x0, 0x30(%rsp)
jmp 0x3f85
movq 0x38(%rsp), %rdi
callq 0xc418
movq %rax, 0x30(%rsp)
testq %rax, %rax
jne 0x3f6a
callq 0x3040
cmpl $0x0, (%rax)
jne 0x4098
leaq 0xf273(%rip), %rdi      # 0x131d8
jmp 0x3d19
movq %r14, %rdi
movq 0x30(%rsp), %r13
movq %r13, %rsi
callq 0xb983
movq %r15, %rdi
movq %r13, %rsi
callq 0xb983
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
jne 0x3fb5
leaq 0xf257(%rip), %rsi      # 0x131ed
leaq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
callq 0x85c0
cmpl $-0x1, %eax
je 0x3d08
movq 0x48(%rsp), %rdi
callq 0x86b4
testl %eax, %eax
jne 0x404e
movq %r14, %rdi
movq %r15, %rsi
movq 0x28(%rsp), %rdx
movl %ebp, %ecx
callq 0x4724
movq %rax, %r13
testq %rax, %rax
je 0x40a7
callq 0x53c0
testl %eax, %eax
jne 0x4064
movq %r13, %rdi
callq 0x4950
testl %eax, %eax
jne 0x3fe0
movq %r13, %rdi
callq 0x4965
testl %eax, %eax
jne 0x3c4b
cmpl $0x0, 0x24(%rsp)
je 0x3fc2
cmpq $0x0, 0x30(%rsp)
je 0x401e
movq 0x30(%rsp), %rdi
callq 0xca71
movl %ebp, %edi
callq 0x3680
testl %eax, %eax
je 0x40e2
callq 0x3040
cmpl $0x0, (%rax)
jne 0x40cc
leaq 0xf693(%rip), %rdi      # 0x136d5
xorl %eax, %eax
callq 0xaaa0
jmp 0x40e2
callq 0x3040
cmpl $0x0, (%rax)
jne 0x407a
leaq 0xf195(%rip), %rdi      # 0x131f4
jmp 0x3d19
callq 0x3040
cmpl $0x0, (%rax)
jne 0x4089
leaq 0xf1b2(%rip), %rdi      # 0x13227
jmp 0x3d19
movq %rax, %rbx
leaq 0xf170(%rip), %rdi      # 0x131f4
jmp 0x3d63
movq %rax, %rbx
leaq 0xf194(%rip), %rdi      # 0x13227
jmp 0x3d63
movq %rax, %rbx
leaq 0xf136(%rip), %rdi      # 0x131d8
jmp 0x3d63
callq 0x3040
cmpl $0x0, (%rax)
jne 0x40bd
leaq 0xf150(%rip), %rdi      # 0x13208
jmp 0x3d19
movq %rax, %rbx
leaq 0xf141(%rip), %rdi      # 0x13208
jmp 0x3d63
movq %rax, %r13
leaq 0xf5ff(%rip), %rdi      # 0x136d5
xorl %eax, %eax
callq 0xa911
andl $0x0, (%r13)
movq 0x18(%rsp), %rdi
callq 0xa01b
movq %r12, %rdi
callq 0x43f2
movq %r15, %rdi
callq 0xbb2c
movq %r14, %rdi
callq 0xbb2c
movq %rbx, %rdi
callq 0xd539
movq 0x70(%rsp), %rdi
callq 0x3470
movq 0x68(%rsp), %rdi
callq 0x3470
movq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x3180
leaq 0x1855c(%rip), %rcx     # 0x1c690
movq (%rcx), %rcx
movq %rbx, %rdi
movq %rax, %rsi
callq *%rcx
movq 0x40(%rsp), %rdi
callq 0x3470
movq 0x60(%rsp), %rdi
callq 0x3470
movq 0x38(%rsp), %rdi
callq 0x3470
movq 0x48(%rsp), %rdi
callq 0x3470
movq 0x58(%rsp), %rdi
callq 0x3470
movq 0x10(%rsp), %rdi
callq 0x3470
movq 0x28(%rsp), %rdi
callq 0x3470
jmp 0x3bee