	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _thr_rwlock_tryrdlock
__thr_rwlock_tryrdlock:                 ## @_thr_rwlock_tryrdlock
	.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	%rdi, %r14
	movq	_URWLOCK_PREFER_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %eax
	jne	LBB0_2
## %bb.1:
	testl	%eax, (%r14)
	je	LBB0_3
LBB0_2:
	movq	_URWLOCK_WRITE_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	addq	$4, %r14
	movq	_URWLOCK_MAX_READERS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ebx
	testl	%r15d, %ebx
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	callq	_URWLOCK_READER_COUNT
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%rbx), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_atomic_cmpset_acq_32
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_URWLOCK_WRITE_OWNER@GOTPCREL(%rip), %rax
	movq	_URWLOCK_WRITE_WAITERS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_URWLOCK_PREFER_READER,4,2      ## @URWLOCK_PREFER_READER
	.comm	_URWLOCK_WRITE_OWNER,4,2        ## @URWLOCK_WRITE_OWNER
	.comm	_URWLOCK_WRITE_WAITERS,4,2      ## @URWLOCK_WRITE_WAITERS
	.comm	_URWLOCK_MAX_READERS,8,3        ## @URWLOCK_MAX_READERS
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	__thr_rwlock_tryrdlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _thr_rwlock_tryrdlock
__thr_rwlock_tryrdlock:                 ; @_thr_rwlock_tryrdlock
	.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
Lloh0:
	adrp	x8, _URWLOCK_PREFER_READER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _URWLOCK_PREFER_READER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x0]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_2:
Lloh3:
	adrp	x8, _URWLOCK_WRITE_OWNER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _URWLOCK_WRITE_OWNER@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
LBB0_3:
	add	x19, x0, #4
Lloh6:
	adrp	x22, _URWLOCK_MAX_READERS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _URWLOCK_MAX_READERS@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x19]
	tst	w20, w21
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_URWLOCK_READER_COUNT
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	___predict_false
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w2, w20, #1
	mov	x0, x19
	mov	x1, x20
	bl	_atomic_cmpset_acq_32
	cbz	x0, LBB0_4
; %bb.7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
	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_12:
Lloh12:
	adrp	x8, _URWLOCK_WRITE_OWNER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _URWLOCK_WRITE_OWNER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _URWLOCK_WRITE_WAITERS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _URWLOCK_WRITE_WAITERS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w21, w9, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_URWLOCK_PREFER_READER,4,2      ; @URWLOCK_PREFER_READER
	.comm	_URWLOCK_WRITE_OWNER,4,2        ; @URWLOCK_WRITE_OWNER
	.comm	_URWLOCK_WRITE_WAITERS,4,2      ; @URWLOCK_WRITE_WAITERS
	.comm	_URWLOCK_MAX_READERS,8,3        ; @URWLOCK_MAX_READERS
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	__thr_rwlock_tryrdlock
.subsections_via_symbols
