	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scsistart
_scsistart:                             ## @scsistart
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_cam_getccb
	movq	%rax, %r13
	movq	_MSG_SIMPLE_Q_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %eax
	orl	%r12d, %eax
	jne	LBB0_2
## %bb.1:
	movq	_MSG_ORDERED_Q_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movq	_SSD_FULL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %r14d
	movl	$120000, %ebx                   ## imm = 0x1D4C0
	cmovnel	%r14d, %ebx
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%rax
	pushq	$0
	callq	_scsi_start_stop
	addq	$32, %rsp
	movq	_CAM_DEV_QFRZDIS@GOTPCREL(%rip), %rcx
	movl	4(%r13), %eax
	orl	(%rcx), %eax
	movl	%eax, 4(%r13)
	movq	_arglist@GOTPCREL(%rip), %r14
	movq	_CAM_ARG_ERR_RECOVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	je	LBB0_4
## %bb.3:
	movq	_CAM_PASS_ERR_RECOVER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r13)
LBB0_4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_cam_send_ccb
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	_CAM_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rcx
	movq	_stdout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.7:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movl	(%r15), %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movl	$1, %r15d
	jmp	LBB0_16
LBB0_14:
	testl	%r12d, %r12d
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	callq	_fprintf
	movq	_CAM_ARG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r15d
	testl	%eax, (%r14)
	je	LBB0_16
## %bb.15:
	movq	_CAM_ESF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CAM_EPF_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_cam_error_print
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	callq	_fprintf
	movl	(%r15), %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_10
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	callq	_fprintf
	xorl	%r15d, %r15d
LBB0_16:
	movq	%r13, %rdi
	callq	_cam_freeccb
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ## @MSG_SIMPLE_Q_TAG
	.comm	_MSG_ORDERED_Q_TAG,4,2          ## @MSG_ORDERED_Q_TAG
	.comm	_SSD_FULL_SIZE,4,2              ## @SSD_FULL_SIZE
	.comm	_CAM_DEV_QFRZDIS,4,2            ## @CAM_DEV_QFRZDIS
	.comm	_arglist,4,2                    ## @arglist
	.comm	_CAM_ARG_ERR_RECOVER,4,2        ## @CAM_ARG_ERR_RECOVER
	.comm	_CAM_PASS_ERR_RECOVER,4,2       ## @CAM_PASS_ERR_RECOVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error sending START STOP UNIT command"

	.comm	_CAM_STATUS_MASK,4,2            ## @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ## @CAM_REQ_CMP
	.comm	_stdout,4,2                     ## @stdout
L_.str.1:                               ## @.str.1
	.asciz	"Unit started successfully"

L_.str.2:                               ## @.str.2
	.asciz	", Media loaded\n"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unit stopped successfully"

L_.str.5:                               ## @.str.5
	.asciz	", Media ejected\n"

L_.str.6:                               ## @.str.6
	.asciz	"Error received from start unit command\n"

L_.str.7:                               ## @.str.7
	.asciz	"Error received from stop unit command\n"

	.comm	_CAM_ARG_VERBOSE,4,2            ## @CAM_ARG_VERBOSE
	.comm	_CAM_ESF_ALL,4,2                ## @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ## @CAM_EPF_ALL
	.comm	_stderr,4,2                     ## @stderr
	.no_dead_strip	_scsistart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scsistart
_scsistart:                             ; @scsistart
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_cam_getccb
	mov	x19, x0
Lloh0:
	adrp	x8, _MSG_SIMPLE_Q_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_SIMPLE_Q_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w25
	ccmp	w22, #0, #0, eq
Lloh3:
	adrp	x8, _MSG_ORDERED_Q_TAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ORDERED_Q_TAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	csel	w3, w8, w25, eq
Lloh6:
	adrp	x8, _SSD_FULL_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSD_FULL_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
	mov	w8, #54464
	movk	w8, #1, lsl #16
	cmp	w23, #0
	csel	w8, w8, w23, eq
	str	w8, [sp]
	mov	x1, x24
	mov	x2, #0
	mov	x4, x22
	mov	x5, x20
	mov	w6, #0
	bl	_scsi_start_stop
Lloh9:
	adrp	x8, _CAM_DEV_QFRZDIS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAM_DEV_QFRZDIS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
Lloh12:
	adrp	x23, _arglist@GOTPAGE
