	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___Tthr_mutex_trylock           ## -- Begin function __Tthr_mutex_trylock
	.p2align	4, 0x90
___Tthr_mutex_trylock:                  ## @__Tthr_mutex_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	%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
	leaq	-48(%rbp), %rsi
	callq	_check_and_init_mutex
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	__get_curthread
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TID
	movq	%rax, %r12
	movq	-48(%rbp), %rsi
	movq	_PMUTEX_FLAG_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_THR_CRITICAL_ENTER
	movq	-48(%rbp), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	__mutex_enter_robust
	movl	%eax, %r15d
	movq	-48(%rbp), %rdi
	addq	$4, %rdi
	movq	%r12, %rsi
	callq	__thr_umutex_trylock
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	___predict_true
	movq	_EOWNERDEAD@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %rsi
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	cmpl	(%r13), %ebx
	je	LBB0_5
## %bb.7:
	movq	%rsi, %rdi
	callq	_PMUTEX_OWNER_ID
	cmpq	%r12, %rax
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi
	callq	_mutex_self_trylock
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_enqueue_mutex
	cmpl	(%r13), %ebx
	jne	LBB0_9
## %bb.6:
	movq	_UMUTEX_NONCONSISTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx
	orl	%eax, 4(%rcx)
LBB0_9:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	__mutex_leave_robust
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.12:
	cmpl	(%r13), %ebx
	je	LBB0_15
## %bb.13:
	movq	-48(%rbp), %rax
	movq	_PMUTEX_FLAG_PRIVATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_THR_CRITICAL_LEAVE
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PMUTEX_FLAG_PRIVATE,4,2        ## @PMUTEX_FLAG_PRIVATE
	.comm	_EOWNERDEAD,4,2                 ## @EOWNERDEAD
	.comm	_UMUTEX_NONCONSISTENT,4,2       ## @UMUTEX_NONCONSISTENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___Tthr_mutex_trylock           ; -- Begin function __Tthr_mutex_trylock
	.p2align	2
___Tthr_mutex_trylock:                  ; @__Tthr_mutex_trylock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	add	x1, sp, #8
	bl	_check_and_init_mutex
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_2:
	bl	__get_curthread
	mov	x19, x0
	bl	_TID
	mov	x22, x0
	ldr	x1, [sp, #8]
	ldr	w8, [x1]
Lloh0:
	adrp	x23, _PMUTEX_FLAG_PRIVATE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PMUTEX_FLAG_PRIVATE@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_THR_CRITICAL_ENTER
	ldr	x1, [sp, #8]
LBB0_4:
	mov	x0, x19
	bl	__mutex_enter_robust
	mov	x21, x0
	ldr	x8, [sp, #8]
	add	x0, x8, #4
	mov	x1, x22
	bl	__thr_umutex_trylock
	mov	x20, x0
	cmp	w0, #0
	cset	w0, eq
	bl	___predict_true
Lloh2:
	adrp	x24, _EOWNERDEAD@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EOWNERDEAD@GOTPAGEOFF]
	ldr	w8, [x24]
	ldr	x1, [sp, #8]
	cmp	x0, #0
	ccmp	w20, w8, #4, eq
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x2, x20
	bl	_enqueue_mutex
	ldr	w8, [x24]
	cmp	w20, w8
	b.ne	LBB0_9
; %bb.6:
Lloh4:
	adrp	x8, _UMUTEX_NONCONSISTENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UMUTEX_NONCONSISTENT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	b	LBB0_9
LBB0_7:
	mov	x0, x1
	bl	_PMUTEX_OWNER_ID
	cmp	x0, x22
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [sp, #8]
	bl	_mutex_self_trylock
	mov	x20, x0
LBB0_9:
	cbz	w21, LBB0_11
; %bb.10:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	__mutex_leave_robust
LBB0_11:
	cbz	w20, LBB0_1
; %bb.12:
	ldr	w8, [x24]
	cmp	w20, w8
	b.eq	LBB0_1
; %bb.13:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.14:
	mov	x0, x19
	bl	_THR_CRITICAL_LEAVE
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PMUTEX_FLAG_PRIVATE,4,2        ; @PMUTEX_FLAG_PRIVATE
	.comm	_EOWNERDEAD,4,2                 ; @EOWNERDEAD
	.comm	_UMUTEX_NONCONSISTENT,4,2       ; @UMUTEX_NONCONSISTENT
.subsections_via_symbols
