	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_setup_rw
_nvme_setup_rw:                         ## @nvme_setup_rw
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movl	$0, -36(%rbp)
	movl	$0, -40(%rbp)
	movl	(%rsi), %eax
	movq	_REQ_FUA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_NVME_RW_FUA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -36(%rbp)
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_REQ_FAILFAST_DEV@GOTPCREL(%rip), %rsi
	movq	_REQ_RAHEAD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rsi), %esi
	orl	%edx, %esi
	testl	%eax, %esi
	je	LBB0_5
## %bb.4:
	movq	_NVME_RW_LR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movl	%ecx, -36(%rbp)
LBB0_5:
	testl	%eax, %edx
	je	LBB0_7
## %bb.6:
	movq	_NVME_RW_DSM_FREQ_PREFETCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
LBB0_7:
	movq	%r15, %rdi
	callq	_rq_data_dir
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_nvme_cmd_read@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_nvme_cmd_write@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%r14)
	movq	%r15, %rdi
	callq	_blk_rq_pos
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_nvme_block_nr
	movl	%eax, %edi
	callq	_cpu_to_le64
	movl	%eax, 32(%r14)
	movq	%r15, %rdi
	callq	_blk_rq_bytes
                                        ## kill: def $eax killed $eax def $rax
	movb	(%rbx), %cl
	sarl	%cl, %eax
	leal	-1(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r14)
	movq	%r15, %rdi
	callq	_req_op
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	cmpq	$0, (%r12)
	je	LBB0_13
## %bb.12:
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_nvme_assign_write_stream
LBB0_13:
	cmpq	$0, 8(%rbx)
	je	LBB0_22
## %bb.14:
	movq	%r15, %rdi
	callq	_blk_integrity_rq
	testl	%eax, %eax
	je	LBB0_15
