// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]libcperciva/tests/warnp/main.c
// Function: main
int
main(int argc, char * argv[])
{
	const char * extra_message;
	int desired_test;

	WARNP_INIT;

	/* Parse command-line argument. */
	if (argc != 3) {
		fprintf(stderr, "usage: test_warnp STRING NUM\n");
		exit(1);
	}
	extra_message = argv[1];
	if (PARSENUM(&desired_test, argv[2], 1, 2)) {
		warnp("parsenum");
		goto err0;
	}

	/* Run the desired test. */
	switch (desired_test) {
	case 1:
		check_stderr_syslog(extra_message);
		break;
	case 2:
		if (check_multithread())
			goto err0;
		break;
	default:
		warn0("invalid test number");
		goto err0;
	}

	/* Switch to syslog again. */
	warnp_syslog(1);
	warn0("syslog again");

	/* Success! */
	exit(0);

err0:
	/* Failure! */
	exit(1);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0x128c
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x1a60
jmp 0x128e
cmpl $0x3, -0x8(%rbp)
je 0x12b6
movq 0x2d5d(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0xd73(%rip), %rsi       # 0x2018
movb $0x0, %al
callq 0x10c0
movl $0x1, %edi
callq 0x1120
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
callq 0x1070
movl $0x0, (%rax)
movl $0x1, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x1c(%rbp)
cmpl $0x0, %eax
jle 0x130f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movsd 0xd11(%rip), %xmm0      # 0x2008
movsd 0xd11(%rip), %xmm1      # 0x2010
xorl %esi, %esi
callq 0x1450
cvttsd2si %xmm0, %eax
movl %eax, -0x1c(%rbp)
jmp 0x138b
movl $0xffffffff, -0x1c(%rbp) # imm = 0xFFFFFFFF
movb $0x1, %al
testb $0x1, %al
jne 0x131e
jmp 0x135f
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movl -0x1c(%rbp), %edx
xorl %eax, %eax
movl $0x1, %ecx
cmpl $0x0, %edx
cmovlel %ecx, %eax
movslq %eax, %rsi
movl -0x1c(%rbp), %edx
xorl %eax, %eax
movl $0x2, %ecx
cmpl $0x0, %edx
cmovlel %ecx, %eax
movslq %eax, %rdx
xorl %r8d, %r8d
movl %r8d, %ecx
callq 0x1500
movl %eax, -0x1c(%rbp)
movl %eax, -0x20(%rbp)
jmp 0x1388
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movslq -0x1c(%rbp), %rcx
movl $0x1, %esi
movl $0x2, %edx
xorl %r9d, %r9d
movl %r9d, %r8d
callq 0x15c0
movl %eax, -0x1c(%rbp)
xorl %eax, %eax
movl %eax, -0x20(%rbp)
movl -0x20(%rbp), %eax
callq 0x1070
cmpl $0x0, (%rax)
je 0x13ce
jmp 0x1397
callq 0x1070
cmpl $0x0, (%rax)
je 0x13bc
leaq 0xc8e(%rip), %rdi       # 0x2036
movb $0x0, %al
callq 0x1b20
callq 0x1070
movl $0x0, (%rax)
jmp 0x13ca
leaq 0xc73(%rip), %rdi       # 0x2036
movb $0x0, %al
callq 0x1d70
jmp 0x13cc
jmp 0x1445
movl -0x1c(%rbp), %eax
movl %eax, -0x24(%rbp)
subl $0x1, %eax
je 0x13e5
jmp 0x13db
movl -0x24(%rbp), %eax
subl $0x2, %eax
je 0x13f0
jmp 0x13fe
movq -0x18(%rbp), %rdi
callq 0x1680
jmp 0x141b
callq 0x16d0
cmpl $0x0, %eax
je 0x13fc
jmp 0x1445
jmp 0x141b
jmp 0x1400
leaq 0xc38(%rip), %rdi       # 0x203f
movb $0x0, %al
callq 0x1d70
callq 0x1070
movl $0x0, (%rax)
jmp 0x1445
movl $0x1, %edi
callq 0x1f60
leaq 0xc27(%rip), %rdi       # 0x2053
movb $0x0, %al
callq 0x1d70
callq 0x1070
movl $0x0, (%rax)
xorl %edi, %edi
callq 0x1120
movl $0x1, %edi
callq 0x1120
nop