	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mutex_lock_sleep
_mutex_lock_sleep:                      ## @mutex_lock_sleep
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_TID
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_PMUTEX_OWNER_ID
	cmpl	%r14d, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_self_lock                ## TAILCALL
LBB0_2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_UMUTEX_PRIO_PROTECT@GOTPCREL(%rip), %rax
	movq	_UMUTEX_PRIO_INHERIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_UMUTEX_ROBUST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	8(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_UMUTEX_NONCONSISTENT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	xorl	%edi, %edi
	andl	8(%r13), %ecx
	setne	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.4:
	xorl	%edi, %edi
	cmpl	$1000000000, (%rbx)             ## imm = 0x3B9ACA00
	setae	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_22
	jmp	LBB0_23
LBB0_6:
	movq	__thr_is_smp@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_14
## %bb.7:
	movl	(%r13), %ebx
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.8:
	leaq	12(%r13), %r15
	movq	_UMUTEX_CONTESTED@GOTPCREL(%rip), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	decl	%ebx
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	(%r12), %eax
	notl	%eax
	testl	%eax, %esi
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%esi, %edx
	orl	%r14d, %edx
	movq	%r15, %rdi
	callq	_atomic_cmpset_acq_32
	testq	%rax, %rax
	je	LBB0_9
	jmp	LBB0_12
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	___thr_umutex_lock
	jmp	LBB0_21
LBB0_14:
	movl	4(%r13), %ebx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.15:
	leaq	12(%r13), %r15
	movq	_UMUTEX_CONTESTED@GOTPCREL(%rip), %r12
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	decl	%ebx
	je	LBB0_3
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	__sched_yield
	movl	(%r15), %esi
	movl	(%r12), %eax
	notl	%eax
	testl	%eax, %esi
	jne	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%esi, %edx
	orl	%r14d, %edx
	movq	%r15, %rdi
	callq	_atomic_cmpset_acq_32
	testq	%rax, %rax
	je	LBB0_16
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	___thr_umutex_timedlock
LBB0_21:
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_23
LBB0_22:
	movq	_EOWNERDEAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_25
LBB0_23:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_enqueue_mutex
	movq	_EOWNERDEAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_25
## %bb.24:
	movq	_UMUTEX_NONCONSISTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ## @UMUTEX_PRIO_PROTECT
	.comm	_UMUTEX_PRIO_INHERIT,4,2        ## @UMUTEX_PRIO_INHERIT
	.comm	_UMUTEX_ROBUST,4,2              ## @UMUTEX_ROBUST
	.comm	_UMUTEX_NONCONSISTENT,4,2       ## @UMUTEX_NONCONSISTENT
	.comm	__thr_is_smp,4,2                ## @_thr_is_smp
	.comm	_UMUTEX_CONTESTED,4,2           ## @UMUTEX_CONTESTED
	.comm	_CPU_SPINWAIT,4,2               ## @CPU_SPINWAIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOWNERDEAD,4,2                 ## @EOWNERDEAD
	.no_dead_strip	_mutex_lock_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mutex_lock_sleep
_mutex_lock_sleep:                      ; @mutex_lock_sleep
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_TID
	mov	x23, x0
	mov	x0, x19
	bl	_PMUTEX_OWNER_ID
	cmp	w0, w23
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mutex_self_lock
LBB0_2:
	mov	x21, x19
	ldr	w8, [x21, #8]!
Lloh0:
	adrp	x9, _UMUTEX_PRIO_PROTECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UMUTEX_PRIO_PROTECT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _UMUTEX_PRIO_INHERIT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _UMUTEX_PRIO_INHERIT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _UMUTEX_ROBUST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _UMUTEX_ROBUST@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh9:
	adrp	x25, _UMUTEX_NONCONSISTENT@GOTPAGE
Lloh10:
	ldr	x25, [x25, _UMUTEX_NONCONSISTENT@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w9, w9, w10
	tst	w9, w8
	cset	w0, ne
	bl	___predict_false
Lloh11:
	adrp	x26, _EOWNERDEAD@GOTPAGE
Lloh12:
	ldr	x26, [x26, _EOWNERDEAD@GOTPAGEOFF]
	cbz	x0, LBB0_6
LBB0_3:
	cbz	x22, LBB0_12
; %bb.4:
	ldr	w8, [x22]
	mov	w9, #51711
	movk	w9, #15258, lsl #16
	cmp	w8, w9
	cset	w0, hi
	bl	___predict_false
	cbz	x0, LBB0_19
; %bb.5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	cbnz	w22, LBB0_20
	b	LBB0_21
LBB0_6:
Lloh16:
	adrp	x8, __thr_is_smp@GOTPAGE
Lloh17:
	ldr	x8, [x8, __thr_is_smp@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cbz	w8, LBB0_13
; %bb.7:
	ldr	w27, [x19]
	cbz	w27, LBB0_13
; %bb.8:
	add	x24, x19, #12
Lloh19:
	adrp	x28, _UMUTEX_CONTESTED@GOTPAGE
Lloh20:
	ldr	x28, [x28, _UMUTEX_CONTESTED@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	w27, w27, #1
	cbz	w27, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	w8, [x28]
	bics	wzr, w1, w8
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	orr	w2, w1, w23
	mov	x0, x24
	bl	_atomic_cmpset_acq_32
	cbz	x0, LBB0_9
	b	LBB0_18
LBB0_12:
	mov	x0, x21
	mov	x1, x23
	bl	___thr_umutex_lock
	mov	x22, x0
	cbnz	w22, LBB0_20
	b	LBB0_21
LBB0_13:
	ldr	w27, [x19, #4]
	cbz	w27, LBB0_3
; %bb.14:
	add	x24, x19, #12
Lloh21:
	adrp	x28, _UMUTEX_CONTESTED@GOTPAGE
Lloh22:
	ldr	x28, [x28, _UMUTEX_CONTESTED@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	w27, w27, #1
	cbz	w27, LBB0_3
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	bl	__sched_yield
	ldr	w1, [x24]
	ldr	w8, [x28]
	bics	wzr, w1, w8
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	orr	w2, w1, w23
	mov	x0, x24
	bl	_atomic_cmpset_acq_32
	cbz	x0, LBB0_15
LBB0_18:
	mov	w22, #0
	b	LBB0_21
LBB0_19:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	___thr_umutex_timedlock
	mov	x22, x0
	cbz	w22, LBB0_21
LBB0_20:
	ldr	w8, [x26]
	cmp	w22, w8
	b.ne	LBB0_23
LBB0_21:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_enqueue_mutex
	ldr	w8, [x26]
	cmp	w22, w8
	b.ne	LBB0_23
; %bb.22:
	ldr	w8, [x25]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ; @UMUTEX_PRIO_PROTECT
	.comm	_UMUTEX_PRIO_INHERIT,4,2        ; @UMUTEX_PRIO_INHERIT
	.comm	_UMUTEX_ROBUST,4,2              ; @UMUTEX_ROBUST
	.comm	_UMUTEX_NONCONSISTENT,4,2       ; @UMUTEX_NONCONSISTENT
	.comm	__thr_is_smp,4,2                ; @_thr_is_smp
	.comm	_UMUTEX_CONTESTED,4,2           ; @UMUTEX_CONTESTED
	.comm	_CPU_SPINWAIT,4,2               ; @CPU_SPINWAIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOWNERDEAD,4,2                 ; @EOWNERDEAD
	.no_dead_strip	_mutex_lock_sleep
.subsections_via_symbols
