	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptfc_qcmd
_mptfc_qcmd:                            ## @mptfc_qcmd
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	16(%rsi), %rdi
	callq	_scsi_target
	movl	%eax, %edi
	callq	_starget_to_rport
	movq	%rax, %r14
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_fc_remote_port_chkready
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	%r15d, (%rbx)
	jmp	LBB0_6
LBB0_2:
	movq	_DID_NO_CONNECT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	shll	$16, %eax
	movl	%eax, (%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_DID_IMM_RETRY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mptscsih_qcmd                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DID_NO_CONNECT,4,2             ## @DID_NO_CONNECT
	.comm	_DID_IMM_RETRY,4,2              ## @DID_IMM_RETRY
	.no_dead_strip	_mptfc_qcmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptfc_qcmd
_mptfc_qcmd:                            ; @mptfc_qcmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	ldr	x0, [x1, #16]
	bl	_scsi_target
	bl	_starget_to_rport
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, x0
	bl	_fc_remote_port_chkready
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
	str	w21, [x19]
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _DID_NO_CONNECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DID_NO_CONNECT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	str	w8, [x19]
LBB0_6:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:
Lloh2:
	adrp	x8, _DID_IMM_RETRY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DID_IMM_RETRY@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mptscsih_qcmd
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DID_NO_CONNECT,4,2             ; @DID_NO_CONNECT
	.comm	_DID_IMM_RETRY,4,2              ; @DID_IMM_RETRY
	.no_dead_strip	_mptfc_qcmd
.subsections_via_symbols
