	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ioat_dma_unmap                 ## -- Begin function ioat_dma_unmap
	.p2align	4, 0x90
_ioat_dma_unmap:                        ## @ioat_dma_unmap
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	(%rdi), %rax
	movq	%rdx, %rbx
	subq	(%rcx), %rbx
	movq	(%rax), %r12
	movq	_DMA_COMPL_SKIP_DEST_UNMAP@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	16(%r15), %rsi
	subq	%rbx, %rsi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%r13d, %r8d
	movl	$1, %r9d
	callq	_ioat_unmap
LBB0_2:
	movq	_DMA_COMPL_SKIP_SRC_UNMAP@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%r15), %rsi
	subq	%rbx, %rsi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ioat_unmap                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_COMPL_SKIP_DEST_UNMAP,4,2  ## @DMA_COMPL_SKIP_DEST_UNMAP
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_DMA_COMPL_SKIP_SRC_UNMAP,4,2   ## @DMA_COMPL_SKIP_SRC_UNMAP
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ioat_dma_unmap                 ; -- Begin function ioat_dma_unmap
	.p2align	2
_ioat_dma_unmap:                        ; @ioat_dma_unmap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	x8, [x3]
	sub	x23, x2, x8
Lloh0:
	adrp	x8, _DMA_COMPL_SKIP_DEST_UNMAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_COMPL_SKIP_DEST_UNMAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22, #16]
	sub	x1, x8, x23
Lloh3:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x20
	mov	x4, x19
	mov	w5, #1
	bl	_ioat_unmap
LBB0_2:
Lloh6:
	adrp	x8, _DMA_COMPL_SKIP_SRC_UNMAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_COMPL_SKIP_SRC_UNMAP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x22, #8]
	sub	x1, x8, x23
Lloh9:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, x20
	mov	x4, x19
	mov	w5, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ioat_unmap
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_COMPL_SKIP_DEST_UNMAP,4,2  ; @DMA_COMPL_SKIP_DEST_UNMAP
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_DMA_COMPL_SKIP_SRC_UNMAP,4,2   ; @DMA_COMPL_SKIP_SRC_UNMAP
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
.subsections_via_symbols
