	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_rdma_map_sg_fr
_nvme_rdma_map_sg_fr:                   ## @nvme_rdma_map_sg_fr
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	movq	%rdi, %rsi
	callq	_ib_mr_pool_get
	movq	%rax, (%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	movl	52(%rbx), %esi
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r15d, %r15d
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_ib_map_mr_sg
	movl	%eax, %r14d
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	(%r12), %rdi
	movq	(%rbx), %rdx
	movq	%rdi, %rsi
	callq	_ib_mr_pool_put
	movq	$0, (%rbx)
	testl	%r14d, %r14d
	js	LBB0_5
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	(%rbx), %r14
	movl	(%r14), %edi
	callq	_ib_inc_rkey
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ib_update_fast_reg_key
	movq	_nvme_rdma_memreg_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	48(%rbx), %r14
	movl	%eax, 48(%rbx)
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_IB_WR_REG_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	(%rbx), %rax
	movq	%rax, 16(%rbx)
	movl	(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rcx
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 8(%rbx)
	movl	8(%rax), %edi
	callq	_cpu_to_le64
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 12(%r14)
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	movl	8(%r14), %esi
	callq	_put_unaligned_le24
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_put_unaligned_le32
	movq	_NVME_KEY_SGL_FMT_DATA_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	movq	_NVME_SGL_FMT_INVALIDATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_8
LBB0_5:
	movl	%r14d, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_SZ_4K,4,2                      ## @SZ_4K
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nvme_rdma_memreg_done,4,2      ## @nvme_rdma_memreg_done
	.comm	_IB_WR_REG_MR,4,2               ## @IB_WR_REG_MR
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_NVME_KEY_SGL_FMT_DATA_DESC,4,2 ## @NVME_KEY_SGL_FMT_DATA_DESC
	.comm	_NVME_SGL_FMT_INVALIDATE,4,2    ## @NVME_SGL_FMT_INVALIDATE
	.no_dead_strip	_nvme_rdma_map_sg_fr
.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_sg_fr
_nvme_rdma_map_sg_fr:                   ; @nvme_rdma_map_sg_fr
	.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	x23, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	mov	x1, x0
	bl	_ib_mr_pool_get
	str	x0, [x20]
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	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	x0, [x20]
	ldr	w1, [x20, #52]
Lloh2:
	adrp	x8, _SZ_4K@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SZ_4K@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	mov	x2, x23
	mov	x3, #0
	bl	_ib_map_mr_sg
	mov	x22, x0
	cmp	w0, w23
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x21]
	ldr	x2, [x20]
	mov	x1, x0
	bl	_ib_mr_pool_put
	str	xzr, [x20]
	tbnz	w22, #31, LBB0_3
; %bb.6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	ldr	x21, [x20]
	ldr	w0, [x21]
	bl	_ib_inc_rkey
	mov	x1, x0
	mov	x0, x21
	bl	_ib_update_fast_reg_key
Lloh7:
	adrp	x8, _nvme_rdma_memreg_done@GOTPAGE
Lloh8:
	ldr	x8, [x8, _nvme_rdma_memreg_done@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mov	x21, x20
	str	w8, [x21, #48]!
	add	x0, x20, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh10:
	adrp	x8, _IB_WR_REG_MR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IB_WR_REG_MR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	stp	xzr, x21, [x20, #24]
	ldr	x8, [x20]
	str	x8, [x20, #16]
Lloh13:
	adrp	x9, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh19:
	adrp	x10, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w10, [x8]
	stp	w9, w10, [x20, #8]
	ldr	w0, [x8, #8]
	bl	_cpu_to_le64
	str	w0, [x19, #12]
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #8]
	bl	_put_unaligned_le24
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_put_unaligned_le32
	mov	w22, #0
Lloh22:
	adrp	x8, _NVME_KEY_SGL_FMT_DATA_DESC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NVME_KEY_SGL_FMT_DATA_DESC@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _NVME_SGL_FMT_INVALIDATE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NVME_SGL_FMT_INVALIDATE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8, lsl #4
	str	w8, [x19]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_SZ_4K,4,2                      ; @SZ_4K
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nvme_rdma_memreg_done,4,2      ; @nvme_rdma_memreg_done
	.comm	_IB_WR_REG_MR,4,2               ; @IB_WR_REG_MR
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_NVME_KEY_SGL_FMT_DATA_DESC,4,2 ; @NVME_KEY_SGL_FMT_DATA_DESC
	.comm	_NVME_SGL_FMT_INVALIDATE,4,2    ; @NVME_SGL_FMT_INVALIDATE
	.no_dead_strip	_nvme_rdma_map_sg_fr
.subsections_via_symbols
