	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_fc_prep_fcp_rsp
_nvmet_fc_prep_fcp_rsp:                 ## @nvmet_fc_prep_fcp_rsp
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %rax
	movq	24(%rsi), %rdi
	movq	(%rax), %rax
	movq	_NVMET_FCOP_READDATA_RSP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	shlq	$5, %rdx
	movq	(%rsi,%rdx), %r15
	addq	$12, %rdi
	callq	_atomic_inc_return
	movq	24(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	leaq	48(%rbx), %r12
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.4:
	leaq	40(%rbx), %r13
	movq	%r13, %rdi
	callq	_nvme_is_fabrics
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	cmpq	32(%rbx), %r15
	jne	LBB0_12
## %bb.6:
	movl	72(%rbx), %edi
	callq	_le16_to_cpu
	testl	$65534, %eax                    ## imm = 0xFFFE
	jne	LBB0_12
## %bb.7:
	movq	68(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_12
## %bb.8:
	cmpq	$0, 76(%rbx)
	jne	LBB0_12
## %bb.9:
	movq	_NVME_CMD_FUSE_FIRST@GOTPCREL(%rip), %rax
	movq	_NVME_CMD_FUSE_SECOND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r13)
	jne	LBB0_12
## %bb.10:
	movq	24(%rbx), %r13
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_le16_to_cpu
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_queue_90percent_full
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	movq	16(%rbx), %rax
	movq	%r12, 16(%rax)
	movl	8(%rbx), %ecx
	movl	%ecx, 12(%rax)
	movl	$4, %edi
	callq	_cpu_to_be16
	movl	%eax, 64(%rbx)
	movq	24(%rbx), %rdi
	addq	$8, %rdi
	callq	_atomic_inc_return
	movq	%rax, %rdi
	callq	_cpu_to_be32
	movq	%rax, 56(%rbx)
	movq	%r15, %rdi
	callq	_cpu_to_be32
	movq	%rax, 48(%rbx)
	movl	$32, %eax
LBB0_13:
	movq	16(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movl	(%r14), %edi
	movl	8(%rbx), %esi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$32, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fc_dma_sync_single_for_device  ## TAILCALL
LBB0_11:
	movq	16(%rbx), %rax
	movq	%r12, 16(%rax)
	movl	8(%rbx), %ecx
	movl	%ecx, 12(%rax)
	movq	_NVME_FC_SIZEOF_ZEROS_RSP@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r15), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_FCOP_READDATA_RSP,8,3    ## @NVMET_FCOP_READDATA_RSP
	.comm	_NVME_CMD_FUSE_FIRST,4,2        ## @NVME_CMD_FUSE_FIRST
	.comm	_NVME_CMD_FUSE_SECOND,4,2       ## @NVME_CMD_FUSE_SECOND
	.comm	_NVME_FC_SIZEOF_ZEROS_RSP,4,2   ## @NVME_FC_SIZEOF_ZEROS_RSP
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_nvmet_fc_prep_fcp_rsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_fc_prep_fcp_rsp
_nvmet_fc_prep_fcp_rsp:                 ; @nvmet_fc_prep_fcp_rsp
	.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	x19, x1
	mov	x20, x0
	add	x22, x1, #48
	ldp	x8, x9, [x1, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x10, _NVMET_FCOP_READDATA_RSP@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NVMET_FCOP_READDATA_RSP@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	cset	w8, eq
	lsl	x8, x8, #5
	ldr	x21, [x1, x8]
	add	x0, x9, #12
	bl	_atomic_inc_return
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	sdiv	x9, x0, x8
	msub	x8, x9, x8, x0
	cbz	x8, LBB0_8
; %bb.1:
	add	x23, x19, #40
	mov	x0, x23
	bl	_nvme_is_fabrics
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x19, #32]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x19, #72]
	bl	_le16_to_cpu
	tst	w0, #0xfffe
	b.ne	LBB0_8
; %bb.4:
	ldur	x0, [x19, #68]
	cbnz	x0, LBB0_8
; %bb.5:
	ldur	x8, [x19, #76]
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _NVME_CMD_FUSE_FIRST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVME_CMD_FUSE_FIRST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _NVME_CMD_FUSE_SECOND@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NVME_CMD_FUSE_SECOND@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	ldr	x23, [x19, #24]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_le16_to_cpu
	mov	x1, x0
	mov	x0, x23
	bl	_queue_90percent_full
	cbz	x0, LBB0_10
LBB0_8:
	ldr	x8, [x19, #16]
	str	x22, [x8, #16]
	ldr	w9, [x19, #8]
	str	w9, [x8, #12]
	mov	w0, #4
	bl	_cpu_to_be16
	str	w0, [x19, #64]
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	bl	_atomic_inc_return
	bl	_cpu_to_be32
	str	x0, [x19, #56]
	mov	x0, x21
	bl	_cpu_to_be32
	str	x0, [x19, #48]
	mov	w8, #32
LBB0_9:
	ldr	x9, [x19, #16]
	str	w8, [x9, #8]
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w1, [x19, #8]
Lloh11:
	ldr	w3, [x8]
	mov	w2, #32
	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
	b	_fc_dma_sync_single_for_device
LBB0_10:
	ldr	x8, [x19, #16]
	str	x22, [x8, #16]
	ldr	w9, [x19, #8]
	str	w9, [x8, #12]
Lloh12:
	adrp	x21, _NVME_FC_SIZEOF_ZEROS_RSP@GOTPAGE
Lloh13:
	ldr	x21, [x21, _NVME_FC_SIZEOF_ZEROS_RSP@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_FCOP_READDATA_RSP,8,3    ; @NVMET_FCOP_READDATA_RSP
	.comm	_NVME_CMD_FUSE_FIRST,4,2        ; @NVME_CMD_FUSE_FIRST
	.comm	_NVME_CMD_FUSE_SECOND,4,2       ; @NVME_CMD_FUSE_SECOND
	.comm	_NVME_FC_SIZEOF_ZEROS_RSP,4,2   ; @NVME_FC_SIZEOF_ZEROS_RSP
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_nvmet_fc_prep_fcp_rsp
.subsections_via_symbols
