	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc85xx_l2_check
_mpc85xx_l2_check:                      ## @mpc85xx_l2_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_MPC85XX_L2_ERRDET@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%rbx), %rdi
	callq	_in_be32
	movl	%eax, %r15d
	movq	_L2_EDE_MASK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_MPC85XX_L2_CAPTDATAHI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_in_be32
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_MPC85XX_L2_CAPTDATALO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_in_be32
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_MPC85XX_L2_CAPTECC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_in_be32
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_MPC85XX_L2_ERRATTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_in_be32
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_MPC85XX_L2_ERRADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_in_be32
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	(%r12), %rdi
	addq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_out_be32
	movq	_L2_EDE_CE_MASK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r14), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_edac_device_handle_ce
LBB0_3:
	movq	_L2_EDE_UE_MASK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.5:
	movl	(%r14), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_edac_device_handle_ue          ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC85XX_L2_ERRDET,8,3          ## @MPC85XX_L2_ERRDET
	.comm	_L2_EDE_MASK,4,2                ## @L2_EDE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ECC Error in CPU L2 cache\n"

L_.str.1:                               ## @.str.1
	.asciz	"L2 Error Detect Register: 0x%08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"L2 Error Capture Data High Register: 0x%08x\n"

	.comm	_MPC85XX_L2_CAPTDATAHI,8,3      ## @MPC85XX_L2_CAPTDATAHI
L_.str.3:                               ## @.str.3
	.asciz	"L2 Error Capture Data Lo Register: 0x%08x\n"

	.comm	_MPC85XX_L2_CAPTDATALO,8,3      ## @MPC85XX_L2_CAPTDATALO
L_.str.4:                               ## @.str.4
	.asciz	"L2 Error Syndrome Register: 0x%08x\n"

	.comm	_MPC85XX_L2_CAPTECC,8,3         ## @MPC85XX_L2_CAPTECC
L_.str.5:                               ## @.str.5
	.asciz	"L2 Error Attributes Capture Register: 0x%08x\n"

	.comm	_MPC85XX_L2_ERRATTR,8,3         ## @MPC85XX_L2_ERRATTR
L_.str.6:                               ## @.str.6
	.asciz	"L2 Error Address Capture Register: 0x%08x\n"

	.comm	_MPC85XX_L2_ERRADDR,8,3         ## @MPC85XX_L2_ERRADDR
	.comm	_L2_EDE_CE_MASK,4,2             ## @L2_EDE_CE_MASK
	.comm	_L2_EDE_UE_MASK,4,2             ## @L2_EDE_UE_MASK
	.no_dead_strip	_mpc85xx_l2_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc85xx_l2_check
_mpc85xx_l2_check:                      ; @mpc85xx_l2_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _MPC85XX_L2_ERRDET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MPC85XX_L2_ERRDET@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_in_be32
Lloh2:
	adrp	x8, _L2_EDE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _L2_EDE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	str	x20, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _MPC85XX_L2_CAPTDATAHI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MPC85XX_L2_CAPTDATAHI@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_be32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	ldr	x8, [x21]
Lloh14:
	adrp	x9, _MPC85XX_L2_CAPTDATALO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MPC85XX_L2_CAPTDATALO@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_be32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	ldr	x8, [x21]
Lloh19:
	adrp	x9, _MPC85XX_L2_CAPTECC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MPC85XX_L2_CAPTECC@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_be32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
	ldr	x8, [x21]
Lloh24:
	adrp	x9, _MPC85XX_L2_ERRATTR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MPC85XX_L2_ERRATTR@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_be32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_err
	ldr	x8, [x21]
Lloh29:
	adrp	x9, _MPC85XX_L2_ERRADDR@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MPC85XX_L2_ERRADDR@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_in_be32
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_err
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	mov	x1, x20
	bl	_out_be32
Lloh34:
	adrp	x8, _L2_EDE_CE_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _L2_EDE_CE_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w3, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_edac_device_handle_ce
LBB0_3:
Lloh37:
	adrp	x8, _L2_EDE_UE_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _L2_EDE_UE_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w3, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	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
	add	sp, sp, #64
	b	_edac_device_handle_ue
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC85XX_L2_ERRDET,8,3          ; @MPC85XX_L2_ERRDET
	.comm	_L2_EDE_MASK,4,2                ; @L2_EDE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ECC Error in CPU L2 cache\n"

l_.str.1:                               ; @.str.1
	.asciz	"L2 Error Detect Register: 0x%08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"L2 Error Capture Data High Register: 0x%08x\n"

	.comm	_MPC85XX_L2_CAPTDATAHI,8,3      ; @MPC85XX_L2_CAPTDATAHI
l_.str.3:                               ; @.str.3
	.asciz	"L2 Error Capture Data Lo Register: 0x%08x\n"

	.comm	_MPC85XX_L2_CAPTDATALO,8,3      ; @MPC85XX_L2_CAPTDATALO
l_.str.4:                               ; @.str.4
	.asciz	"L2 Error Syndrome Register: 0x%08x\n"

	.comm	_MPC85XX_L2_CAPTECC,8,3         ; @MPC85XX_L2_CAPTECC
l_.str.5:                               ; @.str.5
	.asciz	"L2 Error Attributes Capture Register: 0x%08x\n"

	.comm	_MPC85XX_L2_ERRATTR,8,3         ; @MPC85XX_L2_ERRATTR
l_.str.6:                               ; @.str.6
	.asciz	"L2 Error Address Capture Register: 0x%08x\n"

	.comm	_MPC85XX_L2_ERRADDR,8,3         ; @MPC85XX_L2_ERRADDR
	.comm	_L2_EDE_CE_MASK,4,2             ; @L2_EDE_CE_MASK
	.comm	_L2_EDE_UE_MASK,4,2             ; @L2_EDE_UE_MASK
	.no_dead_strip	_mpc85xx_l2_check
.subsections_via_symbols
