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

	WARNP_INIT;

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

	/* Parse N. */
	if (PARSENUM(&N, argv[2])) {
		warnp("Invalid value for N: %s", argv[2]);
		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 issuing random mixed requests. */
	if (randommixed(Q, N))
		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 %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r15
movl %edi, %ebx
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x247e
callq 0x4a4c
cmpl $0x3, %ebx
jne 0x24b3
callq 0x2090
andl $0x0, (%rax)
movq 0x10(%r15), %r14
testq %r14, %r14
jne 0x24d4
leaq 0x9c06(%rip), %rdi      # 0xc0a1
leaq 0x9c09(%rip), %rsi      # 0xc0ab
leaq 0x9c24(%rip), %rcx      # 0xc0cd
movl $0xbb, %edx
callq 0x2160
movq 0x10b3e(%rip), %rax     # 0x12ff8
movq (%rax), %rdi
leaq 0x9b40(%rip), %rsi      # 0xc004
leaq 0x9b53(%rip), %rdx      # 0xc01e
xorl %eax, %eax
callq 0x21e0
jmp 0x2541
movq %rax, %rbx
leaq 0x8(%rsp), %r13
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x22b0
movq %rax, %r12
movq (%r13), %rax
cmpq %r14, %rax
je 0x24fa
cmpb $0x0, (%rax)
je 0x2500
movl $0x16, (%rbx)
cmpl $0x0, (%rbx)
jne 0x252c
movq 0x8(%r15), %rdi
callq 0x3bd4
testq %rax, %rax
jne 0x2549
cmpl $0x0, (%rbx)
movq 0x8(%r15), %rsi
leaq 0x9b22(%rip), %rdi      # 0xc043
jne 0x2537
xorl %eax, %eax
callq 0x4c58
jmp 0x2541
movq 0x10(%r15), %rsi
leaq 0x9af4(%rip), %rdi      # 0xc02b
xorl %eax, %eax
callq 0x4ac9
andl $0x0, (%rbx)
pushq $0x1
popq %rdi
callq 0x22e0
movq %rax, %r14
cmpq $0x0, (%rax)
jne 0x2566
movq 0x8(%r15), %rsi
leaq 0x9b09(%rip), %rdi      # 0xc066
xorl %eax, %eax
callq 0x4c58
jmp 0x253e
movq %r14, %rdi
callq 0x43ad
cmpl $-0x1, %eax
je 0x2541
movl %eax, %edi
callq 0x65c0
testq %rax, %rax
jne 0x2594
cmpl $0x0, (%rbx)
jne 0x25f8
leaq 0x9af5(%rip), %rdi      # 0xc080
xorl %eax, %eax
callq 0x4c58
jmp 0x2541
movq %rax, %r15
movq %rax, 0x8(%rsp)
andq $0x0, 0x18(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsp)
movq %r12, 0x20(%rsp)
leaq 0x50(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps %xmm0, 0x10(%rdi)
andq $0x0, 0x20(%rdi)
pushq $0x28
popq %rsi
callq 0x52e4
movq %rax, 0x38(%rsp)
testq %rax, %rax
je 0x2541
movq %rax, %r13
leaq 0x50(%rsp), %rdi
pushq $0x28
popq %rsi
callq 0x52e4
movq %rax, 0x40(%rsp)
testq %rax, %rax
jne 0x260b
movq %r13, %rdi
jmp 0x26f9
leaq 0x9a81(%rip), %rdi      # 0xc080
xorl %eax, %eax
callq 0x4ac9
jmp 0x253e
movq %rax, %r12
pushq $0x32
popq %rdi
pushq $0x64
popq %rsi
callq 0x4ddc
movq %rax, 0x48(%rsp)
testq %rax, %rax
jne 0x2639
leaq 0x9af8(%rip), %rdi      # 0xc122
xorl %eax, %eax
callq 0x4c58
andl $0x0, (%rbx)
jmp 0x26ec
leaq 0x8(%rsp), %rdi
callq 0x2703
testl %eax, %eax
jne 0x26dd
leaq 0x34(%rsp), %r12
movq %r12, %rdi
callq 0x2afb
orl -0x4(%r12), %eax
je 0x2674
cmpl $0x0, (%rbx)
jne 0x26cc
leaq 0x9ac2(%rip), %rdi      # 0xc12d
xorl %eax, %eax
callq 0x4c58
jmp 0x26dd
movq 0x48(%rsp), %rdi
callq 0x5072
leaq 0x9abb(%rip), %rdi      # 0xc140
movq %rax, %rsi
xorl %eax, %eax
callq 0x2130
movq 0x48(%rsp), %rdi
callq 0x50d9
movq 0x40(%rsp), %rdi
callq 0x2040
movq 0x38(%rsp), %rdi
callq 0x2040
movq %r15, %rdi
callq 0x6aa3
movq %r15, %rdi
callq 0x6ab7
movq %r14, %rdi
callq 0x41d3
xorl %edi, %edi
callq 0x22e0
leaq 0x9a5a(%rip), %rdi      # 0xc12d
xorl %eax, %eax
callq 0x4ac9
andl $0x0, (%rbx)
movq 0x48(%rsp), %rdi
callq 0x50d9
movq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0x2040
movq 0x38(%rsp), %rdi
callq 0x2040
jmp 0x2541