	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_detect_pch               ## -- Begin function intel_detect_pch
	.p2align	4, 0x90
_intel_detect_pch:                      ## @intel_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_PCI_CLASS_BRIDGE_ISA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$8, %edi
	xorl	%esi, %esi
	callq	_pci_get_class
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movq	_INTEL_PCH_DEVICE_ID_MASK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	andw	8(%rbx), %ax
	movw	%ax, (%r15)
	movq	_INTEL_PCH_IBX_DEVICE_ID_TYPE@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jne	LBB0_10
## %bb.3:
	movq	_PCH_IBX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$2, 4(%r15)
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	_IS_GEN5
LBB0_4:
	testl	%eax, %eax
LBB0_5:
	sete	%al
	jmp	LBB0_6
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_INTEL_PCH_CPT_DEVICE_ID_TYPE@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jne	LBB0_14
## %bb.11:
	movq	_PCH_CPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$2, 4(%r15)
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_14:
	movq	_INTEL_PCH_PPT_DEVICE_ID_TYPE@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jne	LBB0_17
## %bb.15:
	movq	_PCH_CPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$2, 4(%r15)
	leaq	L_.str.2(%rip), %rdi
LBB0_12:
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	_IS_GEN6
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	xorl	%eax, %eax
LBB0_6:
	movzbl	%al, %edi
	callq	_WARN_ON
LBB0_7:
	movl	4(%r15), %eax
	movq	_I915_NUM_PLLS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setg	%dil
	callq	_BUG_ON
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_dev_put                    ## TAILCALL
LBB0_16:
	movq	%r14, %rdi
	callq	_IS_IVYBRIDGE
	testq	%rax, %rax
	jmp	LBB0_5
LBB0_17:
	movq	_INTEL_PCH_LPT_DEVICE_ID_TYPE@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jne	LBB0_19
## %bb.18:
	movq	_PCH_LPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$0, 4(%r15)
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_21
LBB0_19:
	movq	_INTEL_PCH_LPT_LP_DEVICE_ID_TYPE@GOTPCREL(%rip), %rcx
	cmpw	(%rcx), %ax
	jne	LBB0_7
## %bb.20:
	movq	_PCH_LPT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$0, 4(%r15)
	leaq	L_.str.4(%rip), %rdi
LBB0_21:
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	_IS_HASWELL
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_CLASS_BRIDGE_ISA,4,2       ## @PCI_CLASS_BRIDGE_ISA
	.comm	_PCI_VENDOR_ID_INTEL,8,3        ## @PCI_VENDOR_ID_INTEL
	.comm	_INTEL_PCH_DEVICE_ID_MASK,2,1   ## @INTEL_PCH_DEVICE_ID_MASK
	.comm	_INTEL_PCH_IBX_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_IBX_DEVICE_ID_TYPE
	.comm	_PCH_IBX,8,3                    ## @PCH_IBX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found Ibex Peak PCH\n"

	.comm	_INTEL_PCH_CPT_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_CPT_DEVICE_ID_TYPE
	.comm	_PCH_CPT,8,3                    ## @PCH_CPT
L_.str.1:                               ## @.str.1
	.asciz	"Found CougarPoint PCH\n"

	.comm	_INTEL_PCH_PPT_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_PPT_DEVICE_ID_TYPE
L_.str.2:                               ## @.str.2
	.asciz	"Found PatherPoint PCH\n"

	.comm	_INTEL_PCH_LPT_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_LPT_DEVICE_ID_TYPE
	.comm	_PCH_LPT,8,3                    ## @PCH_LPT
L_.str.3:                               ## @.str.3
	.asciz	"Found LynxPoint PCH\n"

	.comm	_INTEL_PCH_LPT_LP_DEVICE_ID_TYPE,2,1 ## @INTEL_PCH_LPT_LP_DEVICE_ID_TYPE
L_.str.4:                               ## @.str.4
	.asciz	"Found LynxPoint LP PCH\n"

	.comm	_I915_NUM_PLLS,4,2              ## @I915_NUM_PLLS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_detect_pch               ; -- Begin function intel_detect_pch
	.p2align	2
_intel_detect_pch:                      ; @intel_detect_pch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _PCI_CLASS_BRIDGE_ISA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_CLASS_BRIDGE_ISA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w0, w8, #8
	mov	x1, #0
	bl	_pci_get_class
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.2:
	ldrh	w8, [x19, #8]
Lloh6:
	adrp	x9, _INTEL_PCH_DEVICE_ID_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INTEL_PCH_DEVICE_ID_MASK@GOTPAGEOFF]
	ldrh	w9, [x9]
	and	w8, w9, w8
	strh	w8, [x21]
