	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	leaq	8(%r14), %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	movups	%xmm0, 8(%r14)
	xorl	%ebx, %ebx
	movq	_PCI_VENDOR_ID_INTEL@GOTPCREL(%rip), %r15
	movq	_PCI_DEVICE_ID_INTEL_5400_ERR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r13), %esi
	movq	%rbx, %rdx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_PCI_FUNC
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.4:
	movq	%rbx, (%r12)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r13), %esi
	movq	%rbx, %rdx
	callq	_pci_get_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movl	8(%rax), %edi
	callq	_PCI_FUNC
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.8:
	movq	%rbx, 16(%r14)
	movq	40(%r14), %rdi
	callq	_pci_name
	movq	40(%r14), %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(%r14), %rdi
	callq	_pci_name
	movq	8(%r14), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_edac_dbg
	movq	16(%r14), %rdi
	callq	_pci_name
	movq	16(%r14), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %ecx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_edac_dbg
	movl	(%r15), %edi
	movq	_PCI_DEVICE_ID_INTEL_5400_FBD0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	(%r14), %rax
	movq	_CHANNELS_PER_BRANCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_16
## %bb.11:
	movl	(%r15), %edi
	movq	_PCI_DEVICE_ID_INTEL_5400_FBD1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_pci_get_device
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	leaq	L_.str.6(%rip), %rsi
	callq	_i5400_printk
	movq	24(%r14), %rdi
	callq	_pci_dev_put
	jmp	LBB0_13
LBB0_2:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_i5400_printk
	jmp	LBB0_15
LBB0_6:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_i5400_printk
	movq	(%r12), %rdi
	jmp	LBB0_14
LBB0_9:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movl	(%r12), %ecx
	leaq	L_.str.5(%rip), %rsi
	callq	_i5400_printk
LBB0_13:
	movq	16(%r14), %rdi
	callq	_pci_dev_put
	movq	8(%r14), %rdi
LBB0_14:
	callq	_pci_dev_put
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %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 func 1 (broken BIOS?)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"'system address,Process Bus' device not found:vendor 0x%x device 0x%x ERR func 2 (broken BIOS?)\n"

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

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

L_.str.4:                               ## @.str.4
	.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.5:                               ## @.str.5
	.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.6:                               ## @.str.6
	.asciz	"MC: 'BRANCH 1' device not found:vendor 0x%x device 0x%x Func 0 (broken BIOS?)\n"

	.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	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, #0
	ldr	x21, [x0]
	movi.2d	v0, #0000000000000000
	mov	x23, x21
	str	q0, [x23, #8]!
	stur	q0, [x21, #24]
Lloh0:
	adrp	x22, _PCI_VENDOR_ID_INTEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PCI_VENDOR_ID_INTEL@GOTPAGEOFF]
Lloh2:
	adrp	x24, _PCI_DEVICE_ID_INTEL_5400_ERR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PCI_DEVICE_ID_INTEL_5400_ERR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	w1, [x24]
	mov	x2, x19
	bl	_pci_get_device
	cbz	x0, LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_PCI_FUNC
	cmp	w0, #1
	b.ne	LBB0_1
; %bb.3:
	mov	x20, #0
	str	x19, [x23]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	w1, [x24]
	mov	x2, x20
	bl	_pci_get_device
	cbz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_PCI_FUNC
	cmp	w0, #2
	b.ne	LBB0_4
; %bb.6:
	str	x20, [x21, #16]
	ldr	x0, [x21, #40]
	bl	_pci_name
	mov	x2, x0
	ldr	x8, [x21, #40]
	ldp	w4, w3, [x8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	ldr	x0, [x21, #8]
	bl	_pci_name
	mov	x2, x0
	ldr	x8, [x21, #8]
	ldp	w4, w3, [x8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	ldr	x0, [x21, #16]
	bl	_pci_name
	mov	x2, x0
	ldr	x8, [x21, #16]
	ldp	w4, w3, [x8]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_edac_dbg
	ldr	w0, [x22]
Lloh10:
	adrp	x19, _PCI_DEVICE_ID_INTEL_5400_FBD0@GOTPAGE
Lloh11:
	ldr	x19, [x19, _PCI_DEVICE_ID_INTEL_5400_FBD0@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x2, #0
	bl	_pci_get_device
	str	x0, [x21, #24]
	cbz	x0, LBB0_12
; %bb.7:
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _CHANNELS_PER_BRANCH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHANNELS_PER_BRANCH@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_9
; %bb.8:
	ldr	w0, [x22]
Lloh15:
	adrp	x19, _PCI_DEVICE_ID_INTEL_5400_FBD1@GOTPAGE
Lloh16:
	ldr	x19, [x19, _PCI_DEVICE_ID_INTEL_5400_FBD1@GOTPAGEOFF]
	ldr	w1, [x19]
	mov	x2, #0
	bl	_pci_get_device
	str	x0, [x21, #32]
	cbz	x0, LBB0_13
LBB0_9:
	mov	w0, #0
	b	LBB0_17
LBB0_10:
Lloh17:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w2, [x22]
	ldr	w3, [x24]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_i5400_printk
	b	LBB0_16
LBB0_11:
Lloh22:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w2, [x22]
	ldr	w3, [x24]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_i5400_printk
	ldr	x0, [x23]
	b	LBB0_15
LBB0_12:
Lloh27:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w2, [x22]
	ldr	w3, [x19]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_i5400_printk
	b	LBB0_14
LBB0_13:
Lloh32:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w2, [x22]
	ldr	w3, [x19]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_i5400_printk
	ldr	x0, [x21, #24]
	bl	_pci_dev_put
LBB0_14:
	ldr	x0, [x21, #16]
	bl	_pci_dev_put
	ldr	x0, [x21, #8]
LBB0_15:
	bl	_pci_dev_put
LBB0_16:
Lloh37:
	adrp	x8, _ENODEV@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	.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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.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 func 1 (broken BIOS?)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"'system address,Process Bus' device not found:vendor 0x%x device 0x%x ERR func 2 (broken BIOS?)\n"

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

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

l_.str.4:                               ; @.str.4
	.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.5:                               ; @.str.5
	.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.6:                               ; @.str.6
	.asciz	"MC: 'BRANCH 1' device not found:vendor 0x%x device 0x%x Func 0 (broken BIOS?)\n"

	.no_dead_strip	_i5400_get_devices
.subsections_via_symbols
