	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_setup_prp_simple
_nvme_setup_prp_simple:                 ## @nvme_setup_prp_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_blk_mq_rq_to_pdu
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r15d
	movl	4(%r14), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	-1(%rax), %r12d
	andl	(%r13), %r12d
	movq	%rbx, %rdi
	callq	_rq_dma_dir
	movl	%r15d, %edi
	movq	%r13, %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_dma_map_bvec
	movq	%rax, 8(%r13)
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BLK_STS_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	subl	%r12d, %r15d
	movl	4(%rbx), %eax
	movl	%eax, (%r13)
	movq	8(%r13), %rdi
	callq	_cpu_to_le64
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 8(%r14)
	cmpl	%r15d, 4(%rbx)
	movl	$0, %ebx
	jbe	LBB0_4
## %bb.3:
	movl	%r15d, %edi
	addq	8(%r13), %rdi
	callq	_cpu_to_le64
	movq	%rax, (%r14)
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %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
	.no_dead_strip	_nvme_setup_prp_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_prp_simple
_nvme_setup_prp_simple:                 ; @nvme_setup_prp_simple
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x1
	bl	_blk_mq_rq_to_pdu
	mov	x21, x0
	ldr	w25, [x20]
	ldp	w24, w26, [x23]
	mov	x0, x22
	bl	_rq_dma_dir
	mov	x2, x0
	mov	x0, x24
	mov	x1, x20
	mov	w3, #0
	bl	_dma_map_bvec
	mov	x1, x0
	str	x0, [x21, #8]
	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_5
LBB0_2:
	sub	w8, w26, #1
	and	w8, w8, w25
	sub	w22, w26, w8
	ldr	w8, [x20, #4]
	str	w8, [x21]
	ldr	x0, [x21, #8]
	bl	_cpu_to_le64
	str	x0, [x19, #8]
	ldr	w8, [x20, #4]
	cmp	w8, w22
	b.ls	LBB0_4
; %bb.3:
	ldr	x8, [x21, #8]
	add	x0, x8, w22, uxtw
	bl	_cpu_to_le64
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_STS_RESOURCE,4,2           ; @BLK_STS_RESOURCE
	.no_dead_strip	_nvme_setup_prp_simple
.subsections_via_symbols
