	.file	"extr_amplc_pci224.c_pci224_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pci224_interrupt, @function
pci224_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR devpriv[rip]
	mov	rdi, QWORD PTR PCI224_INT_SCE[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	add	rdi, QWORD PTR 16[rax]
	mov	r12, QWORD PTR [rsi]
	call	inb@PLT
	mov	ebx, eax
	and	ebx, 63
	jne	.L19
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	edi, edi
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	IRQ_RETVAL@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rax, QWORD PTR devpriv[rip]
	xor	r13d, r13d
	mov	rsi, r13
	lea	rdi, 8[rax]
	call	spin_lock_irqsave@PLT
	mov	rdx, QWORD PTR devpriv[rip]
	mov	rsi, QWORD PTR PCI224_INT_SCE[rip]
	movzx	eax, BYTE PTR [rdx]
	add	rsi, QWORD PTR 16[rdx]
	mov	r14d, eax
	and	r14d, ebx
	not	ebx
	and	ebx, eax
	movzx	edi, bl
	call	outb@PLT
	mov	rdi, QWORD PTR devpriv[rip]
	mov	eax, DWORD PTR THISCPU[rip]
	mov	rsi, r13
	mov	DWORD PTR 4[rdi], 1
	add	rdi, 8
	mov	DWORD PTR 16[rdi], eax
	call	spin_unlock_irqrestore@PLT
	test	r14b, r14b
	je	.L4
	movzx	eax, BYTE PTR PCI224_INTR_EXT[rip]
	test	al, r14b
	je	.L6
	mov	rcx, QWORD PTR [r12]
	mov	rdx, QWORD PTR devpriv[rip]
	not	eax
	and	BYTE PTR [rdx], al
	mov	rax, QWORD PTR TRIG_EXT[rip]
	cmp	QWORD PTR [rcx], rax
	je	.L20
	cmp	rax, QWORD PTR 8[rcx]
	je	.L21
.L6:
	test	BYTE PTR PCI224_INTR_DAC[rip], r14b
	je	.L4
	mov	rsi, r12
	mov	rdi, rbp
	call	pci224_ao_handle_fifo@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR devpriv[rip]
	xor	r13d, r13d
	mov	rsi, r13
	lea	rdi, 8[rax]
	call	spin_lock_irqsave@PLT
	mov	rdi, QWORD PTR devpriv[rip]
	movzx	eax, BYTE PTR [rdi]
	cmp	al, bl
	jne	.L22
.L10:
	mov	DWORD PTR 4[rdi], 0
	xor	r13d, r13d
	add	rdi, 8
	mov	rsi, r13
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, 1
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	IRQ_RETVAL@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rsi, QWORD PTR PCI224_INT_SCE[rip]
	add	rsi, QWORD PTR 16[rdi]
	movzx	edi, al
	call	outb@PLT
	mov	rdi, QWORD PTR devpriv[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rsi, r12
	mov	rdi, rbp
	call	pci224_ao_start@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, r12
	mov	rdi, rbp
	call	pci224_ao_stop@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	pci224_interrupt, .-pci224_interrupt
	.comm	devpriv,8,8
	.comm	TRIG_EXT,8,8
	.comm	THISCPU,4,4
	.comm	PCI224_INT_SCE,8,8
	.comm	PCI224_INTR_EXT,1,1
	.comm	PCI224_INTR_DAC,1,1
	.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_amplc_pci224.c_pci224_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci224_interrupt, %function
pci224_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L21
	ldr	r7, .L21+4
	ldr	r2, [r6]
	ldr	r3, [r7]
	ldr	r0, [r2, #12]
	mov	r5, r1
	add	r0, r0, r3
	ldr	r8, [r1]
	bl	inb
	ands	r4, r0, #63
	moveq	r0, r4
	bne	.L17
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	IRQ_RETVAL
.L17:
	mov	r10, #0
	ldr	r0, [r6]
	mov	r1, r10
	add	r0, r0, #8
	bl	spin_lock_irqsave
	ldr	r2, [r6]
	ldr	r1, [r7]
	ldrb	r3, [r2]	@ zero_extendqisi2
	ldr	r2, [r2, #12]
	bic	r9, r3, r4
	add	r1, r2, r1
	mov	r0, r9
	and	r4, r4, r3
	bl	outb
	mov	r3, #1
	ldr	r2, .L21+8
	ldr	r0, [r6]
	ldr	r2, [r2]
	str	r3, [r0, #4]
	str	r2, [r0, #16]
	mov	r1, r10
	add	r0, r0, #8
	bl	spin_unlock_irqrestore
	cmp	r4, r10
	beq	.L4
	ldr	r3, .L21+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r3, r4
	beq	.L6
	ldr	r1, [r6]
	ldr	r0, [r8]
	ldrb	r2, [r1]	@ zero_extendqisi2
	bic	r3, r2, r3
	ldr	r2, .L21+16
	strb	r3, [r1]
	ldr	r3, [r2]
	ldr	r2, [r0]
	cmp	r2, r3
	beq	.L18
	ldr	r2, [r0, #4]
	cmp	r3, r2
	beq	.L19
.L6:
	ldr	r3, .L21+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r4, r3
	beq	.L4
	mov	r1, r8
	mov	r0, r5
	bl	pci224_ao_handle_fifo
.L4:
	ldr	r0, [r6]
	mov	r1, #0
	add	r0, r0, #8
	bl	spin_lock_irqsave
	ldr	r3, [r6]
	ldrb	r0, [r3]	@ zero_extendqisi2
	cmp	r0, r9
	bne	.L20
.L10:
	mov	r2, #0
	add	r0, r3, #8
	mov	r1, r2
	str	r2, [r3, #4]
	bl	spin_unlock_irqrestore
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r0, #1
	b	IRQ_RETVAL
.L20:
	ldr	r1, [r3, #12]
	ldr	r3, [r7]
	add	r1, r1, r3
	bl	outb
	ldr	r3, [r6]
	b	.L10
.L18:
	mov	r1, r8
	mov	r0, r5
	bl	pci224_ao_start
	b	.L6
.L19:
	mov	r1, r8
	mov	r0, r5
	bl	pci224_ao_stop
	b	.L6
.L22:
	.align	2
.L21:
	.word	devpriv
	.word	PCI224_INT_SCE
	.word	THISCPU
	.word	PCI224_INTR_EXT
	.word	TRIG_EXT
	.word	PCI224_INTR_DAC
	.size	pci224_interrupt, .-pci224_interrupt
	.comm	devpriv,4,4
	.comm	TRIG_EXT,4,4
	.comm	THISCPU,4,4
	.comm	PCI224_INT_SCE,4,4
	.comm	PCI224_INTR_EXT,1,1
	.comm	PCI224_INTR_DAC,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
