// File: /workspace/github_c_makefile_star2_O1/Tarsnap[P]kivaloo/bench/bulk_extract/main.c
// Function: main
int
main(int argc, char * argv[])
{
	struct sock_addr ** sas;
	int s;
	struct wire_requestqueue * Q;

	WARNP_INIT;

	/* Check number of arguments. */
	if (argc != 2) {
		fprintf(stderr, "usage: bulk_insert %s\n", "<socketname>");
		exit(1);
	}

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

	/* Create a request queue. */
	if ((Q = wire_requestqueue_init(s)) == NULL) {
		warnp("Cannot create packet write queue");
		exit(1);
	}

	/* Start RANGE request(s). */
	if (bulkextract(Q))
		exit(1);

	/* Free the request queue. */
	wire_requestqueue_destroy(Q);
	wire_requestqueue_free(Q);

	/* Free socket addresses. */
	sock_addr_freelist(sas);

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

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movl %edi, %ebx
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x2567
callq 0x4e9c
cmpl $0x2, %ebx
jne 0x2598
movq 0x8(%r14), %rdi
callq 0x3e74
testq %rax, %rax
jne 0x25b9
callq 0x2090
cmpl $0x0, (%rax)
movq 0x8(%r14), %rsi
jne 0x25e1
leaq 0x7a99(%rip), %rdi      # 0xa028
xorl %eax, %eax
callq 0x503b
jmp 0x2607
movq 0xda59(%rip), %rax      # 0xfff8
movq (%rax), %rdi
leaq 0x7a5b(%rip), %rsi      # 0xa004
leaq 0x7a6b(%rip), %rdx      # 0xa01b
xorl %eax, %eax
callq 0x21d0
jmp 0x2607
movq %rax, %rbx
cmpq $0x0, (%rax)
jne 0x25fa
movq 0x8(%r14), %rsi
leaq 0x7a7e(%rip), %rdi      # 0xa04b
xorl %eax, %eax
callq 0x503b
callq 0x2090
movl $0x0, (%rax)
jmp 0x2607
movq %rax, %rbx
leaq 0x7a3d(%rip), %rdi      # 0xa028
xorl %eax, %eax
callq 0x4f1c
movl $0x0, (%rbx)
jmp 0x2607
movq %rbx, %rdi
callq 0x4791
cmpl $-0x1, %eax
jne 0x2611
movl $0x1, %edi
callq 0x22b0
movl %eax, %edi
callq 0x6acc
testq %rax, %rax
jne 0x2637
callq 0x2090
cmpl $0x0, (%rax)
jne 0x2691
leaq 0x7a37(%rip), %rdi      # 0xa065
xorl %eax, %eax
callq 0x503b
jmp 0x2607
movq %rax, %r14
movq %rax, (%rsp)
movq $0x0, 0x10(%rsp)
xorl %edi, %edi
xorl %esi, %esi
callq 0x54c0
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x2607
movl $0x32, %edi
movl $0xa, %esi
callq 0x5160
movq %rax, 0x18(%rsp)
testq %rax, %rax
jne 0x26a7
leaq 0x7a0c(%rip), %rdi      # 0xa086
xorl %eax, %eax
callq 0x503b
callq 0x2090
movl $0x0, (%rax)
jmp 0x276b
movq %rax, %rbx
leaq 0x79ca(%rip), %rdi      # 0xa065
xorl %eax, %eax
callq 0x4f1c
jmp 0x25f2
movq %rsp, %r9
movq (%r9), %rdi
movq 0x8(%r9), %rdx
leaq 0xc2(%rip), %rcx        # 0x277a
leaq 0x10c(%rip), %r8        # 0x27cb
movq %rdx, %rsi
callq 0x66f1
testl %eax, %eax
jne 0x2761
leaq 0x14(%rsp), %r15
movq %r15, %rdi
callq 0x2ac9
orl -0x4(%r15), %eax
je 0x26fc
callq 0x2090
cmpl $0x0, (%rax)
jne 0x274a
leaq 0x799e(%rip), %rdi      # 0xa091
xorl %eax, %eax
callq 0x503b
jmp 0x2761
movq 0x18(%rsp), %rdi
callq 0x542d
leaq 0x7999(%rip), %rdi      # 0xa0a6
movq %rax, %rsi
xorl %eax, %eax
callq 0x2130
movq 0x18(%rsp), %rdi
callq 0x5498
movq 0x8(%rsp), %rdi
callq 0x2040
movq %r14, %rdi
callq 0x7191
movq %r14, %rdi
callq 0x71a5
movq %rbx, %rdi
callq 0x458b
xorl %edi, %edi
callq 0x22b0
movq %rax, %rbx
leaq 0x793d(%rip), %rdi      # 0xa091
xorl %eax, %eax
callq 0x4f1c
movl $0x0, (%rbx)
movq 0x18(%rsp), %rdi
callq 0x5498
movq 0x8(%rsp), %rdi
callq 0x2040
jmp 0x2607