	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc85xx_mc_check
_mpc85xx_mc_check:                      ## @mpc85xx_mc_check
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r13
	movq	_MPC85XX_MC_ERR_DETECT@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r13), %rdi
	callq	_in_be32
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	movl	%eax, %r14d
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_mpc85xx_mc_printk
	movq	_DDR_EDE_SBE@GOTPCREL(%rip), %rcx
	movq	_DDR_EDE_MBE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	(%r13), %rdi
	testl	%r14d, %eax
	je	LBB0_15
## %bb.2:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	_MPC85XX_MC_CAPTURE_ECC@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_in_be32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_MPC85XX_MC_CAPTURE_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	addq	(%r13), %rdi
	callq	_in_be32
	movl	%eax, %r13d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	sarl	%cl, %r13d
	movl	(%r15), %eax
	testl	%eax, %eax
	movq	_KERN_ERR@GOTPCREL(%rip), %rdx
	jle	LBB0_8
## %bb.3:
	movq	8(%r15), %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rcx,%rbx,8), %r13d
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	4(%rcx,%rbx,8), %r13d
	jg	LBB0_6
	jmp	LBB0_8
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%eax, %ebx
LBB0_8:
	movl	(%rdx), %r12d
	movq	_MPC85XX_MC_CAPTURE_DATA_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addq	(%r14), %rdi
	callq	_in_be32
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mpc85xx_mc_printk
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MPC85XX_MC_CAPTURE_DATA_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	movq	_KERN_ERR@GOTPCREL(%rip), %r14
	callq	_in_be32
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mpc85xx_mc_printk
	movl	(%r14), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_mpc85xx_mc_printk
	movl	(%r14), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_mpc85xx_mc_printk
	movl	(%r14), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_mpc85xx_mc_printk
	cmpl	(%r15), %ebx
	jne	LBB0_10
## %bb.9:
	movl	(%r14), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mpc85xx_mc_printk
LBB0_10:
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	_DDR_EDE_SBE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	movq	_MPC85XX_MC_ERR_DETECT@GOTPCREL(%rip), %r12
	je	LBB0_12
## %bb.11:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movl	4(%r15), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_edac_mc_handle_ce
LBB0_12:
	movq	_DDR_EDE_MBE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movl	4(%r15), %r8d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %ecx
	callq	_edac_mc_handle_ue
LBB0_14:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
LBB0_15:
	addq	(%r12), %rdi
	movl	%r14d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_out_be32                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC85XX_MC_ERR_DETECT,8,3      ## @MPC85XX_MC_ERR_DETECT
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Err Detect Register: %#8.8x\n"

	.comm	_DDR_EDE_SBE,4,2                ## @DDR_EDE_SBE
	.comm	_DDR_EDE_MBE,4,2                ## @DDR_EDE_MBE
	.comm	_MPC85XX_MC_CAPTURE_ECC,8,3     ## @MPC85XX_MC_CAPTURE_ECC
	.comm	_MPC85XX_MC_CAPTURE_ADDRESS,8,3 ## @MPC85XX_MC_CAPTURE_ADDRESS
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"Capture Data High: %#8.8x\n"

	.comm	_MPC85XX_MC_CAPTURE_DATA_HI,8,3 ## @MPC85XX_MC_CAPTURE_DATA_HI
L_.str.2:                               ## @.str.2
	.asciz	"Capture Data Low: %#8.8x\n"

	.comm	_MPC85XX_MC_CAPTURE_DATA_LO,8,3 ## @MPC85XX_MC_CAPTURE_DATA_LO
L_.str.3:                               ## @.str.3
	.asciz	"syndrome: %#8.8x\n"

L_.str.4:                               ## @.str.4
	.asciz	"err addr: %#8.8x\n"

L_.str.5:                               ## @.str.5
	.asciz	"PFN: %#8.8x\n"

L_.str.6:                               ## @.str.6
	.asciz	"PFN out of range!\n"

	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.no_dead_strip	_mpc85xx_mc_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc85xx_mc_check
_mpc85xx_mc_check:                      ; @mpc85xx_mc_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	ldr	x27, [x0, #16]
	ldr	x8, [x27]
Lloh0:
	adrp	x21, _MPC85XX_MC_ERR_DETECT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MPC85XX_MC_ERR_DETECT@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_in_be32
	cbz	w0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x28, _KERN_ERR@GOTPAGE
Lloh3:
	ldr	x28, [x28, _KERN_ERR@GOTPAGEOFF]
	ldr	w1, [x28]
	str	x19, [sp]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mpc85xx_mc_printk
Lloh6:
	adrp	x23, _DDR_EDE_SBE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DDR_EDE_SBE@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh8:
	adrp	x26, _DDR_EDE_MBE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DDR_EDE_MBE@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w9, w9, w8
	ldr	x8, [x27]
	tst	w9, w19
	b.eq	LBB0_17
; %bb.2:
Lloh10:
	adrp	x9, _MPC85XX_MC_CAPTURE_ECC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MPC85XX_MC_CAPTURE_ECC@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_be32
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x27]
Lloh13:
	adrp	x9, _MPC85XX_MC_CAPTURE_ADDRESS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MPC85XX_MC_CAPTURE_ADDRESS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_be32
	mov	x21, x0
