// File: /workspace/github_c_makefile_star2_O3/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, %r15d
movl %edi, %ebx
leaq 0x1254(%rip), %rdi      # 0x3156
callq 0x10b0
testl %r15d, %r15d
jle 0x21b6
movl %ebx, 0x3c(%rsp)
movslq %ebx, %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 0x11b8(%rip), %xmm0     # 0x3100
movapd %xmm0, 0x40(%rsp)
imulq $0xf4240, %rcx, %rbx    # imm = 0xF4240
leaq 0x18(%rsp), %r12
leaq 0x28(%rsp), %r13
leaq 0x11c8(%rip), %rbp      # 0x312e
movl %r15d, (%rsp)
leaq 0x8(%rsp), %rdi
callq 0x2a44
testl %eax, %eax
jne 0x2193
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movq %r12, %rdi
xorl %esi, %esi
callq 0x1100
movq %r13, %rdi
callq 0x2a44
testl %eax, %eax
jne 0x2193
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
subq 0x8(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
subq 0x10(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
mulsd 0x1144(%rip), %xmm0     # 0x3110
addsd %xmm1, %xmm0
mulsd 0x1140(%rip), %xmm0     # 0x3118
addsd 0x40(%rsp), %xmm0
movq %rbp, %rdi
xorl %esi, %esi
movb $0x1, %al
callq 0x10f0
decl %r15d
jne 0x1f6a
movl (%rsp), %ebp
testl %ebp, %ebp
jle 0x21b6
leaq 0x18(%rsp), %r14
leaq 0x24e(%rip), %r15       # 0x2258
leaq 0x28(%rsp), %r12
leaq 0x4(%rsp), %r13
movl 0x3c(%rsp), %ebx
movl %ebx, 0x4(%rsp)
movq %r14, %rdi
callq 0x2a44
testl %eax, %eax
jne 0x2193
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r13, %rcx
callq 0x11b0
testl %eax, %eax
jne 0x21cb
movq 0x28(%rsp), %rdi
xorl %esi, %esi
callq 0x1210
testl %eax, %eax
jne 0x21d4
leaq 0x8(%rsp), %rdi
callq 0x2a44
testl %eax, %eax
jne 0x2193
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq 0x18(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
subq 0x20(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
mulsd 0x107a(%rip), %xmm0     # 0x3110
addsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x4(%rsp), %xmm1
mulsd 0x106d(%rip), %xmm0     # 0x3118
subsd %xmm1, %xmm0
leaq 0x1078(%rip), %rdi      # 0x312e
movl $0x1, %esi
movb $0x1, %al
callq 0x10f0
decl %ebp
jne 0x2018
xorl %r14d, %r14d
cmpl $0x0, (%rsp)
jle 0x21f3
leaq 0x18(%rsp), %r15
leaq 0x12b(%rip), %r12       # 0x220e
leaq 0x28(%rsp), %r13
leaq 0x8(%rsp), %rbp
movl %ebx, 0x28(%rsp)
movq %r15, %rdi
callq 0x2a44
testl %eax, %eax
jne 0x2193
movq %r12, %rdi
movq %r13, %rsi
callq 0x22a4
cmpl $-0x1, %eax
je 0x2205
movl %eax, %edi
callq 0x2306
testl %eax, %eax
jne 0x21ed
movq %rbp, %rdi
callq 0x2a44
testl %eax, %eax
jne 0x2193
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
subq 0x18(%rsp), %rax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
subq 0x20(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
mulsd 0xfb4(%rip), %xmm0      # 0x3110
addsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x28(%rsp), %xmm1
mulsd 0xfa7(%rip), %xmm0      # 0x3118
subsd %xmm1, %xmm0
leaq 0xfb2(%rip), %rdi       # 0x312e
movl $0x2, %esi
movb $0x1, %al
callq 0x10f0
decl (%rsp)
jne 0x20ed
jmp 0x21f3
callq 0x1080
cmpl $0x0, (%rax)
je 0x21bb
movq %rax, %rbx
leaq 0xf79(%rip), %rdi       # 0x3120
xorl %eax, %eax
callq 0x2d00
movl $0x0, (%rbx)
jmp 0x21ed
xorl %r14d, %r14d
jmp 0x21f3
leaq 0xf5e(%rip), %rdi       # 0x3120
xorl %eax, %eax
callq 0x2e1f
jmp 0x21ed
leaq 0xf65(%rip), %rdi       # 0x3137
jmp 0x21db
leaq 0xf64(%rip), %rdi       # 0x313f
xorl %eax, %eax
callq 0x2e1f
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
leaq 0xf40(%rip), %rdi       # 0x314c
jmp 0x21db