	.file	"extr_clps711x.c_clps711xuart_shutdown.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clps711xuart_shutdown, @function
clps711xuart_shutdown:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	TX_IRQ@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	free_irq@PLT
	mov	rdi, rbp
	call	RX_IRQ@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	free_irq@PLT
	mov	rdi, rbp
	call	SYSCON@PLT
	mov	edi, eax
	call	clps_readl@PLT
	mov	r12d, DWORD PTR SYSCON_UARTEN[rip]
	mov	rdi, rbp
	not	r12d
	and	r12d, eax
	call	SYSCON@PLT
	mov	edi, r12d
	mov	esi, eax
	call	clps_writel@PLT
	mov	rdi, rbp
	call	UBRLCR@PLT
	mov	edi, eax
	call	clps_readl@PLT
	mov	r12d, DWORD PTR UBRLCR_FIFOEN[rip]
	mov	rdi, rbp
	or	r12d, DWORD PTR UBRLCR_BREAK[rip]
	not	r12d
	and	r12d, eax
	call	UBRLCR@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edi, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	esi, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	clps_writel@PLT
	.cfi_endproc
.LFE0:
	.size	clps711xuart_shutdown, .-clps711xuart_shutdown
	.comm	UBRLCR_FIFOEN,4,4
	.comm	UBRLCR_BREAK,4,4
	.comm	SYSCON_UARTEN,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_clps711x.c_clps711xuart_shutdown.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clps711xuart_shutdown, %function
clps711xuart_shutdown:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	TX_IRQ
	mov	r1, r4
	bl	free_irq
	mov	r0, r4
	bl	RX_IRQ
	mov	r1, r4
	bl	free_irq
	mov	r0, r4
	bl	SYSCON
	bl	clps_readl
	mov	r5, r0
	ldr	r3, .L4
	mov	r0, r4
	ldr	r3, [r3]
	bic	r5, r5, r3
	bl	SYSCON
	mov	r1, r0
	mov	r0, r5
	bl	clps_writel
	mov	r0, r4
	bl	UBRLCR
	bl	clps_readl
	mov	r3, r0
	ldr	r2, .L4+4
	ldr	r1, .L4+8
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r4
	orr	r4, r2, r1
	bic	r4, r3, r4
	bl	UBRLCR
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	clps_writel
.L5:
	.align	2
.L4:
	.word	SYSCON_UARTEN
	.word	UBRLCR_FIFOEN
	.word	UBRLCR_BREAK
	.size	clps711xuart_shutdown, .-clps711xuart_shutdown
	.comm	UBRLCR_FIFOEN,4,4
	.comm	UBRLCR_BREAK,4,4
	.comm	SYSCON_UARTEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
