	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_writes
_do_writes:                             ## @do_writes
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	16(%rdi), %edi
	callq	_dm_rh_dirty_log
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	je	LBB0_37
## %bb.1:
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_bio_list_init
	leaq	-48(%rbp), %rdi
	callq	_bio_list_init
	leaq	-72(%rbp), %rdi
	callq	_bio_list_init
	leaq	-64(%rbp), %rdi
	callq	_bio_list_init
	movq	%r14, %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %r13
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rsi
	callq	_bio_list_add
	movq	%r14, %rdi
	callq	_bio_list_pop
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REQ_PREFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	testl	%eax, (%r13)
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_bio_op
	movq	%r12, %rdi
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r15), %edi
	movq	%r13, %rsi
	callq	_dm_rh_bio_to_region
	movl	%eax, %ebx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	*%rax
	leaq	-64(%rbp), %rdi
	testq	%rax, %rax
	jne	LBB0_5
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%r15), %edi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_dm_rh_get_state
                                        ## kill: def $eax killed $eax def $rax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$128, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$129, %eax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	-48(%rbp), %rdi
	jmp	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	-72(%rbp), %rdi
	jmp	LBB0_4
LBB0_16:
	movl	-64(%rbp), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	leaq	20(%r15), %rdi
	leaq	-64(%rbp), %rsi
	callq	_bio_list_merge
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_delayed_wake
LBB0_18:
	movl	16(%r15), %edi
	leaq	-56(%rbp), %rsi
	callq	_dm_rh_inc_pending
	movl	16(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_dm_rh_inc_pending
	movl	16(%r15), %edi
	callq	_dm_rh_flush
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movl	(%r15), %edi
LBB0_20:
	movl	%edi, (%r15)
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	%r15, %rdi
	callq	_errors_handled
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	leaq	12(%r15), %rdi
	leaq	-56(%rbp), %rsi
	callq	_bio_list_merge
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_wakeup_mirrord
	jmp	LBB0_26
LBB0_23:
	leaq	-56(%rbp), %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	leaq	-56(%rbp), %rbx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_do_write
	movq	%rbx, %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	jne	LBB0_25
LBB0_26:
	leaq	-72(%rbp), %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	leaq	-72(%rbp), %rbx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r15), %edi
	movq	%rax, %rsi
	callq	_dm_rh_delay
	movq	%rbx, %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	jne	LBB0_28
LBB0_29:
	leaq	-48(%rbp), %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	je	LBB0_37
## %bb.30:
	movq	%rax, %rbx
	leaq	8(%r15), %r14
	leaq	12(%r15), %r13
	leaq	-48(%rbp), %r12
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	%r15, %rdi
	callq	_get_default_mirror
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_map_bio
	movq	%rbx, %rdi
	callq	_generic_make_request
LBB0_32:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	%r12, %rdi
	callq	_bio_list_pop
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_37
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_31
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	%r15, %rdi
	callq	_errors_handled
	testq	%rax, %rax
	je	LBB0_31
## %bb.35:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	%r15, %rdi
	callq	_keep_log
	testl	%eax, %eax
	jne	LBB0_31
## %bb.36:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_bio_list_add
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	%r15, %rdi
	callq	_wakeup_mirrord
	jmp	LBB0_32
LBB0_37:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_PREFLUSH,4,2               ## @REQ_PREFLUSH
	.comm	_REQ_OP_DISCARD,8,3             ## @REQ_OP_DISCARD
	.no_dead_strip	_do_writes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_writes
_do_writes:                             ; @do_writes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_dm_rh_dirty_log
	ldr	w8, [x20]
	cbz	w8, LBB0_35
; %bb.1:
	mov	x21, x0
	add	x0, sp, #24
	bl	_bio_list_init
	add	x0, sp, #16
	bl	_bio_list_init
	add	x0, sp, #8
	bl	_bio_list_init
	mov	x0, sp
	bl	_bio_list_init
	mov	x0, x20
	bl	_bio_list_pop
	cbz	x0, LBB0_13
