	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	8(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	movq	(%rdi), %rdx
	movq	(%rdx), %r8
	testq	%r8, %r8
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	*%r8
LBB0_4:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:
	movq	_DM_ENDIO_INCOMPLETE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dm_end_request                 ## TAILCALL
LBB0_6:
	movq	_DM_ENDIO_REQUEUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dm_requeue_unmapped_request    ## TAILCALL
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DMWARN
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_ENDIO_INCOMPLETE,4,2        ## @DM_ENDIO_INCOMPLETE
	.comm	_DM_ENDIO_REQUEUE,4,2           ## @DM_ENDIO_REQUEUE
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	ldr	x3, [x0]
	ldr	x0, [x3, #8]
	cbz	x0, LBB0_4
; %bb.1:
	cbz	w2, LBB0_4
; %bb.2:
	ldr	x9, [x0]
	ldr	x9, [x9]
	cbz	x9, LBB0_4
; %bb.3:
	mov	x1, x19
	mov	x2, x8
	blr	x9
	mov	x8, x0
LBB0_4:
	cmp	w8, #0
	b.le	LBB0_7
; %bb.5:
Lloh0:
	adrp	x9, _DM_ENDIO_INCOMPLETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DM_ENDIO_INCOMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	mov	x1, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dm_end_request
LBB0_8:
Lloh3:
	adrp	x9, _DM_ENDIO_REQUEUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DM_ENDIO_REQUEUE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dm_requeue_unmapped_request
LBB0_10:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	bl	_DMWARN
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_BUG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_ENDIO_INCOMPLETE,4,2        ; @DM_ENDIO_INCOMPLETE
	.comm	_DM_ENDIO_REQUEUE,4,2           ; @DM_ENDIO_REQUEUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unimplemented target endio return value: %d"

	.no_dead_strip	_dm_done
.subsections_via_symbols
