	.file	"extr_ar5312.c_ar5312_misc_irq_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar5312_misc_irq_handler, @function
ar5312_misc_irq_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR AR5312_ISR[rip]
	call	ar5312_rst_reg_read@PLT
	mov	edi, DWORD PTR AR5312_IMR[rip]
	mov	ebx, eax
	call	ar5312_rst_reg_read@PLT
	and	ebx, eax
	je	.L2
	mov	rdi, rbp
	call	irq_desc_get_handler_data@PLT
	mov	edi, ebx
	mov	rbp, rax
	call	__ffs@PLT
	mov	rdi, rbp
	mov	esi, eax
	mov	ebx, eax
	call	irq_find_mapping@PLT
	test	eax, eax
	jne	.L12
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	spurious_interrupt@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, eax
	call	generic_handle_irq@PLT
	cmp	DWORD PTR AR5312_MISC_IRQ_TIMER[rip], ebx
	je	.L13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR AR5312_TIMER[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	ar5312_rst_reg_read@PLT
	.cfi_endproc
.LFE0:
	.size	ar5312_misc_irq_handler, .-ar5312_misc_irq_handler
	.comm	AR5312_TIMER,4,4
	.comm	AR5312_MISC_IRQ_TIMER,4,4
	.comm	AR5312_ISR,4,4
	.comm	AR5312_IMR,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_ar5312.c_ar5312_misc_irq_handler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar5312_misc_irq_handler, %function
ar5312_misc_irq_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r3]
	bl	ar5312_rst_reg_read
	ldr	r3, .L13+4
	mov	r4, r0
	ldr	r0, [r3]
	bl	ar5312_rst_reg_read
	ands	r4, r4, r0
	beq	.L2
	mov	r0, r5
	bl	irq_desc_get_handler_data
	mov	r5, r0
	mov	r0, r4
	bl	__ffs
	mov	r4, r0
	mov	r0, r5
	mov	r1, r4
	bl	irq_find_mapping
	cmp	r0, #0
	bne	.L12
.L2:
	pop	{r4, r5, r6, lr}
	b	spurious_interrupt
.L12:
	bl	generic_handle_irq
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, r4
	popne	{r4, r5, r6, pc}
	ldr	r3, .L13+12
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	ar5312_rst_reg_read
.L14:
	.align	2
.L13:
	.word	AR5312_ISR
	.word	AR5312_IMR
	.word	AR5312_MISC_IRQ_TIMER
	.word	AR5312_TIMER
	.size	ar5312_misc_irq_handler, .-ar5312_misc_irq_handler
	.comm	AR5312_TIMER,4,4
	.comm	AR5312_MISC_IRQ_TIMER,4,4
	.comm	AR5312_ISR,4,4
	.comm	AR5312_IMR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
