	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_virt_detect_pch
_intel_virt_detect_pch:                 ## @intel_virt_detect_pch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_IS_TIGERLAKE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_INTEL_PCH_TGP_DEVICE_ID_TYPE@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_2:
	movq	%rbx, %rdi
	callq	_IS_ELKHARTLAKE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_INTEL_PCH_MCC_DEVICE_ID_TYPE@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_4:
	movq	%rbx, %rdi
	callq	_IS_ICELAKE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_INTEL_PCH_ICP_DEVICE_ID_TYPE@GOTPCREL(%rip), %r14
	jmp	LBB0_18
LBB0_6:
	movq	%rbx, %rdi
	callq	_IS_CANNONLAKE
	movq	_INTEL_PCH_CNP_DEVICE_ID_TYPE@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_18
## %bb.7:
	movq	%rbx, %rdi
	callq	_IS_COFFEELAKE
	testq	%rax, %rax
	jne	LBB0_18
## %bb.8:
	movq	%rbx, %rdi
	callq	_IS_KABYLAKE
	movq	_INTEL_PCH_SPT_DEVICE_ID_TYPE@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_18
## %bb.9:
	movq	%rbx, %rdi
	callq	_IS_SKYLAKE
	testq	%rax, %rax
	jne	LBB0_18
## %bb.10:
	movq	%rbx, %rdi
	callq	_IS_HSW_ULT
	movq	_INTEL_PCH_LPT_LP_DEVICE_ID_TYPE@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_18
## %bb.11:
	movq	%rbx, %rdi
	callq	_IS_BDW_ULT
	testq	%rax, %rax
	jne	LBB0_18
## %bb.12:
	movq	%rbx, %rdi
	callq	_IS_HASWELL
	movq	_INTEL_PCH_LPT_DEVICE_ID_TYPE@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_18
## %bb.13:
	movq	%rbx, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	jne	LBB0_18
## %bb.14:
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	movq	_INTEL_PCH_CPT_DEVICE_ID_TYPE@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:
	movq	%rbx, %rdi
	callq	_IS_IVYBRIDGE
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_20
## %bb.17:
	movq	_INTEL_PCH_IBX_DEVICE_ID_TYPE@GOTPCREL(%rip), %r14
LBB0_18:
	movzwl	(%r14), %ebx
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.19:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_KMS
LBB0_21:
	movzwl	%bx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_PCH_TGP_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_TGP_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_MCC_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_MCC_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_ICP_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_ICP_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_CNP_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_CNP_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_SPT_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_SPT_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_LPT_LP_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_LPT_LP_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_LPT_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_LPT_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_CPT_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_CPT_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_IBX_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_IBX_DEVICE_ID_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Assuming PCH ID %04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Assuming no PCH\n"

	.no_dead_strip	_intel_virt_detect_pch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_virt_detect_pch
_intel_virt_detect_pch:                 ; @intel_virt_detect_pch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_IS_TIGERLAKE
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _INTEL_PCH_TGP_DEVICE_ID_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_PCH_TGP_DEVICE_ID_TYPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_IS_ELKHARTLAKE
	cbz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _INTEL_PCH_MCC_DEVICE_ID_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTEL_PCH_MCC_DEVICE_ID_TYPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_IS_ICELAKE
	cbz	x0, LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _INTEL_PCH_ICP_DEVICE_ID_TYPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INTEL_PCH_ICP_DEVICE_ID_TYPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_IS_CANNONLAKE
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_IS_COFFEELAKE
	cbz	x0, LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _INTEL_PCH_CNP_DEVICE_ID_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTEL_PCH_CNP_DEVICE_ID_TYPE@GOTPAGEOFF]
LBB0_9:
	ldrh	w19, [x8]
	cbz	w19, LBB0_25
; %bb.10:
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	b	LBB0_26
LBB0_11:
	mov	x0, x19
	bl	_IS_KABYLAKE
	cbnz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_IS_SKYLAKE
	cbz	x0, LBB0_14
LBB0_13:
Lloh10:
	adrp	x8, _INTEL_PCH_SPT_DEVICE_ID_TYPE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INTEL_PCH_SPT_DEVICE_ID_TYPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_14:
	mov	x0, x19
	bl	_IS_HSW_ULT
	cbnz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_IS_BDW_ULT
	cbz	x0, LBB0_17
LBB0_16:
Lloh12:
	adrp	x8, _INTEL_PCH_LPT_LP_DEVICE_ID_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTEL_PCH_LPT_LP_DEVICE_ID_TYPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_17:
	mov	x0, x19
	bl	_IS_HASWELL
	cbnz	x0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_IS_BROADWELL
	cbz	x0, LBB0_20
LBB0_19:
Lloh14:
	adrp	x8, _INTEL_PCH_LPT_DEVICE_ID_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INTEL_PCH_LPT_DEVICE_ID_TYPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_20:
	mov	x0, x19
	mov	w1, #6
	bl	_IS_GEN
	cbnz	x0, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_IS_IVYBRIDGE
	cbz	x0, LBB0_23
LBB0_22:
Lloh16:
	adrp	x8, _INTEL_PCH_CPT_DEVICE_ID_TYPE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INTEL_PCH_CPT_DEVICE_ID_TYPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_23:
	mov	x0, x19
	mov	w1, #5
	bl	_IS_GEN
	cbz	x0, LBB0_25
; %bb.24:
Lloh18:
	adrp	x8, _INTEL_PCH_IBX_DEVICE_ID_TYPE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INTEL_PCH_IBX_DEVICE_ID_TYPE@GOTPAGEOFF]
	b	LBB0_9
LBB0_25:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w19, #0
LBB0_26:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_PCH_TGP_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_TGP_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_MCC_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_MCC_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_ICP_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_ICP_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_CNP_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_CNP_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_SPT_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_SPT_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_LPT_LP_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_LPT_LP_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_LPT_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_LPT_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_CPT_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_CPT_DEVICE_ID_TYPE
	.comm	_INTEL_PCH_IBX_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_IBX_DEVICE_ID_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Assuming PCH ID %04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Assuming no PCH\n"

	.no_dead_strip	_intel_virt_detect_pch
.subsections_via_symbols
