	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dev_has_vpd_page               ## -- Begin function dev_has_vpd_page
	.p2align	4, 0x90
_dev_has_vpd_page:                      ## @dev_has_vpd_page
	.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	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_cam_getccb
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_CCB_CLEAR_ALL_EXCEPT_HDR
	leaq	-64(%rbp), %rdi
	movl	$16, %esi
	callq	_bzero
	movq	_MSG_SIMPLE_Q_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SVPD_SUPPORTED_PAGE_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_SSD_FULL_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	testl	%r12d, %r12d
	movl	$5000, %eax                     ## imm = 0x1388
	cmovnel	%r12d, %eax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	leaq	-64(%rbp), %r8
	movl	$16, %r9d
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	$1
	callq	_scsi_inquiry
	addq	$32, %rsp
	movq	_CAM_DEV_QFRZDIS@GOTPCREL(%rip), %rcx
	movl	4(%rbx), %eax
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	movq	_CAM_PASS_ERR_RECOVER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%rbx)
LBB0_3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cam_send_ccb
	testq	%rax, %rax
	js	LBB0_11
## %bb.4:
	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_12
## %bb.5:
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.6:
	movq	-56(%rbp), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%rcx,%rdx,8)
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_7
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_16
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movl	$-1, %r14d
	jmp	LBB0_17
LBB0_11:
	movq	%rbx, %rdi
	callq	_cam_freeccb
	movl	$-1, %r14d
	jmp	LBB0_17
LBB0_12:
	movl	$-1, %r14d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_16
## %bb.13:
	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
	jmp	LBB0_16
LBB0_15:
	movl	$1, %r14d
LBB0_16:
	movq	%rbx, %rdi
	callq	_cam_freeccb
LBB0_17:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate CCB"

	.comm	_MSG_SIMPLE_Q_TAG,4,2           ## @MSG_SIMPLE_Q_TAG
	.comm	_SVPD_SUPPORTED_PAGE_LIST,4,2   ## @SVPD_SUPPORTED_PAGE_LIST
	.comm	_SSD_FULL_SIZE,4,2              ## @SSD_FULL_SIZE
	.comm	_CAM_DEV_QFRZDIS,4,2            ## @CAM_DEV_QFRZDIS
	.comm	_CAM_PASS_ERR_RECOVER,4,2       ## @CAM_PASS_ERR_RECOVER
	.comm	_CAM_STATUS_MASK,4,2            ## @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ## @CAM_REQ_CMP
	.comm	_CAM_ESF_ALL,4,2                ## @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ## @CAM_EPF_ALL
	.comm	_stderr,4,2                     ## @stderr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dev_has_vpd_page               ; -- Begin function dev_has_vpd_page
	.p2align	2
_dev_has_vpd_page:                      ; @dev_has_vpd_page
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x4
	mov	x24, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	bl	_cam_getccb
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	bl	_CCB_CLEAR_ALL_EXCEPT_HDR
	add	x0, sp, #16
	mov	w1, #16
	bl	_bzero
Lloh0:
	adrp	x8, _MSG_SIMPLE_Q_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_SIMPLE_Q_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _SVPD_SUPPORTED_PAGE_LIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVPD_SUPPORTED_PAGE_LIST@GOTPAGEOFF]
Lloh5:
	ldr	w7, [x8]
Lloh6:
	adrp	x8, _SSD_FULL_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSD_FULL_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #5000
	cmp	w24, #0
	csel	w9, w9, w24, eq
	stp	w8, w9, [sp]
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	mov	w5, #16
	mov	w6, #1
	bl	_scsi_inquiry
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
	str	w8, [x19, #4]
	cbz	w23, LBB0_3
; %bb.2:
Lloh12:
	adrp	x9, _CAM_PASS_ERR_RECOVER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CAM_PASS_ERR_RECOVER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	bl	_cam_send_ccb
	tbnz	x0, #63, LBB0_11
; %bb.4:
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _CAM_STATUS_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CAM_STATUS_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh18:
	adrp	x9, _CAM_REQ_CMP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.5:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	ldr	x9, [sp, #24]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x20
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_9:
	mov	w20, #0
	b	LBB0_16
LBB0_10:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w20, #-1
	b	LBB0_17
LBB0_11:
	mov	x0, x19
	bl	_cam_freeccb
	mov	w20, #-1
	b	LBB0_17
LBB0_12:
	cbz	w22, LBB0_14
; %bb.13:
Lloh23:
	adrp	x8, _CAM_ESF_ALL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CAM_ESF_ALL@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _CAM_EPF_ALL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CAM_EPF_ALL@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x8, _stderr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_cam_error_print
LBB0_14:
	mov	w20, #-1
	b	LBB0_16
LBB0_15:
	mov	w20, #1
LBB0_16:
	mov	x0, x19
	bl	_cam_freeccb
LBB0_17:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate CCB"

	.comm	_MSG_SIMPLE_Q_TAG,4,2           ; @MSG_SIMPLE_Q_TAG
	.comm	_SVPD_SUPPORTED_PAGE_LIST,4,2   ; @SVPD_SUPPORTED_PAGE_LIST
	.comm	_SSD_FULL_SIZE,4,2              ; @SSD_FULL_SIZE
	.comm	_CAM_DEV_QFRZDIS,4,2            ; @CAM_DEV_QFRZDIS
	.comm	_CAM_PASS_ERR_RECOVER,4,2       ; @CAM_PASS_ERR_RECOVER
	.comm	_CAM_STATUS_MASK,4,2            ; @CAM_STATUS_MASK
	.comm	_CAM_REQ_CMP,4,2                ; @CAM_REQ_CMP
	.comm	_CAM_ESF_ALL,4,2                ; @CAM_ESF_ALL
	.comm	_CAM_EPF_ALL,4,2                ; @CAM_EPF_ALL
	.comm	_stderr,4,2                     ; @stderr
.subsections_via_symbols
