	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___thr_umutex_lock              ## -- Begin function __thr_umutex_lock
	.p2align	4, 0x90
___thr_umutex_lock:                     ## @__thr_umutex_lock
	.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
	movq	%rdi, %r15
	movq	_UMUTEX_PRIO_PROTECT@GOTPCREL(%rip), %rax
	movq	_UMUTEX_PRIO_INHERIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_1
## %bb.12:
	movq	_UMTX_OP_MUTEX_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__umtx_op_err                   ## TAILCALL
LBB0_1:
	movl	%esi, %r14d
	leaq	4(%r15), %r12
	movq	_UMUTEX_CONTESTED@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ebx
	movl	(%r13), %eax
	notl	%eax
	testl	%eax, %ebx
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edx
	orl	%r14d, %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_atomic_cmpset_acq_32
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_UMUTEX_RB_OWNERDEAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edx
	orl	%r14d, %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_atomic_cmpset_acq_32
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_UMUTEX_RB_NOTRECOV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_UMTX_OP_MUTEX_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	__umtx_op_err
	jmp	LBB0_2
LBB0_9:
	movq	_ENOTRECOVERABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_EOWNERDEAD@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_4:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %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	_UMTX_OP_MUTEX_LOCK,4,2         ## @UMTX_OP_MUTEX_LOCK
	.comm	_UMUTEX_CONTESTED,4,2           ## @UMUTEX_CONTESTED
	.comm	_UMUTEX_RB_OWNERDEAD,4,2        ## @UMUTEX_RB_OWNERDEAD
	.comm	_EOWNERDEAD,4,2                 ## @EOWNERDEAD
	.comm	_UMUTEX_RB_NOTRECOV,4,2         ## @UMUTEX_RB_NOTRECOV
	.comm	_ENOTRECOVERABLE,4,2            ## @ENOTRECOVERABLE
	.comm	_UMTX_OP_MUTEX_WAIT,4,2         ## @UMTX_OP_MUTEX_WAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___thr_umutex_lock              ; -- Begin function __thr_umutex_lock
	.p2align	2
___thr_umutex_lock:                     ; @__thr_umutex_lock
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0]
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
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _UMTX_OP_MUTEX_LOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UMTX_OP_MUTEX_LOCK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	__umtx_op_err
LBB0_2:
	mov	x20, x1
	add	x21, x19, #4
Lloh9:
	adrp	x23, _UMUTEX_CONTESTED@GOTPAGE
Lloh10:
	ldr	x23, [x23, _UMUTEX_CONTESTED@GOTPAGEOFF]
Lloh11:
	adrp	x24, _UMUTEX_RB_OWNERDEAD@GOTPAGE
Lloh12:
	ldr	x24, [x24, _UMUTEX_RB_OWNERDEAD@GOTPAGEOFF]
Lloh13:
	adrp	x25, _UMUTEX_RB_NOTRECOV@GOTPAGE
Lloh14:
	ldr	x25, [x25, _UMUTEX_RB_NOTRECOV@GOTPAGEOFF]
Lloh15:
	adrp	x26, _UMTX_OP_MUTEX_WAIT@GOTPAGE
Lloh16:
	ldr	x26, [x26, _UMTX_OP_MUTEX_WAIT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x21]
	ldr	w8, [x23]
	bics	wzr, w22, w8
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w2, w22, w20
	mov	x0, x21
	mov	x1, x22
	bl	_atomic_cmpset_acq_32
	cbnz	x0, LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	orr	w2, w8, w20
	mov	x0, x21
	mov	x1, x22
	bl	_atomic_cmpset_acq_32
	cbnz	x0, LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x25]
	cmp	w22, w8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	__umtx_op_err
	b	LBB0_3
LBB0_9:
Lloh17:
	adrp	x8, _ENOTRECOVERABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOTRECOVERABLE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh19:
	adrp	x8, _EOWNERDEAD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOWNERDEAD@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ; @UMUTEX_PRIO_PROTECT
	.comm	_UMUTEX_PRIO_INHERIT,4,2        ; @UMUTEX_PRIO_INHERIT
	.comm	_UMTX_OP_MUTEX_LOCK,4,2         ; @UMTX_OP_MUTEX_LOCK
	.comm	_UMUTEX_CONTESTED,4,2           ; @UMUTEX_CONTESTED
	.comm	_UMUTEX_RB_OWNERDEAD,4,2        ; @UMUTEX_RB_OWNERDEAD
	.comm	_EOWNERDEAD,4,2                 ; @EOWNERDEAD
	.comm	_UMUTEX_RB_NOTRECOV,4,2         ; @UMUTEX_RB_NOTRECOV
	.comm	_ENOTRECOVERABLE,4,2            ; @ENOTRECOVERABLE
	.comm	_UMTX_OP_MUTEX_WAIT,4,2         ; @UMTX_OP_MUTEX_WAIT
.subsections_via_symbols
