	.file	"extr_t3_hw.c_mc7_intr_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s MC7 correctable error at addr 0x%x, data 0x%x 0x%x 0x%x\n"
	.align 8
.LC1:
	.string	"%s MC7 uncorrectable error at addr 0x%x, data 0x%x 0x%x 0x%x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s MC7 parity error 0x%x\n"
.LC3:
	.string	"%s MC7 address error: 0x%x\n"
	.text
	.p2align 4
	.type	mc7_intr_handler, @function
mc7_intr_handler:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 32[rdi]
	mov	rsi, QWORD PTR A_MC7_INT_CAUSE[rip]
	add	rsi, QWORD PTR [rdi]
	mov	rdi, rbp
	call	t3_read_reg@PLT
	mov	r12d, eax
	test	DWORD PTR F_CE[rip], eax
	jne	.L26
.L2:
	test	DWORD PTR F_UE[rip], r12d
	jne	.L27
.L3:
	mov	edi, r12d
	call	G_PE@PLT
	test	eax, eax
	jne	.L28
.L4:
	test	DWORD PTR F_AE[rip], r12d
	je	.L5
	xor	ecx, ecx
	cmp	QWORD PTR 0[rbp], 0
	jg	.L29
.L6:
	add	DWORD PTR 12[rbx], 1
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	mov	rdi, rbp
	call	CH_ALERT@PLT
.L5:
	test	DWORD PTR MC7_INTR_FATAL[rip], r12d
	jne	.L30
