	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_barrier
_wait_barrier:                          ## @wait_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_spin_lock_irq
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.1:
	incl	16(%rbx)
	movl	32(%rbx), %r14d
	xorl	%r15d, %r15d
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.2:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	cmpq	$0, (%rax)
	setne	%r15b
LBB0_4:
	movl	(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_md_raid1_unplug_device
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_wait_event_lock_irq
	decl	16(%rbx)
LBB0_5:
	incq	8(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.no_dead_strip	_wait_barrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_barrier
_wait_barrier:                          ; @wait_barrier
	.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, x0
	bl	_spin_lock_irq
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	w20, [x19, #32]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w21, ne
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	w22, [x19]
	mov	x0, x19
	bl	_md_raid1_unplug_device
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_wait_event_lock_irq
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	str	w8, [x19, #16]
LBB0_6:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	mov	x0, x19
	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	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.no_dead_strip	_wait_barrier
.subsections_via_symbols
