	.file	"extr_qlcnic_83xx_hw.c_qlcnic_83xx_clear_legacy_intr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qlcnic_83xx_clear_legacy_intr
	.type	qlcnic_83xx_clear_legacy_intr, @function
qlcnic_83xx_clear_legacy_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR [rdi]
	call	readl@PLT
	mov	edi, eax
	mov	ebp, eax
	call	QLC_83XX_VALID_INTX_BIT31@PLT
	test	eax, eax
	jne	.L2
.L12:
	mov	eax, DWORD PTR IRQ_NONE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, ebp
	call	QLC_83XX_INTX_FUNC@PLT
	mov	rdx, QWORD PTR 16[rbx]
	cmp	rax, QWORD PTR [rdx]
	je	.L4
	add	DWORD PTR 8[rbx], 1
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	xor	r12d, r12d
	call	wmb@PLT
	mov	esi, DWORD PTR 4[rbx]
	xor	edi, edi
	call	writel_relaxed@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	readl@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, ebp
	add	r12d, 1
	call	QLC_83XX_VALID_INTX_BIT30@PLT
	test	rax, rax
	je	.L5
	cmp	DWORD PTR QLC_83XX_LEGACY_INTX_MAX_RETRY[rip], r12d
	jle	.L5
.L6:
	mov	edi, DWORD PTR [rbx]
	call	readl@PLT
	mov	edi, eax
	mov	ebp, eax
	call	QLC_83XX_INTX_FUNC@PLT
	cmp	rax, QWORD PTR 0[r13]
	je	.L14
.L5:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qlcnic_83xx_clear_legacy_intr, .-qlcnic_83xx_clear_legacy_intr
	.comm	QLC_83XX_LEGACY_INTX_MAX_RETRY,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.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_qlcnic_83xx_hw.c_qlcnic_83xx_clear_legacy_intr.c"
	.text
	.align	2
	.global	qlcnic_83xx_clear_legacy_intr
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_83xx_clear_legacy_intr, %function
qlcnic_83xx_clear_legacy_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r7, [r4, #12]
	bl	readl
	mov	r5, r0
	bl	QLC_83XX_VALID_INTX_BIT31
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L14
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	bl	QLC_83XX_INTX_FUNC
	ldr	r3, [r4, #12]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L4
	ldr	r3, [r4, #8]
	ldr	r2, .L14
	add	r3, r3, #1
	ldr	r0, [r2]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	bl	wmb
	ldr	r1, [r4, #4]
	mov	r0, #0
	bl	writel_relaxed
	ldr	r0, [r4, #4]
	bl	readl
	mov	r6, #0
	ldr	r8, .L14+4
	b	.L6
.L13:
	mov	r0, r5
	bl	QLC_83XX_VALID_INTX_BIT30
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r8]
	cmp	r3, r6
	ble	.L5
.L6:
	ldr	r0, [r4]
	bl	readl
	mov	r5, r0
	bl	QLC_83XX_INTX_FUNC
	ldr	r3, [r7]
	add	r6, r6, #1
	cmp	r0, r3
	beq	.L13
.L5:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	IRQ_NONE
	.word	QLC_83XX_LEGACY_INTX_MAX_RETRY
	.word	IRQ_HANDLED
	.size	qlcnic_83xx_clear_legacy_intr, .-qlcnic_83xx_clear_legacy_intr
	.comm	QLC_83XX_LEGACY_INTX_MAX_RETRY,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
