	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_ios
_do_ios:                                ## @do_ios
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	callq	_bio_list_init
	movq	%r15, %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r14
	leaq	8(%rbx), %r12
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_bio_empty_barrier
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_S_BARRIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_atomic_inc
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LIST_FLUSH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	callq	_bio_list_empty
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_sc_active
	testq	%rax, %rax
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_RSProhibitWrites
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_bio_list_add
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_bio_list_pop
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	__sector
	movl	%eax, %esi
	movq	_DM_RH_RECOVERING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	callq	_region_state
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_dm_rh_sector_to_region
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_dm_rh_delay_by_region
	movq	_S_DELAYED_BIOS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_atomic_inc
	movq	_S_SUM_DELAYED_BIOS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	callq	_SetRSBandwidth
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	leaq	-48(%rbp), %rdx
	callq	_stripe_queue_bio
	addl	%eax, -52(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bio_list_push
LBB0_15:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.16:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dm_rh_flush
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR_LIMIT
LBB0_18:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_bio_list_merge_head
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_BARRIER,8,3                  ## @S_BARRIER
	.comm	_LIST_FLUSH,8,3                 ## @LIST_FLUSH
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_DM_RH_RECOVERING,4,2           ## @DM_RH_RECOVERING
	.comm	_S_DELAYED_BIOS,8,3             ## @S_DELAYED_BIOS
	.comm	_S_SUM_DELAYED_BIOS,8,3         ## @S_SUM_DELAYED_BIOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dirty log flush"

	.no_dead_strip	_do_ios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_ios
_do_ios:                                ; @do_ios
	.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	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #16]
	add	x0, sp, #24
	bl	_bio_list_init
	mov	x0, x19
	bl	_bio_list_pop
	cbz	x0, LBB0_18
; %bb.1:
	mov	x23, x0
	mov	w24, #0
	mov	w26, #0
	add	x22, x21, #8
Lloh0:
	adrp	x28, _WRITE@GOTPAGE
Lloh1:
	ldr	x28, [x28, _WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x27, _S_BARRIER@GOTPAGE
Lloh3:
	ldr	x27, [x27, _S_BARRIER@GOTPAGEOFF]
Lloh4:
	adrp	x25, _LIST_FLUSH@GOTPAGE
Lloh5:
	ldr	x25, [x25, _LIST_FLUSH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_bio_empty_barrier
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x27]
	add	x0, x9, x8
	bl	_atomic_inc
	cbnz	w26, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_list_empty
	cbz	w0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #24
	bl	_bio_list_empty
	cbz	w0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_sc_active
	cbnz	x0, LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_RSProhibitWrites
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_bio_data_dir
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #24
	mov	x1, x23
	bl	_bio_list_add
	mov	x0, x19
	bl	_bio_list_pop
	mov	x23, x0
	cbnz	x0, LBB0_2
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	mov	x0, x21
	mov	x1, x23
	bl	__sector
	mov	x24, x0
Lloh6:
	adrp	x8, _DM_RH_RECOVERING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DM_RH_RECOVERING@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x24
	bl	_region_state
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w26, w26, #1
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x20
	mov	x1, x24
	bl	_dm_rh_sector_to_region
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_dm_rh_delay_by_region
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _S_DELAYED_BIOS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S_DELAYED_BIOS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_atomic_inc
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _S_SUM_DELAYED_BIOS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S_SUM_DELAYED_BIOS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_atomic_inc
	mov	x0, x21
	bl	_SetRSBandwidth
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x2, sp, #24
	mov	x0, x21
	mov	x1, x23
	bl	_stripe_queue_bio
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	add	w24, w24, w0
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_bio_list_pop
	mov	x23, x0
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	cbnz	x0, LBB0_2
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	mov	x1, x23
	bl	_bio_list_push
LBB0_15:
	cbz	w24, LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_dm_rh_flush
	cbz	w0, LBB0_18
; %bb.17:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR_LIMIT
LBB0_18:
	add	x1, sp, #24
	mov	x0, x19
	bl	_bio_list_merge_head
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_S_BARRIER,8,3                  ; @S_BARRIER
	.comm	_LIST_FLUSH,8,3                 ; @LIST_FLUSH
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_DM_RH_RECOVERING,4,2           ; @DM_RH_RECOVERING
	.comm	_S_DELAYED_BIOS,8,3             ; @S_DELAYED_BIOS
	.comm	_S_SUM_DELAYED_BIOS,8,3         ; @S_SUM_DELAYED_BIOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dirty log flush"

	.no_dead_strip	_do_ios
.subsections_via_symbols
