	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_reclaim_copy
_dmz_reclaim_copy:                      ## @dmz_reclaim_copy
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	24(%rdi), %r13
	movl	$0, -44(%rbp)
	movq	$0, -64(%rbp)
	movq	%rsi, %rdi
	callq	_dmz_is_seq
	testq	%rax, %rax
	movq	%r14, %rax
	cmoveq	%r12, %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_dmz_start_block
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_dmz_start_block
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_dmz_is_seq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DM_KCOPYD_WRITE_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_set_bit
LBB0_2:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_3
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DMZ_BDEV_DYING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	leaq	-44(%rbp), %rdx
	callq	_dmz_first_valid_block
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_dmz_is_seq
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_dmz_reclaim_align_wp
	testl	%eax, %eax
	jne	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12), %eax
	movl	%eax, -88(%rbp)
	movl	-44(%rbp), %edi
	addl	-56(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_dmz_blk2sect
	movq	%rax, -96(%rbp)
	movl	%r13d, %edi
	callq	_dmz_blk2sect
	movq	%rax, -104(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -112(%rbp)
	movl	-44(%rbp), %edi
	addl	-52(%rbp), %edi                 ## 4-byte Folded Reload
	callq	_dmz_blk2sect
	movq	%rax, -120(%rbp)
	movq	-104(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	_DMZ_RECLAIM_KCOPY@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	movl	12(%rbx), %edi
	movq	-64(%rbp), %r8
	movq	_dmz_reclaim_kcopy_end@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, (%rsp)
	leaq	-104(%rbp), %rsi
	movl	$1, %edx
	leaq	-128(%rbp), %rcx
	callq	_dm_kcopyd_copy
	movl	(%r14), %esi
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_wait_on_bit_io
	movl	8(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	%r13d, -44(%rbp)
	movq	%r15, %rdi
	callq	_dmz_is_seq
	movl	-44(%rbp), %ecx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, (%r15)
	jmp	LBB0_12
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_6:
	movl	%r13d, %eax
LBB0_14:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_KCOPYD_WRITE_SEQ,4,2        ## @DM_KCOPYD_WRITE_SEQ
	.comm	_DMZ_BDEV_DYING,4,2             ## @DMZ_BDEV_DYING
	.comm	_EIO,4,2                        ## @EIO
	.comm	_DMZ_RECLAIM_KCOPY,4,2          ## @DMZ_RECLAIM_KCOPY
	.comm	_dmz_reclaim_kcopy_end,4,2      ## @dmz_reclaim_kcopy_end
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_dmz_reclaim_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_reclaim_copy
_dmz_reclaim_copy:                      ; @dmz_reclaim_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x26, x22, [x0, #16]
	str	wzr, [sp, #12]
	str	xzr, [sp]
	mov	x0, x1
	bl	_dmz_is_seq
	cmp	x0, #0
	csel	x8, x26, x20, eq
	ldr	w27, [x8]
	mov	x0, x22
	mov	x1, x20
	bl	_dmz_start_block
	mov	x23, x0
	mov	x0, x22
	mov	x1, x19
	bl	_dmz_start_block
	mov	x24, x0
	mov	x0, x19
	bl	_dmz_is_seq
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DM_KCOPYD_WRITE_SEQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_KCOPYD_WRITE_SEQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_set_bit
LBB0_2:
	cmp	w27, #1
	b.lt	LBB0_12
; %bb.3:
Lloh3:
	adrp	x28, _DMZ_RECLAIM_KCOPY@GOTPAGE
Lloh4:
	ldr	x28, [x28, _DMZ_RECLAIM_KCOPY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, w27
	b.ge	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26, #4]
Lloh5:
	adrp	x9, _DMZ_BDEV_DYING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DMZ_BDEV_DYING@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x20
	bl	_dmz_first_valid_block
	mov	x25, x0
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_dmz_is_seq
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	x1, x19
	bl	_dmz_reclaim_align_wp
	cbnz	w0, LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26, #8]
	str	w8, [sp, #56]
	ldr	w8, [sp, #12]
	add	w0, w8, w23
	bl	_dmz_blk2sect
	str	x0, [sp, #48]
	mov	x0, x25
	bl	_dmz_blk2sect
	str	x0, [sp, #40]
	ldr	w8, [x26, #8]
	str	w8, [sp, #32]
	ldr	w8, [sp, #12]
	add	w0, w8, w24
	bl	_dmz_blk2sect
	ldr	x8, [sp, #40]
	stp	x8, x0, [sp, #16]
	ldr	w0, [x28]
	mov	x1, x21
	bl	_set_bit
	ldr	w0, [x21, #12]
	ldr	x4, [sp]
Lloh8:
	adrp	x8, _dmz_reclaim_kcopy_end@GOTPAGE
Lloh9:
	ldr	x8, [x8, _dmz_reclaim_kcopy_end@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	add	x1, sp, #40
	add	x3, sp, #16
	mov	w2, #1
	mov	x6, x21
	bl	_dm_kcopyd_copy
	ldr	w1, [x28]
Lloh11:
	adrp	x8, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_wait_on_bit_io
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	add	w8, w8, w25
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_dmz_is_seq
	ldr	w8, [sp, #12]
	cbz	x0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x19]
	b	LBB0_4
LBB0_12:
	mov	w25, #0
	b	LBB0_16
LBB0_13:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_16
LBB0_14:
	mov	x25, x8
	b	LBB0_16
LBB0_15:
	mov	x25, x0
LBB0_16:
	mov	x0, x25
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_KCOPYD_WRITE_SEQ,4,2        ; @DM_KCOPYD_WRITE_SEQ
	.comm	_DMZ_BDEV_DYING,4,2             ; @DMZ_BDEV_DYING
	.comm	_EIO,4,2                        ; @EIO
	.comm	_DMZ_RECLAIM_KCOPY,4,2          ; @DMZ_RECLAIM_KCOPY
	.comm	_dmz_reclaim_kcopy_end,4,2      ; @dmz_reclaim_kcopy_end
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_dmz_reclaim_copy
.subsections_via_symbols