Lloh13:
	ldr	x23, [x23, _arglist@GOTPAGEOFF]
	str	w8, [x19, #4]
	ldr	w9, [x23]
Lloh14:
	adrp	x10, _CAM_ARG_ERR_RECOVER@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CAM_ARG_ERR_RECOVER@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh17:
	adrp	x9, _CAM_PASS_ERR_RECOVER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CAM_PASS_ERR_RECOVER@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	bl	_cam_send_ccb
	tbnz	x0, #63, LBB0_7
; %bb.3:
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _CAM_STATUS_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CAM_STATUS_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _CAM_REQ_CMP@GOTPAGE
Lloh24:
	ldr	x10, [x10, _CAM_REQ_CMP@GOTPAGEOFF]
	and	w8, w9, w8
Lloh25:
	ldr	w9, [x10]
Lloh26:
	adrp	x24, _stdout@GOTPAGE
Lloh27:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
	ldr	w0, [x24]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
	cbz	w22, LBB0_11
; %bb.5:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w0, [x24]
	cbz	w20, LBB0_14
; %bb.6:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_10
LBB0_8:
Lloh34:
	adrp	x8, l_.str.6@PAGE
Lloh35:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh36:
	adrp	x9, l_.str.7@PAGE
Lloh37:
	add	x9, x9, l_.str.7@PAGEOFF
	cmp	w22, #0
	csel	x1, x9, x8, eq
	bl	_fprintf
	ldr	w8, [x23]
Lloh38:
	adrp	x9, _CAM_ARG_VERBOSE@GOTPAGE
Lloh39:
	ldr	x9, [x9, _CAM_ARG_VERBOSE@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh41:
	adrp	x8, _CAM_ESF_ALL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CAM_ESF_ALL@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
Lloh44:
	adrp	x8, _CAM_EPF_ALL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CAM_EPF_ALL@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x8]
Lloh47:
	adrp	x8, _stderr@GOTPAGE
Lloh48:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh49:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_cam_error_print
LBB0_10:
	mov	w20, #1
	b	LBB0_15
LBB0_11:
Lloh50:
	adrp	x1, l_.str.4@PAGE
Lloh51:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	ldr	w0, [x24]
	cbz	w20, LBB0_14
; %bb.12:
Lloh52:
	adrp	x1, l_.str.5@PAGE
Lloh53:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_13:
	bl	_fprintf
	mov	w20, #0
	b	LBB0_15
LBB0_14:
Lloh54:
	adrp	x1, l_.str.3@PAGE
Lloh55:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_15:
	mov	x0, x19
	bl	_cam_freeccb
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_SIMPLE_Q_TAG,4,2           ; @MSG_SIMPLE_Q_TAG
	.comm	_MSG_ORDERED_Q_TAG,4,2          ; @MSG_ORDERED_Q_TAG
	.comm	_SSD_FULL_SIZE,4,2              ; @SSD_FULL_SIZE
	.comm	_CAM_DEV_QFRZDIS,4,2            ; @CAM_DEV_QFRZDIS
	.comm	_arglist,4,2                    ; @arglist
	.comm	_CAM_ARG_ERR_RECOVER,4,2        ; @CAM_ARG_ERR_RECOVER
	.comm	_CAM_PASS_ERR_RECOVER,4,2       ; @CAM_PASS_ERR_RECOVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error sending START STOP UNIT command"

	.comm	_CAM_STATUS_MASK,4,2            ; @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ; @CAM_REQ_CMP
	.comm	_stdout,4,2                     ; @stdout
l_.str.1:                               ; @.str.1
	.asciz	"Unit started successfully"

l_.str.2:                               ; @.str.2
	.asciz	", Media loaded\n"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unit stopped successfully"

l_.str.5:                               ; @.str.5
	.asciz	", Media ejected\n"

l_.str.6:                               ; @.str.6
	.asciz	"Error received from start unit command\n"

l_.str.7:                               ; @.str.7
	.asciz	"Error received from stop unit command\n"

	.comm	_CAM_ARG_VERBOSE,4,2            ; @CAM_ARG_VERBOSE
	.comm	_CAM_ESF_ALL,4,2                ; @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ; @CAM_EPF_ALL
	.comm	_stderr,4,2                     ; @stderr
	.no_dead_strip	_scsistart
.subsections_via_symbols
