	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __nvmet_fc_fcp_nvme_cmd_done
___nvmet_fc_fcp_nvme_cmd_done:          ## @__nvmet_fc_fcp_nvme_cmd_done
	.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	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	32(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %r13d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.5:
	testl	%r13d, %r13d
	jne	LBB0_8
## %bb.6:
	leaq	40(%r12), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	24(%r12), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 64(%r12)
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%r12)
	movl	72(%r12), %eax
	movl	%eax, 48(%r12)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r12)
	jmp	LBB0_7
LBB0_1:
	movl	64(%r12), %eax
	movq	24(%r12), %rcx
	movl	%eax, 4(%rcx)
	testl	%r13d, %r13d
	je	LBB0_2
LBB0_8:
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvmet_fc_abort_op              ## TAILCALL
LBB0_2:
	movq	8(%r12), %rax
	movq	_NVMET_FCP_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	cmpq	$0, 16(%r12)
	je	LBB0_7
## %bb.4:
	movq	_NVMET_FCOP_READDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvmet_fc_transfer_fcp_data     ## TAILCALL
LBB0_7:
	movq	%r12, %rdi
	callq	_nvmet_fc_free_tgt_pgs
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvmet_fc_xmt_fcp_rsp           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMET_FCP_READ,8,3             ## @NVMET_FCP_READ
	.comm	_NVMET_FCOP_READDATA,4,2        ## @NVMET_FCOP_READDATA
	.no_dead_strip	___nvmet_fc_fcp_nvme_cmd_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __nvmet_fc_fcp_nvme_cmd_done
___nvmet_fc_fcp_nvme_cmd_done:          ; @__nvmet_fc_fcp_nvme_cmd_done
	.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, x2
	mov	x19, x1
	mov	x20, x0
	add	x23, x1, #32
	mov	x0, x23
	bl	_spin_lock_irqsave
	mov	x22, x19
	ldr	w24, [x22], #40
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	cbz	w21, LBB0_3
; %bb.1:
	cbnz	w24, LBB0_4
; %bb.2:
	mov	x0, x22
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x19, #24]
	ldp	w0, w9, [x8]
	str	w9, [x19, #64]
	bl	_cpu_to_le16
	str	x0, [x19, #56]
	ldr	w8, [x19, #72]
	str	w8, [x19, #48]
	mov	x0, x21
	bl	_cpu_to_le16
	str	x0, [x19, #40]
	b	LBB0_8
LBB0_3:
	ldr	w8, [x19, #64]
	ldr	x9, [x19, #24]
	str	w8, [x9, #4]
	cbz	w24, LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	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	_nvmet_fc_abort_op
LBB0_5:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _NVMET_FCP_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVMET_FCP_READ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _NVMET_FCOP_READDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVMET_FCOP_READDATA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	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	_nvmet_fc_transfer_fcp_data
LBB0_8:
	mov	x0, x19
	bl	_nvmet_fc_free_tgt_pgs
	mov	x0, x20
	mov	x1, x19
	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	_nvmet_fc_xmt_fcp_rsp
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMET_FCP_READ,8,3             ; @NVMET_FCP_READ
	.comm	_NVMET_FCOP_READDATA,4,2        ; @NVMET_FCOP_READDATA
	.no_dead_strip	___nvmet_fc_fcp_nvme_cmd_done
.subsections_via_symbols
