	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raise_barrier
_raise_barrier:                         ## @raise_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_sector_to_idx
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movl	8(%rbx), %r15d
	movslq	%r14d, %r14
	shlq	$2, %r14
	movq	48(%rbx), %rdi
	addq	%r14, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	movl	(%rbx), %edx
	movl	%r15d, %edi
	callq	_wait_event_lock_irq
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	callq	_atomic_inc
	xorl	%eax, %eax
	callq	_smp_mb__after_atomic
	movl	8(%rbx), %r15d
	cmpl	$0, 40(%rbx)
	jne	LBB0_3
## %bb.1:
	movq	32(%rbx), %rdi
	addq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	16(%rbx), %rdi
	addq	%r14, %rdi
	callq	_atomic_read
	movq	_RESYNC_DEPTH@GOTPCREL(%rip), %rcx
	movl	$1, %esi
	cmpq	(%rcx), %rax
	jl	LBB0_4
LBB0_3:
	movq	_MD_RECOVERY_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rsi
	callq	_test_bit
	xorl	%esi, %esi
	testq	%rax, %rax
	setne	%sil
LBB0_4:
	movl	(%rbx), %edx
	movl	%r15d, %edi
	callq	_wait_event_lock_irq
	movq	_MD_RECOVERY_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	8(%rbx), %r15
	addq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_atomic_dec
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_wake_up
	movq	_EINTR@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	leaq	4(%rbx), %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESYNC_DEPTH,8,3               ## @RESYNC_DEPTH
	.comm	_MD_RECOVERY_INTR,4,2           ## @MD_RECOVERY_INTR
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_raise_barrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raise_barrier
_raise_barrier:                         ; @raise_barrier
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_sector_to_idx
	mov	x21, x0
	mov	x0, x19
	bl	_spin_lock_irq
	mov	x20, x19
	ldr	w22, [x20, #8]!
	ldr	x8, [x19, #48]
	sxtw	x23, w21
	sbfiz	x21, x21, #2, #32
	add	x0, x8, x21
	bl	_atomic_read
	cmp	x0, #0
	cset	w1, eq
	ldr	w2, [x19]
	mov	x0, x22
	bl	_wait_event_lock_irq
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	bl	_atomic_inc
	bl	_smp_mb__after_atomic
	ldr	w21, [x20]
	ldr	w8, [x19, #40]
Lloh0:
	adrp	x22, _MD_RECOVERY_INTR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MD_RECOVERY_INTR@GOTPAGEOFF]
	cbnz	w8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #32]
	add	x0, x8, x23, lsl #2
	bl	_atomic_read
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	add	x0, x8, x23, lsl #2
	bl	_atomic_read
Lloh2:
	adrp	x8, _RESYNC_DEPTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RESYNC_DEPTH@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:
	mov	w1, #1
	b	LBB0_5
LBB0_4:
	ldr	w0, [x22]
	ldr	x1, [x19, #24]
	bl	_test_bit
	cmp	x0, #0
	cset	w1, ne
LBB0_5:
	ldr	w2, [x19]
	mov	x0, x21
	bl	_wait_event_lock_irq
	ldr	w0, [x22]
	ldr	x1, [x19, #24]
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	add	x0, x8, x23, lsl #2
	bl	_atomic_dec
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_wake_up
Lloh5:
	adrp	x8, _EINTR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	add	x0, x19, #4
	bl	_atomic_inc
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RESYNC_DEPTH,8,3               ; @RESYNC_DEPTH
	.comm	_MD_RECOVERY_INTR,4,2           ; @MD_RECOVERY_INTR
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_raise_barrier
.subsections_via_symbols
