	.file	"extr_sge.c_t1_sge_intr_error_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: SGE response queue overflow\n"
	.align 8
.LC1:
	.string	"%s: SGE max packet size exceeded\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s: SGE packet mismatch\n"
	.text
	.p2align 4
	.globl	t1_sge_intr_error_handler
	.type	t1_sge_intr_error_handler, @function
t1_sge_intr_error_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR 24[rdi]
	mov	rbx, rdi
	mov	rdi, QWORD PTR A_SG_INT_CAUSE[rip]
	add	rdi, QWORD PTR 8[r12]
	call	readl@PLT
	mov	ebp, eax
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR TSO_CAPABLE[rip], eax
	je	.L2
	mov	eax, DWORD PTR F_PACKET_TOO_BIG[rip]
	not	eax
	and	ebp, eax
.L2:
	test	DWORD PTR F_RESPQ_EXHAUSTED[rip], ebp
	je	.L3
	add	DWORD PTR 16[rbx], 1
.L3:
	test	DWORD PTR F_RESPQ_OVERFLOW[rip], ebp
	jne	.L32
	test	DWORD PTR F_FL_EXHAUSTED[rip], ebp
	jne	.L33
.L5:
	test	DWORD PTR F_PACKET_TOO_BIG[rip], ebp
	jne	.L34
.L6:
	test	DWORD PTR F_PACKET_MISMATCH[rip], ebp
	jne	.L35
.L7:
	test	DWORD PTR SGE_INT_FATAL[rip], ebp
	jne	.L36
.L8:
	mov	rsi, QWORD PTR A_SG_INT_CAUSE[rip]
	mov	edi, ebp
	add	rsi, QWORD PTR 8[r12]
	call	writel@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	add	DWORD PTR 12[rbx], 1
	mov	esi, DWORD PTR 16[r12]
	lea	rdi, .LC0[rip]
	call	CH_ALERT@PLT
	test	DWORD PTR F_FL_EXHAUSTED[rip], ebp
	je	.L5
.L33:
	add	DWORD PTR 8[rbx], 1
	mov	rdi, rbx
	call	freelQs_empty@PLT
	test	DWORD PTR F_PACKET_TOO_BIG[rip], ebp
	je	.L6
.L34:
	add	DWORD PTR 4[rbx], 1
	mov	esi, DWORD PTR 16[r12]
	lea	rdi, .LC1[rip]
	call	CH_ALERT@PLT
	test	DWORD PTR F_PACKET_MISMATCH[rip], ebp
	je	.L7
.L35:
	add	DWORD PTR [rbx], 1
	mov	esi, DWORD PTR 16[r12]
	lea	rdi, .LC2[rip]
	call	CH_ALERT@PLT
	test	DWORD PTR SGE_INT_FATAL[rip], ebp
	je	.L8
.L36:
	mov	rdi, r12
	call	t1_fatal_err@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	t1_sge_intr_error_handler, .-t1_sge_intr_error_handler
	.comm	TSO_CAPABLE,4,4
	.comm	SGE_INT_FATAL,4,4
	.comm	F_RESPQ_OVERFLOW,4,4
	.comm	F_RESPQ_EXHAUSTED,4,4
	.comm	F_PACKET_TOO_BIG,4,4
	.comm	F_PACKET_MISMATCH,4,4
	.comm	F_FL_EXHAUSTED,4,4
	.comm	A_SG_INT_CAUSE,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_sge.c_t1_sge_intr_error_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: SGE response queue overflow\012\000"
	.align	2
.LC1:
	.ascii	"%s: SGE max packet size exceeded\012\000"
	.align	2
.LC2:
	.ascii	"%s: SGE packet mismatch\012\000"
	.text
	.align	2
	.global	t1_sge_intr_error_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	t1_sge_intr_error_handler, %function
t1_sge_intr_error_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #20]
	ldr	r7, .L37
	mov	r5, r0
	ldr	r3, [r7]
	ldr	r0, [r6, #4]
	ldr	r8, .L37+4
	add	r0, r0, r3
	bl	readl
	mov	r4, r0
	ldr	r3, .L37+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, [r8]
	bicne	r4, r0, r3
	ldr	r3, .L37+12
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, [r5, #16]
	addne	r3, r3, #1
	strne	r3, [r5, #16]
	ldr	r3, .L37+16
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L32
	ldr	r3, .L37+20
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L33
.L5:
	ldr	r3, [r8]
	tst	r4, r3
	bne	.L34
.L6:
	ldr	r3, .L37+24
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L35
.L7:
	ldr	r3, .L37+28
	ldr	r3, [r3]
	tst	r4, r3
	bne	.L36
.L8:
	ldr	r1, [r6, #4]
	ldr	r3, [r7]
	mov	r0, r4
	add	r1, r1, r3
	bl	writel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	ldr	r3, [r5, #12]
	ldr	r1, [r6, #8]
	add	r3, r3, #1
	str	r3, [r5, #12]
	ldr	r0, .L37+32
	bl	CH_ALERT
	ldr	r3, .L37+20
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L5
.L33:
	ldr	r3, [r5, #8]
	mov	r0, r5
	add	r3, r3, #1
	str	r3, [r5, #8]
	bl	freelQs_empty
	ldr	r3, [r8]
	tst	r4, r3
	beq	.L6
.L34:
	ldr	r3, [r5, #4]
	ldr	r1, [r6, #8]
	add	r3, r3, #1
	str	r3, [r5, #4]
	ldr	r0, .L37+36
	bl	CH_ALERT
	ldr	r3, .L37+24
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L7
.L35:
	ldr	r3, [r5]
	ldr	r1, [r6, #8]
	add	r3, r3, #1
	str	r3, [r5]
	ldr	r0, .L37+40
	bl	CH_ALERT
	ldr	r3, .L37+28
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L8
.L36:
	mov	r0, r6
	bl	t1_fatal_err
	b	.L8
.L38:
	.align	2
.L37:
	.word	A_SG_INT_CAUSE
	.word	F_PACKET_TOO_BIG
	.word	TSO_CAPABLE
	.word	F_RESPQ_EXHAUSTED
	.word	F_RESPQ_OVERFLOW
	.word	F_FL_EXHAUSTED
	.word	F_PACKET_MISMATCH
	.word	SGE_INT_FATAL
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	t1_sge_intr_error_handler, .-t1_sge_intr_error_handler
	.comm	TSO_CAPABLE,4,4
	.comm	SGE_INT_FATAL,4,4
	.comm	F_RESPQ_OVERFLOW,4,4
	.comm	F_RESPQ_EXHAUSTED,4,4
	.comm	F_PACKET_TOO_BIG,4,4
	.comm	F_PACKET_MISMATCH,4,4
	.comm	F_FL_EXHAUSTED,4,4
	.comm	A_SG_INT_CAUSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
