	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delay_tsc
_delay_tsc:                             ## @delay_tsc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_sched_pin
	xorl	%eax, %eax
	callq	_rdtsc
	movq	_tsc_freq@GOTPCREL(%rip), %rcx
	imull	(%rcx), %ebx
	movslq	%ebx, %rcx
	imulq	$1125899907, %rcx, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rbx
	addq	%rax, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_spinwait
	xorl	%eax, %eax
	callq	_rdtsc
	cmpq	%rbx, %rax
	jl	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sched_unpin                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tsc_freq,4,2                   ## @tsc_freq
	.no_dead_strip	_delay_tsc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delay_tsc
_delay_tsc:                             ; @delay_tsc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_sched_pin
	bl	_rdtsc
Lloh0:
	adrp	x8, _tsc_freq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tsc_freq@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w8, 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	x19, x0, w8, sxtw
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cpu_spinwait
	bl	_rdtsc
	cmp	x0, x19
	b.lt	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sched_unpin
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tsc_freq,4,2                   ; @tsc_freq
	.no_dead_strip	_delay_tsc
.subsections_via_symbols
