	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_rwlock_lock                ## -- Begin function isc_rwlock_lock
	.p2align	4, 0x90
_isc_rwlock_lock:                       ## @isc_rwlock_lock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_VALID_RWLOCK
	movl	%eax, %edi
	callq	_REQUIRE
	movq	_isc_rwlocktype_read@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	8(%rbx), %eax
	cmpq	%r14, (%rbx)
	jne	LBB0_5
## %bb.2:
	incl	%eax
	jmp	LBB0_9
LBB0_3:
	cmpl	$0, 8(%rbx)
	jne	LBB0_6
## %bb.7:
	movq	_isc_rwlocktype_write@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	$1, 8(%rbx)
	jmp	LBB0_10
LBB0_5:
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	movq	_ISC_R_LOCKBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movl	$1, %eax
LBB0_9:
	movq	%r14, (%rbx)
	movl	%eax, 8(%rbx)
LBB0_10:
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_isc_rwlocktype_read,8,3        ## @isc_rwlocktype_read
	.comm	_ISC_R_LOCKBUSY,4,2             ## @ISC_R_LOCKBUSY
	.comm	_isc_rwlocktype_write,8,3       ## @isc_rwlocktype_write
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_rwlock_lock                ; -- Begin function isc_rwlock_lock
	.p2align	2
_isc_rwlock_lock:                       ; @isc_rwlock_lock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_VALID_RWLOCK
	bl	_REQUIRE
Lloh0:
	adrp	x8, _isc_rwlocktype_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _isc_rwlocktype_read@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x19]
	ldr	w8, [x19, #8]
	cmp	x9, x20
	b.ne	LBB0_5
; %bb.2:
	add	w8, w8, #1
	b	LBB0_8
LBB0_3:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _isc_rwlocktype_write@GOTPAGE
Lloh4:
	ldr	x8, [x8, _isc_rwlocktype_write@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w8, #1
	b	LBB0_9
LBB0_5:
	cbz	w8, LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _ISC_R_LOCKBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISC_R_LOCKBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	w8, #1
LBB0_8:
	str	x20, [x19]
LBB0_9:
	str	w8, [x19, #8]
Lloh8:
	adrp	x8, _ISC_R_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISC_R_SUCCESS@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_isc_rwlocktype_read,8,3        ; @isc_rwlocktype_read
	.comm	_ISC_R_LOCKBUSY,4,2             ; @ISC_R_LOCKBUSY
	.comm	_isc_rwlocktype_write,8,3       ; @isc_rwlocktype_write
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
.subsections_via_symbols
