	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function speedstep_detect_chipset
_speedstep_detect_chipset:              ## @speedstep_detect_chipset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_PCI_DEVICE_ID_INTEL_82801DB_12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCI_ANY_ID@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_pci_get_subsys
	movq	_speedstep_chipset_dev@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movl	$4, %ebx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movl	(%r15), %edi
	movq	_PCI_DEVICE_ID_INTEL_82801CA_12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_pci_get_subsys
	movq	%rax, (%r14)
	movl	$3, %ebx
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r15), %edi
	movq	_PCI_DEVICE_ID_INTEL_82801BA_10@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_pci_get_subsys
	movq	%rax, (%r14)
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	(%r15), %edi
	movq	_PCI_DEVICE_ID_INTEL_82815_MC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_pci_get_subsys
	movq	%rax, _speedstep_detect_chipset.hostbridge(%rip)
	movl	$2, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpl	$4, (%rax)
	jg	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	$0, (%r14)
	movq	_speedstep_detect_chipset.hostbridge(%rip), %rdi
	callq	_pci_dev_put
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%rax, %rdi
	callq	_pci_dev_put
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ## @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_82801DB_12,4,2 ## @PCI_DEVICE_ID_INTEL_82801DB_12
	.comm	_PCI_ANY_ID,4,2                 ## @PCI_ANY_ID
	.comm	_speedstep_chipset_dev,8,3      ## @speedstep_chipset_dev
	.comm	_PCI_DEVICE_ID_INTEL_82801CA_12,4,2 ## @PCI_DEVICE_ID_INTEL_82801CA_12
	.comm	_PCI_DEVICE_ID_INTEL_82801BA_10,4,2 ## @PCI_DEVICE_ID_INTEL_82801BA_10
.zerofill __DATA,__bss,_speedstep_detect_chipset.hostbridge,8,3 ## @speedstep_detect_chipset.hostbridge
	.comm	_PCI_DEVICE_ID_INTEL_82815_MC,4,2 ## @PCI_DEVICE_ID_INTEL_82815_MC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hostbridge does not support speedstep\n"

	.no_dead_strip	_speedstep_detect_chipset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function speedstep_detect_chipset
_speedstep_detect_chipset:              ; @speedstep_detect_chipset
	.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
Lloh0:
	adrp	x20, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _PCI_DEVICE_ID_INTEL_82801DB_12@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCI_DEVICE_ID_INTEL_82801DB_12@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x21, _PCI_ANY_ID@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PCI_ANY_ID@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x3, x2
	mov	x4, #0
	bl	_pci_get_subsys
Lloh7:
	adrp	x19, _speedstep_chipset_dev@GOTPAGE
Lloh8:
	ldr	x19, [x19, _speedstep_chipset_dev@GOTPAGEOFF]
	str	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #4
	b	LBB0_10
LBB0_2:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _PCI_DEVICE_ID_INTEL_82801CA_12@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_DEVICE_ID_INTEL_82801CA_12@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x3, x2
	mov	x4, #0
	bl	_pci_get_subsys
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #3
	b	LBB0_10
LBB0_4:
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _PCI_DEVICE_ID_INTEL_82801BA_10@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_DEVICE_ID_INTEL_82801BA_10@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x3, x2
	mov	x4, #0
	bl	_pci_get_subsys
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w0, [x20]
Lloh15:
	adrp	x8, _PCI_DEVICE_ID_INTEL_82815_MC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCI_DEVICE_ID_INTEL_82815_MC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x3, x2
	mov	x4, #0
	bl	_pci_get_subsys
	adrp	x20, _speedstep_detect_chipset.hostbridge@PAGE
	str	x0, [x20, _speedstep_detect_chipset.hostbridge@PAGEOFF]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w8, [x0]
	cmp	w8, #4
	b.gt	LBB0_8
; %bb.7:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	str	xzr, [x19]
	ldr	x0, [x20, _speedstep_detect_chipset.hostbridge@PAGEOFF]
	bl	_pci_dev_put
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	bl	_pci_dev_put
LBB0_9:
	mov	w0, #2
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_82801DB_12,4,2 ; @PCI_DEVICE_ID_INTEL_82801DB_12
	.comm	_PCI_ANY_ID,4,2                 ; @PCI_ANY_ID
	.comm	_speedstep_chipset_dev,8,3      ; @speedstep_chipset_dev
	.comm	_PCI_DEVICE_ID_INTEL_82801CA_12,4,2 ; @PCI_DEVICE_ID_INTEL_82801CA_12
	.comm	_PCI_DEVICE_ID_INTEL_82801BA_10,4,2 ; @PCI_DEVICE_ID_INTEL_82801BA_10
.zerofill __DATA,__bss,_speedstep_detect_chipset.hostbridge,8,3 ; @speedstep_detect_chipset.hostbridge
	.comm	_PCI_DEVICE_ID_INTEL_82815_MC,4,2 ; @PCI_DEVICE_ID_INTEL_82815_MC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hostbridge does not support speedstep\n"

	.no_dead_strip	_speedstep_detect_chipset
.subsections_via_symbols
