	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qpi_probe_pcib
_qpi_probe_pcib:                        ## @qpi_probe_pcib
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	%esi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pci_find_bsf
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_PCI_SLOTMAX@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	js	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	movq	_PCIR_DEVVENDOR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ecx
	movl	%r12d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	$4, %r8d
	callq	_pci_cfgregread
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rbx), %eax
	cmpl	(%r15), %ebx
	movl	%eax, %ebx
	jl	LBB0_4
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movzwl	%ax, %r8d
	cmpl	$32902, %r8d                    ## imm = 0x8086
	jne	LBB0_13
## %bb.10:
	leaq	L_.str.1(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$-1, %ecx
	callq	_BUS_ADD_CHILD
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_device_get_nameunit
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_panic
LBB0_12:
	movq	_M_QPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %edi
	callq	_malloc
	movl	%r12d, (%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_device_set_ivars
	jmp	LBB0_8
LBB0_13:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_device_printf
LBB0_15:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_PCI_SLOTMAX,4,2                ## @PCI_SLOTMAX
	.comm	_PCIR_DEVVENDOR,4,2             ## @PCIR_DEVVENDOR
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device at pci%d.%d.0 has non-Intel vendor 0x%x\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"pcib"

L_.str.2:                               ## @.str.2
	.asciz	"%s: failed to add pci bus %d"

	.comm	_M_QPI,4,2                      ## @M_QPI
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.no_dead_strip	_qpi_probe_pcib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qpi_probe_pcib
_qpi_probe_pcib:                        ; @qpi_probe_pcib
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #0
	bl	_pci_find_bsf
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
Lloh2:
	adrp	x22, _PCI_SLOTMAX@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PCI_SLOTMAX@GOTPAGEOFF]
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_6
; %bb.3:
	mov	w21, #0
Lloh4:
	adrp	x23, _PCIR_DEVVENDOR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _PCIR_DEVVENDOR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	w4, #4
	bl	_pci_cfgregread
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w21, #1
	ldr	w9, [x22]
	cmp	w21, w9
	mov	x21, x8
	b.lt	LBB0_4
LBB0_6:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	and	w4, w0, #0xffff
	mov	w8, #32902
	cmp	w4, w8
	b.ne	LBB0_13
; %bb.10:
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	w3, #-1
	bl	_BUS_ADD_CHILD
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_device_get_nameunit
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_panic
LBB0_12:
Lloh12:
	adrp	x8, _M_QPI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_QPI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w0, #4
	bl	_malloc
	mov	x1, x0
	str	w19, [x0]
	mov	x0, x21
	bl	_device_set_ivars
	mov	w0, #0
	b	LBB0_8
LBB0_13:
Lloh18:
	adrp	x8, _bootverbose@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_device_printf
LBB0_15:
Lloh23:
	adrp	x8, _ENXIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_PCI_SLOTMAX,4,2                ; @PCI_SLOTMAX
	.comm	_PCIR_DEVVENDOR,4,2             ; @PCIR_DEVVENDOR
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device at pci%d.%d.0 has non-Intel vendor 0x%x\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"pcib"

l_.str.2:                               ; @.str.2
	.asciz	"%s: failed to add pci bus %d"

	.comm	_M_QPI,4,2                      ; @M_QPI
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.no_dead_strip	_qpi_probe_pcib
.subsections_via_symbols