Lloh8:
	adrp	x9, _INTEL_PCH_IBX_DEVICE_ID_TYPE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INTEL_PCH_IBX_DEVICE_ID_TYPE@GOTPAGEOFF]
	ldrh	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.3:
Lloh10:
	adrp	x8, _PCH_IBX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCH_IBX@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	mov	w8, #2
	str	w8, [x21, #4]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_IS_GEN5
LBB0_4:
	cmp	w0, #0
LBB0_5:
	cset	w0, eq
	b	LBB0_13
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh15:
	adrp	x9, _INTEL_PCH_CPT_DEVICE_ID_TYPE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _INTEL_PCH_CPT_DEVICE_ID_TYPE@GOTPAGEOFF]
	ldrh	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
Lloh17:
	adrp	x8, _PCH_CPT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCH_CPT@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	mov	w8, #2
	str	w8, [x21, #4]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x9, _INTEL_PCH_PPT_DEVICE_ID_TYPE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _INTEL_PCH_PPT_DEVICE_ID_TYPE@GOTPAGEOFF]
	ldrh	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.10:
Lloh24:
	adrp	x8, _PCH_CPT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCH_CPT@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	mov	w8, #2
	str	w8, [x21, #4]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_IS_GEN6
	cbz	x0, LBB0_16
; %bb.12:
	mov	w0, #0
LBB0_13:
	bl	_WARN_ON
LBB0_14:
	ldr	w8, [x21, #4]
Lloh29:
	adrp	x9, _I915_NUM_PLLS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _I915_NUM_PLLS@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, gt
	bl	_BUG_ON
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pci_dev_put
LBB0_16:
	mov	x0, x20
	bl	_IS_IVYBRIDGE
	cmp	x0, #0
	b	LBB0_5
LBB0_17:
Lloh32:
	adrp	x9, _INTEL_PCH_LPT_DEVICE_ID_TYPE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _INTEL_PCH_LPT_DEVICE_ID_TYPE@GOTPAGEOFF]
	ldrh	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.18:
Lloh34:
	adrp	x8, _PCH_LPT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PCH_LPT@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	str	wzr, [x21, #4]
Lloh37:
	adrp	x0, l_.str.3@PAGE
Lloh38:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_19:
Lloh39:
	adrp	x9, _INTEL_PCH_LPT_LP_DEVICE_ID_TYPE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _INTEL_PCH_LPT_LP_DEVICE_ID_TYPE@GOTPAGEOFF]
	ldrh	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.20:
Lloh41:
	adrp	x8, _PCH_LPT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PCH_LPT@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	str	wzr, [x21, #4]
Lloh44:
	adrp	x0, l_.str.4@PAGE
Lloh45:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_21:
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_IS_HASWELL
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_CLASS_BRIDGE_ISA,4,2       ; @PCI_CLASS_BRIDGE_ISA
	.comm	_PCI_VENDOR_ID_INTEL,8,3        ; @PCI_VENDOR_ID_INTEL
	.comm	_INTEL_PCH_DEVICE_ID_MASK,2,1   ; @INTEL_PCH_DEVICE_ID_MASK
	.comm	_INTEL_PCH_IBX_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_IBX_DEVICE_ID_TYPE
	.comm	_PCH_IBX,8,3                    ; @PCH_IBX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found Ibex Peak PCH\n"

	.comm	_INTEL_PCH_CPT_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_CPT_DEVICE_ID_TYPE
	.comm	_PCH_CPT,8,3                    ; @PCH_CPT
l_.str.1:                               ; @.str.1
	.asciz	"Found CougarPoint PCH\n"

	.comm	_INTEL_PCH_PPT_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_PPT_DEVICE_ID_TYPE
l_.str.2:                               ; @.str.2
	.asciz	"Found PatherPoint PCH\n"

	.comm	_INTEL_PCH_LPT_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_LPT_DEVICE_ID_TYPE
	.comm	_PCH_LPT,8,3                    ; @PCH_LPT
l_.str.3:                               ; @.str.3
	.asciz	"Found LynxPoint PCH\n"

	.comm	_INTEL_PCH_LPT_LP_DEVICE_ID_TYPE,2,1 ; @INTEL_PCH_LPT_LP_DEVICE_ID_TYPE
l_.str.4:                               ; @.str.4
	.asciz	"Found LynxPoint LP PCH\n"

	.comm	_I915_NUM_PLLS,4,2              ; @I915_NUM_PLLS
.subsections_via_symbols
