	.file	"extr_serial167.c_cd2401_rx_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cd2401_rx_interrupt, @function
cd2401_rx_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
	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
	mov	rbx, QWORD PTR BASE_ADDR[rip]
	mov	edx, DWORD PTR jiffies[rip]
	mov	rax, QWORD PTR CyLICR[rip]
	add	rax, rbx
	movzx	eax, BYTE PTR [rax]
	shr	al, 2
	movzx	eax, al
	sal	rax, 5
	add	rax, QWORD PTR cy_port[rip]
	mov	DWORD PTR 24[rax], edx
	mov	rdx, QWORD PTR CyRFOC[rip]
	mov	r13, QWORD PTR [rax]
	add	rdx, rbx
	movzx	ebp, BYTE PTR [rdx]
	test	r13, r13
	jne	.L2
	mov	rdx, QWORD PTR CyRDR[rip]
	lea	eax, -1[rbp]
	add	rdx, rbx
	test	ebp, ebp
	je	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	sub	eax, 1
	movzx	ecx, BYTE PTR [rdx]
	cmp	eax, -1
	jne	.L5
.L9:
	xor	eax, eax
.L4:
	add	rbx, QWORD PTR CyREOIR[rip]
	mov	BYTE PTR [rbx], al
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, ebp
	mov	rdi, r13
	call	tty_buffer_request_room@PLT
	lea	r12d, -1[rax]
	test	eax, eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR CyRDR[rip]
	mov	edx, DWORD PTR TTY_NORMAL[rip]
	mov	rdi, r13
	sub	r12d, 1
	add	rax, rbx
	movsx	esi, BYTE PTR [rax]
	call	tty_insert_flip_char@PLT
	cmp	r12d, -1
	jne	.L7
.L6:
	mov	rdi, r13
	call	tty_schedule_flip@PLT
	test	ebp, ebp
	jne	.L9
.L8:
	movzx	eax, BYTE PTR CyNOTRANS[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	cd2401_rx_interrupt, .-cd2401_rx_interrupt
	.comm	jiffies,4,4
	.comm	cy_port,8,8
	.comm	TTY_NORMAL,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	DEBUG_PORT,4,4
	.comm	CyRFOC,8,8
	.comm	CyREOIR,8,8
	.comm	CyRDR,8,8
	.comm	CyNOTRANS,1,1
	.comm	CyLICR,8,8
	.comm	BASE_ADDR,8,8
	.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_serial167.c_cd2401_rx_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cd2401_rx_interrupt, %function
cd2401_rx_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, .L20
	ldr	r3, .L20+4
	ldr	r6, [r2]
	ldr	r3, [r3]
	ldr	r2, .L20+8
	ldrb	r3, [r6, r3]	@ zero_extendqisi2
	ldr	r0, .L20+12
	ldr	r2, [r2]
	ldr	r1, .L20+16
	lsr	r3, r3, #2
	add	r3, r3, r3, lsl #1
	ldr	ip, [r0]
	ldr	r1, [r1]
	add	r0, r2, r3, lsl #3
	ldr	r7, [r2, r3, lsl #3]
	str	ip, [r0, #20]
	ldrb	r3, [r6, r1]	@ zero_extendqisi2
	cmp	r7, #0
	and	r4, r3, #255
	bne	.L2
	cmp	r4, #0
	sub	r3, r4, #1
	beq	.L8
	ldr	r2, .L20+20
	ldr	r2, [r2]
	add	r2, r6, r2
.L5:
	sub	r3, r3, #1
	cmn	r3, #1
	ldrb	r1, [r2]	@ zero_extendqisi2
	bne	.L5
.L9:
	mov	r3, #0
.L4:
	ldr	r1, .L20+24
	ldr	r2, .L20+28
	ldr	r1, [r1]
	strb	r3, [r6, r1]
	ldr	r0, [r2]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r1, r4
	mov	r0, r7
	bl	tty_buffer_request_room
	cmp	r0, #0
	sub	r5, r0, #1
	beq	.L6
	ldr	r9, .L20+20
	ldr	r8, .L20+32
.L7:
	ldr	r3, [r9]
	mov	r0, r7
	ldrb	r1, [r6, r3]	@ zero_extendqisi2
	ldr	r2, [r8]
	sub	r5, r5, #1
	bl	tty_insert_flip_char
	cmn	r5, #1
	bne	.L7
.L6:
	mov	r0, r7
	bl	tty_schedule_flip
	cmp	r4, #0
	bne	.L9
.L8:
	ldr	r3, .L20+36
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L4
.L21:
	.align	2
.L20:
	.word	BASE_ADDR
	.word	CyLICR
	.word	cy_port
	.word	jiffies
	.word	CyRFOC
	.word	CyRDR
	.word	CyREOIR
	.word	IRQ_HANDLED
	.word	TTY_NORMAL
	.word	CyNOTRANS
	.size	cd2401_rx_interrupt, .-cd2401_rx_interrupt
	.comm	jiffies,4,4
	.comm	cy_port,4,4
	.comm	TTY_NORMAL,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	DEBUG_PORT,4,4
	.comm	CyRFOC,4,4
	.comm	CyREOIR,4,4
	.comm	CyRDR,4,4
	.comm	CyNOTRANS,1,1
	.comm	CyLICR,4,4
	.comm	BASE_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
