	.file	"extr_xgene_edac.c_xgene_edac_l3_check.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"L3C uncorrectable error\n"
.LC1:
	.string	"L3C correctable error\n"
.LC2:
	.string	"L3C multiple hit error\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"L3C dropped eviction of line with error\n"
	.align 8
.LC4:
	.string	"L3C multiple uncorrectable error\n"
	.align 8
.LC5:
	.string	"L3C data error syndrome 0x%X group 0x%X\n"
	.align 8
.LC6:
	.string	"L3C tag error syndrome 0x%X Way of Tag 0x%X Agent ID 0x%X Operation type 0x%X\n"
	.align 8
.LC7:
	.string	"L3C error address 0x%08X.%08X bank %d\n"
	.align 8
.LC8:
	.string	"L3C error status register value 0x%X\n"
	.text
	.p2align 4
	.type	xgene_edac_l3_check, @function
xgene_edac_l3_check:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 8[rdi]
	mov	rdi, QWORD PTR L3C_ESR[rip]
	add	rdi, QWORD PTR 8[r12]
	call	readl@PLT
	mov	edx, DWORD PTR L3C_ESR_UCERR_MASK[rip]
	mov	ebx, eax
	mov	eax, DWORD PTR L3C_ESR_CERR_MASK[rip]
	mov	ecx, edx
	or	ecx, eax
	test	ecx, ebx
	je	.L1
	test	edx, ebx
	jne	.L41
	test	ebx, eax
	jne	.L42
.L5:
	mov	rdi, QWORD PTR L3C_ELR[rip]
	add	rdi, QWORD PTR 8[r12]
	call	readl@PLT
	mov	rdi, QWORD PTR L3C_AELR[rip]
	add	rdi, QWORD PTR 8[r12]
	mov	r13d, eax
	call	readl@PLT
	mov	rdi, QWORD PTR L3C_BELR[rip]
	add	rdi, QWORD PTR 8[r12]
	mov	r14d, eax
	call	readl@PLT
	mov	r15d, eax
	test	DWORD PTR L3C_ESR_MULTIHIT_MASK[rip], ebx
	jne	.L43
	test	DWORD PTR L3C_ESR_UCEVICT_MASK[rip], ebx
	jne	.L44
.L7:
	test	DWORD PTR L3C_ESR_MULTIUCERR_MASK[rip], ebx
	jne	.L45
.L8:
	mov	edi, r13d
	test	DWORD PTR L3C_ESR_DATATAG_MASK[rip], ebx
	jne	.L46
.L9:
	call	L3C_ELR_OPTYPE@PLT
	mov	edi, r13d
	mov	DWORD PTR 12[rsp], eax
	call	L3C_ELR_AGENTID@PLT
	mov	edi, r13d
	mov	DWORD PTR 8[rsp], eax
	call	L3C_ELR_ERRWAY@PLT
	mov	edi, r13d
	mov	DWORD PTR 4[rsp], eax
	call	L3C_ELR_ERRSYN@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	r9d, DWORD PTR 12[rsp]
	lea	rsi, .LC6[rip]
	mov	r8d, DWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 4[rsp]
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
.L10:
	mov	edi, r15d
	call	L3C_BELR_BANK@PLT
	mov	edi, r13d
	mov	r15d, eax
	call	L3C_ELR_PADDRHIGH@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	ecx, r14d
	sar	r14d, 26
	sal	eax, 6
	sal	ecx, 6
	mov	r8d, r15d
	lea	rsi, .LC7[rip]
	mov	edx, eax
	xor	eax, eax
	or	edx, r14d
	call	dev_err@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, ebx
	xor	eax, eax
	lea	rsi, .LC8[rip]
	call	dev_err@PLT
	mov	rsi, QWORD PTR L3C_ESR[rip]
	xor	edi, edi
	add	rsi, QWORD PTR 8[r12]
	call	writel@PLT
	cmp	DWORD PTR [r12], 1
	jle	.L47
.L11:
	test	DWORD PTR L3C_ESR_CERR_MASK[rip], ebx
	jne	.L48
.L12:
	test	DWORD PTR L3C_ESR_UCERR_MASK[rip], ebx
	je	.L1
