	.file	"extr_uart_dev_imx.c_imx_uart_bus_receive.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	imx_uart_bus_receive, @function
imx_uart_bus_receive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 20[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	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	edi, DWORD PTR 16[rdi]
	call	uart_lock@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r12
	call	uart_rx_full@PLT
	test	rax, rax
	jne	.L24
	mov	edi, DWORD PTR URXD[rip]
	call	REG@PLT
	mov	rdi, r13
	mov	esi, eax
	call	GETREG@PLT
	mov	esi, DWORD PTR FRMERR[rip]
	mov	edi, DWORD PTR URXD[rip]
	mov	ebx, eax
	movzx	ebp, al
	call	FLD@PLT
	test	eax, ebx
	je	.L5
	or	ebp, DWORD PTR UART_STAT_FRAMERR[rip]
.L5:
	mov	esi, DWORD PTR PRERR[rip]
	mov	edi, DWORD PTR URXD[rip]
	call	FLD@PLT
	test	eax, ebx
	je	.L6
	or	ebp, DWORD PTR UART_STAT_PARERR[rip]
.L6:
	mov	esi, DWORD PTR OVRRUN[rip]
	mov	edi, DWORD PTR URXD[rip]
	call	FLD@PLT
	test	eax, ebx
	je	.L7
	or	ebp, DWORD PTR UART_STAT_OVERRUN[rip]
.L7:
	mov	esi, DWORD PTR BRK[rip]
	mov	edi, DWORD PTR URXD[rip]
	call	FLD@PLT
	test	eax, ebx
	je	.L8
	or	ebp, DWORD PTR UART_STAT_BREAK[rip]
.L8:
	mov	esi, ebp
	mov	rdi, r12
	call	uart_rx_put@PLT
.L2:
	mov	edx, DWORD PTR RDR[rip]
	mov	esi, DWORD PTR USR2[rip]
	mov	rdi, r13
	call	IS@PLT
	test	rax, rax
	jne	.L9
.L4:
	mov	edx, DWORD PTR RRDYEN[rip]
	mov	esi, DWORD PTR UCR1[rip]
	mov	rdi, r13
	call	ENA@PLT
	mov	edx, DWORD PTR ATEN[rip]
	mov	esi, DWORD PTR UCR2[rip]
	mov	rdi, r13
	call	ENA@PLT
	mov	edi, DWORD PTR 16[r12]
	call	uart_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L24:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[r12]
	mov	rax, QWORD PTR [r12]
	mov	ecx, DWORD PTR UART_STAT_OVERRUN[rip]
	mov	DWORD PTR [rax+rdx*4], ecx
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	imx_uart_bus_receive, .-imx_uart_bus_receive
	.comm	USR2,4,4
	.comm	URXD,4,4
	.comm	UCR2,4,4
	.comm	UCR1,4,4
	.comm	UART_STAT_PARERR,4,4
	.comm	UART_STAT_OVERRUN,4,4
	.comm	UART_STAT_FRAMERR,4,4
	.comm	UART_STAT_BREAK,4,4
	.comm	RRDYEN,4,4
	.comm	RDR,4,4
	.comm	PRERR,4,4
	.comm	OVRRUN,4,4
	.comm	FRMERR,4,4
	.comm	BRK,4,4
	.comm	ATEN,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_uart_dev_imx.c_imx_uart_bus_receive.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	imx_uart_bus_receive, %function
imx_uart_bus_receive:
	@ 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	r6, r0
	ldr	r0, [r0, #8]
	bl	uart_lock
	ldr	r9, .L25
	ldr	r8, .L25+4
	ldr	r5, .L25+8
	ldr	fp, .L25+12
	add	r7, r6, #12
	b	.L2
.L9:
	mov	r0, r6
	bl	uart_rx_full
	cmp	r0, #0
	bne	.L24
	ldr	r0, [r5]
	bl	REG
	mov	r1, r0
	mov	r0, r7
	bl	GETREG
	ldr	r1, [fp]
	mov	r4, r0
	ldr	r0, [r5]
	bl	FLD
	tst	r0, r4
	ldrne	r3, .L25+16
	and	r10, r4, #255
	ldrne	r3, [r3]
	ldr	r0, [r5]
	orrne	r10, r10, r3
	ldr	r3, .L25+20
	ldr	r1, [r3]
	bl	FLD
	tst	r0, r4
	ldrne	r3, .L25+24
	ldr	r0, [r5]
	ldrne	r3, [r3]
	orrne	r10, r10, r3
	ldr	r3, .L25+28
	ldr	r1, [r3]
	bl	FLD
	tst	r0, r4
	ldrne	r3, .L25+32
	ldr	r0, [r5]
	ldrne	r3, [r3]
	orrne	r10, r10, r3
	ldr	r3, .L25+36
	ldr	r1, [r3]
	bl	FLD
	tst	r0, r4
	ldrne	r3, .L25+40
	mov	r0, r6
	ldrne	r3, [r3]
	orrne	r10, r10, r3
	mov	r1, r10
	bl	uart_rx_put
.L2:
	mov	r0, r7
	ldr	r2, [r9]
	ldr	r1, [r8]
	bl	IS
	cmp	r0, #0
	bne	.L9
.L4:
	ldr	r3, .L25+44
	ldr	r2, .L25+48
	ldr	r1, [r3]
	mov	r0, r7
	ldr	r2, [r2]
	bl	ENA
	ldr	r3, .L25+52
	ldr	r2, .L25+56
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r7
	bl	ENA
	ldr	r0, [r6, #8]
	bl	uart_unlock
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r3, .L25+32
	ldr	r2, [r6, #4]
	ldr	r1, [r3]
	ldr	r3, [r6]
	str	r1, [r3, r2, lsl #2]
	b	.L4
.L26:
	.align	2
.L25:
	.word	RDR
	.word	USR2
	.word	URXD
	.word	FRMERR
	.word	UART_STAT_FRAMERR
	.word	PRERR
	.word	UART_STAT_PARERR
	.word	OVRRUN
	.word	UART_STAT_OVERRUN
	.word	BRK
	.word	UART_STAT_BREAK
	.word	UCR1
	.word	RRDYEN
	.word	UCR2
	.word	ATEN
	.size	imx_uart_bus_receive, .-imx_uart_bus_receive
	.comm	USR2,4,4
	.comm	URXD,4,4
	.comm	UCR2,4,4
	.comm	UCR1,4,4
	.comm	UART_STAT_PARERR,4,4
	.comm	UART_STAT_OVERRUN,4,4
	.comm	UART_STAT_FRAMERR,4,4
	.comm	UART_STAT_BREAK,4,4
	.comm	RRDYEN,4,4
	.comm	RDR,4,4
	.comm	PRERR,4,4
	.comm	OVRRUN,4,4
	.comm	FRMERR,4,4
	.comm	BRK,4,4
	.comm	ATEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
