	.file	"extr_ipu_irq.c_ipu_irq_fn.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"IPU: Interrupt on unmapped source %u bank %d\n"
	.text
	.p2align 4
	.type	ipu_irq_fn, @function
ipu_irq_fn:
.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
	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
	call	get_irq_data@PLT
	mov	edx, DWORD PTR IPU_IRQ_NR_FN_BANKS[rip]
	test	edx, edx
	jle	.L1
	mov	r15, rax
	xor	r14d, r14d
	mov	r13d, 1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR irq_bank[rip]
	lea	rdi, bank_lock[rip]
	mov	DWORD PTR 12[rsp], r14d
	lea	rbp, [rax+r14*8]
	call	spin_lock@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	rdi, r15
	call	ipu_read_reg@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r15
	mov	ebp, r14d
	mov	rbx, rax
	sal	ebp, 5
	call	ipu_read_reg@PLT
	lea	rdi, bank_lock[rip]
	and	rbx, rax
	call	spin_unlock@PLT
.L3:
	mov	rdi, rbx
	call	ffs@PLT
	test	eax, eax
	je	.L11
.L5:
	lea	r12d, -1[rax]
	mov	rax, r13
	lea	rdi, bank_lock[rip]
	mov	ecx, r12d
	sal	rax, cl
	not	rax
	and	rbx, rax
	call	spin_lock@PLT
	lea	edi, 0[rbp+r12]
	call	src2map@PLT
	test	rax, rax
	je	.L4
	mov	r12d, DWORD PTR [rax]
	lea	rdi, bank_lock[rip]
	call	spin_unlock@PLT
	mov	edi, r12d
	call	generic_handle_irq@PLT
	mov	rdi, rbx
	call	ffs@PLT
	test	eax, eax
	jne	.L5
.L11:
	add	r14, 1
	cmp	DWORD PTR IPU_IRQ_NR_FN_BANKS[rip], r14d
	jg	.L6
.L1:
	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
.L4:
	.cfi_restore_state
	lea	rdi, bank_lock[rip]
	call	spin_unlock@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ipu_irq_fn, .-ipu_irq_fn
	.comm	irq_bank,8,8
	.comm	bank_lock,4,4
	.comm	IPU_IRQ_NR_FN_BANKS,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_ipu_irq.c_ipu_irq_fn.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IPU: Interrupt on unmapped source %u bank %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipu_irq_fn, %function
ipu_irq_fn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bl	get_irq_data
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r9, r0
	mov	r8, #0
	mov	r7, #1
	ldr	r5, .L17+4
	ldr	r10, .L17+8
.L6:
	ldr	r3, .L17+12
	mov	r0, r5
	ldr	r4, [r3]
	bl	spin_lock
	add	r6, r4, r8, lsl #3
	ldr	r1, [r6, #4]
	mov	r0, r9
	bl	ipu_read_reg
	mov	r3, r0
	ldr	r1, [r4, r8, lsl #3]
	mov	r0, r9
	mov	r4, r3
	bl	ipu_read_reg
	mov	fp, r0
	and	fp, fp, r4
	rsb	r4, fp, #0
	and	r4, r4, fp
	clz	r4, r4
	mov	r0, r5
	bl	spin_unlock
	rsbs	r4, r4, #32
	beq	.L3
	lsl	r6, r8, #5
	b	.L5
.L16:
	ldr	r4, [r0]
	mov	r0, r5
	bl	spin_unlock
	mov	r0, r4
	bl	generic_handle_irq
.L7:
	rsb	r4, fp, #0
	and	r4, r4, fp
	clz	r4, r4
	rsbs	r4, r4, #32
	beq	.L3
.L5:
	sub	r4, r4, #1
	mov	r0, r5
	bl	spin_lock
	add	r0, r6, r4
	bl	src2map
	cmp	r0, #0
	bic	fp, fp, r7, lsl r4
	bne	.L16
	mov	r0, r5
	bl	spin_unlock
	mov	r2, r8
	mov	r1, r4
	mov	r0, r10
	bl	pr_err
	b	.L7
.L3:
	ldr	r3, .L17
	add	r8, r8, #1
	ldr	r3, [r3]
	cmp	r3, r8
	bgt	.L6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	IPU_IRQ_NR_FN_BANKS
	.word	bank_lock
	.word	.LC0
	.word	irq_bank
	.size	ipu_irq_fn, .-ipu_irq_fn
	.comm	irq_bank,4,4
	.comm	bank_lock,4,4
	.comm	IPU_IRQ_NR_FN_BANKS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
