	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_fc_map_data
_nvme_fc_map_data:                      ## @nvme_fc_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	$0, 8(%rdx)
	movq	%rsi, %rdi
	callq	_blk_rq_nr_phys_segments
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	20(%rbx), %eax
	leaq	16(%rbx), %r15
	movl	%eax, 16(%rbx)
	movq	%r12, %rdi
	callq	_blk_rq_nr_phys_segments
	movl	16(%rbx), %edx
	movq	_SG_CHUNK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sg_alloc_table_chained
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movl	16(%rbx), %edx
	movq	%r12, %rsi
	callq	_blk_rq_map_sg
	movl	%eax, %r15d
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_blk_rq_nr_phys_segments
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	setg	%dil
	callq	_WARN_ON
	movq	(%r13), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %r13d
	movq	%r12, %rdi
	callq	_rq_dma_dir
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_fc_dma_map_sg
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_SG_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_sg_free_table_chained
	movq	$0, 8(%rbx)
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SG_CHUNK_SIZE,4,2              ## @SG_CHUNK_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_nvme_fc_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_fc_map_data
_nvme_fc_map_data:                      ; @nvme_fc_map_data
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	str	xzr, [x2, #8]
	mov	x0, x1
	bl	_blk_rq_nr_phys_segments
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w8, [x19, #20]
	mov	x20, x19
	str	w8, [x20, #16]!
	mov	x0, x21
	bl	_blk_rq_nr_phys_segments
	mov	x1, x0
	ldr	w2, [x20]
Lloh0:
	adrp	x25, _SG_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SG_CHUNK_SIZE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x20
	bl	_sg_alloc_table_chained
	cbz	w0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x21]
	ldr	w2, [x19, #16]
	mov	x1, x21
	bl	_blk_rq_map_sg
	mov	x23, x0
	str	w0, [x19]
	mov	x0, x21
	bl	_blk_rq_nr_phys_segments
	cmp	w23, w0
	cset	w0, gt
	bl	_WARN_ON
	ldr	x8, [x22]
	ldr	w22, [x8]
	ldr	w23, [x19, #16]
	ldr	w24, [x19]
	mov	x0, x21
	bl	_rq_dma_dir
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_fc_dma_map_sg
	str	x0, [x19, #8]
	cmp	x0, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w1, [x25]
	mov	x0, x20
	bl	_sg_free_table_chained
	str	xzr, [x19, #8]
Lloh4:
	adrp	x8, _EFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SG_CHUNK_SIZE,4,2              ; @SG_CHUNK_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_nvme_fc_map_data
.subsections_via_symbols
