	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _thr_umutex_trylock
__thr_umutex_trylock:                   ## @_thr_umutex_trylock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	_UMUTEX_UNOWNED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_atomic_cmpset_acq_32
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.1:
	movq	(%r15), %rax
	movq	_UMUTEX_RB_OWNERDEAD@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%r12), %rsi
	movq	_UMUTEX_CONTESTED@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_atomic_cmpset_acq_32
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EOWNERDEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	(%r15), %rax
	movq	_UMUTEX_RB_NOTRECOV@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ENOTRECOVERABLE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_UMUTEX_PRIO_PROTECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.10:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___thr_umutex_trylock           ## TAILCALL
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_UMUTEX_UNOWNED,8,3             ## @UMUTEX_UNOWNED
	.comm	_UMUTEX_RB_OWNERDEAD,8,3        ## @UMUTEX_RB_OWNERDEAD
	.comm	_UMUTEX_CONTESTED,8,3           ## @UMUTEX_CONTESTED
	.comm	_EOWNERDEAD,4,2                 ## @EOWNERDEAD
	.comm	_UMUTEX_RB_NOTRECOV,8,3         ## @UMUTEX_RB_NOTRECOV
	.comm	_ENOTRECOVERABLE,4,2            ## @ENOTRECOVERABLE
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ## @UMUTEX_PRIO_PROTECT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	__thr_umutex_trylock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _thr_umutex_trylock
__thr_umutex_trylock:                   ; @_thr_umutex_trylock
	.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	x21, x1
	mov	x19, x0
	add	x20, x0, #8
Lloh0:
	adrp	x8, _UMUTEX_UNOWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UMUTEX_UNOWNED@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_atomic_cmpset_acq_32
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	ldr	x8, [x20]
Lloh3:
	adrp	x22, _UMUTEX_RB_OWNERDEAD@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UMUTEX_RB_OWNERDEAD@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x1, [x22]
Lloh5:
	adrp	x8, _UMUTEX_CONTESTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UMUTEX_CONTESTED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	orr	x2, x8, x21
	mov	x0, x20
	bl	_atomic_cmpset_acq_32
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _EOWNERDEAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOWNERDEAD@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _UMUTEX_RB_NOTRECOV@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UMUTEX_RB_NOTRECOV@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_9
; %bb.6:
Lloh13:
	adrp	x8, _ENOTRECOVERABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOTRECOVERABLE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	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
LBB0_9:
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _UMUTEX_PRIO_PROTECT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _UMUTEX_PRIO_PROTECT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x19
	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
	b	___thr_umutex_trylock
LBB0_11:
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_UMUTEX_UNOWNED,8,3             ; @UMUTEX_UNOWNED
	.comm	_UMUTEX_RB_OWNERDEAD,8,3        ; @UMUTEX_RB_OWNERDEAD
	.comm	_UMUTEX_CONTESTED,8,3           ; @UMUTEX_CONTESTED
	.comm	_EOWNERDEAD,4,2                 ; @EOWNERDEAD
	.comm	_UMUTEX_RB_NOTRECOV,8,3         ; @UMUTEX_RB_NOTRECOV
	.comm	_ENOTRECOVERABLE,4,2            ; @ENOTRECOVERABLE
	.comm	_UMUTEX_PRIO_PROTECT,4,2        ; @UMUTEX_PRIO_PROTECT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	__thr_umutex_trylock
.subsections_via_symbols
