	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_done
_dm_done:                               ## @dm_done
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	8(%r15), %rdi
	movl	$130, %r12d
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	4(%r15), %rcx
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	*%rax
	movl	%eax, %r12d
LBB0_4:
	movq	_BLK_STS_TARGET@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rbx, %rdi
	callq	_req_op
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	(%rbx), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_req_op
	movq	_REQ_OP_WRITE_SAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	(%rbx), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_10
LBB0_11:
	movq	%rbx, %rdi
	callq	_req_op
	movq	_REQ_OP_WRITE_ZEROES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.13:
	movl	(%r15), %edi
	callq	_disable_write_zeroes
	jmp	LBB0_14
LBB0_7:
	movl	(%r15), %edi
	callq	_disable_discard
	jmp	LBB0_14
LBB0_10:
	movl	(%r15), %edi
	callq	_disable_write_same
LBB0_14:
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_20
## %bb.15:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:
	movq	%r15, %rdi
	xorl	%esi, %esi
	jmp	LBB0_18
LBB0_20:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	callq	_DMWARN
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_end_request                 ## TAILCALL
LBB0_19:
	movq	%r15, %rdi
	movl	$1, %esi
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_requeue_original_request    ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_16
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_BLK_STS_TARGET,4,2             ## @BLK_STS_TARGET
	.comm	_REQ_OP_DISCARD,8,3             ## @REQ_OP_DISCARD
	.comm	_REQ_OP_WRITE_SAME,8,3          ## @REQ_OP_WRITE_SAME
	.comm	_REQ_OP_WRITE_ZEROES,8,3        ## @REQ_OP_WRITE_ZEROES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unimplemented target endio return value: %d"

	.no_dead_strip	_dm_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_done
_dm_done:                               ; @dm_done
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.1:
	mov	w22, #130
	cbz	w2, LBB0_5
; %bb.2:
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	add	x3, x19, #4
	mov	x1, x21
	mov	x2, x20
	blr	x8
	mov	x22, x0
	b	LBB0_5
LBB0_4:
	mov	w22, #130
LBB0_5:
Lloh0:
	adrp	x8, _BLK_STS_TARGET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_STS_TARGET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.6:
	mov	x0, x21
	bl	_req_op
Lloh3:
	adrp	x8, _REQ_OP_DISCARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQ_OP_DISCARD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_13
LBB0_8:
	mov	x0, x21
	bl	_req_op
Lloh6:
	adrp	x8, _REQ_OP_WRITE_SAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQ_OP_WRITE_SAME@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_14
LBB0_10:
	mov	x0, x21
	bl	_req_op
Lloh9:
	adrp	x8, _REQ_OP_WRITE_ZEROES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REQ_OP_WRITE_ZEROES@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.11:
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbnz	w8, LBB0_15
; %bb.12:
	ldr	w0, [x19]
	bl	_disable_write_zeroes
	b	LBB0_15
LBB0_13:
	ldr	w0, [x19]
	bl	_disable_discard
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19]
	bl	_disable_write_same
LBB0_15:
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_18
; %bb.16:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_17
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_17:
	mov	x0, x19
	mov	w1, #0
	b	LBB0_22
LBB0_18:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DMWARN
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_BUG
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x0, x21
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dm_end_request
LBB0_21:
	mov	x0, x19
	mov	w1, #1
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dm_requeue_original_request
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_19-LBB0_17)>>2
	.byte	(LBB0_20-LBB0_17)>>2
	.byte	(LBB0_21-LBB0_17)>>2
                                        ; -- End function
	.comm	_BLK_STS_TARGET,4,2             ; @BLK_STS_TARGET
	.comm	_REQ_OP_DISCARD,8,3             ; @REQ_OP_DISCARD
	.comm	_REQ_OP_WRITE_SAME,8,3          ; @REQ_OP_WRITE_SAME
	.comm	_REQ_OP_WRITE_ZEROES,8,3        ; @REQ_OP_WRITE_ZEROES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unimplemented target endio return value: %d"

	.no_dead_strip	_dm_done
.subsections_via_symbols
