	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function run_one_test
LCPI0_0:
	.quad	0x412e848000000000              ## double 1.0E+6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_run_one_test:                          ## @run_one_test
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_get_nsecs
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_wait_for_tasks
	xorl	%eax, %eax
	callq	_get_nsecs
	movl	%eax, %ebx
	subl	%r14d, %ebx
	movl	(%r15), %edi
	addl	%ebx, %edi
	movl	4(%r15), %esi
	movl	12(%r15), %r8d
	incl	%esi
	movl	%edi, %eax
	cltd
	idivl	%esi
	movl	%ebx, %edx
	subl	%eax, %edx
	negl	%edx
	movl	%ebx, %ecx
	subl	%eax, %ecx
	movl	%edi, (%r15)
	cmovll	%edx, %ecx
	movl	%esi, 4(%r15)
	addl	%ecx, 8(%r15)
	testl	%r8d, %r8d
	cmovel	%ebx, %r8d
	leal	(%r8,%r8,8), %eax
	addl	%ebx, %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, 12(%r15)
	cvtsi2sd	%ebx, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	leaq	L_.str(%rip), %rdi
	movb	$1, %al
	callq	_printf
	xorps	%xmm0, %xmm0
	cvtsi2sdl	12(%r15), %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	leaq	L_.str.1(%rip), %rdi
	movb	$1, %al
	callq	_printf
	xorps	%xmm0, %xmm0
	cvtsi2sdq	48(%r15), %xmm0
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	divsd	%xmm2, %xmm0
	cvtsi2sdq	40(%r15), %xmm1
	divsd	%xmm2, %xmm1
	leaq	L_.str.2(%rip), %rdi
	movb	$2, %al
	callq	_printf
	movl	$10, %edi
	callq	_putchar
	movsd	16(%r15), %xmm0                 ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_1
	jnp	LBB0_2
LBB0_1:
	leaq	L_.str.4(%rip), %rdi
	movb	$1, %al
	callq	_printf
LBB0_2:
	movq	$0, 16(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#%-3ld: %0.3f, "

L_.str.1:                               ## @.str.1
	.asciz	"ravg: %0.2f, "

L_.str.2:                               ## @.str.2
	.asciz	"cpu: %0.2f / %0.2f"

L_.str.4:                               ## @.str.4
	.asciz	" (%ld sleep corrections)\n"

	.no_dead_strip	_run_one_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_one_test
_run_one_test:                          ; @run_one_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
	bl	_get_nsecs
	mov	x20, x0
	mov	x0, x19
	bl	_wait_for_tasks
	bl	_get_nsecs
	ldp	w8, w9, [x19]
	sub	w10, w0, w20
	add	w8, w8, w10
	add	w9, w9, #1
	sdiv	w11, w8, w9
	sub	w12, w11, w10
	subs	w11, w10, w11
	csel	w11, w12, w11, lt
	ldp	w12, w13, [x19, #8]
	add	w11, w11, w12
	cmp	w13, #0
	csel	w12, w10, w13, eq
	add	w12, w12, w12, lsl #3
	add	w12, w12, w10
	mov	w13, #26215
	movk	w13, #26214, lsl #16
	smull	x12, w12, w13
	lsr	x13, x12, #63
	asr	x12, x12, #34
	add	w12, w12, w13
	stp	w8, w9, [x19]
	stp	w11, w12, [x19, #8]
	scvtf	d0, w10
	mov	x8, #145685290680320
	movk	x8, #16686, lsl #48
	fmov	d8, x8
	fdiv	d0, d0, d8
	str	d0, [sp, #8]
	str	x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	s0, [x19, #12]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	fdiv	d0, d0, d8
	str	d0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldp	d1, d0, [x19, #40]
	scvtf	d0, d0
	fdiv	d0, d0, d8
	scvtf	d1, d1
	fdiv	d1, d1, d8
	stp	d0, d1, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	w0, #10
	bl	_putchar
	ldr	d0, [x19, #16]
	fcmp	d0, #0.0
	b.eq	LBB0_2
; %bb.1:
	str	d0, [sp]
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_2:
	str	xzr, [x19, #16]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#%-3ld: %0.3f, "

l_.str.1:                               ; @.str.1
	.asciz	"ravg: %0.2f, "

l_.str.2:                               ; @.str.2
	.asciz	"cpu: %0.2f / %0.2f"

l_.str.4:                               ; @.str.4
	.asciz	" (%ld sleep corrections)\n"

	.no_dead_strip	_run_one_test
.subsections_via_symbols
