	.file	"extr_sys_noritake.c_noritake_device_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	noritake_device_interrupt, @function
noritake_device_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	mov	edi, 1356
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	inw@PLT
	mov	edi, 1354
	mov	rbx, rax
	call	inw@PLT
	mov	edi, 160
	sal	rbx, 32
	mov	r13, rax
	call	inb@PLT
	mov	edi, 32
	sal	r13, 16
	mov	rbp, rax
	call	inb@PLT
	sal	rbp, 8
	or	rbp, rax
	or	rbx, rbp
	or	rbx, r13
	jne	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r12
	call	isa_device_interrupt@PLT
	test	rbx, rbx
	je	.L1
.L5:
	mov	rdi, rbx
	not	rdi
	call	ffz@PLT
	mov	edi, eax
	lea	rax, -1[rbx]
	and	rbx, rax
	cmp	edi, 15
	jbe	.L12
	call	handle_irq@PLT
	test	rbx, rbx
	jne	.L5
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	noritake_device_interrupt, .-noritake_device_interrupt
	.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_sys_noritake.c_noritake_device_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	noritake_device_interrupt, %function
noritake_device_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, .L13
	bl	inw
	ldr	r0, .L13+4
	bl	inw
	mov	r6, r0
	mov	r0, #160
	bl	inb
	mov	r4, r0
	mov	r0, #32
	bl	inb
	orr	r4, r0, r4, lsl #8
	orrs	r4, r4, r6, lsl #16
	bne	.L5
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, r5
	bl	isa_device_interrupt
	cmp	r4, #0
	popeq	{r4, r5, r6, pc}
.L5:
	mvn	r0, r4
	bl	ffz
	sub	r3, r4, #1
	cmp	r0, #15
	and	r4, r4, r3
	bls	.L12
	bl	handle_irq
	cmp	r4, #0
	bne	.L5
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	1356
	.word	1354
	.size	noritake_device_interrupt, .-noritake_device_interrupt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
