	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DELAY                          ## -- Begin function DELAY
	.p2align	4, 0x90
_DELAY:                                 ## @DELAY
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	js	LBB0_5
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_TSENTER
	xorl	%eax, %eax
	callq	_sched_pin
	movq	_tick@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_rd
	movl	%eax, %r14d
	movq	_clock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	imull	%r15d, %eax
	cltq
	imulq	$1125899907, %rax, %rbx         ## imm = 0x431BDE83
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$50, %rbx
	addl	%eax, %ebx
	addl	%r14d, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_rd
	cmpl	%ebx, %eax
	jge	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_cpu_spinwait
	jmp	LBB0_3
LBB0_4:
	xorl	%eax, %eax
	callq	_sched_unpin
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TSEXIT                         ## TAILCALL
LBB0_5:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tick,4,2                       ## @tick
	.comm	_clock,4,2                      ## @clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DELAY                          ; -- Begin function DELAY
	.p2align	2
_DELAY:                                 ; @DELAY
	.cfi_startproc
; %bb.0:
	tbnz	w0, #31, LBB0_5
; %bb.1:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_TSENTER
	bl	_sched_pin
Lloh0:
	adrp	x21, _tick@GOTPAGE
Lloh1:
	ldr	x21, [x21, _tick@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_rd
	mov	x20, x0
Lloh2:
	adrp	x8, _clock@GOTPAGE
Lloh3:
	ldr	x8, [x8, _clock@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_PCPU_GET
	mul	w8, w0, w19
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	add	w19, w8, w20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_rd
	cmp	w0, w19
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cpu_spinwait
	b	LBB0_2
LBB0_4:
	bl	_sched_unpin
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_TSEXIT
LBB0_5:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_tick,4,2                       ; @tick
	.comm	_clock,4,2                      ; @clock
.subsections_via_symbols
