	.file	"extr_atmel_serial.c_atmel_rx_chars.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atmel_rx_chars, @function
atmel_rx_chars:
.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
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_atmel_uart_port@PLT
	mov	esi, DWORD PTR ATMEL_US_CSR[rip]
	mov	rdi, rbx
	mov	rbp, rax
	call	atmel_uart_readl@PLT
	test	DWORD PTR ATMEL_US_RXRDY[rip], eax
	je	.L2
	mov	r13d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, r13d
	mov	edx, r12d
	mov	rdi, rbx
	call	atmel_buffer_rx_char@PLT
	mov	esi, DWORD PTR ATMEL_US_CSR[rip]
	mov	rdi, rbx
	call	atmel_uart_readl@PLT
	mov	r13d, eax
	test	DWORD PTR ATMEL_US_RXRDY[rip], eax
	je	.L2
.L6:
	mov	rdi, rbx
	call	atmel_uart_read_char@PLT
	mov	edx, DWORD PTR ATMEL_US_PARE[rip]
	mov	edi, 1
	or	edx, DWORD PTR ATMEL_US_FRAME[rip]
	or	edx, DWORD PTR ATMEL_US_OVRE[rip]
	or	edx, DWORD PTR ATMEL_US_RXBRK[rip]
	mov	r12d, eax
	test	edx, r13d
	jne	.L3
	mov	edx, DWORD PTR 0[rbp]
	xor	edi, edi
	test	edx, edx
	setne	dil
.L3:
	call	unlikely@PLT
	test	rax, rax
	je	.L4
	mov	edx, DWORD PTR ATMEL_US_RSTSTA[rip]
	mov	esi, DWORD PTR ATMEL_US_CR[rip]
	mov	rdi, rbx
	call	atmel_uart_writel@PLT
	mov	edx, DWORD PTR ATMEL_US_RXBRK[rip]
	test	edx, r13d
	je	.L5
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L20
.L5:
	mov	esi, DWORD PTR ATMEL_US_IDR[rip]
	mov	rdi, rbx
	call	atmel_uart_writel@PLT
	mov	eax, DWORD PTR ATMEL_US_RXBRK[rip]
	mov	DWORD PTR 0[rbp], 0
	not	eax
	and	r13d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rsi, 4[rbp]
	mov	rdi, rbp
	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
	jmp	atmel_tasklet_schedule@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 1
	mov	esi, DWORD PTR ATMEL_US_IER[rip]
	mov	rdi, rbx
	call	atmel_uart_writel@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	atmel_rx_chars, .-atmel_rx_chars
	.comm	ATMEL_US_RXRDY,4,4
	.comm	ATMEL_US_RXBRK,4,4
	.comm	ATMEL_US_RSTSTA,4,4
	.comm	ATMEL_US_PARE,4,4
	.comm	ATMEL_US_OVRE,4,4
	.comm	ATMEL_US_IER,4,4
	.comm	ATMEL_US_IDR,4,4
	.comm	ATMEL_US_FRAME,4,4
	.comm	ATMEL_US_CSR,4,4
	.comm	ATMEL_US_CR,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_atmel_serial.c_atmel_rx_chars.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atmel_rx_chars, %function
atmel_rx_chars:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	bl	to_atmel_uart_port
	ldr	r3, .L21
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	atmel_uart_readl
	ldr	r8, .L21+4
	ldr	r2, [r8]
	tst	r0, r2
	beq	.L2
	mov	r9, r0
	ldr	fp, .L21+8
	ldr	r10, .L21+12
	ldr	r6, .L21+16
	b	.L6
.L4:
	mov	r1, r9
	mov	r2, r5
	mov	r0, r4
	bl	atmel_buffer_rx_char
	ldr	r3, .L21
	mov	r0, r4
	ldr	r1, [r3]
	bl	atmel_uart_readl
	ldr	r3, [r8]
	mov	r9, r0
	tst	r0, r3
	beq	.L2
.L6:
	mov	r0, r4
	bl	atmel_uart_read_char
	ldr	r1, .L21+20
	ldr	r2, [r10]
	ldr	r3, [fp]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, [r6]
	orr	r3, r3, r1
	orr	r3, r3, r2
	tst	r3, r9
	mov	r5, r0
	movne	r0, #1
	bne	.L3
	ldr	r0, [r7]
	subs	r0, r0, #0
	movne	r0, #1
.L3:
	bl	unlikely
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L21+24
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r3, .L21+28
	ldr	r1, [r3]
	bl	atmel_uart_writel
	ldr	r2, [r6]
	tst	r2, r9
	beq	.L5
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L20
.L5:
	ldr	r3, .L21+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	atmel_uart_writel
	mov	r2, #0
	ldr	r3, [r6]
	str	r2, [r7]
	bic	r9, r9, r3
	b	.L4
.L2:
	mov	r0, r7
	add	r1, r7, #4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	atmel_tasklet_schedule
.L20:
	mov	r3, #1
	str	r3, [r7]
	ldr	r3, .L21+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	atmel_uart_writel
	b	.L4
.L22:
	.align	2
.L21:
	.word	ATMEL_US_CSR
	.word	ATMEL_US_RXRDY
	.word	ATMEL_US_PARE
	.word	ATMEL_US_FRAME
	.word	ATMEL_US_RXBRK
	.word	ATMEL_US_OVRE
	.word	ATMEL_US_RSTSTA
	.word	ATMEL_US_CR
	.word	ATMEL_US_IDR
	.word	ATMEL_US_IER
	.size	atmel_rx_chars, .-atmel_rx_chars
	.comm	ATMEL_US_RXRDY,4,4
	.comm	ATMEL_US_RXBRK,4,4
	.comm	ATMEL_US_RSTSTA,4,4
	.comm	ATMEL_US_PARE,4,4
	.comm	ATMEL_US_OVRE,4,4
	.comm	ATMEL_US_IER,4,4
	.comm	ATMEL_US_IDR,4,4
	.comm	ATMEL_US_FRAME,4,4
	.comm	ATMEL_US_CSR,4,4
	.comm	ATMEL_US_CR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
