	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _thr_umutex_unlock2
__thr_umutex_unlock2:                   ## @_thr_umutex_unlock2
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %r13d
	movq	_UMUTEX_NONCONSISTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_UMUTEX_PRIO_PROTECT@GOTPCREL(%rip), %rax
	movq	_UMUTEX_PRIO_INHERIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	4(%rdi), %rbx
	testl	%r13d, %ecx
	je	LBB0_1
## %bb.4:
	testl	%r13d, %r14d
	je	LBB0_5
## %bb.6:
	movq	_UMUTEX_RB_NOTRECOV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_atomic_cmpset_rel_32
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r12d
	movq	_UMUTEX_CONTESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r12d, %eax
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setne	%dil
	callq	___predict_false
	testq	%rax, %rax
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_UMUTEX_UNOWNED@GOTPCREL(%rip), %rax
	testl	%r13d, %r14d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_UMUTEX_RB_NOTRECOV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	_UMUTEX_UNOWNED@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_atomic_cmpset_rel_32
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_17
## %bb.8:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___thr_umutex_unlock            ## TAILCALL
LBB0_3:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_12:
	xorl	%ebx, %ebx
	movq	_UMUTEX_CONTESTED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_17
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	andl	%r13d, %r14d
	jne	LBB0_15
## %bb.16:
	movl	$1, (%rax)
	jmp	LBB0_17
LBB0_15:
	movq	_UMTX_OP_MUTEX_WAKE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	__umtx_op_err
LBB0_17:
	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_NONCONSISTENT,4,2       ## @UMUTEX_NONCONSISTENT
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ## @UMUTEX_PRIO_PROTECT
	.comm	_UMUTEX_PRIO_INHERIT,4,2        ## @UMUTEX_PRIO_INHERIT
	.comm	_UMUTEX_RB_NOTRECOV,4,2         ## @UMUTEX_RB_NOTRECOV
	.comm	_UMUTEX_UNOWNED,4,2             ## @UMUTEX_UNOWNED
	.comm	_UMUTEX_CONTESTED,4,2           ## @UMUTEX_CONTESTED
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_UMTX_OP_MUTEX_WAKE2,4,2        ## @UMTX_OP_MUTEX_WAKE2
	.no_dead_strip	__thr_umutex_unlock2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _thr_umutex_unlock2
__thr_umutex_unlock2:                   ; @_thr_umutex_unlock2
	.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, x1
	mov	x19, x0
	mov	x23, x0
	ldr	w20, [x23], #4
Lloh0:
	adrp	x8, _UMUTEX_NONCONSISTENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UMUTEX_NONCONSISTENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w25, w8, w20
Lloh3:
	adrp	x8, _UMUTEX_PRIO_PROTECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UMUTEX_PRIO_PROTECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _UMUTEX_PRIO_INHERIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UMUTEX_PRIO_INHERIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _UMUTEX_RB_NOTRECOV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UMUTEX_RB_NOTRECOV@GOTPAGEOFF]
Lloh11:
	adrp	x9, _UMUTEX_UNOWNED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UMUTEX_UNOWNED@GOTPAGEOFF]
	cmp	w25, #0
	csel	x8, x8, x9, ne
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_atomic_cmpset_rel_32
	cbz	x0, LBB0_10
LBB0_2:
	mov	w0, #0
	b	LBB0_12
LBB0_3:
	mov	x21, x2
Lloh13:
	adrp	x26, _UMUTEX_CONTESTED@GOTPAGE
Lloh14:
	ldr	x26, [x26, _UMUTEX_CONTESTED@GOTPAGEOFF]
Lloh15:
	adrp	x27, _UMUTEX_RB_NOTRECOV@GOTPAGE
Lloh16:
	ldr	x27, [x27, _UMUTEX_RB_NOTRECOV@GOTPAGEOFF]
Lloh17:
	adrp	x28, _UMUTEX_UNOWNED@GOTPAGE
Lloh18:
	ldr	x28, [x28, _UMUTEX_UNOWNED@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x23]
	ldr	w8, [x26]
	bic	w8, w24, w8
	cmp	w8, w22
	cset	w0, ne
	bl	___predict_false
	cbnz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, #0
	csel	x8, x27, x28, ne
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x24
	bl	_atomic_cmpset_rel_32
	cmp	x0, #0
	cset	w0, eq
	bl	___predict_false
	cbnz	x0, LBB0_4
; %bb.6:
	ldr	w8, [x26]
	tst	w8, w24
	b.eq	LBB0_2
; %bb.7:
	cbz	x21, LBB0_13
; %bb.8:
	cbnz	w25, LBB0_13
; %bb.9:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	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	___thr_umutex_unlock
LBB0_11:
Lloh19:
	adrp	x8, _EPERM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
LBB0_12:
	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
LBB0_13:
Lloh22:
	adrp	x8, _UMTX_OP_MUTEX_WAKE2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _UMTX_OP_MUTEX_WAKE2@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	bl	__umtx_op_err
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_UMUTEX_NONCONSISTENT,4,2       ; @UMUTEX_NONCONSISTENT
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ; @UMUTEX_PRIO_PROTECT
	.comm	_UMUTEX_PRIO_INHERIT,4,2        ; @UMUTEX_PRIO_INHERIT
	.comm	_UMUTEX_RB_NOTRECOV,4,2         ; @UMUTEX_RB_NOTRECOV
	.comm	_UMUTEX_UNOWNED,4,2             ; @UMUTEX_UNOWNED
	.comm	_UMUTEX_CONTESTED,4,2           ; @UMUTEX_CONTESTED
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_UMTX_OP_MUTEX_WAKE2,4,2        ; @UMTX_OP_MUTEX_WAKE2
	.no_dead_strip	__thr_umutex_unlock2
.subsections_via_symbols
