	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_setup_sgl_simple
_nvme_setup_sgl_simple:                 ## @nvme_setup_sgl_simple
	.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
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_blk_mq_rq_to_pdu
	movq	%rax, %r13
	movl	(%r14), %r15d
	movq	%rbx, %rdi
	callq	_rq_dma_dir
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_dma_map_bvec
	movl	%eax, 4(%r13)
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BLK_STS_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movl	(%r12), %eax
	movl	%eax, (%r13)
	movq	_NVME_CMD_SGL_METABUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 12(%rbx)
	movl	4(%r13), %edi
	callq	_cpu_to_le64
	movl	%eax, 8(%rbx)
	movl	(%r13), %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%rbx)
	movq	_NVME_SGL_FMT_DATA_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$4, %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_STS_RESOURCE,4,2           ## @BLK_STS_RESOURCE
	.comm	_NVME_CMD_SGL_METABUF,4,2       ## @NVME_CMD_SGL_METABUF
	.comm	_NVME_SGL_FMT_DATA_DESC,4,2     ## @NVME_SGL_FMT_DATA_DESC
	.no_dead_strip	_nvme_setup_sgl_simple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_setup_sgl_simple
_nvme_setup_sgl_simple:                 ; @nvme_setup_sgl_simple
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x1
	bl	_blk_mq_rq_to_pdu
	mov	x20, x0
	ldr	w24, [x23]
	mov	x0, x22
	bl	_rq_dma_dir
	mov	x2, x0
	mov	x0, x24
	mov	x1, x21
	mov	w3, #0
	bl	_dma_map_bvec
	mov	x1, x0
	str	w0, [x20, #4]
	ldr	w0, [x23]
	bl	_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BLK_STS_RESOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLK_STS_RESOURCE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w8, [x21]
	str	w8, [x20]
Lloh3:
	adrp	x8, _NVME_CMD_SGL_METABUF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVME_CMD_SGL_METABUF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x20, #4]
	bl	_cpu_to_le64
	str	w0, [x19, #8]
	ldr	w0, [x20]
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
Lloh6:
	adrp	x9, _NVME_SGL_FMT_DATA_DESC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVME_SGL_FMT_DATA_DESC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w9, #4
	stp	w9, w8, [x19]
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_STS_RESOURCE,4,2           ; @BLK_STS_RESOURCE
	.comm	_NVME_CMD_SGL_METABUF,4,2       ; @NVME_CMD_SGL_METABUF
	.comm	_NVME_SGL_FMT_DATA_DESC,4,2     ; @NVME_SGL_FMT_DATA_DESC
	.no_dead_strip	_nvme_setup_sgl_simple
.subsections_via_symbols
