	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbp2scsi_complete_command
_sbp2scsi_complete_command:             ## @sbp2scsi_complete_command
	.cfi_startproc
## %bb.0:
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r15
	leal	-128(%r14), %eax
	cmpl	$6, %eax
	ja	LBB0_9
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_8:
	movq	%rcx, %r12
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_SBP2_ERR
	movq	_DID_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_15:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	jmp	_SBP2_ERR                       ## TAILCALL
LBB0_9:
	movq	%rcx, %r12
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_SBP2_ERR
	movq	_DID_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	movq	%rcx, %r12
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_SBP2_ERR
	movq	_DID_NO_CONNECT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	shll	$16, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_scsi_print_command
	jmp	LBB0_11
LBB0_5:
	movq	%rcx, %r12
	movq	_CHECK_CONDITION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	movq	_DID_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_11
LBB0_4:
	movq	%rcx, %r12
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_SBP2_ERR
	movq	_DID_BUS_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	%rcx, %r12
	movq	_DID_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	shll	$16, %eax
	movl	%eax, (%rbx)
LBB0_11:
	movl	(%r15), %edi
	callq	_hpsb_node_entry_valid
	cmpl	$130, %r14d
	je	LBB0_14
## %bb.12:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_SBP2_ERR
	movq	_DID_BUS_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$16, %eax
	movl	%eax, (%rbx)
LBB0_14:
	movq	%rbx, %rdi
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCpnt is NULL"

	.comm	_DID_OK,4,2                     ## @DID_OK
L_.str.1:                               ## @.str.1
	.asciz	"SBP2_SCSI_STATUS_BUSY"

	.comm	_DID_BUS_BUSY,4,2               ## @DID_BUS_BUSY
	.comm	_CHECK_CONDITION,4,2            ## @CHECK_CONDITION
L_.str.2:                               ## @.str.2
	.asciz	"SBP2_SCSI_STATUS_SELECTION_TIMEOUT"

	.comm	_DID_NO_CONNECT,4,2             ## @DID_NO_CONNECT
L_.str.3:                               ## @.str.3
	.asciz	"Bad SCSI status = %x"

	.comm	_DID_ERROR,4,2                  ## @DID_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"Unsupported SCSI status = %x"

L_.str.5:                               ## @.str.5
	.asciz	"Completing command with busy (bus reset)"

	.no_dead_strip	_sbp2scsi_complete_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbp2scsi_complete_command
_sbp2scsi_complete_command:             ; @sbp2scsi_complete_command
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_4
; %bb.1:
	sub	sp, sp, #64
	.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_remember_state
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	sub	w8, w1, #128
	cmp	w8, #6
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	b.hi	LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	str	x20, [sp]
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_SBP2_ERR
Lloh4:
	adrp	x8, _DID_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DID_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	_SBP2_ERR
LBB0_5:
	.cfi_restore_state
	mov	x8, x20
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_SBP2_ERR
Lloh10:
	adrp	x8, _DID_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DID_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_SBP2_ERR
Lloh14:
	adrp	x8, _DID_NO_CONNECT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DID_NO_CONNECT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	str	w8, [x19]
	mov	x0, x19
	bl	_scsi_print_command
	b	LBB0_13
LBB0_8:
Lloh16:
	adrp	x8, _CHECK_CONDITION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CHECK_CONDITION@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _DID_OK@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DID_OK@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #1
	b	LBB0_12
LBB0_9:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_SBP2_ERR
Lloh24:
	adrp	x8, _DID_BUS_BUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DID_BUS_BUSY@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh26:
	adrp	x8, _DID_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DID_OK@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	lsl	w8, w8, #16
LBB0_12:
	str	w8, [x19]
LBB0_13:
	ldr	w0, [x21]
	bl	_hpsb_node_entry_valid
	cmp	w20, #130
	b.eq	LBB0_16
; %bb.14:
	cbnz	w0, LBB0_16
; %bb.15:
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_SBP2_ERR
Lloh30:
	adrp	x8, _DID_BUS_BUSY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DID_BUS_BUSY@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	lsl	w8, w8, #16
	str	w8, [x19]
LBB0_16:
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	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
	add	sp, sp, #64
	br	x1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCpnt is NULL"

	.comm	_DID_OK,4,2                     ; @DID_OK
l_.str.1:                               ; @.str.1
	.asciz	"SBP2_SCSI_STATUS_BUSY"

	.comm	_DID_BUS_BUSY,4,2               ; @DID_BUS_BUSY
	.comm	_CHECK_CONDITION,4,2            ; @CHECK_CONDITION
l_.str.2:                               ; @.str.2
	.asciz	"SBP2_SCSI_STATUS_SELECTION_TIMEOUT"

	.comm	_DID_NO_CONNECT,4,2             ; @DID_NO_CONNECT
l_.str.3:                               ; @.str.3
	.asciz	"Bad SCSI status = %x"

	.comm	_DID_ERROR,4,2                  ; @DID_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"Unsupported SCSI status = %x"

l_.str.5:                               ; @.str.5
	.asciz	"Completing command with busy (bus reset)"

	.no_dead_strip	_sbp2scsi_complete_command
.subsections_via_symbols
