	.file	"extr_espi.c_t1_espi_intr_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	t1_espi_intr_handler
	.type	t1_espi_intr_handler, @function
t1_espi_intr_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	mov	rdi, QWORD PTR A_ESPI_INTR_STATUS[rip]
	add	rdi, QWORD PTR [rax]
	call	readl@PLT
	mov	ebp, eax
	test	DWORD PTR F_DIP4ERR[rip], eax
	je	.L2
	add	DWORD PTR 28[rbx], 1
.L2:
	test	DWORD PTR F_RXDROP[rip], ebp
	je	.L3
	add	DWORD PTR 24[rbx], 1
.L3:
	test	DWORD PTR F_TXDROP[rip], ebp
	je	.L4
	add	DWORD PTR 20[rbx], 1
.L4:
	test	DWORD PTR F_RXOVERFLOW[rip], ebp
	je	.L5
	add	DWORD PTR 16[rbx], 1
.L5:
	mov	eax, DWORD PTR F_DIP2PARITYERR[rip]
	and	eax, ebp
	test	DWORD PTR F_RAMPARITYERR[rip], ebp
	je	.L6
	add	DWORD PTR 12[rbx], 1
	test	eax, eax
	je	.L8
.L7:
	add	DWORD PTR 8[rbx], 1
	mov	rax, QWORD PTR [rbx]
	mov	rdi, QWORD PTR A_ESPI_DIP2_ERR_COUNT[rip]
	add	rdi, QWORD PTR [rax]
	call	readl@PLT
.L8:
	mov	rdi, QWORD PTR [rbx]
	call	t1_is_T1B@PLT
	test	rax, rax
	mov	eax, 1
	cmovne	ebp, eax
.L10:
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR A_ESPI_INTR_STATUS[rip]
	mov	edi, ebp
	add	rsi, QWORD PTR [rax]
	call	writel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	test	eax, eax
	jne	.L7
	test	ebp, ebp
	je	.L10
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	t1_espi_intr_handler, .-t1_espi_intr_handler
	.comm	F_TXDROP,4,4
	.comm	F_RXOVERFLOW,4,4
	.comm	F_RXDROP,4,4
	.comm	F_RAMPARITYERR,4,4
	.comm	F_DIP4ERR,4,4
	.comm	F_DIP2PARITYERR,4,4
	.comm	A_ESPI_INTR_STATUS,8,8
	.comm	A_ESPI_DIP2_ERR_COUNT,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_espi.c_t1_espi_intr_handler.c"
	.text
	.align	2
	.global	t1_espi_intr_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	t1_espi_intr_handler, %function
t1_espi_intr_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, [r0]
	ldr	r6, .L27
	mov	r4, r0
	ldr	r3, [r6]
	ldr	r0, [r2]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L27+4
	ldr	r2, .L27+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	tst	r0, r3
	ldrne	r3, [r4, #24]
	mov	r5, r0
	addne	r3, r3, #1
	strne	r3, [r4, #24]
	ldr	r3, .L27+12
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r3, [r4, #20]
	addne	r3, r3, #1
	strne	r3, [r4, #20]
	ldr	r3, .L27+16
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r3, [r4, #16]
	addne	r3, r3, #1
	strne	r3, [r4, #16]
	ldr	r3, .L27+20
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r3, [r4, #12]
	addne	r3, r3, #1
	strne	r3, [r4, #12]
	ldr	r3, .L27+24
	tst	r0, r2
	ldr	r3, [r3]
	and	r3, r3, r0
	beq	.L6
	ldr	r2, [r4, #8]
	cmp	r3, #0
	add	r3, r2, #1
	str	r3, [r4, #8]
	beq	.L8
.L7:
	ldr	r1, [r4]
	ldr	r2, .L27+28
	ldr	r3, [r4, #4]
	ldr	r0, [r1]
	ldr	r2, [r2]
	add	r3, r3, #1
	add	r0, r0, r2
	str	r3, [r4, #4]
	bl	readl
.L8:
	ldr	r0, [r4]
	bl	t1_is_T1B
	cmp	r0, #0
	movne	r5, #1
.L10:
	ldr	r2, [r4]
	ldr	r3, [r6]
	ldr	r1, [r2]
	mov	r0, r5
	add	r1, r1, r3
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	cmp	r3, #0
	bne	.L7
	cmp	r0, #0
	beq	.L10
	b	.L8
.L28:
	.align	2
.L27:
	.word	A_ESPI_INTR_STATUS
	.word	F_DIP4ERR
	.word	F_RAMPARITYERR
	.word	F_RXDROP
	.word	F_TXDROP
	.word	F_RXOVERFLOW
	.word	F_DIP2PARITYERR
	.word	A_ESPI_DIP2_ERR_COUNT
	.size	t1_espi_intr_handler, .-t1_espi_intr_handler
	.comm	F_TXDROP,4,4
	.comm	F_RXOVERFLOW,4,4
	.comm	F_RXDROP,4,4
	.comm	F_RAMPARITYERR,4,4
	.comm	F_DIP4ERR,4,4
	.comm	F_DIP2PARITYERR,4,4
	.comm	A_ESPI_INTR_STATUS,4,4
	.comm	A_ESPI_DIP2_ERR_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
