	.file	"extr_rt1310_intc.c_rt1310_intr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Stray irq %u disabled\n"
	.text
	.p2align 4
	.type	rt1310_intr, @function
rt1310_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR RT_INTC_IPR[rip]
	call	intc_read_4@PLT
	mov	edi, eax
	call	ffs@PLT
	lea	r12, -1[rax]
	mov	rax, QWORD PTR 8[rbx]
	lea	rdi, [rax+r12*4]
	mov	rax, QWORD PTR curthread[rip]
	mov	esi, DWORD PTR [rax]
	call	intr_isrc_dispatch@PLT
	test	rax, rax
	jne	.L8
.L2:
	xor	edi, edi
	call	arm_irq_memory_barrier@PLT
	mov	eax, DWORD PTR FILTER_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	ecx, r12d
	mov	esi, DWORD PTR RT_INTC_ICCR[rip]
	mov	edx, 1
	mov	rdi, rbx
	sal	edx, cl
	call	intc_write_4@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rt1310_intr, .-rt1310_intr
	.comm	curthread,8,8
	.comm	RT_INTC_IPR,4,4
	.comm	RT_INTC_ICCR,4,4
	.comm	FILTER_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_rt1310_intc.c_rt1310_intr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Stray irq %u disabled\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt1310_intr, %function
rt1310_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r5, r0
	bl	intc_read_4
	rsb	r4, r0, #0
	and	r4, r4, r0
	clz	r4, r4
	ldr	r3, .L9+4
	ldr	r0, [r5, #4]
	ldr	r3, [r3]
	rsb	r4, r4, #31
	ldr	r1, [r3]
	add	r0, r0, r4, lsl #2
	bl	intr_isrc_dispatch
	cmp	r0, #0
	bne	.L8
.L2:
	mov	r0, #0
	bl	arm_irq_memory_barrier
	ldr	r3, .L9+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L8:
	mov	r2, #1
	ldr	r3, .L9+12
	lsl	r2, r2, r4
	ldr	r1, [r3]
	mov	r0, r5
	bl	intc_write_4
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L9+16
	bl	device_printf
	b	.L2
.L10:
	.align	2
.L9:
	.word	RT_INTC_IPR
	.word	curthread
	.word	FILTER_HANDLED
	.word	RT_INTC_ICCR
	.word	.LC0
	.size	rt1310_intr, .-rt1310_intr
	.comm	curthread,4,4
	.comm	RT_INTC_IPR,4,4
	.comm	RT_INTC_ICCR,4,4
	.comm	FILTER_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
