	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptsas_qcmd
_mptsas_qcmd:                           ## @mptsas_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	16(%rsi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_4
LBB0_3:
	movq	_DID_NO_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	*8(%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	_shost_priv
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.5:
	movq	_SCSI_MLQUEUE_HOST_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_7:
	movq	_MPT_DEBUG_SCSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_scsi_print_command
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mptscsih_qcmd                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DID_NO_CONNECT,4,2             ## @DID_NO_CONNECT
	.comm	_SCSI_MLQUEUE_HOST_BUSY,4,2     ## @SCSI_MLQUEUE_HOST_BUSY
	.comm	_MPT_DEBUG_SCSI,4,2             ## @MPT_DEBUG_SCSI
	.no_dead_strip	_mptsas_qcmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptsas_qcmd
_mptsas_qcmd:                           ; @mptsas_qcmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x1, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _DID_NO_CONNECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DID_NO_CONNECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	str	w8, [x19]
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_shost_priv
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _SCSI_MLQUEUE_HOST_BUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCSI_MLQUEUE_HOST_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_7:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MPT_DEBUG_SCSI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MPT_DEBUG_SCSI@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_scsi_print_command
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mptscsih_qcmd
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DID_NO_CONNECT,4,2             ; @DID_NO_CONNECT
	.comm	_SCSI_MLQUEUE_HOST_BUSY,4,2     ; @SCSI_MLQUEUE_HOST_BUSY
	.comm	_MPT_DEBUG_SCSI,4,2             ; @MPT_DEBUG_SCSI
	.no_dead_strip	_mptsas_qcmd
.subsections_via_symbols
