	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i3200_process_error_info
_i3200_process_error_info:              ## @i3200_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
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movq	_I3200_ERRSTS_BITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	4(%rdx), %eax
	testl	%ecx, %eax
	je	LBB0_3
## %bb.2:
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rbx
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%rbx
	pushq	$-1
	pushq	$-1
	pushq	$-1
	callq	_edac_mc_handle_error
	addq	$48, %rsp
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %eax
	movl	%eax, (%rcx)
LBB0_3:
	movq	_nr_channels@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_HW_EVENT_ERR_UNCORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_eccerrlog_row
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leaq	L_.str.1(%rip), %rbx
	pushq	%rbx
	leaq	L_.str.2(%rip), %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	pushq	%rbx
	pushq	$-1
	pushq	$-1
	pushq	%rax
	callq	_edac_mc_handle_error
	addq	$48, %rsp
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	_nr_channels@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax,%r15,4), %r12d
	movq	_I3200_ECCERRLOG_UE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_I3200_ECCERRLOG_CE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_HW_EVENT_ERR_CORRECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r12d, %edi
	callq	_eccerrlog_syndrome
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_eccerrlog_row
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	leaq	L_.str.1(%rip), %rbx
	pushq	%rbx
	leaq	L_.str.3(%rip), %rbx
	jmp	LBB0_9
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I3200_ERRSTS_BITS,4,2          ## @I3200_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	_nr_channels,4,2                ## @nr_channels
	.comm	_I3200_ECCERRLOG_UE,4,2         ## @I3200_ECCERRLOG_UE
L_.str.2:                               ## @.str.2
	.asciz	"i3000 UE"

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

	.no_dead_strip	_i3200_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 i3200_process_error_info
_i3200_process_error_info:              ; @i3200_process_error_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w9, [x1]
Lloh0:
	adrp	x8, _I3200_ERRSTS_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I3200_ERRSTS_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w10, [x1, #4]
	eor	w9, w10, w9
Lloh3:
	adrp	x25, l_.str.1@PAGE
Lloh4:
	add	x25, x25, l_.str.1@PAGEOFF
Lloh5:
	adrp	x24, _HW_EVENT_ERR_UNCORRECTED@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HW_EVENT_ERR_UNCORRECTED@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x24]
Lloh7:
	adrp	x8, l_.str@PAGE
Lloh8:
	add	x8, x8, l_.str@PAGEOFF
	stp	x8, x25, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #-1
	mov	w7, #-1
	bl	_edac_mc_handle_error
	ldr	w8, [x19, #4]
	str	w8, [x19]
LBB0_3:
Lloh9:
	adrp	x27, _nr_channels@GOTPAGE
Lloh10:
	ldr	x27, [x27, _nr_channels@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x21, #0
Lloh11:
	adrp	x28, _I3200_ECCERRLOG_UE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _I3200_ECCERRLOG_UE@GOTPAGEOFF]
Lloh13:
	adrp	x26, l_.str.2@PAGE
Lloh14:
	add	x26, x26, l_.str.2@PAGEOFF
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w23, [x24]
	mov	x0, x21
	mov	x1, x22
	bl	_eccerrlog_row
	mov	x6, x0
	stp	x26, x25, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	x0, x23
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w7, #-1
	bl	_edac_mc_handle_error
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x27]
	cmp	x21, x8
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w22, [x8, x21, lsl #2]
	ldr	w8, [x28]
	tst	w8, w22
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh15:
	adrp	x8, _I3200_ECCERRLOG_CE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I3200_ECCERRLOG_CE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh18:
	adrp	x8, _HW_EVENT_ERR_CORRECTED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HW_EVENT_ERR_CORRECTED@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_eccerrlog_syndrome
	mov	x19, x28
	mov	x28, x27
	mov	x27, x26
	mov	x26, x24
	mov	x24, x0
	mov	x0, x21
	mov	x1, x22
	bl	_eccerrlog_row
	mov	x6, x0
Lloh21:
	adrp	x8, l_.str.3@PAGE
Lloh22:
	add	x8, x8, l_.str.3@PAGEOFF
	stp	x8, x25, [sp, #8]
	mov	w8, #-1
	str	w8, [sp]
	mov	x0, x23
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	x5, x24
	mov	x24, x26
	mov	x26, x27
	mov	x27, x28
	mov	x28, x19
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_6
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I3200_ERRSTS_BITS,4,2          ; @I3200_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	_nr_channels,4,2                ; @nr_channels
	.comm	_I3200_ECCERRLOG_UE,4,2         ; @I3200_ECCERRLOG_UE
l_.str.2:                               ; @.str.2
	.asciz	"i3000 UE"

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

	.no_dead_strip	_i3200_process_error_info
.subsections_via_symbols
