	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_spin_lock_irq
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.1:
	incl	12(%rbx)
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_raid10_log
	movl	8(%rbx), %r14d
	movl	$1, %esi
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.2:
	leaq	4(%rbx), %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_current@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	callq	_bio_list_empty
	movl	$1, %esi
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_bio_list_empty
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
LBB0_6:
	movl	(%rbx), %edx
	movl	%r14d, %edi
	callq	_wait_event_lock_irq
	decl	12(%rbx)
	jne	LBB0_8
## %bb.7:
	leaq	8(%rbx), %rdi
	callq	_wake_up
LBB0_8:
	leaq	4(%rbx), %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wait barrier"

	.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, #16]
	cbz	x8, LBB0_10
; %bb.1:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_raid10_log
	mov	x20, x19
	ldr	w21, [x20, #8]!
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.2:
	add	x0, x19, #4
	bl	_atomic_read
	cbz	x0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x22, _current@GOTPAGE
Lloh3:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x8]
	cbz	x0, LBB0_7
; %bb.4:
	bl	_bio_list_empty
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_bio_list_empty
	cmp	w0, #0
	cset	w1, eq
	b	LBB0_8
LBB0_6:
	mov	w1, #1
	b	LBB0_8
LBB0_7:
	mov	w1, #0
LBB0_8:
	ldr	w2, [x19]
	mov	x0, x21
	bl	_wait_event_lock_irq
	ldr	w8, [x19, #12]
	subs	w8, w8, #1
	str	w8, [x19, #12]
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_wake_up
LBB0_10:
	add	x0, x19, #4
	bl	_atomic_inc
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wait barrier"

	.comm	_current,8,3                    ; @current
	.no_dead_strip	_wait_barrier
.subsections_via_symbols
