	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_read_barrier
_wait_read_barrier:                     ## @wait_read_barrier
	.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	%rdi, %rbx
	movl	%esi, %edi
	callq	_sector_to_idx
	movslq	%eax, %r14
	shlq	$2, %r14
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	callq	_atomic_inc
	movl	24(%rbx), %edi
	callq	_READ_ONCE
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	8(%rbx), %rdi
	addq	%r14, %rdi
	callq	_atomic_inc
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	callq	_atomic_dec
	leaq	28(%rbx), %rdi
	callq	_wake_up
	movl	(%rbx), %edx
	movl	28(%rbx), %edi
	xorl	%esi, %esi
	cmpl	$0, 24(%rbx)
	sete	%sil
	callq	_wait_event_lock_irq
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	callq	_atomic_inc
	addq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_atomic_dec
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wait_read_barrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_read_barrier
_wait_read_barrier:                     ; @wait_read_barrier
	.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	x19, x0
	mov	x0, x1
	bl	_sector_to_idx
	mov	x20, x0
	ldr	x8, [x19, #16]
	add	x0, x8, w0, sxtw #2
	bl	_atomic_inc
	ldr	w0, [x19, #24]
	bl	_READ_ONCE
	cbz	w0, LBB0_2
; %bb.1:
	sxtw	x20, w20
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	lsl	x20, x20, #2
	add	x0, x8, x20
	bl	_atomic_inc
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_atomic_dec
	add	x0, x19, #28
	bl	_wake_up
	ldp	w8, w0, [x19, #24]
	cmp	w8, #0
	cset	w1, eq
	ldr	w2, [x19]
	bl	_wait_event_lock_irq
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_atomic_inc
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_atomic_dec
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irq
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wait_read_barrier
.subsections_via_symbols
