	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i7300_get_devices
_i7300_get_devices:                     ## @i7300_get_devices
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_PCI_DEVICE_ID_INTEL_I7300_MCH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r13
	leaq	16(%rax), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_pci_dev_get
	movq	%rax, (%r15)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movq	_PCI_DEVICE_ID_INTEL_I7300_MCH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_pci_get_device
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_PCI_FUNC
	cmpl	$2, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r12)
	movq	%r12, %r15
	jne	LBB0_7
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, (%r13)
	movq	%r13, %r15
	jne	LBB0_7
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 16(%r15)
	je	LBB0_9
## %bb.10:
	cmpq	$0, 8(%r15)
	movq	_PCI_DEVICE_ID_INTEL_I7300_MCH_ERR@GOTPCREL(%rip), %r12
	je	LBB0_15
## %bb.11:
	movq	24(%r15), %rdi
	callq	_pci_name
	movq	24(%r15), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_edac_dbg
	movq	16(%r15), %rdi
	callq	_pci_name
	movq	16(%r15), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_edac_dbg
	movq	8(%r15), %rdi
	callq	_pci_name
	movq	8(%r15), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_edac_dbg
	movl	(%r14), %edi
	movq	_PCI_DEVICE_ID_INTEL_I7300_MCH_FB0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.13:
	movl	(%r14), %edi
	movq	_PCI_DEVICE_ID_INTEL_I7300_MCH_FB1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
LBB0_9:
	movq	_PCI_DEVICE_ID_INTEL_I7300_MCH_ERR@GOTPCREL(%rip), %r12
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
LBB0_15:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	movl	(%r12), %ecx
	callq	_i7300_printk
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i7300_put_devices
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ## @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_I7300_MCH_ERR,4,2 ## @PCI_DEVICE_ID_INTEL_I7300_MCH_ERR
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'system address,Process Bus' device not found:vendor 0x%x device 0x%x ERR funcs (broken BIOS?)\n"

L_.str.1:                               ## @.str.1
	.asciz	"System Address, processor bus- PCI Bus ID: %s  %x:%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Branchmap, control and errors - PCI Bus ID: %s  %x:%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"FSB Error Regs - PCI Bus ID: %s  %x:%x\n"

	.comm	_PCI_DEVICE_ID_INTEL_I7300_MCH_FB0,4,2 ## @PCI_DEVICE_ID_INTEL_I7300_MCH_FB0
L_.str.4:                               ## @.str.4
	.asciz	"MC: 'BRANCH 0' device not found:vendor 0x%x device 0x%x Func 0 (broken BIOS?)\n"

	.comm	_PCI_DEVICE_ID_INTEL_I7300_MCH_FB1,4,2 ## @PCI_DEVICE_ID_INTEL_I7300_MCH_FB1
L_.str.5:                               ## @.str.5
	.asciz	"MC: 'BRANCH 1' device not found:vendor 0x%x device 0x%x Func 0 (broken BIOS?)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_i7300_get_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i7300_get_devices
_i7300_get_devices:                     ; @i7300_get_devices
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x21, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x23, _PCI_DEVICE_ID_INTEL_I7300_MCH_ERR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PCI_DEVICE_ID_INTEL_I7300_MCH_ERR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x2, #0
	bl	_pci_get_device
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	add	x24, x22, #8
	add	x25, x22, #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_pci_dev_get
	str	x0, [x26]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	ldr	w1, [x23]
	mov	x2, x20
	bl	_pci_get_device
	mov	x20, x0
	cbz	x0, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_PCI_FUNC
	cmp	w0, #2
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	mov	x26, x25
	cbnz	x8, LBB0_3
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	mov	x26, x24
	cbnz	x8, LBB0_3
	b	LBB0_2
LBB0_8:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_13
; %bb.9:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	x0, [x22, #24]
	bl	_pci_name
	mov	x2, x0
	ldr	x8, [x22, #24]
	ldp	w4, w3, [x8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	ldr	x0, [x22, #16]
	bl	_pci_name
	mov	x2, x0
	ldr	x8, [x22, #16]
	ldp	w4, w3, [x8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	ldr	x0, [x22, #8]
	bl	_pci_name
	mov	x2, x0
	ldr	x8, [x22, #8]
	ldp	w4, w3, [x8]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	ldr	w0, [x21]
Lloh10:
	adrp	x20, _PCI_DEVICE_ID_INTEL_I7300_MCH_FB0@GOTPAGE
Lloh11:
	ldr	x20, [x20, _PCI_DEVICE_ID_INTEL_I7300_MCH_FB0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, #0
	bl	_pci_get_device
	ldr	x8, [x22]
	str	x0, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.11:
	ldr	w0, [x21]
Lloh12:
	adrp	x20, _PCI_DEVICE_ID_INTEL_I7300_MCH_FB1@GOTPAGE
Lloh13:
	ldr	x20, [x20, _PCI_DEVICE_ID_INTEL_I7300_MCH_FB1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, #0
	bl	_pci_get_device
	ldr	x8, [x22]
	str	x0, [x8, #8]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_17
; %bb.12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
Lloh16:
	adrp	x20, _PCI_DEVICE_ID_INTEL_I7300_MCH_ERR@GOTPAGE
Lloh17:
	ldr	x20, [x20, _PCI_DEVICE_ID_INTEL_I7300_MCH_ERR@GOTPAGEOFF]
LBB0_14:
Lloh18:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w2, [x21]
	ldr	w3, [x20]
	bl	_i7300_printk
	mov	x0, x19
	bl	_i7300_put_devices
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_17:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_I7300_MCH_ERR,4,2 ; @PCI_DEVICE_ID_INTEL_I7300_MCH_ERR
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'system address,Process Bus' device not found:vendor 0x%x device 0x%x ERR funcs (broken BIOS?)\n"

l_.str.1:                               ; @.str.1
	.asciz	"System Address, processor bus- PCI Bus ID: %s  %x:%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Branchmap, control and errors - PCI Bus ID: %s  %x:%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"FSB Error Regs - PCI Bus ID: %s  %x:%x\n"

	.comm	_PCI_DEVICE_ID_INTEL_I7300_MCH_FB0,4,2 ; @PCI_DEVICE_ID_INTEL_I7300_MCH_FB0
l_.str.4:                               ; @.str.4
	.asciz	"MC: 'BRANCH 0' device not found:vendor 0x%x device 0x%x Func 0 (broken BIOS?)\n"

	.comm	_PCI_DEVICE_ID_INTEL_I7300_MCH_FB1,4,2 ; @PCI_DEVICE_ID_INTEL_I7300_MCH_FB1
l_.str.5:                               ; @.str.5
	.asciz	"MC: 'BRANCH 1' device not found:vendor 0x%x device 0x%x Func 0 (broken BIOS?)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_i7300_get_devices
.subsections_via_symbols
