	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_unmap_data
_nvme_unmap_data:                       ## @nvme_unmap_data
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_blk_mq_rq_to_pdu
	movl	32(%rax), %r14d
	movq	24(%rax), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.10:
	movl	12(%rbx), %ebx
	movq	%r15, %rdi
	callq	_rq_dma_dir
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_unmap_page                 ## TAILCALL
LBB0_1:
	movq	%rax, %r12
	movl	16(%rbx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	$0, 16(%r12)
	sete	%dil
	callq	_WARN_ON_ONCE
	movl	4(%r12), %edi
	callq	_sg_page
	movl	%eax, %edi
	callq	_is_pci_p2pdma_page
	movq	%rax, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%r12), %ebx
	movq	%r15, %rdi
	callq	_rq_dma_dir
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_pci_p2pdma_unmap_sg
	jmp	LBB0_4
LBB0_3:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dma_unmap_sg
LBB0_4:
	movl	(%r12), %eax
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r13d
	movq	%r15, %rdi
	callq	_nvme_pci_iod_list
	movq	(%rax), %rsi
	movl	%r13d, %edi
	movl	%r14d, %edx
	callq	_dma_pool_free
	movl	(%r12), %eax
LBB0_6:
	testl	%eax, %eax
	movl	%r14d, %r13d
	movq	%r12, %r14
	jle	LBB0_9
## %bb.7:
	movq	%r15, %r12
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	sarl	$2, %eax
	decl	%eax
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_nvme_pci_iod_list
	movq	_SGES_PER_PAGE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	cmpq	$0, 8(%r14)
	movq	(%rax,%r15,8), %rbx
	cmoveq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	movl	(%rbx,%rcx,4), %edi
	callq	_le64_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_dma_pool_free
	incq	%r15
	movslq	(%r14), %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	cmpq	%rax, %r15
	jl	LBB0_8
LBB0_9:
	movl	4(%r14), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mempool_free                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SGES_PER_PAGE,4,2              ## @SGES_PER_PAGE
	.no_dead_strip	_nvme_unmap_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_unmap_data
_nvme_unmap_data:                       ; @nvme_unmap_data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_blk_mq_rq_to_pdu
	ldr	w22, [x0, #32]
	ldr	x23, [x0, #24]
	cbz	x23, LBB0_2
; %bb.1:
	ldr	w20, [x20, #12]
	mov	x0, x19
	bl	_rq_dma_dir
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_dma_unmap_page
LBB0_2:
	mov	x21, x0
	ldr	w27, [x20, #16]
	ldr	w8, [x0, #16]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	ldr	w0, [x21, #4]
	bl	_sg_page
	bl	_is_pci_p2pdma_page
	mov	x26, x0
	ldr	w23, [x20, #12]
	ldr	w24, [x21, #4]
	ldr	w25, [x21, #16]
	mov	x0, x19
	bl	_rq_dma_dir
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	cbz	x26, LBB0_9
; %bb.3:
	bl	_pci_p2pdma_unmap_sg
	ldr	w8, [x21]
	cbnz	w8, LBB0_5
LBB0_4:
	ldr	w23, [x20, #8]
	mov	x0, x19
	bl	_nvme_pci_iod_list
	ldr	x1, [x0]
	mov	x0, x23
	mov	x2, x22
	bl	_dma_pool_free
	ldr	w8, [x21]
LBB0_5:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x25, #0
	asr	w8, w27, #2
	sub	w8, w8, #1
	sxtw	x26, w8
Lloh0:
	adrp	x27, _SGES_PER_PAGE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SGES_PER_PAGE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_nvme_pci_iod_list
	ldr	x23, [x0, x25, lsl #3]
	ldr	x8, [x21, #8]
	ldrsw	x9, [x27]
	sub	x9, x9, #1
	cmp	x8, #0
	csel	x8, x26, x9, eq
	ldr	w0, [x23, x8, lsl #2]
	bl	_le64_to_cpu
	mov	x24, x0
	ldr	w0, [x20, #4]
	mov	x1, x23
	mov	x2, x22
	bl	_dma_pool_free
	add	x25, x25, #1
	ldrsw	x8, [x21]
	mov	x22, x24
	cmp	x25, x8
	b.lt	LBB0_7
LBB0_8:
	ldr	w0, [x21, #4]
	ldr	w1, [x20]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mempool_free
LBB0_9:
	bl	_dma_unmap_sg
	ldr	w8, [x21]
	cbnz	w8, LBB0_5
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SGES_PER_PAGE,4,2              ; @SGES_PER_PAGE
	.no_dead_strip	_nvme_unmap_data
.subsections_via_symbols
