	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function test_timing
LCPI0_0:
	.quad	0x41cdcd6500000000              ## double 1.0E+9
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_test_timing:                           ## @test_timing
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	movl	$0, %r14d
	testl	%edi, %edi
	jle	LBB0_2
## %bb.1:
	movl	%edi, %ebx
	movl	$1000000, %edi                  ## imm = 0xF4240
	callq	_INT64CONST
	movl	%eax, %r14d
	imull	%ebx, %r14d
LBB0_2:
	callq	_INSTR_TIME_SET_CURRENT
	callq	_INSTR_TIME_GET_MICROSEC
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.3:
	movl	%eax, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_histogram@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	incl	(%rcx,%rax,4)
	incl	%r15d
	callq	_INSTR_TIME_SUBTRACT
	callq	_INSTR_TIME_GET_MICROSEC
	movl	%r12d, %r13d
	cmpl	%r14d, %eax
	jge	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	callq	_INSTR_TIME_SET_CURRENT
	callq	_INSTR_TIME_GET_MICROSEC
	movl	%eax, %ebx
	subl	%r13d, %ebx
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r12d
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	movl	%ebx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	sarl	%ecx
	incl	%eax
	cmpl	$1, %ebx
	movl	%ecx, %ebx
	ja	LBB0_9
	jmp	LBB0_10
LBB0_11:
	callq	_INSTR_TIME_SET_CURRENT
	callq	_INSTR_TIME_SUBTRACT
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	callq	_INSTR_TIME_GET_DOUBLE
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvtsi2sd	%r15d, %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %esi
	movq	%rbx, %rdi
	callq	_printf
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%r14d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r15), %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%r14d, %edi
	movq	%rax, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detected clock going backwards in time.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Time warp: %d ms\n"

	.comm	_histogram,8,3                  ## @histogram
L_.str.2:                               ## @.str.2
	.asciz	"Per loop time including overhead: %0.2f ns\n"

	.no_dead_strip	_test_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_timing
_test_timing:                           ; @test_timing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x19, x0
	mov	w0, #16960
	movk	w0, #15, lsl #16
	bl	_INT64CONST
	mul	w22, w0, w19
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
	bl	_INSTR_TIME_SET_CURRENT
	bl	_INSTR_TIME_GET_MICROSEC
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x21, x0
	mov	w19, #0
Lloh0:
	adrp	x23, _histogram@GOTPAGE
Lloh1:
	ldr	x23, [x23, _histogram@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x9, [x23]
	mov	w8, w8
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
	add	w10, w10, #1
	str	w10, [x9, x8]
	add	w19, w19, #1
	bl	_INSTR_TIME_SUBTRACT
	bl	_INSTR_TIME_GET_MICROSEC
	mov	x21, x20
	cmp	w0, w22
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	bl	_INSTR_TIME_SET_CURRENT
	bl	_INSTR_TIME_GET_MICROSEC
	subs	w21, w0, w21
	b.mi	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x0
	mov	w8, #0
	cbz	w21, LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w9, w21, #1
	add	w8, w8, #1
	cmp	w21, #1
	mov	x21, x9
	b.hi	LBB0_8
	b	LBB0_5
LBB0_9:
	mov	w19, #0
LBB0_10:
	bl	_INSTR_TIME_SET_CURRENT
	bl	_INSTR_TIME_SUBTRACT
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x20, x0
	bl	_INSTR_TIME_GET_DOUBLE
	scvtf	d0, w0
	mov	x8, #225833675390976
	movk	x8, #16845, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	scvtf	d1, w19
	fdiv	d0, d0, d1
	fcvtzs	w1, d0
	mov	x0, x20
	bl	_printf
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh4:
	adrp	x20, _stderr@GOTPAGE
Lloh5:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf
	ldr	w19, [x20]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	str	x21, [sp]
	mov	x0, x19
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detected clock going backwards in time.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Time warp: %d ms\n"

	.comm	_histogram,8,3                  ; @histogram
l_.str.2:                               ; @.str.2
	.asciz	"Per loop time including overhead: %0.2f ns\n"

	.no_dead_strip	_test_timing
.subsections_via_symbols
