	.file	"extr_cptvf_main.c_cptvf_misc_intr_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Mailbox interrupt 0x%llx on CPT VF %d\n"
	.align 8
.LC1:
	.string	"Doorbell overflow error interrupt 0x%llx on CPT VF %d\n"
	.align 8
.LC2:
	.string	"Instruction NCB read error interrupt 0x%llx on CPT VF %d\n"
	.align 8
.LC3:
	.string	"NCB response write error interrupt 0x%llx on CPT VF %d\n"
	.align 8
.LC4:
	.string	"Software error interrupt 0x%llx on CPT VF %d\n"
	.align 8
.LC5:
	.string	"Unhandled interrupt in CPT VF %d\n"
	.text
	.p2align 4
	.type	cptvf_misc_intr_handler, @function
cptvf_misc_intr_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	mov	r13, QWORD PTR 8[rsi]
	call	cptvf_read_vf_misc_intr_status@PLT
	mov	edi, DWORD PTR CPT_VF_INTR_MBOX_MASK[rip]
	mov	r12d, eax
	and	edi, eax
	call	likely@PLT
	test	rax, rax
	je	.L2
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_dbg@PLT
	mov	rdi, rbp
	call	cptvf_handle_mbox_intr@PLT
	mov	rdi, rbp
	call	cptvf_clear_mbox_intr@PLT
.L3:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	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, DWORD PTR CPT_VF_INTR_DOVF_MASK[rip]
	and	edi, r12d
	call	unlikely@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	call	cptvf_clear_dovf_intr@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	cptvf_write_vq_doorbell@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, r12d
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR CPT_VF_INTR_IRDE_MASK[rip]
	and	edi, r12d
	call	unlikely@PLT
	test	rax, rax
	jne	.L10
	mov	edi, DWORD PTR CPT_VF_INTR_NWRP_MASK[rip]
	and	edi, r12d
	call	unlikely@PLT
	test	rax, rax
	je	.L6
	mov	rdi, rbp
	call	cptvf_clear_nwrp_intr@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, r12d
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	cptvf_clear_irde_intr@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, r12d
	mov	rdi, r13
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR CPT_VF_INTR_SERR_MASK[rip]
	and	edi, r12d
	call	unlikely@PLT
	test	rax, rax
	je	.L7
	mov	rdi, rbp
	call	cptvf_clear_swerr_intr@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	edx, r12d
	mov	rdi, r13
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edx, DWORD PTR 0[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cptvf_misc_intr_handler, .-cptvf_misc_intr_handler
	.comm	IRQ_HANDLED,4,4
	.comm	CPT_VF_INTR_SERR_MASK,4,4
	.comm	CPT_VF_INTR_NWRP_MASK,4,4
	.comm	CPT_VF_INTR_MBOX_MASK,4,4
	.comm	CPT_VF_INTR_IRDE_MASK,4,4
	.comm	CPT_VF_INTR_DOVF_MASK,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_cptvf_main.c_cptvf_misc_intr_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Mailbox interrupt 0x%llx on CPT VF %d\012\000"
	.align	2
.LC1:
	.ascii	"Doorbell overflow error interrupt 0x%llx on CPT VF "
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.ascii	"Instruction NCB read error interrupt 0x%llx on CPT "
	.ascii	"VF %d\012\000"
	.align	2
.LC3:
	.ascii	"NCB response write error interrupt 0x%llx on CPT VF"
	.ascii	" %d\012\000"
	.align	2
.LC4:
	.ascii	"Software error interrupt 0x%llx on CPT VF %d\012\000"
	.align	2
.LC5:
	.ascii	"Unhandled interrupt in CPT VF %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cptvf_misc_intr_handler, %function
cptvf_misc_intr_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, r1
	mov	r4, r1
	ldr	r7, [r1, #4]
	bl	cptvf_read_vf_misc_intr_status
	mov	r5, r0
	ldr	r3, .L11
	ldr	r0, [r3]
	and	r0, r0, r5
	bl	likely
	subs	r6, r0, #0
	beq	.L2
	mov	r2, r5
	ldr	r3, [r4]
	ldr	r1, .L11+4
	mov	r0, r7
	bl	dev_dbg
	mov	r0, r4
	bl	cptvf_handle_mbox_intr
	mov	r0, r4
	bl	cptvf_clear_mbox_intr
.L3:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	and	r0, r0, r5
	bl	unlikely
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	bl	cptvf_clear_dovf_intr
	mov	r1, r6
	mov	r0, r4
	bl	cptvf_write_vq_doorbell
	mov	r2, r5
	mov	r0, r7
	ldr	r3, [r4]
	ldr	r1, .L11+16
	bl	dev_err
	b	.L3
.L4:
	ldr	r3, .L11+20
	ldr	r0, [r3]
	and	r0, r0, r5
	bl	unlikely
	cmp	r0, #0
	bne	.L10
	ldr	r3, .L11+24
	ldr	r0, [r3]
	and	r0, r0, r5
	bl	unlikely
	cmp	r0, #0
	beq	.L6
	mov	r0, r4
	bl	cptvf_clear_nwrp_intr
	mov	r2, r5
	mov	r0, r7
	ldr	r3, [r4]
	ldr	r1, .L11+28
	bl	dev_err
	b	.L3
.L10:
	mov	r0, r4
	bl	cptvf_clear_irde_intr
	mov	r2, r5
	mov	r0, r7
	ldr	r3, [r4]
	ldr	r1, .L11+32
	bl	dev_err
	b	.L3
.L6:
	ldr	r3, .L11+36
	ldr	r0, [r3]
	and	r0, r0, r5
	bl	unlikely
	cmp	r0, #0
	beq	.L7
	mov	r0, r4
	bl	cptvf_clear_swerr_intr
	mov	r2, r5
	mov	r0, r7
	ldr	r3, [r4]
	ldr	r1, .L11+40
	bl	dev_err
	b	.L3
.L7:
	mov	r0, r7
	ldr	r2, [r4]
	ldr	r1, .L11+44
	bl	dev_err
	b	.L3
.L12:
	.align	2
.L11:
	.word	CPT_VF_INTR_MBOX_MASK
	.word	.LC0
	.word	IRQ_HANDLED
	.word	CPT_VF_INTR_DOVF_MASK
	.word	.LC1
	.word	CPT_VF_INTR_IRDE_MASK
	.word	CPT_VF_INTR_NWRP_MASK
	.word	.LC3
	.word	.LC2
	.word	CPT_VF_INTR_SERR_MASK
	.word	.LC4
	.word	.LC5
	.size	cptvf_misc_intr_handler, .-cptvf_misc_intr_handler
	.comm	IRQ_HANDLED,4,4
	.comm	CPT_VF_INTR_SERR_MASK,4,4
	.comm	CPT_VF_INTR_NWRP_MASK,4,4
	.comm	CPT_VF_INTR_MBOX_MASK,4,4
	.comm	CPT_VF_INTR_IRDE_MASK,4,4
	.comm	CPT_VF_INTR_DOVF_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
