	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mirror_presuspend
_mirror_presuspend:                     ## @mirror_presuspend
	.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), %r15
	movl	4(%r15), %edi
	callq	_dm_rh_dirty_log
	movq	%rax, %r14
	leaq	16(%r15), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	leaq	12(%r15), %rdi
	movl	12(%r15), %eax
	movl	%eax, -32(%rbp)
	callq	_bio_list_init
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	leaq	-32(%rbp), %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-32(%rbp), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_hold_bio
	movq	%rbx, %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	movl	4(%r15), %edi
	callq	_dm_rh_stop_recovery
	movq	__kmirrord_recovery_stopped@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r15), %edi
	callq	_dm_rh_recovery_in_flight
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	%ebx, %edi
	callq	_wait_event
	movq	(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_DMWARN
LBB0_6:
	movl	(%r15), %edi
	callq	_flush_workqueue
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__kmirrord_recovery_stopped,4,2 ## @_kmirrord_recovery_stopped
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"log presuspend failed"

	.no_dead_strip	_mirror_presuspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mirror_presuspend
_mirror_presuspend:                     ; @mirror_presuspend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x19, [x0]
	ldr	w0, [x19, #4]
	bl	_dm_rh_dirty_log
	mov	x20, x0
	add	x0, x19, #16
	mov	w1, #1
	bl	_atomic_set
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irq
	mov	x0, x19
	ldr	w8, [x0, #12]!
	str	w8, [sp, #8]
	bl	_bio_list_init
	mov	x0, x21
	bl	_spin_unlock_irq
	add	x0, sp, #8
	bl	_bio_list_pop
	cbz	x0, LBB0_3
; %bb.1:
	mov	x1, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_hold_bio
	add	x0, sp, #8
	bl	_bio_list_pop
	mov	x1, x0
	cbnz	x0, LBB0_2
LBB0_3:
	ldr	w0, [x19, #4]
	bl	_dm_rh_stop_recovery
Lloh0:
	adrp	x8, __kmirrord_recovery_stopped@GOTPAGE
Lloh1:
	ldr	x8, [x8, __kmirrord_recovery_stopped@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x19, #4]
	bl	_dm_rh_recovery_in_flight
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x21
	bl	_wait_event
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMWARN
LBB0_6:
	ldr	w0, [x19]
	bl	_flush_workqueue
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__kmirrord_recovery_stopped,4,2 ; @_kmirrord_recovery_stopped
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"log presuspend failed"

	.no_dead_strip	_mirror_presuspend
.subsections_via_symbols