LBB0_18:
	movl	4(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_19
## %bb.21:
	movq	_NVME_RW_PRINFO_PRCHK_GUARD@GOTPCREL(%rip), %rax
	movq	_NVME_RW_PRINFO_PRCHK_REF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, -36(%rbp)
	movq	%r15, %rdi
	callq	_t10_pi_ref_tag
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	jmp	LBB0_22
LBB0_15:
	movq	%rbx, %rdi
	callq	_nvme_ns_has_pi
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_BLK_STS_NOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_19:
	cmpl	$128, %eax
	jne	LBB0_22
## %bb.20:
	movq	_NVME_RW_PRINFO_PRCHK_GUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -36(%rbp)
LBB0_22:
	movl	-36(%rbp), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movl	-40(%rbp), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_23:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_NVME_RW_PRINFO_PRACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -36(%rbp)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_FUA,4,2                    ## @REQ_FUA
	.comm	_NVME_RW_FUA,4,2                ## @NVME_RW_FUA
	.comm	_REQ_FAILFAST_DEV,4,2           ## @REQ_FAILFAST_DEV
	.comm	_REQ_RAHEAD,4,2                 ## @REQ_RAHEAD
	.comm	_NVME_RW_LR,4,2                 ## @NVME_RW_LR
	.comm	_NVME_RW_DSM_FREQ_PREFETCH,4,2  ## @NVME_RW_DSM_FREQ_PREFETCH
	.comm	_nvme_cmd_write,4,2             ## @nvme_cmd_write
	.comm	_nvme_cmd_read,4,2              ## @nvme_cmd_read
	.comm	_REQ_OP_WRITE,8,3               ## @REQ_OP_WRITE
	.comm	_BLK_STS_NOTSUPP,4,2            ## @BLK_STS_NOTSUPP
	.comm	_NVME_RW_PRINFO_PRACT,4,2       ## @NVME_RW_PRINFO_PRACT
	.comm	_NVME_RW_PRINFO_PRCHK_GUARD,4,2 ## @NVME_RW_PRINFO_PRCHK_GUARD
	.comm	_NVME_RW_PRINFO_PRCHK_REF,4,2   ## @NVME_RW_PRINFO_PRCHK_REF
	.no_dead_strip	_nvme_setup_rw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_setup_rw
_nvme_setup_rw:                         ; @nvme_setup_rw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #24]
	str	xzr, [sp, #8]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _REQ_FUA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REQ_FUA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _NVME_RW_FUA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVME_RW_FUA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [sp, #12]
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
Lloh6:
	adrp	x10, _REQ_FAILFAST_DEV@GOTPAGE
Lloh7:
	ldr	x10, [x10, _REQ_FAILFAST_DEV@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x10]
Lloh9:
	adrp	x10, _REQ_RAHEAD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _REQ_RAHEAD@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w11, w10, w11
	tst	w11, w8
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x11, _NVME_RW_LR@GOTPAGE
Lloh13:
	ldr	x11, [x11, _NVME_RW_LR@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w9, w9, w11
	str	w9, [sp, #12]
LBB0_5:
	tst	w10, w8
	b.eq	LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _NVME_RW_DSM_FREQ_PREFETCH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NVME_RW_DSM_FREQ_PREFETCH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_7:
	mov	x0, x20
	bl	_rq_data_dir
Lloh18:
	adrp	x8, _nvme_cmd_write@GOTPAGE
Lloh19:
	ldr	x8, [x8, _nvme_cmd_write@GOTPAGEOFF]
Lloh20:
	adrp	x9, _nvme_cmd_read@GOTPAGE
Lloh21:
	ldr	x9, [x9, _nvme_cmd_read@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #48]
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x19, #40]
	mov	x0, x20
	bl	_blk_rq_pos
	mov	x1, x0
	mov	x0, x21
	bl	_nvme_block_nr
	bl	_cpu_to_le64
	str	w0, [x19, #32]
	mov	x0, x20
	bl	_blk_rq_bytes
	ldr	w8, [x21]
	asr	w8, w0, w8
	sub	w0, w8, #1
	bl	_cpu_to_le16
	str	x0, [x19, #24]
	mov	x0, x20
	bl	_req_op
Lloh22:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.9:
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x20
	bl	_nvme_assign_write_stream
LBB0_10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_18
; %bb.11:
	mov	x0, x20
	bl	_blk_integrity_rq
	cbz	w0, LBB0_14
LBB0_12:
	ldr	w8, [x21, #4]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_16
; %bb.13:
Lloh25:
	adrp	x8, _NVME_RW_PRINFO_PRCHK_GUARD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NVME_RW_PRINFO_PRCHK_GUARD@GOTPAGEOFF]
Lloh27:
	adrp	x9, _NVME_RW_PRINFO_PRCHK_REF@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NVME_RW_PRINFO_PRCHK_REF@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
	orr	w8, w8, w9
	str	w8, [sp, #12]
	mov	x0, x20
	bl	_t10_pi_ref_tag
	bl	_cpu_to_le32
	str	x0, [x19, #16]
	b	LBB0_18
LBB0_14:
	mov	x0, x21
	bl	_nvme_ns_has_pi
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_20
; %bb.15:
Lloh31:
	adrp	x8, _BLK_STS_NOTSUPP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BLK_STS_NOTSUPP@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_16:
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.17:
Lloh34:
	adrp	x8, _NVME_RW_PRINFO_PRCHK_GUARD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NVME_RW_PRINFO_PRCHK_GUARD@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_18:
	ldr	w0, [sp, #12]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	ldr	w0, [sp, #8]
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_19:
	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
	add	sp, sp, #64
	ret
LBB0_20:
Lloh37:
	adrp	x8, _NVME_RW_PRINFO_PRACT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _NVME_RW_PRINFO_PRACT@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_FUA,4,2                    ; @REQ_FUA
	.comm	_NVME_RW_FUA,4,2                ; @NVME_RW_FUA
	.comm	_REQ_FAILFAST_DEV,4,2           ; @REQ_FAILFAST_DEV
	.comm	_REQ_RAHEAD,4,2                 ; @REQ_RAHEAD
	.comm	_NVME_RW_LR,4,2                 ; @NVME_RW_LR
	.comm	_NVME_RW_DSM_FREQ_PREFETCH,4,2  ; @NVME_RW_DSM_FREQ_PREFETCH
	.comm	_nvme_cmd_write,4,2             ; @nvme_cmd_write
	.comm	_nvme_cmd_read,4,2              ; @nvme_cmd_read
	.comm	_REQ_OP_WRITE,8,3               ; @REQ_OP_WRITE
	.comm	_BLK_STS_NOTSUPP,4,2            ; @BLK_STS_NOTSUPP
	.comm	_NVME_RW_PRINFO_PRACT,4,2       ; @NVME_RW_PRINFO_PRACT
	.comm	_NVME_RW_PRINFO_PRCHK_GUARD,4,2 ; @NVME_RW_PRINFO_PRCHK_GUARD
	.comm	_NVME_RW_PRINFO_PRCHK_REF,4,2   ; @NVME_RW_PRINFO_PRCHK_REF
	.no_dead_strip	_nvme_setup_rw
.subsections_via_symbols
