	.file	"extr_mthca_eq.c_mthca_tavor_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mthca_tavor_interrupt, @function
mthca_tavor_interrupt:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rsi]
	test	edi, edi
	jne	.L21
.L2:
	mov	rax, QWORD PTR 24[r12]
	lea	rdi, 4[rax]
	call	readl@PLT
	mov	r13d, eax
	mov	eax, DWORD PTR IRQ_NONE[rip]
	test	r13d, r13d
	jne	.L22
	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
.L22:
	.cfi_restore_state
	mov	rsi, QWORD PTR MTHCA_ECR_CLR_BASE[rip]
	add	rsi, QWORD PTR 24[r12]
	mov	edi, r13d
	sub	rsi, QWORD PTR MTHCA_ECR_BASE[rip]
	add	rsi, 4
	call	writel@PLT
	mov	eax, DWORD PTR MTHCA_NUM_EQ[rip]
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	add	rbx, 1
	cmp	DWORD PTR MTHCA_NUM_EQ[rip], ebx
	jle	.L5
.L8:
	mov	rsi, QWORD PTR 8[r12]
	lea	rbp, [rbx+rbx*2]
	sal	rbp, 2
	add	rsi, rbp
	test	DWORD PTR [rsi], r13d
	je	.L6
	mov	rdi, r12
	call	mthca_eq_int@PLT
	test	rax, rax
	jne	.L23
.L7:
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, r12
	add	rbx, 1
	mov	esi, DWORD PTR 4[rax+rbp]
	call	tavor_eq_req_not@PLT
	cmp	DWORD PTR MTHCA_NUM_EQ[rip], ebx
	jg	.L8
.L5:
	mov	eax, DWORD PTR IRQ_HANDLED[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
.L23:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[r12]
	mov	rdi, r12
	add	rsi, rbp
	mov	edx, DWORD PTR 8[rsi]
	call	tavor_set_eq_ci@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, QWORD PTR 16[rsi]
	call	writel@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mthca_tavor_interrupt, .-mthca_tavor_interrupt
	.comm	MTHCA_NUM_EQ,4,4
	.comm	MTHCA_ECR_CLR_BASE,8,8
	.comm	MTHCA_ECR_BASE,8,8
	.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_mthca_eq.c_mthca_tavor_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mthca_tavor_interrupt, %function
mthca_tavor_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, [r1]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r0, #0
	mov	r5, r1
	bne	.L21
.L2:
	ldr	r0, [r5, #12]
	add	r0, r0, #4
	bl	readl
	subs	r7, r0, #0
	bne	.L3
	ldr	r3, .L23
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r2, .L23+4
	ldr	r3, .L23+8
	ldr	r2, [r2]
	ldr	r1, [r5, #12]
	ldr	r3, [r3]
	add	r1, r1, r2
	sub	r1, r1, r3
	ldr	r8, .L23+12
	add	r1, r1, #4
	bl	writel
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L5
	mov	r4, #0
	mov	r6, r4
	b	.L8
.L6:
	ldr	r3, [r8]
	add	r4, r4, #12
	cmp	r3, r6
	ble	.L5
.L8:
	ldr	r3, [r5, #4]
	add	r6, r6, #1
	ldr	r2, [r3, r4]
	add	r1, r3, r4
	tst	r7, r2
	beq	.L6
	mov	r0, r5
	bl	mthca_eq_int
	cmp	r0, #0
	bne	.L22
.L7:
	ldr	r3, [r5, #4]
	mov	r0, r5
	add	r3, r3, r4
	ldr	r1, [r3, #4]
	bl	tavor_eq_req_not
	ldr	r3, [r8]
	add	r4, r4, #12
	cmp	r3, r6
	bgt	.L8
.L5:
	ldr	r3, .L23+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	ldr	r1, [r5, #4]
	mov	r0, r5
	add	r1, r1, r4
	ldr	r2, [r1, #8]
	bl	tavor_set_eq_ci
	b	.L7
.L21:
	ldr	r1, [r1, #8]
	bl	writel
	b	.L2
.L24:
	.align	2
.L23:
	.word	IRQ_NONE
	.word	MTHCA_ECR_CLR_BASE
	.word	MTHCA_ECR_BASE
	.word	MTHCA_NUM_EQ
	.word	IRQ_HANDLED
	.size	mthca_tavor_interrupt, .-mthca_tavor_interrupt
	.comm	MTHCA_NUM_EQ,4,4
	.comm	MTHCA_ECR_CLR_BASE,4,4
	.comm	MTHCA_ECR_BASE,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