.L39:
	mov	ecx, DWORD PTR 0[rbp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	xor	edx, edx
	pop	rbx
	.cfi_def_cfa_offset 48
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	edac_device_handle_ue@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	call	L3C_ELR_ERRGRP@PLT
	mov	edi, r13d
	mov	DWORD PTR 4[rsp], eax
	call	L3C_ELR_ERRSYN@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR 4[rsp]
	lea	rsi, .LC5[rip]
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L45:
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	edi, r13d
	test	DWORD PTR L3C_ESR_DATATAG_MASK[rip], ebx
	je	.L9
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edi, DWORD PTR 4[rbp]
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	dev_err@PLT
	test	DWORD PTR L3C_ESR_MULTIUCERR_MASK[rip], ebx
	je	.L8
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L43:
	mov	edi, DWORD PTR 4[rbp]
	xor	eax, eax
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	test	DWORD PTR L3C_ESR_UCEVICT_MASK[rip], ebx
	je	.L7
	jmp	.L44
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC1[rip]
	call	dev_warn@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	eax, DWORD PTR L3C_ESR_CERR_MASK[rip]
	test	ebx, eax
	je	.L5
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L48:
	mov	ecx, DWORD PTR 0[rbp]
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	edac_device_handle_ce@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L47:
	mov	esi, r13d
	mov	edi, ebx
	call	xgene_edac_l3_promote_to_uc_err@PLT
	test	rax, rax
	je	.L11
	jmp	.L39
	.cfi_endproc
.LFE0:
	.size	xgene_edac_l3_check, .-xgene_edac_l3_check
	.comm	L3C_ESR_UCEVICT_MASK,4,4
	.comm	L3C_ESR_UCERR_MASK,4,4
	.comm	L3C_ESR_MULTIUCERR_MASK,4,4
	.comm	L3C_ESR_MULTIHIT_MASK,4,4
	.comm	L3C_ESR_DATATAG_MASK,4,4
	.comm	L3C_ESR_CERR_MASK,4,4
	.comm	L3C_ESR,8,8
	.comm	L3C_ELR,8,8
	.comm	L3C_BELR,8,8
	.comm	L3C_AELR,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_xgene_edac.c_xgene_edac_l3_check.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"L3C uncorrectable error\012\000"
	.align	2
.LC1:
	.ascii	"L3C correctable error\012\000"
	.align	2
.LC2:
	.ascii	"L3C multiple hit error\012\000"
	.align	2
.LC3:
	.ascii	"L3C dropped eviction of line with error\012\000"
	.align	2
.LC4:
	.ascii	"L3C multiple uncorrectable error\012\000"
	.align	2
.LC5:
	.ascii	"L3C data error syndrome 0x%X group 0x%X\012\000"
	.align	2
.LC6:
	.ascii	"L3C tag error syndrome 0x%X Way of Tag 0x%X Agent I"
	.ascii	"D 0x%X Operation type 0x%X\012\000"
	.align	2
.LC7:
	.ascii	"L3C error address 0x%08X.%08X bank %d\012\000"
	.align	2
.LC8:
	.ascii	"L3C error status register value 0x%X\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgene_edac_l3_check, %function
xgene_edac_l3_check:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r0, #8]
	ldr	r9, .L49
	mov	r5, r0
	ldr	r3, [r9]
	ldr	r0, [r6, #4]
	sub	sp, sp, #36
	add	r0, r0, r3
	bl	readl
	ldr	fp, .L49+4
	ldr	r8, .L49+8
	ldr	r2, [fp]
	ldr	r3, [r8]
	orr	r1, r2, r3
	tst	r1, r0
	beq	.L1
	tst	r2, r0
	mov	r4, r0
	bne	.L41
	tst	r4, r3
	bne	.L42
.L5:
	ldr	r3, .L49+12
	ldr	r0, [r6, #4]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L49+16
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	mov	r7, r0
	add	r0, r2, r3
	bl	readl
	ldr	r3, .L49+20
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	str	r0, [sp, #12]
	add	r0, r2, r3
	bl	readl
	ldr	r3, .L49+24
	mov	r10, r0
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L43
.L6:
	ldr	r3, .L49+28
	ldr	r1, [r5, #4]
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L44
	ldr	r3, .L49+32
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L45
.L8:
	ldr	r3, .L49+36
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L46
.L9:
	mov	r0, r7
	str	r1, [sp, #28]
	bl	L3C_ELR_ERRSYN
	mov	r2, r0
	mov	r0, r7
	str	r2, [sp, #16]
	bl	L3C_ELR_ERRWAY
	mov	r3, r0
	mov	r0, r7
	str	r3, [sp, #24]
	bl	L3C_ELR_AGENTID
	mov	r2, r0
	mov	r0, r7
	str	r2, [sp, #20]
	bl	L3C_ELR_OPTYPE
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #28]
	str	r2, [sp]
	str	r0, [sp, #4]
	ldr	r3, [sp, #24]
	mov	r0, r1
	ldr	r2, [sp, #16]
	ldr	r1, .L49+40
	bl	dev_err
.L10:
	ldr	r3, [r5, #4]
	mov	r0, r7
	str	r3, [sp, #16]
	bl	L3C_ELR_PADDRHIGH
	mov	r1, r0
	ldr	r3, [sp, #12]
	mov	r0, r10
	asr	r2, r3, #26
	orr	r10, r2, r1, lsl #6
	bl	L3C_BELR_BANK
	ldr	r3, [sp, #16]
	str	r0, [sp]
	mov	r0, r3
	ldr	r3, [sp, #12]
	mov	r2, r10
	lsl	r3, r3, #6
	ldr	r1, .L49+44
	bl	dev_err
	mov	r2, r4
	ldr	r1, .L49+48
	ldr	r0, [r5, #4]
	bl	dev_err
	ldr	r3, [r9]
	ldr	r1, [r6, #4]
	mov	r0, #0
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r6]
	cmp	r3, #1
	ble	.L47
.L11:
	ldr	r3, [r8]
	tst	r4, r3
	bne	.L48
.L12:
	ldr	r3, [fp]
	tst	r4, r3
	beq	.L1
.L39:
	mov	r2, #0
	mov	r0, r5
	mov	r1, r2
	ldr	r3, [r5]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	edac_device_handle_ue
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L46:
	mov	r0, r7
	str	r1, [sp, #20]
	bl	L3C_ELR_ERRSYN
	mov	r2, r0
	mov	r0, r7
	str	r2, [sp, #16]
	bl	L3C_ELR_ERRGRP
	ldr	r1, [sp, #20]
	mov	r3, r0
	ldr	r2, [sp, #16]
	mov	r0, r1
	ldr	r1, .L49+52
	bl	dev_err
	b	.L10
.L45:
	mov	r0, r1
	ldr	r1, .L49+56
	bl	dev_err
	ldr	r3, .L49+36
	ldr	r1, [r5, #4]
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L9
	b	.L46
.L44:
	mov	r0, r1
	ldr	r1, .L49+60
	bl	dev_err
	ldr	r3, .L49+32
	ldr	r1, [r5, #4]
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L8
	b	.L45
.L43:
	ldr	r1, .L49+64
	ldr	r0, [r5, #4]
	bl	dev_err
	b	.L6
.L42:
	ldr	r1, .L49+68
	ldr	r0, [r5, #4]
	bl	dev_warn
	b	.L5
.L41:
	ldr	r1, .L49+72
	ldr	r0, [r5, #4]
	bl	dev_err
	ldr	r3, [r8]
	tst	r4, r3
	beq	.L5
	b	.L42
.L48:
	mov	r2, #0
	mov	r0, r5
	mov	r1, r2
	ldr	r3, [r5]
	bl	edac_device_handle_ce
	b	.L12
.L47:
	mov	r1, r7
	mov	r0, r4
	bl	xgene_edac_l3_promote_to_uc_err
	cmp	r0, #0
	beq	.L11
	b	.L39
.L50:
	.align	2
.L49:
	.word	L3C_ESR
	.word	L3C_ESR_UCERR_MASK
	.word	L3C_ESR_CERR_MASK
	.word	L3C_ELR
	.word	L3C_AELR
	.word	L3C_BELR
	.word	L3C_ESR_MULTIHIT_MASK
	.word	L3C_ESR_UCEVICT_MASK
	.word	L3C_ESR_MULTIUCERR_MASK
	.word	L3C_ESR_DATATAG_MASK
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC5
	.word	.LC4
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	xgene_edac_l3_check, .-xgene_edac_l3_check
	.comm	L3C_ESR_UCEVICT_MASK,4,4
	.comm	L3C_ESR_UCERR_MASK,4,4
	.comm	L3C_ESR_MULTIUCERR_MASK,4,4
	.comm	L3C_ESR_MULTIHIT_MASK,4,4
	.comm	L3C_ESR_DATATAG_MASK,4,4
	.comm	L3C_ESR_CERR_MASK,4,4
	.comm	L3C_ESR,4,4
	.comm	L3C_ELR,4,4
	.comm	L3C_BELR,4,4
	.comm	L3C_AELR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