.L7:
	mov	rsi, QWORD PTR A_MC7_INT_CAUSE[rip]
	add	rsi, QWORD PTR [rbx]
	mov	edx, r12d
	mov	rdi, rbp
	add	rsp, 8
	.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
	jmp	t3_write_reg@PLT
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	rsi, QWORD PTR A_MC7_ERR_ADDR[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR [rbx]
	call	t3_read_reg@PLT
	mov	ecx, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L28:
	add	DWORD PTR 16[rbx], 1
	mov	edi, r12d
	call	G_PE@PLT
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	mov	ecx, eax
	xor	eax, eax
	call	CH_ALERT@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	add	DWORD PTR 20[rbx], 1
	mov	rsi, QWORD PTR A_MC7_UE_DATA2[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR [rbx]
	call	t3_read_reg@PLT
	mov	rsi, QWORD PTR A_MC7_UE_DATA1[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR [rbx]
	mov	r15d, eax
	call	t3_read_reg@PLT
	mov	rsi, QWORD PTR A_MC7_UE_DATA0[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR [rbx]
	mov	r14d, eax
	call	t3_read_reg@PLT
	mov	rsi, QWORD PTR A_MC7_UE_ADDR[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR [rbx]
	mov	r13d, eax
	call	t3_read_reg@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edx, DWORD PTR 8[rbx]
	mov	r9d, r14d
	push	r15
	.cfi_def_cfa_offset 80
	mov	ecx, eax
	mov	r8d, r13d
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	CH_ALERT@PLT
	pop	rax
	.cfi_def_cfa_offset 72
	pop	rdx
	.cfi_def_cfa_offset 64
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	add	DWORD PTR 24[rbx], 1
	mov	rsi, QWORD PTR A_MC7_CE_DATA2[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR [rbx]
	call	t3_read_reg@PLT
	mov	rsi, QWORD PTR A_MC7_CE_DATA1[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR [rbx]
	mov	r15d, eax
	call	t3_read_reg@PLT
	mov	rsi, QWORD PTR A_MC7_CE_DATA0[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR [rbx]
	mov	r14d, eax
	call	t3_read_reg@PLT
	mov	rsi, QWORD PTR A_MC7_CE_ADDR[rip]
	mov	rdi, rbp
	add	rsi, QWORD PTR [rbx]
	mov	r13d, eax
	call	t3_read_reg@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edx, DWORD PTR 8[rbx]
	mov	r9d, r14d
	push	r15
	.cfi_def_cfa_offset 80
	mov	ecx, eax
	lea	rsi, .LC0[rip]
	mov	r8d, r13d
	mov	rdi, rbp
	call	CH_WARN@PLT
	pop	rcx
	.cfi_def_cfa_offset 72
	pop	rsi
	.cfi_def_cfa_offset 64
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, rbp
	call	t3_fatal_err@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	mc7_intr_handler, .-mc7_intr_handler
	.comm	MC7_INTR_FATAL,4,4
	.comm	F_UE,4,4
	.comm	F_CE,4,4
	.comm	F_AE,4,4
	.comm	A_MC7_UE_DATA2,8,8
	.comm	A_MC7_UE_DATA1,8,8
	.comm	A_MC7_UE_DATA0,8,8
	.comm	A_MC7_UE_ADDR,8,8
	.comm	A_MC7_INT_CAUSE,8,8
	.comm	A_MC7_ERR_ADDR,8,8
	.comm	A_MC7_CE_DATA2,8,8
	.comm	A_MC7_CE_DATA1,8,8
	.comm	A_MC7_CE_DATA0,8,8
	.comm	A_MC7_CE_ADDR,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_t3_hw.c_mc7_intr_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s MC7 correctable error at addr 0x%x, data 0x%x 0x"
	.ascii	"%x 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"%s MC7 uncorrectable error at addr 0x%x, data 0x%x "
	.ascii	"0x%x 0x%x\012\000"
	.align	2
.LC2:
	.ascii	"%s MC7 parity error 0x%x\012\000"
	.align	2
.LC3:
	.ascii	"%s MC7 address error: 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mc7_intr_handler, %function
mc7_intr_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L31
	ldr	r1, [r0]
	ldr	r3, [r7]
	ldr	r6, [r0, #24]
	add	r1, r1, r3
	mov	r4, r0
	sub	sp, sp, #20
	mov	r0, r6
	bl	t3_read_reg
	ldr	r3, .L31+4
	mov	r5, r0
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L26
.L2:
	ldr	r3, .L31+8
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L27
.L3:
	mov	r0, r5
	bl	G_PE
	cmp	r0, #0
	bne	.L28
.L4:
	ldr	r3, .L31+12
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L5
	ldr	r3, [r6]
	cmp	r3, #0
	movle	r3, #0
	bgt	.L29
.L6:
	ldr	r2, [r4, #8]
	mov	r0, r6
	add	r2, r2, #1
	str	r2, [r4, #8]
	ldr	r1, .L31+16
	ldr	r2, [r4, #4]
	bl	CH_ALERT
.L5:
	ldr	r3, .L31+20
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L30
.L7:
	mov	r2, r5
	mov	r0, r6
	ldr	r1, [r4]
	ldr	r3, [r7]
	add	r1, r1, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	t3_write_reg
.L29:
	ldr	r3, .L31+24
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r6
	add	r1, r1, r3
	bl	t3_read_reg
	mov	r3, r0
	b	.L6
.L28:
	ldr	r3, [r4, #12]
	mov	r0, r5
	add	r3, r3, #1
	str	r3, [r4, #12]
	ldr	r8, [r4, #4]
	bl	G_PE
	mov	r2, r8
	mov	r3, r0
	ldr	r1, .L31+28
	mov	r0, r6
	bl	CH_ALERT
	b	.L4
.L27:
	ldr	r2, .L31+32
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	ldr	r1, [r4]
	add	r3, r3, #1
	add	r1, r1, r2
	str	r3, [r4, #16]
	mov	r0, r6
	ldr	fp, [r4, #4]
	bl	t3_read_reg
	ldr	r3, .L31+36
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r8, r0
	add	r1, r1, r3
	mov	r0, r6
	bl	t3_read_reg
	ldr	r3, .L31+40
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r10, r0
	add	r1, r1, r3
	mov	r0, r6
	bl	t3_read_reg
	ldr	r3, .L31+44
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r9, r0
	add	r1, r1, r3
	mov	r0, r6
	bl	t3_read_reg
	mov	r3, r8
	str	r0, [sp, #8]
	mov	r2, fp
	mov	r0, r6
	ldr	r1, .L31+48
	str	r10, [sp]
	str	r9, [sp, #4]
	bl	CH_ALERT
	b	.L3
.L26:
	ldr	r2, .L31+52
	ldr	r3, [r4, #20]
	ldr	r2, [r2]
	ldr	r1, [r4]
	add	r3, r3, #1
	add	r1, r1, r2
	str	r3, [r4, #20]
	mov	r0, r6
	ldr	fp, [r4, #4]
	bl	t3_read_reg
	ldr	r3, .L31+56
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r8, r0
	add	r1, r1, r3
	mov	r0, r6
	bl	t3_read_reg
	ldr	r3, .L31+60
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r10, r0
	add	r1, r1, r3
	mov	r0, r6
	bl	t3_read_reg
	ldr	r3, .L31+64
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r9, r0
	add	r1, r1, r3
	mov	r0, r6
	bl	t3_read_reg
	mov	r3, r8
	str	r0, [sp, #8]
	mov	r2, fp
	mov	r0, r6
	ldr	r1, .L31+68
	str	r10, [sp]
	str	r9, [sp, #4]
	bl	CH_WARN
	b	.L2
.L30:
	mov	r0, r6
	bl	t3_fatal_err
	b	.L7
.L32:
	.align	2
.L31:
	.word	A_MC7_INT_CAUSE
	.word	F_CE
	.word	F_UE
	.word	F_AE
	.word	.LC3
	.word	MC7_INTR_FATAL
	.word	A_MC7_ERR_ADDR
	.word	.LC2
	.word	A_MC7_UE_ADDR
	.word	A_MC7_UE_DATA0
	.word	A_MC7_UE_DATA1
	.word	A_MC7_UE_DATA2
	.word	.LC1
	.word	A_MC7_CE_ADDR
	.word	A_MC7_CE_DATA0
	.word	A_MC7_CE_DATA1
	.word	A_MC7_CE_DATA2
	.word	.LC0
	.size	mc7_intr_handler, .-mc7_intr_handler
	.comm	MC7_INTR_FATAL,4,4
	.comm	F_UE,4,4
	.comm	F_CE,4,4
	.comm	F_AE,4,4
	.comm	A_MC7_UE_DATA2,4,4
	.comm	A_MC7_UE_DATA1,4,4
	.comm	A_MC7_UE_DATA0,4,4
	.comm	A_MC7_UE_ADDR,4,4
	.comm	A_MC7_INT_CAUSE,4,4
	.comm	A_MC7_ERR_ADDR,4,4
	.comm	A_MC7_CE_DATA2,4,4
	.comm	A_MC7_CE_DATA1,4,4
	.comm	A_MC7_CE_DATA0,4,4
	.comm	A_MC7_CE_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
