	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i82975x_process_error_info
_i82975x_process_error_info:            ## @i82975x_process_error_info
	.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
	movl	(%rsi), %eax
	xorl	%r15d, %r15d
	testb	$3, %al
	je	LBB0_11
## %bb.1:
	testl	%edx, %edx
	je	LBB0_2
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	4(%rsi), %eax
	testb	$3, %al
	je	LBB0_5
## %bb.4:
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r10
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	$-1
	pushq	$-1
	pushq	$-1
	callq	_edac_mc_handle_error
	addq	$48, %rsp
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
LBB0_5:
	movslq	8(%rbx), %rax
	shrq	%rax
	movl	12(%rbx), %r12d
	shll	$31, %r12d
	orq	%rax, %r12
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	decb	%cl
	shrq	%cl, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_edac_mc_find_csrow_by_page
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movq	(%r14), %rcx
	movslq	%eax, %rdx
	movq	(%rcx,%rdx,8), %rdx
	movl	8(%rbx), %esi
	movl	%esi, %ecx
	andl	$1, %ecx
	xorl	%r10d, %r10d
	cmpl	$1, (%rdx)
	cmovnel	%ecx, %r10d
	movb	(%r13), %cl
	movl	$1, %r15d
	movl	$1, %edi
	shll	%cl, %edi
	movq	8(%rdx), %rcx
	movq	(%rcx,%r10,8), %rcx
	movq	(%rcx), %rcx
	movb	(%rcx), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	addl	%edi, %edx
	andl	%esi, %edx
	movslq	%edx, %r8
	testb	$2, 4(%rbx)
	jne	LBB0_8
## %bb.9:
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	16(%rbx), %r9d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str.4(%rip), %r11
	movl	$1, %r15d
	movq	%r14, %rsi
	movl	$1, %edx
	movq	%r12, %rcx
	pushq	%rbx
	pushq	%r11
	pushq	$-1
	pushq	%r10
	jmp	LBB0_10
LBB0_2:
	movl	$1, %r15d
	jmp	LBB0_11
LBB0_6:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	andl	$1, %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %r9d
	callq	_i82975x_mc_printk
	jmp	LBB0_11
LBB0_8:
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str.3(%rip), %r10
	movq	%r14, %rsi
	movl	$1, %edx
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%r10
	pushq	$-1
	pushq	$-1
LBB0_10:
	pushq	%rax
	callq	_edac_mc_handle_error
	addq	$48, %rsp
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ## @HW_EVENT_ERR_UNCORRECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UE overwrote CE"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.2:                               ## @.str.2
	.asciz	"error processing EAP:\n\tXEAP=%u\n\t EAP=0x%08x\n\tPAGE=0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"i82975x UE"

	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ## @HW_EVENT_ERR_CORRECTED
L_.str.4:                               ## @.str.4
	.asciz	"i82975x CE"

	.no_dead_strip	_i82975x_process_error_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i82975x_process_error_info
_i82975x_process_error_info:            ; @i82975x_process_error_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	w8, [x1]
	tst	w8, #0x3
	b.eq	LBB0_7
; %bb.1:
	cbz	w2, LBB0_8
; %bb.2:
	mov	x20, x1
	mov	x19, x0
	ldr	w9, [x1, #4]
	eor	w8, w9, w8
	tst	w8, #0x3
	b.eq	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _HW_EVENT_ERR_UNCORRECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_EVENT_ERR_UNCORRECTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	stp	x9, x8, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	x1, x19
	mov	w2, #1
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	mov	w6, #-1
	mov	w7, #-1
	bl	_edac_mc_handle_error
	ldr	w8, [x20]
	str	w8, [x20, #4]
LBB0_4:
	ldp	w8, w9, [x20, #8]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	lsl	w9, w9, #31
	orr	x8, x9, x8, lsr #1
Lloh7:
	adrp	x22, _PAGE_SHIFT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w9, w9, #1
	lsr	x21, x8, x9
	mov	x0, x19
	mov	x1, x21
	bl	_edac_mc_find_csrow_by_page
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.5:
	mov	x6, x0
	ldr	x8, [x19]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	w9, [x8]
	ldr	w10, [x20, #8]
	and	w11, w10, #0x1
	cmp	w9, #1
	csel	w7, wzr, w11, eq
	ldr	w9, [x22]
	mov	w11, #1
	lsl	w9, w11, w9
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w7, uxtw #3]
	ldr	x8, [x8]
	ldr	w11, [x8]
	mov	w8, #-1
	lsl	w11, w8, w11
	add	w9, w11, w9
	and	w9, w9, w10
	sxtw	x4, w9
	ldrb	w9, [x20, #4]
	tbnz	w9, #1, LBB0_10
; %bb.6:
Lloh9:
	adrp	x9, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	ldr	w5, [x20, #16]
Lloh12:
	adrp	x9, l_.str.1@PAGE
Lloh13:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh14:
	adrp	x10, l_.str.4@PAGE
Lloh15:
	add	x10, x10, l_.str.4@PAGEOFF
	stp	x10, x9, [sp, #8]
	str	w8, [sp]
	mov	w20, #1
	mov	x1, x19
	mov	w2, #1
	mov	x3, x21
	b	LBB0_11
LBB0_7:
	mov	w20, #0
	b	LBB0_12
LBB0_8:
	mov	w20, #1
	b	LBB0_12
LBB0_9:
Lloh16:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldp	w4, w8, [x20, #8]
	and	w3, w8, #0x1
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x5, x21
	bl	_i82975x_mc_printk
	mov	w20, #0
	b	LBB0_12
LBB0_10:
Lloh21:
	adrp	x9, _HW_EVENT_ERR_UNCORRECTED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HW_EVENT_ERR_UNCORRECTED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x9]
Lloh24:
	adrp	x9, l_.str.1@PAGE
Lloh25:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh26:
	adrp	x10, l_.str.3@PAGE
Lloh27:
	add	x10, x10, l_.str.3@PAGEOFF
	stp	x10, x9, [sp, #8]
	str	w8, [sp]
	mov	w20, #1
	mov	x1, x19
	mov	w2, #1
	mov	x3, x21
	mov	w5, #0
	mov	w7, #-1
LBB0_11:
	bl	_edac_mc_handle_error
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_EVENT_ERR_UNCORRECTED,4,2   ; @HW_EVENT_ERR_UNCORRECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UE overwrote CE"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.2:                               ; @.str.2
	.asciz	"error processing EAP:\n\tXEAP=%u\n\t EAP=0x%08x\n\tPAGE=0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"i82975x UE"

	.comm	_HW_EVENT_ERR_CORRECTED,4,2     ; @HW_EVENT_ERR_CORRECTED
l_.str.4:                               ; @.str.4
	.asciz	"i82975x CE"

	.no_dead_strip	_i82975x_process_error_info
.subsections_via_symbols
