	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i3000_process_error_info
_i3000_process_error_info:              ## @i3000_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
	movq	_I3000_ERRSTS_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_1
## %bb.2:
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	4(%rsi), %eax
	testl	%ecx, %eax
	je	LBB0_6
## %bb.5:
	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	4(%rbx), %eax
	movl	%eax, (%rbx)
LBB0_6:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_deap_pfn
	movq	%rax, %r15
	movl	12(%rbx), %edi
	callq	_deap_offset
	movq	%rax, %r12
	movl	12(%rbx), %edi
	callq	_deap_channel
	movl	%eax, %r13d
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_edac_mc_find_csrow_by_page
                                        ## kill: def $eax killed $eax def $rax
	movq	_I3000_ERRSTS_UE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_8
## %bb.7:
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %r10
	leaq	L_.str.2(%rip), %r11
	movl	$1, %ebx
	movq	%r14, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	movq	%r12, %r8
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%r11
	pushq	$-1
	pushq	$-1
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	8(%rbx), %r9d
	xorl	%ecx, %ecx
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	cmovel	%ecx, %r13d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %r10
	leaq	L_.str.3(%rip), %r11
	movl	$1, %ebx
	movq	%r14, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	movq	%r12, %r8
	pushq	%r10
	pushq	%r11
	pushq	$-1
	pushq	%r13
LBB0_9:
	pushq	%rax
	callq	_edac_mc_handle_error
	addq	$48, %rsp
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I3000_ERRSTS_BITS,4,2          ## @I3000_ERRSTS_BITS
	.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	_I3000_ERRSTS_UE,4,2            ## @I3000_ERRSTS_UE
L_.str.2:                               ## @.str.2
	.asciz	"i3000 UE"

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

	.no_dead_strip	_i3000_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 i3000_process_error_info
_i3000_process_error_info:              ; @i3000_process_error_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	ldr	w9, [x1]
Lloh0:
	adrp	x8, _I3000_ERRSTS_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I3000_ERRSTS_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.1:
	cbz	w2, LBB0_7
; %bb.2:
	mov	x20, x1
	mov	x19, x0
	ldr	x10, [x0]
	ldr	x10, [x10]
	ldr	w25, [x10]
	ldr	w10, [x1, #4]
	eor	w9, w10, w9
Lloh3:
	adrp	x26, _HW_EVENT_ERR_UNCORRECTED@GOTPAGE
Lloh4:
	ldr	x26, [x26, _HW_EVENT_ERR_UNCORRECTED@GOTPAGEOFF]
Lloh5:
	adrp	x24, l_.str.1@PAGE
Lloh6:
	add	x24, x24, l_.str.1@PAGEOFF
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x26]
Lloh7:
	adrp	x8, l_.str@PAGE
Lloh8:
	add	x8, x8, l_.str@PAGEOFF
	stp	x8, x24, [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, #4]
	str	w8, [x20]
LBB0_4:
	ldp	w1, w0, [x20, #12]
	bl	_deap_pfn
	mov	x21, x0
	ldr	w0, [x20, #12]
	bl	_deap_offset
	mov	x22, x0
	ldr	w0, [x20, #12]
	bl	_deap_channel
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	bl	_edac_mc_find_csrow_by_page
	mov	x6, x0
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _I3000_ERRSTS_UE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I3000_ERRSTS_UE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	ldr	w0, [x26]
Lloh12:
	adrp	x8, l_.str.2@PAGE
Lloh13:
	add	x8, x8, l_.str.2@PAGEOFF
	stp	x8, x24, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	w20, #1
	mov	x1, x19
	mov	w2, #1
	mov	x3, x21
	mov	x4, x22
	mov	w5, #0
	mov	w7, #-1
	b	LBB0_9
LBB0_6:
	mov	w20, #0
	b	LBB0_10
LBB0_7:
	mov	w20, #1
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w5, [x20, #8]
	cmp	w25, #1
	csel	w7, wzr, w23, eq
Lloh17:
	adrp	x8, l_.str.3@PAGE
Lloh18:
	add	x8, x8, l_.str.3@PAGEOFF
	stp	x8, x24, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	w20, #1
	mov	x1, x19
	mov	w2, #1
	mov	x3, x21
	mov	x4, x22
LBB0_9:
	bl	_edac_mc_handle_error
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I3000_ERRSTS_BITS,4,2          ; @I3000_ERRSTS_BITS
	.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	_I3000_ERRSTS_UE,4,2            ; @I3000_ERRSTS_UE
l_.str.2:                               ; @.str.2
	.asciz	"i3000 UE"

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

	.no_dead_strip	_i3000_process_error_info
.subsections_via_symbols
