	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_scsi_inquiry
_format_scsi_inquiry:                   ## @format_scsi_inquiry
	.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	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	%rsi, %rdi
	callq	_SID_QUAL_IS_VENDOR_UNIQUE
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	%rbx, %rdi
	callq	_SID_TYPE
	movq	_T_DIRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.2:
	movq	%rbx, %rdi
	callq	_SID_QUAL
	movq	_SID_QUAL_LU_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.3:
	movl	8(%rbx), %esi
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	$4, %edx
	movl	$16, %ecx
	callq	_cam_strvis
	movl	4(%rbx), %esi
	leaq	-96(%rbp), %rdi
	movl	$4, %edx
	movl	$48, %ecx
	callq	_cam_strvis
	movl	(%rbx), %esi
	leaq	-112(%rbp), %rdi
	movl	$4, %edx
	movl	$16, %ecx
	callq	_cam_strvis
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_SID_ANSI_REV
	cmpl	$5, %eax
	je	LBB0_9
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movslq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rdx
	leaq	-96(%rbp), %rcx
	leaq	-112(%rbp), %r8
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	leaq	-124(%rbp), %rdi
	callq	_strcpy
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_SID_ANSI_REV
	leaq	L_.str.4(%rip), %rdx
	leaq	-124(%rbp), %rdi
	movl	$12, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_11:
	movslq	(%r14), %rdi
	leaq	-124(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.5(%rip), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-96(%rbp), %r8
	leaq	-112(%rbp), %r9
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_T_DIRECT,8,3                   ## @T_DIRECT
	.comm	_SID_QUAL_LU_CONNECTED,8,3      ## @SID_QUAL_LU_CONNECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ATA"

L_.str.1:                               ## @.str.1
	.asciz	"<%s %s> SATA"

L_.str.2:                               ## @.str.2
	.asciz	"SCSI-CCS"

L_.str.3:                               ## @.str.3
	.asciz	"SAS"

L_.str.4:                               ## @.str.4
	.asciz	"SCSI-%d"

L_.str.5:                               ## @.str.5
	.asciz	"<%s %s %s> %s"

	.no_dead_strip	_format_scsi_inquiry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_scsi_inquiry
_format_scsi_inquiry:                   ; @format_scsi_inquiry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x0, x1
	bl	_SID_QUAL_IS_VENDOR_UNIQUE
	cbnz	x0, LBB0_13
; %bb.1:
	mov	x0, x20
	bl	_SID_TYPE
Lloh3:
	adrp	x8, _T_DIRECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _T_DIRECT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.2:
	mov	x0, x20
	bl	_SID_QUAL
Lloh6:
	adrp	x8, _SID_QUAL_LU_CONNECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SID_QUAL_LU_CONNECTED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.3:
	ldr	w1, [x20, #8]
	sub	x0, x29, #56
	mov	w2, #4
	mov	w3, #16
	bl	_cam_strvis
	ldr	w1, [x20, #4]
	add	x21, sp, #72
	add	x0, sp, #72
	mov	w2, #4
	mov	w3, #48
	bl	_cam_strvis
	ldr	w1, [x20]
	add	x22, sp, #56
	add	x0, sp, #56
	mov	w2, #4
	mov	w3, #16
	bl	_cam_strvis
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	sub	x0, x29, #56
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_SID_ANSI_REV
	cmp	w0, #5
	b.eq	LBB0_8
; %bb.5:
	cmp	w0, #128
	b.ne	LBB0_10
; %bb.6:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	ldrsw	x0, [x19]
	stp	x21, x22, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	add	x0, sp, #44
	bl	_strcpy
	b	LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_SID_ANSI_REV
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x0, sp, #44
	mov	w1, #12
	bl	_snprintf
LBB0_11:
	ldrsw	x0, [x19]
	add	x8, sp, #44
	add	x9, sp, #56
	stp	x9, x8, [sp, #16]
	add	x8, sp, #72
	sub	x9, x29, #56
	stp	x9, x8, [sp]
Lloh19:
	adrp	x2, l_.str.5@PAGE
Lloh20:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_12:
	mov	w1, #4
	bl	_snprintf
LBB0_13:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_T_DIRECT,8,3                   ; @T_DIRECT
	.comm	_SID_QUAL_LU_CONNECTED,8,3      ; @SID_QUAL_LU_CONNECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ATA"

l_.str.1:                               ; @.str.1
	.asciz	"<%s %s> SATA"

l_.str.2:                               ; @.str.2
	.asciz	"SCSI-CCS"

l_.str.3:                               ; @.str.3
	.asciz	"SAS"

l_.str.4:                               ; @.str.4
	.asciz	"SCSI-%d"

l_.str.5:                               ; @.str.5
	.asciz	"<%s %s %s> %s"

	.no_dead_strip	_format_scsi_inquiry
.subsections_via_symbols
