	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scsiinquiry
_scsiinquiry:                           ## @scsiinquiry
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_cam_getccb
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_CCB_CLEAR_ALL_EXCEPT_HDR
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_bzero
	movq	_SHORT_INQUIRY_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_SSD_FULL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r14d, %r14d
	movl	$5000, %eax                     ## imm = 0x1388
	cmovnel	%r14d, %eax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r13
	movq	%r12, %r8
	pushq	%rax
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_scsi_inquiry
	addq	$32, %rsp
	movq	_CAM_DEV_QFRZDIS@GOTPCREL(%rip), %rcx
	movl	4(%rbx), %eax
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	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(%rbx)
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cam_send_ccb
	testq	%rax, %rax
	js	LBB0_12
## %bb.5:
	movq	_CAM_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.6:
	movq	%rbx, %rdi
	callq	_cam_freeccb
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	movl	8(%r15), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
	movq	%r13, %rdi
	callq	_scsi_print_inquiry
	movq	%r13, %rdi
	callq	_free
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_cam_freeccb
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	_warnx
LBB0_10:
	movl	$1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	movq	%rbx, %rdi
	callq	_cam_freeccb
	jmp	LBB0_10
LBB0_13:
	movq	_CAM_ARG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_15
## %bb.14:
	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	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cam_error_print
LBB0_15:
	movq	%rbx, %rdi
	callq	_cam_freeccb
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't allocate CCB"

L_.str.1:                               ## @.str.1
	.asciz	"can't malloc memory for inquiry\n"

	.comm	_SHORT_INQUIRY_LENGTH,4,2       ## @SHORT_INQUIRY_LENGTH
	.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
L_.str.2:                               ## @.str.2
	.asciz	"error sending INQUIRY command"

	.comm	_CAM_STATUS_MASK,4,2            ## @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ## @CAM_REQ_CMP
	.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
	.comm	_stdout,4,2                     ## @stdout
L_.str.3:                               ## @.str.3
	.asciz	"%s%d: "

	.no_dead_strip	_scsiinquiry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scsiinquiry
_scsiinquiry:                           ; @scsiinquiry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	bl	_cam_getccb
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	bl	_CCB_CLEAR_ALL_EXCEPT_HDR
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x19, x0
	mov	w1, #4
	bl	_bzero
Lloh0:
	adrp	x8, _SHORT_INQUIRY_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHORT_INQUIRY_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x8, _SSD_FULL_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSD_FULL_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #5000
	cmp	w24, #0
	csel	w9, w9, w24, eq
	stp	w8, w9, [sp]
	mov	x0, x20
	mov	x1, x23
	mov	x2, #0
	mov	x3, x22
	mov	x4, x19
	mov	w6, #0
	mov	w7, #0
	bl	_scsi_inquiry
Lloh6:
	adrp	x8, _CAM_DEV_QFRZDIS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAM_DEV_QFRZDIS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
Lloh9:
	adrp	x22, _arglist@GOTPAGE
Lloh10:
	ldr	x22, [x22, _arglist@GOTPAGEOFF]
	str	w8, [x20, #4]
	ldr	w9, [x22]
Lloh11:
	adrp	x10, _CAM_ARG_ERR_RECOVER@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CAM_ARG_ERR_RECOVER@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh14:
	adrp	x9, _CAM_PASS_ERR_RECOVER@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CAM_PASS_ERR_RECOVER@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_cam_send_ccb
	tbnz	x0, #63, LBB0_12
; %bb.5:
	ldr	w8, [x20]
Lloh17:
	adrp	x9, _CAM_STATUS_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CAM_STATUS_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh20:
	adrp	x9, _CAM_REQ_CMP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.6:
	mov	x0, x20
	bl	_cam_freeccb
Lloh23:
	adrp	x8, _stdout@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	x2, [x21]
	ldr	w3, [x21, #8]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	bl	_scsi_print_inquiry
	mov	x0, x19
	bl	_free
	mov	w0, #0
	b	LBB0_11
LBB0_7:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_cam_freeccb
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	_warnx
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	mov	x0, x20
	bl	_cam_freeccb
	b	LBB0_10
LBB0_13:
	ldr	w8, [x22]
Lloh34:
	adrp	x9, _CAM_ARG_VERBOSE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _CAM_ARG_VERBOSE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh37:
	adrp	x8, _CAM_ESF_ALL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CAM_ESF_ALL@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
Lloh40:
	adrp	x8, _CAM_EPF_ALL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _CAM_EPF_ALL@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
Lloh43:
	adrp	x8, _stderr@GOTPAGE
Lloh44:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh45:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_cam_error_print
LBB0_15:
	mov	x0, x20
	bl	_cam_freeccb
	mov	x0, x19
	bl	_free
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't allocate CCB"

l_.str.1:                               ; @.str.1
	.asciz	"can't malloc memory for inquiry\n"

	.comm	_SHORT_INQUIRY_LENGTH,4,2       ; @SHORT_INQUIRY_LENGTH
	.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
l_.str.2:                               ; @.str.2
	.asciz	"error sending INQUIRY command"

	.comm	_CAM_STATUS_MASK,4,2            ; @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ; @CAM_REQ_CMP
	.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
	.comm	_stdout,4,2                     ; @stdout
l_.str.3:                               ; @.str.3
	.asciz	"%s%d: "

	.no_dead_strip	_scsiinquiry
.subsections_via_symbols
