	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_rdma_map_data
_nvme_rdma_map_data:                    ## @nvme_rdma_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, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_blk_mq_rq_to_pdu
	movq	%rax, %r13
	movq	8(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r14
	movl	$1, (%r13)
	leaq	16(%r13), %rdi
	movl	$2, %esi
	callq	_refcount_set
	movq	_NVME_CMD_SGL_METABUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	%r15, %rdi
	callq	_blk_rq_nr_phys_segments
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %eax
	movq	%r13, %rbx
	addq	$4, %rbx
	movl	%eax, 4(%r13)
	movq	%r15, %rdi
	callq	_blk_rq_nr_phys_segments
	movl	4(%r13), %edx
	movq	_SG_CHUNK_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sg_alloc_table_chained
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_19
LBB0_20:
	movq	%r12, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvme_rdma_set_sg_null          ## TAILCALL
LBB0_3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movl	4(%r13), %edx
	movq	%r15, %rsi
	callq	_blk_rq_map_sg
	movq	%r14, %rbx
	movl	%eax, %r14d
	movl	%eax, 8(%r13)
	movl	4(%r13), %r12d
	movq	%r15, %rdi
	callq	_rq_dma_dir
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_ib_dma_map_sg
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setle	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_5:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	cmpl	(%r14), %ebx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jg	LBB0_14
## %bb.6:
	movq	%r15, %rdi
	callq	_rq_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvme_rdma_queue_idx
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_blk_rq_payload_bytes
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvme_rdma_inline_data_size
	cmpq	%rax, %rbx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jle	LBB0_10
LBB0_11:
	cmpl	$1, %ebx
	jne	LBB0_14
## %bb.12:
	movq	8(%r14), %rax
	movq	_IB_PD_UNSAFE_GLOBAL_RKEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_nvme_rdma_map_sg_single
	jmp	LBB0_15
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_nvme_rdma_map_sg_fr
LBB0_15:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movl	4(%r13), %r12d
	movl	8(%r13), %ebx
	movq	%r15, %rdi
	callq	_rq_dma_dir
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_ib_dma_unmap_sg
LBB0_18:
	movq	_SG_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_sg_free_table_chained
LBB0_19:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_nvme_rdma_map_sg_inline
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_CMD_SGL_METABUF,4,2       ## @NVME_CMD_SGL_METABUF
	.comm	_SG_CHUNK_SIZE,4,2              ## @SG_CHUNK_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EIO,4,2                        ## @EIO
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_IB_PD_UNSAFE_GLOBAL_RKEY,4,2   ## @IB_PD_UNSAFE_GLOBAL_RKEY
	.no_dead_strip	_nvme_rdma_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_rdma_map_data
_nvme_rdma_map_data:                    ; @nvme_rdma_map_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	x23, x2
	mov	x19, x1
	mov	x24, x0
	mov	x0, x1
	bl	_blk_mq_rq_to_pdu
	mov	x21, x0
	ldr	x28, [x24, #8]
	ldr	x20, [x28, #16]
	mov	w8, #1
	str	w8, [x0], #16
	mov	w1, #2
	bl	_refcount_set
Lloh0:
	adrp	x8, _NVME_CMD_SGL_METABUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_CMD_SGL_METABUF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w9, w8
	str	w8, [x23]
	mov	x0, x19
	bl	_blk_rq_nr_phys_segments
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x21, #12]
	mov	x22, x21
	str	w8, [x22, #4]!
	mov	x0, x19
	bl	_blk_rq_nr_phys_segments
	mov	x1, x0
	ldr	w2, [x22]
Lloh3:
	adrp	x27, _SG_CHUNK_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SG_CHUNK_SIZE@GOTPAGEOFF]
	ldr	w3, [x27]
	mov	x0, x22
	bl	_sg_alloc_table_chained
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_3:
	mov	x0, 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	_nvme_rdma_set_sg_null
LBB0_4:
	ldr	w0, [x19]
	ldr	w2, [x21, #4]
	mov	x1, x19
	bl	_blk_rq_map_sg
	mov	x25, x0
	str	w0, [x21, #8]
	ldr	w26, [x21, #4]
	mov	x0, x19
	bl	_rq_dma_dir
	mov	x3, x0
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_ib_dma_map_sg
	mov	x25, x0
	cmp	w0, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_6:
	ldr	w8, [x28]
	cmp	w25, w8
	b.gt	LBB0_14
; %bb.7:
	mov	x0, x19
	bl	_rq_data_dir
Lloh11:
	adrp	x8, _WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x24
	bl	_nvme_rdma_queue_idx
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x24]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_blk_rq_payload_bytes
	mov	x26, x0
	mov	x0, x24
	bl	_nvme_rdma_inline_data_size
	cmp	x26, x0
	b.le	LBB0_20
LBB0_11:
	cmp	w25, #1
	b.ne	LBB0_14
; %bb.12:
	ldr	x8, [x28, #8]
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IB_PD_UNSAFE_GLOBAL_RKEY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IB_PD_UNSAFE_GLOBAL_RKEY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x23
	bl	_nvme_rdma_map_sg_single
	b	LBB0_15
LBB0_14:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	bl	_nvme_rdma_map_sg_fr
LBB0_15:
	mov	x23, x0
	bl	_unlikely
	cbz	x0, LBB0_19
; %bb.16:
	ldp	w24, w21, [x21, #4]
	mov	x0, x19
	bl	_rq_dma_dir
	mov	x3, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_ib_dma_unmap_sg
LBB0_17:
	ldr	w1, [x27]
	mov	x0, x22
	bl	_sg_free_table_chained
LBB0_18:
	mov	x0, 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
	ret
LBB0_19:
	mov	w23, #0
	b	LBB0_18
LBB0_20:
	mov	x0, x24
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	bl	_nvme_rdma_map_sg_inline
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_CMD_SGL_METABUF,4,2       ; @NVME_CMD_SGL_METABUF
	.comm	_SG_CHUNK_SIZE,4,2              ; @SG_CHUNK_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EIO,4,2                        ; @EIO
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_IB_PD_UNSAFE_GLOBAL_RKEY,4,2   ; @IB_PD_UNSAFE_GLOBAL_RKEY
	.no_dead_strip	_nvme_rdma_map_data
.subsections_via_symbols