; %bb.2:
	mov	x23, x0
	mov	x22, #0
Lloh0:
	adrp	x25, _REQ_PREFLUSH@GOTPAGE
Lloh1:
	ldr	x25, [x25, _REQ_PREFLUSH@GOTPAGEOFF]
Lloh2:
	adrp	x26, _REQ_OP_DISCARD@GOTPAGE
Lloh3:
	ldr	x26, [x26, _REQ_OP_DISCARD@GOTPAGEOFF]
	add	x27, sp, #8
	add	x28, sp, #16
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x23
	bl	_bio_list_add
	mov	x0, x20
	bl	_bio_list_pop
	mov	x23, x0
	cbz	x0, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_bio_op
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x23
	bl	_dm_rh_bio_to_region
	mov	x24, x0
	ldr	x8, [x21]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x24
	blr	x8
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, sp
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x24
	mov	w2, #1
	bl	_dm_rh_get_state
	sub	w8, w0, #130
	cmp	w8, #2
	b.lo	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #129
	csel	x8, x28, x22, eq
	cmp	w0, #128
	csel	x22, x27, x8, eq
	mov	x0, x22
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, sp, #24
	mov	x0, x22
	b	LBB0_4
LBB0_13:
	ldr	w0, [sp]
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.14:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irq
	add	x0, x19, #20
	mov	x1, sp
	bl	_bio_list_merge
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_delayed_wake
LBB0_15:
	ldr	w0, [x19, #16]
	add	x1, sp, #24
	bl	_dm_rh_inc_pending
	ldr	w0, [x19, #16]
	add	x1, sp, #16
	bl	_dm_rh_inc_pending
	ldr	w0, [x19, #16]
	bl	_dm_rh_flush
	cbz	x0, LBB0_17
; %bb.16:
	mov	w0, #1
	b	LBB0_18
LBB0_17:
	ldr	w0, [x19]
LBB0_18:
	str	w0, [x19]
	bl	_unlikely
	cbz	x0, LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_errors_handled
	cbz	x0, LBB0_21
; %bb.20:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irq
	add	x0, x19, #12
	add	x1, sp, #24
	bl	_bio_list_merge
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_wakeup_mirrord
	b	LBB0_24
LBB0_21:
	add	x0, sp, #24
	bl	_bio_list_pop
	cbz	x0, LBB0_24
; %bb.22:
	mov	x1, x0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_do_write
	add	x0, sp, #24
	bl	_bio_list_pop
	mov	x1, x0
	cbnz	x0, LBB0_23
LBB0_24:
	add	x0, sp, #8
	bl	_bio_list_pop
	cbz	x0, LBB0_27
; %bb.25:
	mov	x1, x0
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	bl	_dm_rh_delay
	add	x0, sp, #8
	bl	_bio_list_pop
	mov	x1, x0
	cbnz	x0, LBB0_26
LBB0_27:
	add	x0, sp, #16
	bl	_bio_list_pop
	cbz	x0, LBB0_35
; %bb.28:
	mov	x22, x0
	add	x20, x19, #8
	add	x21, x19, #12
	b	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x19
	bl	_get_default_mirror
	mov	x1, x22
	bl	_map_bio
	mov	x0, x22
	bl	_generic_make_request
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x0, sp, #16
	bl	_bio_list_pop
	mov	x22, x0
	cbz	x0, LBB0_35
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	bl	_unlikely
	cbz	x0, LBB0_29
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x19
	bl	_errors_handled
	cbz	x0, LBB0_29
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x19
	bl	_keep_log
	cbnz	w0, LBB0_29
; %bb.34:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	x0, x20
	bl	_spin_lock_irq
	mov	x0, x21
	mov	x1, x22
	bl	_bio_list_add
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_wakeup_mirrord
	b	LBB0_30
LBB0_35:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_PREFLUSH,4,2               ; @REQ_PREFLUSH
	.comm	_REQ_OP_DISCARD,8,3             ; @REQ_OP_DISCARD
	.no_dead_strip	_do_writes
.subsections_via_symbols
