	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mptspi_qcmd
_mptspi_qcmd:                           ## @mptspi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_shost_priv
	movq	8(%rbx), %rdi
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	cmpl	$0, (%rcx)
	je	LBB0_8
## %bb.2:
	movq	(%rax), %r14
	cmpl	$1, (%rdi)
	jne	LBB0_5
## %bb.3:
	movl	4(%rdi), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mptscsih_is_phys_disk
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	8(%rbx), %rdi
LBB0_5:
	callq	_scsi_target
	movl	%eax, %edi
	callq	_spi_dv_pending
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_scsi_print_command
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ddvprintk
LBB0_7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mptscsih_qcmd                  ## TAILCALL
LBB0_8:
	movq	_DID_NO_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	*16(%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DID_NO_CONNECT,4,2             ## @DID_NO_CONNECT
	.no_dead_strip	_mptspi_qcmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mptspi_qcmd
_mptspi_qcmd:                           ; @mptspi_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
	bl	_shost_priv
	mov	x8, x0
	ldr	x0, [x19, #8]
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_8
; %bb.1:
	ldr	w9, [x9]
	cbz	w9, LBB0_8
; %bb.2:
	ldr	x20, [x8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	w2, [x0, #4]
	mov	x0, x20
	mov	w1, #0
	bl	_mptscsih_is_phys_disk
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x0, [x19, #8]
LBB0_5:
	bl	_scsi_target
	bl	_spi_dv_pending
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_scsi_print_command
	mov	x1, x0
	mov	x0, x20
	bl	_ddvprintk
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mptscsih_qcmd
LBB0_8:
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, #16]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DID_NO_CONNECT,4,2             ; @DID_NO_CONNECT
	.no_dead_strip	_mptspi_qcmd
.subsections_via_symbols
