	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_device_type                ## -- Begin function get_device_type
	.p2align	4, 0x90
_get_device_type:                       ## @get_device_type
	.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
	movq	%r8, %r15
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	-56(%rbp), %rsi
	callq	_get_cgd
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movl	-56(%rbp), %esi
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_5
## %bb.2:
	movq	_CC_DT_ATA@GOTPCREL(%rip), %rdi
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	movq	%r15, %r9
	jmpq	*%rsi
LBB0_6:
	cmpl	$-1, %ebx
	je	LBB0_7
## %bb.10:
	movl	%ebx, %edx
	movl	%eax, %ebx
	movq	_SVPD_ATA_INFORMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	callq	_dev_has_vpd_page
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.12:
	movq	_CC_DT_SATL@GOTPCREL(%rip), %rdi
	jmp	LBB0_13
LBB0_5:
	movq	_CC_DT_UNKNOWN@GOTPCREL(%rip), %rdi
	movq	%r15, %r9
	jmp	LBB0_14
LBB0_3:
	movq	_CC_DT_NVME@GOTPCREL(%rip), %rdi
	jmp	LBB0_14
LBB0_4:
	movq	_CC_DT_MMCSD@GOTPCREL(%rip), %rdi
	jmp	LBB0_14
LBB0_7:
	cmpq	$0, -48(%rbp)
	jne	LBB0_8
## %bb.9:
	movq	_CC_DT_SCSI@GOTPCREL(%rip), %rdi
	jmp	LBB0_14
LBB0_11:
	movq	_CC_DT_SCSI@GOTPCREL(%rip), %rdi
LBB0_13:
	movq	%r15, %r9
	movl	%ebx, %eax
	jmp	LBB0_14
LBB0_8:
	movq	_CC_DT_SATL@GOTPCREL(%rip), %rdi
LBB0_14:
	movl	(%rdi), %ecx
	movl	%ecx, (%r9)
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_14
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_14
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_CC_DT_ATA,4,2                  ## @CC_DT_ATA
	.comm	_CC_DT_NVME,4,2                 ## @CC_DT_NVME
	.comm	_CC_DT_MMCSD,4,2                ## @CC_DT_MMCSD
	.comm	_CC_DT_UNKNOWN,4,2              ## @CC_DT_UNKNOWN
	.comm	_CC_DT_SATL,4,2                 ## @CC_DT_SATL
	.comm	_CC_DT_SCSI,4,2                 ## @CC_DT_SCSI
	.comm	_SVPD_ATA_INFORMATION,4,2       ## @SVPD_ATA_INFORMATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_device_type                ; -- Begin function get_device_type
	.p2align	2
_get_device_type:                       ; @get_device_type
	.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	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x1, sp
	bl	_get_cgd
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w8, [sp]
	sub	w9, w8, #128
	cmp	w9, #5
	b.hi	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _CC_DT_ATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CC_DT_ATA@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
	cmn	w23, #1
	b.eq	LBB0_8
; %bb.4:
Lloh4:
	adrp	x8, _SVPD_ATA_INFORMATION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SVPD_ATA_INFORMATION@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_dev_has_vpd_page
Lloh7:
	adrp	x8, _CC_DT_SCSI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CC_DT_SCSI@GOTPAGEOFF]
Lloh9:
	adrp	x9, _CC_DT_SATL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CC_DT_SATL@GOTPAGEOFF]
	cmp	w0, #1
	csel	x8, x9, x8, eq
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _CC_DT_UNKNOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CC_DT_UNKNOWN@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _CC_DT_NVME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CC_DT_NVME@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x8, _CC_DT_MMCSD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CC_DT_MMCSD@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	x8, [sp, #8]
Lloh17:
	adrp	x9, _CC_DT_SATL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CC_DT_SATL@GOTPAGEOFF]
Lloh19:
	adrp	x10, _CC_DT_SCSI@GOTPAGE
Lloh20:
	ldr	x10, [x10, _CC_DT_SCSI@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_10:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.comm	_CC_DT_ATA,4,2                  ; @CC_DT_ATA
	.comm	_CC_DT_NVME,4,2                 ; @CC_DT_NVME
	.comm	_CC_DT_MMCSD,4,2                ; @CC_DT_MMCSD
	.comm	_CC_DT_UNKNOWN,4,2              ; @CC_DT_UNKNOWN
	.comm	_CC_DT_SATL,4,2                 ; @CC_DT_SATL
	.comm	_CC_DT_SCSI,4,2                 ; @CC_DT_SCSI
	.comm	_SVPD_ATA_INFORMATION,4,2       ; @SVPD_ATA_INFORMATION
.subsections_via_symbols
