	.file	"extr_octeon-irq.c_octeon_irq_cib_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERROR: CIB bit %d@%llx IRQ unhandled, disabling\n"
	.text
	.p2align 4
	.type	octeon_irq_cib_handler, @function
octeon_irq_cib_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR [rsi]
	mov	edi, DWORD PTR 12[rbx]
	call	cvmx_read_csr@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	rbp, rax
	call	cvmx_read_csr@PLT
	and	rbp, rax
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L2
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	xor	r14d, r14d
	lea	r15, 8[rbx]
	call	pr_err@PLT
	mov	rsi, r14
	mov	rdi, r15
	call	raw_spin_lock_irqsave@PLT
	mov	edi, DWORD PTR 12[rbx]
	call	cvmx_read_csr@PLT
	mov	ecx, r12d
	mov	r9d, 1
	mov	edi, DWORD PTR 12[rbx]
	sal	r9, cl
	mov	rsi, r9
	mov	QWORD PTR 8[rsp], r9
	not	rsi
	and	rsi, rax
	call	cvmx_write_csr@PLT
	mov	r9, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, r9
	call	cvmx_write_csr@PLT
	mov	rsi, r14
	mov	rdi, r15
	call	raw_spin_unlock_irqrestore@PLT
.L3:
	add	r12d, 1
	cmp	DWORD PTR [rbx], r12d
	jle	.L2
.L6:
	bt	rbp, r12
	jnc	.L3
	mov	rdi, r13
	mov	esi, r12d
	call	irq_find_mapping@PLT
	mov	edi, eax
	test	eax, eax
	je	.L16
	call	irq_to_desc@PLT
	mov	rdi, rax
	mov	r15, rax
	call	irq_desc_get_irq_data@PLT
	mov	rdi, rax
	call	irqd_get_trigger_type@PLT
	test	DWORD PTR IRQ_TYPE_EDGE_BOTH[rip], eax
	jne	.L17
.L5:
	mov	rdi, r15
	add	r12d, 1
	call	generic_handle_irq_desc@PLT
	cmp	DWORD PTR [rbx], r12d
	jg	.L6
.L2:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	ecx, r12d
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, 1
	sal	rsi, cl
	call	cvmx_write_csr@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	octeon_irq_cib_handler, .-octeon_irq_cib_handler
	.comm	IRQ_TYPE_EDGE_BOTH,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_octeon-irq.c_octeon_irq_cib_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR: CIB bit %d@%llx IRQ unhandled, disabling\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	octeon_irq_cib_handler, %function
octeon_irq_cib_handler:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r1]
	sub	sp, sp, #20
	ldr	r0, [r6, #12]
	str	r1, [sp, #8]
	bl	cvmx_read_csr
	mov	r4, r0
	ldr	r0, [r6, #4]
	mov	r5, r1
	bl	cvmx_read_csr
	ldr	ip, [r6]
	and	r3, r4, r0
	cmp	ip, #0
	and	r5, r5, r1
	str	r3, [sp, #4]
	ble	.L2
	mov	r4, #0
	mov	r8, #1
	b	.L6
.L16:
	ldr	r2, [r6, #4]
	mov	r1, r4
	ldr	r0, .L18
	bl	pr_err
	mov	r1, r10
	add	r0, r6, #8
	bl	raw_spin_lock_irqsave
	ldr	r0, [r6, #12]
	bl	cvmx_read_csr
	lsl	r2, r8, r4
	bic	r3, r1, r7
	bic	r2, r0, r2
	ldr	r0, [r6, #12]
	bl	cvmx_write_csr
	mov	r3, r7
	lsl	r2, r8, r4
	ldr	r0, [r6, #4]
	bl	cvmx_write_csr
	mov	r1, r10
	add	r0, r6, #8
	bl	raw_spin_unlock_irqrestore
	ldr	ip, [r6]
.L3:
	add	r4, r4, #1
	cmp	ip, r4
	ble	.L2
.L6:
	mov	r10, #0
	ldr	r3, [sp, #4]
	rsb	fp, r4, #32
	lsr	r1, r3, r4
	sub	r2, r4, #32
	orr	r1, r1, r5, lsl fp
	orr	r1, r1, r5, lsr r2
	and	r9, r1, #1
	orrs	r3, r9, r10
	str	r2, [sp]
	beq	.L3
	mov	r1, r4
	add	r3, r6, #8
	ldr	r0, [sp, #8]
	str	r3, [sp, #12]
	bl	irq_find_mapping
	ldr	r2, [sp]
	lsl	r1, r8, r4
	lsl	r7, r8, r2
	cmp	r0, r10
	orr	r7, r7, r8, lsr fp
	str	r1, [sp]
	beq	.L16
	str	r2, [sp]
	bl	irq_to_desc
	mov	r7, r0
	bl	irq_desc_get_irq_data
	bl	irqd_get_trigger_type
	ldr	r3, .L18+4
	ldr	r2, [sp]
	ldr	r1, [r3]
	tst	r0, r1
	bne	.L17
.L5:
	mov	r0, r7
	bl	generic_handle_irq_desc
	ldr	ip, [r6]
	add	r4, r4, #1
	cmp	ip, r4
	bgt	.L6
.L2:
	ldr	r3, .L18+8
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	lsl	r2, r8, r2
	orr	r3, r2, r8, lsr fp
	ldr	r0, [r6, #4]
	lsl	r2, r8, r4
	bl	cvmx_write_csr
	b	.L5
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	IRQ_TYPE_EDGE_BOTH
	.word	IRQ_HANDLED
	.size	octeon_irq_cib_handler, .-octeon_irq_cib_handler
	.comm	IRQ_TYPE_EDGE_BOTH,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
