	.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
	testb	$3, %al
	je	LBB0_1
## %bb.2:
	movl	$1, %r14d
	testl	%edx, %edx
	je	LBB0_8
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rcx
	movl	(%rcx), %r13d
	xorl	4(%rsi), %eax
	testb	$3, %al
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_edac_mc_handle_ce_no_info
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
LBB0_5:
	movl	8(%rbx), %r12d
	movl	%r12d, %eax
	sarl	%eax
	movl	%eax, %esi
	orl	$-2147483648, %esi              ## imm = 0x80000000
	cmpq	$0, 16(%rbx)
	cmovel	%eax, %esi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movl	%esi, 8(%rbx)
	movq	%r15, %rdi
	callq	_edac_mc_find_csrow_by_page
	testb	$2, 4(%rbx)
	movl	8(%rbx), %esi
	jne	LBB0_6
## %bb.7:
	andl	$1, %r12d
	movl	12(%rbx), %ecx
	xorl	%edx, %edx
	cmpl	$1, %r13d
	cmovel	%edx, %r12d
	leaq	L_.str.2(%rip), %rdx
	movq	%rdx, (%rsp)
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%eax, %r8d
	movl	%r12d, %r9d
	callq	_edac_mc_handle_ce
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_edac_mc_handle_ue
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UE overwrote CE"

	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"i82975x UE"

L_.str.2:                               ## @.str.2
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_6
; %bb.1:
	cbz	w2, LBB0_8
; %bb.2:
	mov	x20, x1
	mov	x19, x0
	ldr	x9, [x0]
	ldr	w21, [x9]
	ldr	w9, [x1, #4]
	eor	w8, w9, w8
	tst	w8, #0x3
	b.eq	LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_edac_mc_handle_ce_no_info
	ldr	w8, [x20]
	str	w8, [x20, #4]
LBB0_4:
	ldr	w22, [x20, #8]
	asr	w8, w22, #1
	ldr	x9, [x20, #16]
	orr	w10, w8, #0x80000000
	cmp	x9, #0
	csel	w8, w8, w10, eq
Lloh2:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	asr	w1, w8, w9
	str	w1, [x20, #8]
	mov	x0, x19
	bl	_edac_mc_find_csrow_by_page
	mov	x7, x0
	ldr	w1, [x20, #8]
	ldrb	w8, [x20, #4]
	tbnz	w8, #1, LBB0_7
; %bb.5:
	and	w8, w22, #0x1
	ldr	w3, [x20, #12]
	cmp	w21, #1
	csel	w5, wzr, w8, eq
Lloh5:
	adrp	x6, l_.str.2@PAGE
Lloh6:
	add	x6, x6, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	x4, x7
	bl	_edac_mc_handle_ce
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x4, l_.str.1@PAGE
Lloh8:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	x3, x7
	bl	_edac_mc_handle_ue
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UE overwrote CE"

	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"i82975x UE"

l_.str.2:                               ; @.str.2
	.asciz	"i82975x CE"

	.no_dead_strip	_i82975x_process_error_info
.subsections_via_symbols
