	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SimpleLruWaitIO
_SimpleLruWaitIO:                       ## @SimpleLruWaitIO
	.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
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movq	24(%rbx), %rdi
	callq	_LWLockRelease
	movslq	%r14d, %r15
	leaq	(,%r15,4), %r14
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	movq	_LW_SHARED@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_LWLockAcquire
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	callq	_LWLockRelease
	movq	24(%rbx), %rdi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	_SLRU_PAGE_READ_IN_PROGRESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	movq	_SLRU_PAGE_WRITE_IN_PROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_2:
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	movl	(%r12), %esi
	callq	_LWLockConditionalAcquire
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_SLRU_PAGE_EMPTY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%r15,8)
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SLRU_PAGE_VALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax,%r15,8)
	movq	8(%rbx), %rax
	movl	$1, (%rax,%r15,4)
LBB0_6:
	addq	16(%rbx), %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LW_SHARED,4,2                  ## @LW_SHARED
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_SLRU_PAGE_READ_IN_PROGRESS,8,3 ## @SLRU_PAGE_READ_IN_PROGRESS
	.comm	_SLRU_PAGE_WRITE_IN_PROGRESS,8,3 ## @SLRU_PAGE_WRITE_IN_PROGRESS
	.comm	_SLRU_PAGE_EMPTY,8,3            ## @SLRU_PAGE_EMPTY
	.comm	_SLRU_PAGE_VALID,8,3            ## @SLRU_PAGE_VALID
	.no_dead_strip	_SimpleLruWaitIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SimpleLruWaitIO
_SimpleLruWaitIO:                       ; @SimpleLruWaitIO
	.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	x19, x1
	ldr	x20, [x0]
	ldr	x0, [x20, #24]
	bl	_LWLockRelease
	ldr	x8, [x20, #16]
	sbfiz	x22, x19, #2, #32
	add	x0, x8, x22
Lloh0:
	adrp	x21, _LW_SHARED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LW_SHARED@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_LWLockAcquire
	ldr	x8, [x20, #16]
	add	x0, x8, x22
	bl	_LWLockRelease
	ldr	x0, [x20, #24]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x8, [x20]
	ldr	x8, [x8, w19, sxtw #3]
Lloh5:
	adrp	x22, _SLRU_PAGE_READ_IN_PROGRESS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SLRU_PAGE_READ_IN_PROGRESS@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh7:
	adrp	x10, _SLRU_PAGE_WRITE_IN_PROGRESS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SLRU_PAGE_WRITE_IN_PROGRESS@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.1:
	sxtw	x19, w19
	ldr	x8, [x20, #16]
	add	x0, x8, x19, lsl #2
	ldr	w1, [x21]
	bl	_LWLockConditionalAcquire
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x9, [x8, x19, lsl #3]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
Lloh10:
	adrp	x9, _SLRU_PAGE_EMPTY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SLRU_PAGE_EMPTY@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	x9, [x8, x19, lsl #3]
	b	LBB0_6
LBB0_4:
	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_5:
Lloh13:
	adrp	x9, _SLRU_PAGE_VALID@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SLRU_PAGE_VALID@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	x9, [x8, x19, lsl #3]
	ldr	x8, [x20, #8]
	mov	w9, #1
	str	w9, [x8, x19, lsl #2]
LBB0_6:
	ldr	x8, [x20, #16]
	add	x0, x8, x19, lsl #2
	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	_LWLockRelease
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LW_SHARED,4,2                  ; @LW_SHARED
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_SLRU_PAGE_READ_IN_PROGRESS,8,3 ; @SLRU_PAGE_READ_IN_PROGRESS
	.comm	_SLRU_PAGE_WRITE_IN_PROGRESS,8,3 ; @SLRU_PAGE_WRITE_IN_PROGRESS
	.comm	_SLRU_PAGE_EMPTY,8,3            ; @SLRU_PAGE_EMPTY
	.comm	_SLRU_PAGE_VALID,8,3            ; @SLRU_PAGE_VALID
	.no_dead_strip	_SimpleLruWaitIO
.subsections_via_symbols
