	.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	%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
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	8(%rbx), %r15d
	movl	16(%rbx), %r12d
	xorl	%r13d, %r13d
	cmpl	$0, 20(%rbx)
	sete	%r13b
	movq	%rbx, %rdi
	callq	_md_raid1_unplug_device
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_wait_event_lock_irq
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movl	16(%rbx), %r15d
	cmpl	$0, 12(%rbx)
	sete	%cl
	movq	_RESYNC_DEPTH@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setl	%al
	andb	%cl, %al
	movzbl	%al, %r12d
	movl	8(%rbx), %r13d
	movq	%rbx, %rdi
	callq	_md_raid1_unplug_device
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_wait_event_lock_irq
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RESYNC_DEPTH,8,3               ## @RESYNC_DEPTH
	.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
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irq
	ldp	w21, w8, [x19, #16]
	cmp	w8, #0
	cset	w22, eq
	ldr	w23, [x19, #8]
	mov	x0, x19
	bl	_md_raid1_unplug_device
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_wait_event_lock_irq
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldp	w9, w21, [x19, #12]
	ldr	w22, [x19, #8]
	cmp	w9, #0
Lloh0:
	adrp	x9, _RESYNC_DEPTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RESYNC_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ccmp	x8, x9, #0, eq
	cset	w23, lt
	mov	x0, x19
	bl	_md_raid1_unplug_device
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_wait_event_lock_irq
	mov	x0, x20
	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
	b	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RESYNC_DEPTH,8,3               ; @RESYNC_DEPTH
	.no_dead_strip	_raise_barrier
.subsections_via_symbols
