// File: /workspace/github_c_makefile_star2_O0/Tarsnap[P]libcperciva/tests/mpool/main.c
// Function: main
int
main(int argc, char * argv[])
{
	unsigned long sets, reps;
	unsigned int use_mpool;
	long long delta_us;

	WARNP_INIT;

	/* Parse args. */
	if ((argc != 4) || (PARSENUM(&sets, argv[1])) ||
	    (PARSENUM(&reps, argv[2])) || (PARSENUM(&use_mpool, argv[3]))) {
		printf("usage: test_mpool SETS REPS TYPE\n");
		goto err0;
	}

	/* Sanity check. */
	if (!((sets > 0) && (reps > 0))) {
		fprintf(stderr, "SETS and REPS must be greater than zero\n");
		goto err0;
	}

	/* Time memory allocation method, and output it. */
	if ((delta_us = time_func(sets, reps, use_mpool)) < 0)
		goto err0;
	printf("%lld\n", delta_us);

	/* 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 0x16cc
movq -0x10(%rbp), %rax
movq (%rax), %rdi
callq 0x2100
jmp 0x16ce
cmpl $0x4, -0x8(%rbp)
jne 0x195c
callq 0x1070
movl $0x0, (%rax)
movq $0x1, -0x18(%rbp)
movq -0x18(%rbp), %rax
shrq %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jbe 0x1747
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movsd 0x190c(%rip), %xmm0     # 0x3018
movsd 0x190c(%rip), %xmm1     # 0x3020
xorl %esi, %esi
callq 0x19e0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0x18f6(%rip), %xmm1     # 0x3028
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x18(%rbp)
jmp 0x17af
movq $-0x1, -0x18(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x1757
jmp 0x177c
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
movq -0x18(%rbp), %rdx
movq -0x18(%rbp), %rcx
xorl %eax, %eax
movl %eax, %esi
xorl %r9d, %r9d
movl %r9d, %r8d
callq 0x1a90
movq %rax, -0x18(%rbp)
jmp 0x17ad
movq 0x3875(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x193e(%rip), %rsi      # 0x30cb
leaq 0x19a5(%rip), %rdx      # 0x3139
leaq 0x18ae(%rip), %rcx      # 0x3049
movl $0x8a, %r8d
movb $0x0, %al
callq 0x10e0
callq 0x1060
jmp 0x17af
callq 0x1070
cmpl $0x0, (%rax)
jne 0x195c
callq 0x1070
movl $0x0, (%rax)
movq $0x1, -0x20(%rbp)
movq -0x20(%rbp), %rax
shrq %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jbe 0x182c
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movsd 0x1827(%rip), %xmm0     # 0x3018
movsd 0x1827(%rip), %xmm1     # 0x3020
xorl %esi, %esi
callq 0x19e0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0x1811(%rip), %xmm1     # 0x3028
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, -0x20(%rbp)
jmp 0x1894
movq $-0x1, -0x20(%rbp)
movb $0x1, %al
testb $0x1, %al
jne 0x183c
jmp 0x1861
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x20(%rbp), %rdx
movq -0x20(%rbp), %rcx
xorl %eax, %eax
movl %eax, %esi
xorl %r9d, %r9d
movl %r9d, %r8d
callq 0x1a90
movq %rax, -0x20(%rbp)
jmp 0x1892
movq 0x3790(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x1859(%rip), %rsi      # 0x30cb
leaq 0x18c0(%rip), %rdx      # 0x3139
leaq 0x17c9(%rip), %rcx      # 0x3049
movl $0x8b, %r8d
movb $0x0, %al
callq 0x10e0
callq 0x1060
jmp 0x1894
callq 0x1070
cmpl $0x0, (%rax)
jne 0x195c
callq 0x1070
movl $0x0, (%rax)
movl $0x1, -0x24(%rbp)
movl -0x24(%rbp), %eax
shrl %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
jbe 0x18ea
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movsd 0x1747(%rip), %xmm0     # 0x3018
movsd 0x1747(%rip), %xmm1     # 0x3020
xorl %esi, %esi
callq 0x19e0
cvttsd2si %xmm0, %rax
movl %eax, -0x24(%rbp)
jmp 0x1952
movl $0xffffffff, -0x24(%rbp) # imm = 0xFFFFFFFF
movb $0x1, %al
testb $0x1, %al
jne 0x18f9
jmp 0x191f
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl -0x24(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
movl %eax, %esi
xorl %r9d, %r9d
movl %r9d, %r8d
callq 0x1a90
movl %eax, -0x24(%rbp)
jmp 0x1950
movq 0x36d2(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x179b(%rip), %rsi      # 0x30cb
leaq 0x1802(%rip), %rdx      # 0x3139
leaq 0x170b(%rip), %rcx      # 0x3049
movl $0x8b, %r8d
movb $0x0, %al
callq 0x10e0
callq 0x1060
jmp 0x1952
callq 0x1070
cmpl $0x0, (%rax)
je 0x196c
leaq 0x17db(%rip), %rdi      # 0x313e
movb $0x0, %al
callq 0x10b0
jmp 0x19c9
cmpq $0x0, -0x18(%rbp)
jbe 0x197a
cmpq $0x0, -0x20(%rbp)
ja 0x1994
movq 0x3677(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
leaq 0x17d5(%rip), %rsi      # 0x3160
movb $0x0, %al
callq 0x10e0
jmp 0x19c9
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x12d0
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jge 0x19b0
jmp 0x19c9
movq -0x30(%rbp), %rsi
leaq 0x17ce(%rip), %rdi      # 0x3189
movb $0x0, %al
callq 0x10b0
xorl %edi, %edi
callq 0x1160
movl $0x1, %edi
callq 0x1160
nopw %cs:(%rax,%rax)