	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _thr_umutex_trylock2
__thr_umutex_trylock2:                  ## @_thr_umutex_trylock2
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	8(%rdi), %r12
	movq	_UMUTEX_UNOWNED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_atomic_cmpset_acq_32
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.1:
	movq	(%r12), %rax
	movq	_UMUTEX_CONTESTED@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.2:
	movq	_UMUTEX_PRIO_PROTECT@GOTPCREL(%rip), %rax
	movq	_UMUTEX_PRIO_INHERIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	andl	(%rbx), %ecx
	sete	%dil
	callq	___predict_true
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rsi
	movq	%rsi, %rdx
	orq	%r14, %rdx
	movq	%r12, %rdi
	callq	_atomic_cmpset_acq_32
	testq	%rax, %rax
	jne	LBB0_11
LBB0_4:
	movq	(%r12), %rax
	movq	_UMUTEX_RB_OWNERDEAD@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rbx), %rsi
	orq	(%r13), %r14
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_atomic_cmpset_acq_32
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EOWNERDEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	(%r12), %rax
	movq	_UMUTEX_RB_NOTRECOV@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ENOTRECOVERABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UMUTEX_UNOWNED,8,3             ## @UMUTEX_UNOWNED
	.comm	_UMUTEX_CONTESTED,8,3           ## @UMUTEX_CONTESTED
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ## @UMUTEX_PRIO_PROTECT
	.comm	_UMUTEX_PRIO_INHERIT,4,2        ## @UMUTEX_PRIO_INHERIT
	.comm	_UMUTEX_RB_OWNERDEAD,8,3        ## @UMUTEX_RB_OWNERDEAD
	.comm	_EOWNERDEAD,4,2                 ## @EOWNERDEAD
	.comm	_UMUTEX_RB_NOTRECOV,8,3         ## @UMUTEX_RB_NOTRECOV
	.comm	_ENOTRECOVERABLE,4,2            ## @ENOTRECOVERABLE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	__thr_umutex_trylock2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _thr_umutex_trylock2
__thr_umutex_trylock2:                  ; @_thr_umutex_trylock2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	add	x19, x0, #8
Lloh0:
	adrp	x8, _UMUTEX_UNOWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UMUTEX_UNOWNED@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_atomic_cmpset_acq_32
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_12
LBB0_2:
	ldr	x8, [x19]
Lloh3:
	adrp	x22, _UMUTEX_CONTESTED@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UMUTEX_CONTESTED@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _UMUTEX_PRIO_PROTECT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UMUTEX_PRIO_PROTECT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _UMUTEX_PRIO_INHERIT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _UMUTEX_PRIO_INHERIT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	cset	w0, eq
	bl	___predict_true
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x1, [x22]
	orr	x2, x1, x20
	mov	x0, x19
	bl	_atomic_cmpset_acq_32
	cbnz	x0, LBB0_1
LBB0_5:
	ldr	x8, [x19]
Lloh11:
	adrp	x21, _UMUTEX_RB_OWNERDEAD@GOTPAGE
Lloh12:
	ldr	x21, [x21, _UMUTEX_RB_OWNERDEAD@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x1, [x21]
	ldr	x8, [x22]
	orr	x2, x8, x20
	mov	x0, x19
	bl	_atomic_cmpset_acq_32
	cbz	x0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _EOWNERDEAD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOWNERDEAD@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _UMUTEX_RB_NOTRECOV@GOTPAGE
Lloh16:
	ldr	x9, [x9, _UMUTEX_RB_NOTRECOV@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _ENOTRECOVERABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOTRECOVERABLE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x8, _EBUSY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_UMUTEX_UNOWNED,8,3             ; @UMUTEX_UNOWNED
	.comm	_UMUTEX_CONTESTED,8,3           ; @UMUTEX_CONTESTED
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ; @UMUTEX_PRIO_PROTECT
	.comm	_UMUTEX_PRIO_INHERIT,4,2        ; @UMUTEX_PRIO_INHERIT
	.comm	_UMUTEX_RB_OWNERDEAD,8,3        ; @UMUTEX_RB_OWNERDEAD
	.comm	_EOWNERDEAD,4,2                 ; @EOWNERDEAD
	.comm	_UMUTEX_RB_NOTRECOV,8,3         ; @UMUTEX_RB_NOTRECOV
	.comm	_ENOTRECOVERABLE,4,2            ; @ENOTRECOVERABLE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	__thr_umutex_trylock2
.subsections_via_symbols
