	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raid5_quiesce
_raid5_quiesce:                         ## @raid5_quiesce
	.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
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_lock_all_device_hash_locks_irq
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.1:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_r5c_flush_cache
	movl	$2, (%rbx)
	movl	8(%rbx), %r15d
	leaq	16(%rbx), %rdi
	callq	_atomic_read
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	xorl	%r12d, %r12d
	testq	%rax, %rax
	sete	%r12b
LBB0_3:
	movq	%rbx, %rdi
	callq	_unlock_all_device_hash_locks_irq
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_lock_all_device_hash_locks_irq
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_wait_event_cmd
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_unlock_all_device_hash_locks_irq
	leaq	4(%rbx), %rdi
	callq	_wake_up
	jmp	LBB0_5
LBB0_4:
	movl	$0, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_wake_up
	leaq	4(%rbx), %rdi
	callq	_wake_up
	movq	%rbx, %rdi
	callq	_unlock_all_device_hash_locks_irq
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log_quiesce                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_raid5_quiesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raid5_quiesce
_raid5_quiesce:                         ; @raid5_quiesce
	.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, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_lock_all_device_hash_locks_irq
	cbz	w19, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_r5c_flush_cache
	mov	w8, #2
	str	w8, [x20]
	ldr	w21, [x20, #8]
	add	x0, x20, #16
	bl	_atomic_read
	cbz	x0, LBB0_4
; %bb.2:
	mov	w22, #0
	b	LBB0_5
LBB0_3:
	mov	x21, x20
	str	wzr, [x21], #4
	add	x0, x20, #8
	bl	_wake_up
	mov	x0, x21
	bl	_wake_up
	mov	x0, x20
	bl	_unlock_all_device_hash_locks_irq
	b	LBB0_6
LBB0_4:
	add	x0, x20, #12
	bl	_atomic_read
	cmp	x0, #0
	cset	w22, eq
LBB0_5:
	mov	x0, x20
	bl	_unlock_all_device_hash_locks_irq
	mov	x23, x0
	mov	x0, x20
	bl	_lock_all_device_hash_locks_irq
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_wait_event_cmd
	mov	w8, #1
	mov	x21, x20
	str	w8, [x21], #4
	mov	x0, x20
	bl	_unlock_all_device_hash_locks_irq
	mov	x0, x21
	bl	_wake_up
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	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	_log_quiesce
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_raid5_quiesce
.subsections_via_symbols
