	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_map_data
_nvme_map_data:                         ## @nvme_map_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_blk_mq_rq_to_pdu
	movq	%rax, %r14
	movq	_BLK_STS_RESOURCE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_blk_rq_nr_phys_segments
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r13, %rdi
	callq	_req_bvec
	movq	%rax, %rbx
	movl	%edx, %edi
	movq	%rax, -88(%rbp)
	movl	%edx, -80(%rbp)
	callq	_is_pci_p2pdma_page
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	movq	$0, 16(%r14)
	movl	4(%r12), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mempool_alloc
	movl	%eax, 12(%r14)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_blk_rq_nr_phys_segments
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_sg_init_table
	movl	(%r13), %edi
	movl	12(%r14), %edx
	movq	%r13, %rsi
	callq	_blk_rq_map_sg
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	12(%r14), %edi
	callq	_sg_page
	movl	%eax, %edi
	callq	_is_pci_p2pdma_page
	movq	%r12, %rcx
	movq	%rax, %r12
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %ebx
	movl	8(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%r14), %r15d
	movq	%r13, %rdi
	callq	_rq_dma_dir
	movq	_DMA_ATTR_NO_WARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%ebx, %edi
	movl	%r15d, %esi
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_pci_p2pdma_map_sg_attrs
	jmp	LBB0_14
LBB0_8:
	movq	(%r15), %rbx
	jmp	LBB0_21
LBB0_10:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_2:
	movq	%rbx, %rax
	shrq	$32, %rax
	addl	%ebx, %eax
	movl	8(%r12), %ecx
	addl	%ecx, %ecx
	cmpl	%ecx, %eax
	jle	LBB0_3
## %bb.4:
	movq	24(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	testb	$3, 12(%r12)
	je	LBB0_7
## %bb.6:
	leaq	-88(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_nvme_setup_sgl_simple
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_13:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_dma_map_sg_attrs
LBB0_14:
	movl	%eax, %r15d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_nvme_pci_use_sgls
	movq	%rax, (%r14)
	movq	%r12, %rdi
	movq	%r13, %rsi
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_nvme_pci_setup_sgls
	jmp	LBB0_18
LBB0_3:
	leaq	-88(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_nvme_setup_prp_simple
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_17:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_nvme_pci_setup_prps
LBB0_18:
	movq	%rax, %rbx
LBB0_19:
	movq	_BLK_STS_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_nvme_unmap_data
LBB0_21:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_STS_RESOURCE,8,3           ## @BLK_STS_RESOURCE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_DMA_ATTR_NO_WARN,4,2           ## @DMA_ATTR_NO_WARN
	.comm	_BLK_STS_OK,8,3                 ## @BLK_STS_OK
	.no_dead_strip	_nvme_map_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_map_data
_nvme_map_data:                         ; @nvme_map_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_blk_mq_rq_to_pdu
	mov	x23, x0
Lloh0:
	adrp	x25, _BLK_STS_RESOURCE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BLK_STS_RESOURCE@GOTPAGEOFF]
	ldr	x22, [x25]
	mov	x0, x19
	bl	_blk_rq_nr_phys_segments
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_req_bvec
	mov	x24, x0
	mov	x0, x1
	str	x24, [sp]
	str	w0, [sp, #8]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_is_pci_p2pdma_page
	cbz	x0, LBB0_7
LBB0_2:
	str	xzr, [x23, #16]
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_mempool_alloc
	str	w0, [x23, #12]
	cbz	w0, LBB0_6
; %bb.3:
	mov	x24, x0
	mov	x0, x19
	bl	_blk_rq_nr_phys_segments
	mov	x1, x0
	mov	x0, x24
	bl	_sg_init_table
	ldr	w0, [x19]
	ldr	w2, [x23, #12]
	mov	x1, x19
	bl	_blk_rq_map_sg
	str	w0, [x23, #8]
	cbz	w0, LBB0_17
; %bb.4:
	ldr	w0, [x23, #12]
	bl	_sg_page
	bl	_is_pci_p2pdma_page
	mov	x27, x0
	ldr	w24, [x20]
	ldp	w26, w25, [x23, #8]
	mov	x0, x19
	bl	_rq_dma_dir
	mov	x3, x0
Lloh5:
	adrp	x8, _DMA_ATTR_NO_WARN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_ATTR_NO_WARN@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	cbz	x27, LBB0_11
; %bb.5:
	bl	_pci_p2pdma_map_sg_attrs
	mov	x24, x0
	cbnz	w0, LBB0_12
	b	LBB0_17
LBB0_6:
	ldr	x22, [x25]
	b	LBB0_19
LBB0_7:
	lsr	x8, x24, #32
	add	w8, w8, w24
	ldr	w9, [x20, #8]
	cmp	w8, w9, lsl #1
	b.le	LBB0_14
; %bb.8:
	ldr	x8, [x23, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.9:
	ldrb	w8, [x20, #12]
	tst	w8, #0x3
	b.eq	LBB0_2
; %bb.10:
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_nvme_setup_sgl_simple
	mov	x22, x0
	b	LBB0_19
LBB0_11:
	bl	_dma_map_sg_attrs
	mov	x24, x0
	cbz	w0, LBB0_17
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_nvme_pci_use_sgls
	str	x0, [x23]
	cbz	x0, LBB0_15
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x24
	bl	_nvme_pci_setup_sgls
	b	LBB0_16
LBB0_14:
	mov	x3, sp
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_nvme_setup_prp_simple
	mov	x22, x0
	b	LBB0_19
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_nvme_pci_setup_prps
LBB0_16:
	mov	x22, x0
LBB0_17:
Lloh8:
	adrp	x8, _BLK_STS_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLK_STS_OK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x22, x8
	b.eq	LBB0_19
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	bl	_nvme_unmap_data
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_STS_RESOURCE,8,3           ; @BLK_STS_RESOURCE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_DMA_ATTR_NO_WARN,4,2           ; @DMA_ATTR_NO_WARN
	.comm	_BLK_STS_OK,8,3                 ; @BLK_STS_OK
	.no_dead_strip	_nvme_map_data
.subsections_via_symbols
