	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qpi_identify
_qpi_identify:                          ## @qpi_identify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_cpu_vendor_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CPU_VENDOR_INTEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	%esi, %ebx
	movq	_cpu_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CPUID_TO_FAMILY
	cmpl	$6, %eax
	jne	LBB0_6
## %bb.2:
	movl	$0, -12(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-12(%rbp), %rsi
	callq	_TUNABLE_INT_FETCH
	cmpl	$0, -12(%rbp)
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_pci_cfgregopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %edi
	movl	$20, %esi
	movl	$-1, %ecx
	callq	_BUS_ADD_CHILD
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_panic
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_vendor_id,8,3              ## @cpu_vendor_id
	.comm	_CPU_VENDOR_INTEL,8,3           ## @CPU_VENDOR_INTEL
	.comm	_cpu_id,4,2                     ## @cpu_id
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw.attach_intel_csr_pci"

L_.str.1:                               ## @.str.1
	.asciz	"qpi"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to add qpi bus"

	.no_dead_strip	_qpi_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qpi_identify
_qpi_identify:                          ; @qpi_identify
	.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
Lloh0:
	adrp	x8, _cpu_vendor_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_vendor_id@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CPU_VENDOR_INTEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPU_VENDOR_INTEL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x1
Lloh6:
	adrp	x8, _cpu_id@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cpu_id@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_CPUID_TO_FAMILY
	cmp	w0, #6
	b.ne	LBB0_6
; %bb.2:
	str	wzr, [sp, #12]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_TUNABLE_INT_FETCH
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.3:
	bl	_pci_cfgregopen
	cbz	x0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #20
	mov	w3, #-1
	bl	_BUS_ADD_CHILD
	cbnz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_panic
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_vendor_id,8,3              ; @cpu_vendor_id
	.comm	_CPU_VENDOR_INTEL,8,3           ; @CPU_VENDOR_INTEL
	.comm	_cpu_id,4,2                     ; @cpu_id
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw.attach_intel_csr_pci"

l_.str.1:                               ; @.str.1
	.asciz	"qpi"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to add qpi bus"

	.no_dead_strip	_qpi_identify
.subsections_via_symbols
