// File: /workspace/github_c_makefile_star2_O1/Tarsnap[P]libcperciva/tests/fork_func/check_perftest.c
// Function: check_perftest
int
check_perftest(int child_ms, int num_reps)
{
	int i;

	/* Explain columns. */
	printf("# type\textra_delay\n");

	/* Baseline: time the delay without any threads or processes. */
	for (i = 0; i < num_reps; i++)
		if (benchmark_only_millisleep(child_ms))
			goto err0;

	/* Time the delay with pthread. */
	for (i = 0; i < num_reps; i++)
		if (benchmark_pthread_millisleep(child_ms))
			goto err0;

	/* Time the delay with fork_func. */
	for (i = 0; i < num_reps; i++)
		if (benchmark_fork_func_millisleep(child_ms))
			goto err0;

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %esi, %ebx
movl %edi, 0x4(%rsp)
leaq 0x1283(%rip), %rdi      # 0x3156
callq 0x10b0
movl %ebx, 0x8(%rsp)
testl %ebx, %ebx
jle 0x1fc6
movslq 0x4(%rsp), %rax
movq %rax, %rcx
cvtsi2sd %eax, %xmm0
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
mulq %rdx
movq %rdx, %r14
shrq $0x4, %r14
imulq $0x3e8, %r14, %rax      # imm = 0x3E8
subq %rax, %rcx
xorpd 0x11e6(%rip), %xmm0     # 0x3100
movapd %xmm0, 0x40(%rsp)
imulq $0xf4240, %rcx, %rbx    # imm = 0xF4240
leaq 0x20(%rsp), %r12
leaq 0x30(%rsp), %r13
leaq 0x11f6(%rip), %rbp      # 0x312e
movl 0x8(%rsp), %r15d
leaq 0x10(%rsp), %rdi
callq 0x2970
testl %eax, %eax
jne 0x216a
movq %r14, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq %r12, %rdi
xorl %esi, %esi
callq 0x1100
movq %r13, %rdi
callq 0x2970
testl %eax, %eax
jne 0x216a
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq 0x10(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
subq 0x18(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
mulsd 0x1171(%rip), %xmm0     # 0x3110
addsd %xmm1, %xmm0
mulsd 0x116d(%rip), %xmm0     # 0x3118
addsd 0x40(%rsp), %xmm0
movq %rbp, %rdi
xorl %esi, %esi
movb $0x1, %al
callq 0x10f0
decl %r15d
jne 0x1f3d
movl 0x8(%rsp), %ebx
testl %ebx, %ebx
jle 0x20a0
leaq 0x20(%rsp), %r14
leaq 0x24c(%rip), %r15       # 0x222a
leaq 0x30(%rsp), %r12
leaq 0xc(%rsp), %r13
movl %ebx, %ebp
movl 0x4(%rsp), %eax
movl %eax, 0xc(%rsp)
movq %r14, %rdi
callq 0x2970
testl %eax, %eax
jne 0x216a
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r13, %rcx
callq 0x11b0
testl %eax, %eax
jne 0x219d
movq 0x30(%rsp), %rdi
xorl %esi, %esi
callq 0x1210
testl %eax, %eax
jne 0x21a6
leaq 0x10(%rsp), %rdi
callq 0x2970
testl %eax, %eax
jne 0x216a
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq 0x20(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
subq 0x28(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
mulsd 0x10a4(%rip), %xmm0     # 0x3110
addsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0xc(%rsp), %xmm1
mulsd 0x1097(%rip), %xmm0     # 0x3118
subsd %xmm1, %xmm0
leaq 0x10a2(%rip), %rdi      # 0x312e
movl $0x1, %esi
movb $0x1, %al
callq 0x10f0
decl %ebp
jne 0x1fea
xorl %r14d, %r14d
testl %ebx, %ebx
jle 0x21ce
leaq 0x20(%rsp), %r15
leaq 0x129(%rip), %r12       # 0x21e0
leaq 0x30(%rsp), %r13
leaq 0x10(%rsp), %rbp
movl 0x4(%rsp), %eax
movl %eax, 0x30(%rsp)
movq %r15, %rdi
callq 0x2970
testl %eax, %eax
jne 0x216a
movq %r12, %rdi
movq %r13, %rsi
callq 0x2274
cmpl $-0x1, %eax
je 0x21af
movl %eax, %edi
callq 0x22d6
testl %eax, %eax
jne 0x21c8
movq %rbp, %rdi
callq 0x2970
testl %eax, %eax
jne 0x216a
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq 0x20(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
subq 0x28(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
mulsd 0xfdc(%rip), %xmm0      # 0x3110
addsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x30(%rsp), %xmm1
mulsd 0xfcf(%rip), %xmm0      # 0x3118
subsd %xmm1, %xmm0
leaq 0xfda(%rip), %rdi       # 0x312e
movl $0x2, %esi
movb $0x1, %al
callq 0x10f0
decl %ebx
jne 0x20c1
jmp 0x21ce
callq 0x1080
cmpl $0x0, (%rax)
je 0x218d
movq %rax, %rbx
leaq 0xfa2(%rip), %rdi       # 0x3120
xorl %eax, %eax
callq 0x2c2c
movl $0x0, (%rbx)
jmp 0x21c8
leaq 0xf8c(%rip), %rdi       # 0x3120
xorl %eax, %eax
callq 0x2d4b
jmp 0x21c8
leaq 0xf93(%rip), %rdi       # 0x3137
jmp 0x21b6
leaq 0xf92(%rip), %rdi       # 0x313f
jmp 0x21b6
leaq 0xf96(%rip), %rdi       # 0x314c
xorl %eax, %eax
callq 0x2d4b
callq 0x1080
movl $0x0, (%rax)
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %r14d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq