	.file	"extr_fsl_lpuart.c_lpuart32_configure.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lpuart32_configure, @function
lpuart32_configure:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	cmp	QWORD PTR 8[rdi], 0
	mov	rbp, rdi
	jne	.L7
.L2:
	mov	esi, DWORD PTR UARTCTRL[rip]
	mov	rdi, rbp
	call	lpuart32_read@PLT
	cmp	QWORD PTR 8[rbp], 0
	mov	rsi, rax
	jne	.L3
	or	rsi, QWORD PTR UARTCTRL_RIE[rip]
.L3:
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	jne	.L4
	or	rsi, QWORD PTR UARTCTRL_TIE[rip]
.L4:
	mov	edx, DWORD PTR UARTCTRL[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	lpuart32_write@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR UARTWATER[rip]
	call	lpuart32_read@PLT
	mov	rcx, QWORD PTR UARTWATER_RXWATER_OFF[rip]
	mov	rsi, QWORD PTR UARTWATER_WATER_MASK[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR UARTWATER[rip]
	sal	rsi, cl
	not	rsi
	and	rsi, rax
	call	lpuart32_write@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	lpuart32_configure, .-lpuart32_configure
	.comm	UARTWATER_WATER_MASK,8,8
	.comm	UARTWATER_RXWATER_OFF,8,8
	.comm	UARTWATER,4,4
	.comm	UARTCTRL_TIE,8,8
	.comm	UARTCTRL_RIE,8,8
	.comm	UARTCTRL,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_fsl_lpuart.c_lpuart32_configure.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lpuart32_configure, %function
lpuart32_configure:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	bne	.L10
.L2:
	ldr	r5, .L11
	mov	r0, r4
	ldr	r1, [r5]
	bl	lpuart32_read
	mov	r1, r0
	ldr	r3, [r4, #8]
	ldr	r2, [r5]
	cmp	r3, #0
	ldreq	r3, .L11+4
	ldreq	r3, [r3]
	orreq	r1, r0, r3
	ldr	r3, [r4, #4]
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	cmp	r3, #0
	ldreq	r3, .L11+8
	ldreq	r3, [r3]
	orreq	r1, r1, r3
	b	lpuart32_write
.L10:
	ldr	r5, .L11+12
	ldr	r1, [r5]
	bl	lpuart32_read
	ldr	r2, .L11+16
	ldr	r3, .L11+20
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r5]
	bic	r1, r0, r1, lsl r3
	mov	r0, r4
	bl	lpuart32_write
	b	.L2
.L12:
	.align	2
.L11:
	.word	UARTCTRL
	.word	UARTCTRL_RIE
	.word	UARTCTRL_TIE
	.word	UARTWATER
	.word	UARTWATER_WATER_MASK
	.word	UARTWATER_RXWATER_OFF
	.size	lpuart32_configure, .-lpuart32_configure
	.comm	UARTWATER_WATER_MASK,4,4
	.comm	UARTWATER_RXWATER_OFF,4,4
	.comm	UARTWATER,4,4
	.comm	UARTCTRL_TIE,4,4
	.comm	UARTCTRL_RIE,4,4
	.comm	UARTCTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
