	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mirror_flush
_mirror_flush:                          ## @mirror_flush
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	movq	_MAX_NR_MIRRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	_REQ_PREFLUSH@GOTPCREL(%rip), %rax
	movq	_REQ_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -96(%rbp)
	movl	16(%r12), %eax
	movl	%eax, -92(%rbp)
	movq	$0, -88(%rbp)
	movq	_DM_IO_KMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movl	(%r12), %esi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	8(%r12), %rax
	cmpl	$1, %esi
	jne	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_3:
	movl	%esi, %r8d
	andl	$-2, %r8d
	movq	%rdx, %rbx
	addq	$40, %rbx
	xorl	%ecx, %ecx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rdi
	movl	(%rdi), %edi
	movl	%edi, -24(%rbx)
	movaps	%xmm0, -40(%rbx)
	movq	8(%rax), %rdi
	movl	(%rdi), %edi
	movl	%edi, (%rbx)
	addq	$2, %rcx
	addq	$16, %rax
	movups	%xmm0, -16(%rbx)
	addq	$48, %rbx
	cmpq	%rcx, %r8
	jne	LBB0_4
LBB0_5:
	testb	$1, %sil
	je	LBB0_7
## %bb.6:
	movq	(%rax), %rax
	movl	(%rax), %eax
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, 16(%rdx,%rcx,8)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdx,%rcx,8)
LBB0_7:
	movq	$-1, -56(%rbp)
	leaq	-96(%rbp), %rdi
	leaq	-56(%rbp), %rcx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dm_io
	xorl	%edi, %edi
	cmpq	$0, -56(%rbp)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	je	LBB0_14
## %bb.10:
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %r14
	movq	_DM_RAID1_FLUSH_ERROR@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movl	(%r12), %eax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jae	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r12), %rdi
	addq	%r13, %rdi
	movl	(%r15), %esi
	callq	_fail_mirror
	jmp	LBB0_13
LBB0_14:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_8:
	xorl	%eax, %eax
LBB0_15:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NR_MIRRORS,4,2             ## @MAX_NR_MIRRORS
	.comm	_REQ_PREFLUSH,4,2               ## @REQ_PREFLUSH
	.comm	_REQ_SYNC,4,2                   ## @REQ_SYNC
	.comm	_DM_IO_KMEM,4,2                 ## @DM_IO_KMEM
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_DM_RAID1_FLUSH_ERROR,4,2       ## @DM_RAID1_FLUSH_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mirror_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mirror_flush
_mirror_flush:                          ; @mirror_flush
	.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
	sub	sp, sp, #48
	mov	x20, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x21, [x0]
Lloh3:
	adrp	x8, _MAX_NR_MIRRORS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_NR_MIRRORS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	x8, x8, x8, lsl #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x3ffffffff0
	sub	x2, x9, x8
	mov	sp, x2
Lloh8:
	adrp	x8, _REQ_PREFLUSH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQ_PREFLUSH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _REQ_SYNC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _REQ_SYNC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21, #16]
	stp	w8, w9, [x29, #-96]
	stur	xzr, [x29, #-88]
Lloh14:
	adrp	x8, _DM_IO_KMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DM_IO_KMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _REQ_OP_WRITE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stur	w8, [x29, #-80]
	stur	w9, [x29, #-72]
	ldr	w1, [x21]
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	add	x9, x2, #16
	mov	x10, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8], #8
	ldr	w11, [x11]
	str	w11, [x9]
	stp	xzr, xzr, [x9, #-16]
	add	x9, x9, #24
	subs	x10, x10, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x8, #-1
	stur	x8, [x29, #-64]
	sub	x0, x29, #96
	sub	x3, x29, #64
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_dm_io
	ldur	x8, [x29, #-64]
	cmp	x8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.5:
	mov	x22, #0
	mov	x19, #0
Lloh20:
	adrp	x23, _DM_RAID1_FLUSH_ERROR@GOTPAGE
Lloh21:
	ldr	x23, [x23, _DM_RAID1_FLUSH_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x19, x19, #1
	ldr	w8, [x21]
	add	x22, x22, #8
	cmp	x19, x8
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #64
	mov	x0, x19
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x22
	ldr	w1, [x23]
	bl	_fail_mirror
	b	LBB0_6
LBB0_9:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	mov	sp, x20
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #48
	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
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NR_MIRRORS,4,2             ; @MAX_NR_MIRRORS
	.comm	_REQ_PREFLUSH,4,2               ; @REQ_PREFLUSH
	.comm	_REQ_SYNC,4,2                   ; @REQ_SYNC
	.comm	_DM_IO_KMEM,4,2                 ; @DM_IO_KMEM
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_DM_RAID1_FLUSH_ERROR,4,2       ; @DM_RAID1_FLUSH_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mirror_flush
.subsections_via_symbols
