	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cv_timedwait_hires             ## -- Begin function cv_timedwait_hires
	.p2align	4, 0x90
_cv_timedwait_hires:                    ## @cv_timedwait_hires
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%r8d, %r8d
	sete	%al
	movq	_CALLOUT_FLAG_ABSOLUTE@GOTPCREL(%rip), %rcx
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	cmpl	%r8d, (%rcx)
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_ASSERT
	leaq	8(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r15d
	movq	_CALLOUT_FLAG_ABSOLUTE@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_gethrtime
	movl	%r13d, %r15d
	subl	%eax, %r15d
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_CLOCK_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_clock_gettime
	movq	_NANOSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	cltq
	addq	-48(%rbp), %rax
	movq	%rax, -48(%rbp)
	addl	-56(%rbp), %edx
	movl	%edx, -56(%rbp)
	subl	%ecx, %edx
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rax
	movq	%rax, -48(%rbp)
	movl	%edx, -56(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_mutex_owner
	xorl	%edi, %edi
	movq	_curthread@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_ASSERT
	movq	$0, (%r14)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	-56(%rbp), %rdx
	callq	_pthread_cond_timedwait
	movq	(%rbx), %rcx
	movq	%rcx, (%r14)
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_1
## %bb.8:
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ASSERT
	movl	$1, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CALLOUT_FLAG_ABSOLUTE,4,2      ## @CALLOUT_FLAG_ABSOLUTE
	.comm	_CLOCK_REALTIME,4,2             ## @CLOCK_REALTIME
	.comm	_NANOSEC,4,2                    ## @NANOSEC
	.comm	_curthread,8,3                  ## @curthread
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EINTR,4,2                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cv_timedwait_hires             ; -- Begin function cv_timedwait_hires
	.p2align	2
_cv_timedwait_hires:                    ; @cv_timedwait_hires
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	cmp	w4, #0
Lloh0:
	adrp	x8, _CALLOUT_FLAG_ABSOLUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CALLOUT_FLAG_ABSOLUTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w4, #4, ne
	cset	w0, eq
	bl	_ASSERT
	add	x23, x21, #8
Lloh3:
	adrp	x26, _NANOSEC@GOTPAGE
Lloh4:
	ldr	x26, [x26, _NANOSEC@GOTPAGEOFF]
Lloh5:
	adrp	x27, _curthread@GOTPAGE
Lloh6:
	ldr	x27, [x27, _curthread@GOTPAGEOFF]
Lloh7:
	adrp	x28, _ETIMEDOUT@GOTPAGE
Lloh8:
	ldr	x28, [x28, _ETIMEDOUT@GOTPAGEOFF]
Lloh9:
	adrp	x25, _EINTR@GOTPAGE
Lloh10:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
Lloh11:
	adrp	x8, _CALLOUT_FLAG_ABSOLUTE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CALLOUT_FLAG_ABSOLUTE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	x20, x24
	tst	w8, w19
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_gethrtime
	sub	w20, w24, w0
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh14:
	adrp	x8, _CLOCK_REALTIME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CLOCK_REALTIME@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_clock_gettime
	ldr	w9, [x26]
	sdiv	w10, w20, w9
	ldr	x8, [sp, #8]
	add	x8, x8, w10, sxtw
	str	x8, [sp, #8]
	msub	w10, w10, w9, w20
	ldr	w11, [sp]
	add	w10, w11, w10
	subs	w9, w10, w9
	str	w10, [sp]
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, #1
	str	x8, [sp, #8]
	str	w9, [sp]
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_mutex_owner
	ldr	x8, [x27]
	cmp	x0, x8
	cset	w0, eq
	bl	_ASSERT
	str	xzr, [x21]
	mov	x2, sp
	mov	x0, x22
	mov	x1, x23
	bl	_pthread_cond_timedwait
	ldr	x8, [x27]
	str	x8, [x21]
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_1
; %bb.8:
	cmp	w0, #0
	cset	w0, eq
	bl	_ASSERT
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CALLOUT_FLAG_ABSOLUTE,4,2      ; @CALLOUT_FLAG_ABSOLUTE
	.comm	_CLOCK_REALTIME,4,2             ; @CLOCK_REALTIME
	.comm	_NANOSEC,4,2                    ; @NANOSEC
	.comm	_curthread,8,3                  ; @curthread
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EINTR,4,2                      ; @EINTR
.subsections_via_symbols
