	.file	"extr_sys_cabriolet.c_cabriolet_device_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cabriolet_device_interrupt, @function
cabriolet_device_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, 2052
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	inb@PLT
	mov	edi, 2053
	mov	ebx, eax
	call	inb@PLT
	mov	edi, 2054
	mov	ebp, eax
	call	inb@PLT
	sal	ebp, 8
	sal	eax, 16
	or	ebp, eax
	or	ebp, ebx
	movsx	rbp, ebp
.L11:
	test	rbp, rbp
	je	.L1
.L14:
	mov	rdi, rbp
	not	rdi
	call	ffz@PLT
	lea	rdx, -1[rbp]
	and	rbp, rdx
	cmp	eax, 4
	je	.L13
	lea	edi, 16[rax]
	call	handle_irq@PLT
	test	rbp, rbp
	jne	.L14
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, r12
	call	isa_device_interrupt@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	cabriolet_device_interrupt, .-cabriolet_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_cabriolet.c_cabriolet_device_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cabriolet_device_interrupt, %function
cabriolet_device_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, .L12
	bl	inb
	mov	r6, r0
	ldr	r0, .L12+4
	bl	inb
	mov	r7, r0
	ldr	r0, .L12+8
	bl	inb
	lsl	r4, r0, #16
	orr	r4, r4, r7, lsl #8
	orrs	r4, r4, r6
	bne	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	bl	handle_irq
	cmp	r4, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L5:
	mvn	r0, r4
	bl	ffz
	sub	r3, r4, #1
	cmp	r0, #4
	and	r4, r4, r3
	add	r0, r0, #16
	bne	.L3
	mov	r0, r5
	bl	isa_device_interrupt
	cmp	r4, #0
	bne	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	2052
	.word	2053
	.word	2054
	.size	cabriolet_device_interrupt, .-cabriolet_device_interrupt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
