	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i5400_get_devices
_i5400_get_devices:                     ## @i5400_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, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rcx
	leaq	32(%rcx), %r15
	leaq	24(%rcx), %r13
	leaq	8(%rcx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rcx)
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movups	%xmm0, 8(%rcx)
	xorl	%eax, %eax
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %r12
	movq	_PCI_DEVICE_ID_INTEL_5400_ERR@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, (%rcx)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_10
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_PCI_FUNC
	movq	%r15, %rcx
	cmpl	$1, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rcx
	jmp	LBB0_8
LBB0_4:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_10:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	40(%r15), %rdi
	callq	_pci_name
	movq	40(%r15), %rdx
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_debugf1
	movq	32(%r15), %rdi
	callq	_pci_name
	movq	32(%r15), %rdx
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_debugf1
	movq	24(%r15), %rdi
	callq	_pci_name
	movq	24(%r15), %rdx
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_debugf1
	movl	(%r12), %edi
	movq	_PCI_DEVICE_ID_INTEL_5400_FBD0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	(%r15), %rax
	movq	_CHANNELS_PER_BRANCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_17
## %bb.13:
	movl	(%r12), %edi
	movq	_PCI_DEVICE_ID_INTEL_5400_FBD1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
LBB0_15:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	movl	(%r14), %ecx
	callq	_i5400_printk
	movq	%rbx, %rdi
	callq	_i5400_put_devices
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	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_5400_ERR,4,2 ## @PCI_DEVICE_ID_INTEL_5400_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_5400_FBD0,4,2 ## @PCI_DEVICE_ID_INTEL_5400_FBD0
L_.str.4:                               ## @.str.4
	.asciz	"MC: 'BRANCH 0' device not found:vendor 0x%x device 0x%x Func 0 (broken BIOS?)\n"

	.comm	_CHANNELS_PER_BRANCH,8,3        ## @CHANNELS_PER_BRANCH
	.comm	_PCI_DEVICE_ID_INTEL_5400_FBD1,4,2 ## @PCI_DEVICE_ID_INTEL_5400_FBD1
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	_i5400_get_devices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i5400_get_devices
_i5400_get_devices:                     ; @i5400_get_devices
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	mov	x8, #0
	mov	x21, #0
	ldr	x24, [x0]
	add	x26, x24, #32
	movi.2d	v0, #0000000000000000
	mov	x27, x24
	str	q0, [x27, #24]!
	mov	x23, x24
	str	q0, [x23, #8]!
Lloh0:
	adrp	x22, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PCI_DEVICE_ID_INTEL_5400_ERR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PCI_DEVICE_ID_INTEL_5400_ERR@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	x21, [x8]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	cbnz	x8, LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	ldr	w1, [x25]
	mov	x2, x21
	bl	_pci_get_device
	cbz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_PCI_FUNC
	mov	x8, x26
	cmp	w0, #1
	b.eq	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x27
	b	LBB0_1
LBB0_9:
	ldr	x0, [x24, #40]
	bl	_pci_name
	mov	x1, x0
	ldr	x8, [x24, #40]
	ldp	w3, w2, [x8]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debugf1
	ldr	x0, [x24, #32]
	bl	_pci_name
	mov	x1, x0
	ldr	x8, [x24, #32]
	ldp	w3, w2, [x8]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_debugf1
	ldr	x0, [x24, #24]
	bl	_pci_name
	mov	x1, x0
	ldr	x8, [x24, #24]
	ldp	w3, w2, [x8]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_debugf1
	ldr	w0, [x22]
Lloh12:
	adrp	x25, _PCI_DEVICE_ID_INTEL_5400_FBD0@GOTPAGE
Lloh13:
	ldr	x25, [x25, _PCI_DEVICE_ID_INTEL_5400_FBD0@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x2, #0
	bl	_pci_get_device
	str	x0, [x24, #16]
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x8, [x24]
Lloh14:
	adrp	x9, _CHANNELS_PER_BRANCH@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CHANNELS_PER_BRANCH@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.11:
	ldr	w0, [x22]
Lloh17:
	adrp	x25, _PCI_DEVICE_ID_INTEL_5400_FBD1@GOTPAGE
Lloh18:
	ldr	x25, [x25, _PCI_DEVICE_ID_INTEL_5400_FBD1@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x2, #0
	bl	_pci_get_device
	str	x0, [x23]
	cbz	x0, LBB0_14
LBB0_12:
	mov	w0, #0
	b	LBB0_16
LBB0_13:
Lloh19:
	adrp	x20, l_.str.4@PAGE
Lloh20:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh21:
	adrp	x20, l_.str.5@PAGE
Lloh22:
	add	x20, x20, l_.str.5@PAGEOFF
LBB0_15:
Lloh23:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w2, [x22]
	ldr	w3, [x25]
	mov	x1, x20
	bl	_i5400_printk
	mov	x0, x19
	bl	_i5400_put_devices
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_VENDOR_ID_INTEL,4,2        ; @PCI_VENDOR_ID_INTEL
	.comm	_PCI_DEVICE_ID_INTEL_5400_ERR,4,2 ; @PCI_DEVICE_ID_INTEL_5400_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_5400_FBD0,4,2 ; @PCI_DEVICE_ID_INTEL_5400_FBD0
l_.str.4:                               ; @.str.4
	.asciz	"MC: 'BRANCH 0' device not found:vendor 0x%x device 0x%x Func 0 (broken BIOS?)\n"

	.comm	_CHANNELS_PER_BRANCH,8,3        ; @CHANNELS_PER_BRANCH
	.comm	_PCI_DEVICE_ID_INTEL_5400_FBD1,4,2 ; @PCI_DEVICE_ID_INTEL_5400_FBD1
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	_i5400_get_devices
.subsections_via_symbols