Lloh16:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	asr	w22, w0, w8
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x24, #0
	ldr	x9, [x20, #8]
	add	x9, x9, #4
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	add	x9, x9, #8
	cmp	x8, x24
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	cmp	w22, w10
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w10, [x9]
	cmp	w22, w10
	b.gt	LBB0_4
	b	LBB0_10
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	mov	w24, #0
	b	LBB0_10
LBB0_9:
	mov	x24, x8
LBB0_10:
	ldr	w25, [x28]
	ldr	x8, [x27]
Lloh19:
	adrp	x9, _MPC85XX_MC_CAPTURE_DATA_HI@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MPC85XX_MC_CAPTURE_DATA_HI@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_be32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x2, l_.str.1@PAGE
Lloh23:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x25
	bl	_mpc85xx_mc_printk
	ldr	w25, [x28]
	ldr	x8, [x27]
Lloh24:
	adrp	x9, _MPC85XX_MC_CAPTURE_DATA_LO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MPC85XX_MC_CAPTURE_DATA_LO@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_be32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x25
	bl	_mpc85xx_mc_printk
	ldr	w1, [x28]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [sp]
Lloh29:
	adrp	x2, l_.str.3@PAGE
Lloh30:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_mpc85xx_mc_printk
	ldr	w1, [x28]
	str	x21, [sp]
Lloh31:
	adrp	x2, l_.str.4@PAGE
Lloh32:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_mpc85xx_mc_printk
	ldr	w1, [x28]
	str	x22, [sp]
Lloh33:
	adrp	x2, l_.str.5@PAGE
Lloh34:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_mpc85xx_mc_printk
	ldr	w8, [x20]
	cmp	w24, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	w1, [x28]
Lloh35:
	adrp	x2, l_.str.6@PAGE
Lloh36:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_mpc85xx_mc_printk
LBB0_12:
	ldr	w8, [x23]
Lloh37:
	adrp	x25, _PAGE_MASK@GOTPAGE
Lloh38:
	ldr	x25, [x25, _PAGE_MASK@GOTPAGEOFF]
	tst	w8, w19
	b.eq	LBB0_14
; %bb.13:
	ldr	w8, [x25]
	and	w2, w8, w21
	ldr	w6, [x20, #4]
	mov	x0, x20
	mov	x1, x22
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x24
	mov	w5, #0
	bl	_edac_mc_handle_ce
LBB0_14:
	ldr	w8, [x26]
	tst	w8, w19
	b.eq	LBB0_16
; %bb.15:
	ldr	w8, [x25]
	and	w2, w8, w21
	ldr	w4, [x20, #4]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x24
	bl	_edac_mc_handle_ue
LBB0_16:
	ldr	x8, [x27]
Lloh39:
	adrp	x21, _MPC85XX_MC_ERR_DETECT@GOTPAGE
Lloh40:
	ldr	x21, [x21, _MPC85XX_MC_ERR_DETECT@GOTPAGEOFF]
LBB0_17:
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_out_be32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC85XX_MC_ERR_DETECT,8,3      ; @MPC85XX_MC_ERR_DETECT
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Err Detect Register: %#8.8x\n"

	.comm	_DDR_EDE_SBE,4,2                ; @DDR_EDE_SBE
	.comm	_DDR_EDE_MBE,4,2                ; @DDR_EDE_MBE
	.comm	_MPC85XX_MC_CAPTURE_ECC,8,3     ; @MPC85XX_MC_CAPTURE_ECC
	.comm	_MPC85XX_MC_CAPTURE_ADDRESS,8,3 ; @MPC85XX_MC_CAPTURE_ADDRESS
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"Capture Data High: %#8.8x\n"

	.comm	_MPC85XX_MC_CAPTURE_DATA_HI,8,3 ; @MPC85XX_MC_CAPTURE_DATA_HI
l_.str.2:                               ; @.str.2
	.asciz	"Capture Data Low: %#8.8x\n"

	.comm	_MPC85XX_MC_CAPTURE_DATA_LO,8,3 ; @MPC85XX_MC_CAPTURE_DATA_LO
l_.str.3:                               ; @.str.3
	.asciz	"syndrome: %#8.8x\n"

l_.str.4:                               ; @.str.4
	.asciz	"err addr: %#8.8x\n"

l_.str.5:                               ; @.str.5
	.asciz	"PFN: %#8.8x\n"

l_.str.6:                               ; @.str.6
	.asciz	"PFN out of range!\n"

	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.no_dead_strip	_mpc85xx_mc_check
.subsections_via_symbols
