	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_async_complete
_mtip_async_complete:                   ## @mtip_async_complete
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movl	%ecx, %ebx
	testl	%ecx, %ecx
	cmovel	%ecx, %r13d
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r14d, %ecx
	movq	8(%r15), %r14
	movslq	%ecx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PORT_IRQ_TF_ERR@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	movl	%ecx, %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%r15), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
LBB0_4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rbx
	shlq	$4, %rbx
	movq	32(%r14,%rbx), %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	(%r14,%rbx), %rax
	addq	$32, %rax
	movl	40(%r14,%rbx), %edi
	movl	%r13d, %esi
	callq	*(%rax)
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14,%rbx)
	movq	(%r12), %rdi
	movl	16(%r14,%rbx), %esi
	movl	8(%r14,%rbx), %ecx
	movl	12(%r14,%rbx), %edx
	callq	_dma_unmap_sg
	movq	8(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_release_slot
	movl	(%r14,%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	addq	$4, %r15
LBB0_8:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_up                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_PORT_IRQ_TF_ERR,4,2            ## @PORT_IRQ_TF_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command tag %d failed due to TFE\n"

	.no_dead_strip	_mtip_async_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_async_complete
_mtip_async_complete:                   ; @mtip_async_complete
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w3, #0
	csneg	w22, wzr, w8, eq
	cmp	x2, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	cmp	x19, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x24, [x19, #8]
	sxtw	x25, w20
Lloh3:
	adrp	x8, _PORT_IRQ_TF_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_IRQ_TF_ERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
LBB0_5:
	mov	w8, #48
	madd	x23, x25, x8, x24
	ldr	x0, [x23, #32]!
	bl	_likely
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x23]
	mov	w9, #48
	madd	x9, x25, x9, x24
	ldr	w0, [x9, #40]
	mov	x1, x22
	blr	x8
LBB0_7:
	add	x8, x25, x25, lsl #1
	lsl	x22, x8, #4
	add	x23, x24, x22
	stp	xzr, xzr, [x23, #24]
	ldr	x0, [x21]
	ldp	w2, w1, [x23, #12]
	ldr	w3, [x23, #8]
	bl	_dma_unmap_sg
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	add	x0, x8, #4
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x19
	mov	x1, x20
	bl	_release_slot
	ldr	w0, [x23]
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
	add	x0, x19, #4
	b	LBB0_10
LBB0_9:
	mov	x0, x19
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_up
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_PORT_IRQ_TF_ERR,4,2            ; @PORT_IRQ_TF_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command tag %d failed due to TFE\n"

	.no_dead_strip	_mtip_async_complete
.subsections_via_symbols
