// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]kivaloo/tests/s3/main.c
// Function: main
int
main(int argc, char * argv[])
{
	struct wire_requestqueue * Q;
	struct kivaloo_cookie * K;

	WARNP_INIT;

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

	/* Open a connection to S3. */
	if ((K = kivaloo_open(argv[1], &Q)) == NULL) {
		warnp("Could not connect to S3 daemon.");
		exit(1);
	}

	/* Do read tests; these should all fail. */
	readtests(Q, argv[2]);

	/* PUT the file. */
	putfile(Q, argv[2]);

	/* Do read tests; they should succeed this time. */
	readtests(Q, argv[2]);

	/* DELETE the file. */
	deletefile(Q, argv[2]);

	/* Free the request queue and network connection. */
	kivaloo_close(K);

	/* Close all streams, in order to free malloced internal buffers. */
	if (fclose(stdin))
		warnp("fclose");
	if (fclose(stdout))
		warnp("fclose");
	if (fclose(stderr))
		warnp("fclose");

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0x247c
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x4cc0
jmp 0x247e
cmpl $0x3, -0x8(%rbp)
je 0x24b4
movq 0x10b6d(%rip), %rax     # 0x12ff8
movq (%rax), %rdi
leaq 0xbb6f(%rip), %rsi      # 0xe004
leaq 0xbb7e(%rip), %rdx      # 0xe01a
leaq 0xbb84(%rip), %rcx      # 0xe027
movb $0x0, %al
callq 0x21e0
movl $0x1, %edi
callq 0x22d0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
leaq -0x18(%rbp), %rsi
callq 0x70b0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x2510
jmp 0x24d1
callq 0x20a0
cmpl $0x0, (%rax)
je 0x24f6
leaq 0xbb4e(%rip), %rdi      # 0xe030
movb $0x0, %al
callq 0x4d80
callq 0x20a0
movl $0x0, (%rax)
jmp 0x2504
leaq 0xbb33(%rip), %rdi      # 0xe030
movb $0x0, %al
callq 0x4fd0
jmp 0x2506
movl $0x1, %edi
callq 0x22d0
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2650
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2820
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x2650
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
callq 0x28b0
movq -0x20(%rbp), %rdi
callq 0x7270
movq 0x10a74(%rip), %rax     # 0x12fd8
movq (%rax), %rdi
callq 0x2100
cmpl $0x0, %eax
je 0x25aa
jmp 0x2573
callq 0x20a0
cmpl $0x0, (%rax)
je 0x2598
leaq 0xbacc(%rip), %rdi      # 0xe050
movb $0x0, %al
callq 0x4d80
callq 0x20a0
movl $0x0, (%rax)
jmp 0x25a6
leaq 0xbab1(%rip), %rdi      # 0xe050
movb $0x0, %al
callq 0x4fd0
jmp 0x25a8
jmp 0x25aa
movq 0x10a1f(%rip), %rax     # 0x12fd0
movq (%rax), %rdi
callq 0x2100
cmpl $0x0, %eax
je 0x25f7
jmp 0x25c0
callq 0x20a0
cmpl $0x0, (%rax)
je 0x25e5
leaq 0xba7f(%rip), %rdi      # 0xe050
movb $0x0, %al
callq 0x4d80
callq 0x20a0
movl $0x0, (%rax)
jmp 0x25f3
leaq 0xba64(%rip), %rdi      # 0xe050
movb $0x0, %al
callq 0x4fd0
jmp 0x25f5
jmp 0x25f7
movq 0x109fa(%rip), %rax     # 0x12ff8
movq (%rax), %rdi
callq 0x2100
cmpl $0x0, %eax
je 0x2644
jmp 0x260d
callq 0x20a0
cmpl $0x0, (%rax)
je 0x2632
leaq 0xba32(%rip), %rdi      # 0xe050
movb $0x0, %al
callq 0x4d80
callq 0x20a0
movl $0x0, (%rax)
jmp 0x2640
leaq 0xba17(%rip), %rdi      # 0xe050
movb $0x0, %al
callq 0x4fd0
jmp 0x2642
jmp 0x2644
xorl %edi, %edi
callq 0x22d0
nopl (%rax,%rax)