	.file	"extr_uart_dev_mvebu.c_uart_mvebu_bus_transmit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	uart_mvebu_bus_transmit
	.type	uart_mvebu_bus_transmit, @function
uart_mvebu_bus_transmit:
.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
	lea	r12, 24[rdi]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 20[rdi]
	call	uart_lock@PLT
	mov	esi, DWORD PTR UART_CTRL[rip]
	mov	rdi, r12
	call	uart_getreg@PLT
	mov	edx, DWORD PTR CTRL_INTR_MASK[rip]
	mov	esi, DWORD PTR UART_CTRL[rip]
	mov	rdi, r12
	mov	r13d, eax
	not	edx
	and	edx, eax
	call	uart_setreg@PLT
	mov	rdi, r12
	call	uart_barrier@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR UART_TSH[rip]
	mov	rdi, r12
	movzx	edx, BYTE PTR [rax+rbx*4]
	add	rbx, 1
	call	uart_setreg@PLT
	mov	rdi, r12
	call	uart_barrier@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L3
.L2:
	mov	edx, DWORD PTR CTRL_TX_IDLE_INT[rip]
	mov	esi, DWORD PTR UART_CTRL[rip]
	mov	rdi, r12
	or	edx, r13d
	call	uart_setreg@PLT
	mov	rdi, r12
	call	uart_barrier@PLT
	mov	DWORD PTR 16[rbp], 1
	mov	edi, DWORD PTR 20[rbp]
	call	uart_unlock@PLT
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	uart_mvebu_bus_transmit, .-uart_mvebu_bus_transmit
	.comm	UART_TSH,4,4
	.comm	UART_CTRL,4,4
	.comm	CTRL_TX_IDLE_INT,4,4
	.comm	CTRL_INTR_MASK,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_mvebu.c_uart_mvebu_bus_transmit.c"
	.text
	.align	2
	.global	uart_mvebu_bus_transmit
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_mvebu_bus_transmit, %function
uart_mvebu_bus_transmit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r9, .L7
	add	r6, r5, #16
	ldr	r0, [r0, #12]
	bl	uart_lock
	ldr	r1, [r9]
	mov	r0, r6
	bl	uart_getreg
	mov	r8, r0
	ldr	r3, .L7+4
	ldr	r1, [r9]
	ldr	r2, [r3]
	mov	r0, r6
	bic	r2, r8, r2
	bl	uart_setreg
	mov	r0, r6
	bl	uart_barrier
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r7, .L7+8
.L3:
	ldr	r3, [r5, #4]
	ldr	r1, [r7]
	ldrb	r2, [r3, r4, lsl #2]	@ zero_extendqisi2
	mov	r0, r6
	bl	uart_setreg
	mov	r0, r6
	bl	uart_barrier
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r3, .L7+12
	ldr	r1, [r9]
	ldr	r2, [r3]
	mov	r0, r6
	orr	r2, r8, r2
	bl	uart_setreg
	mov	r0, r6
	bl	uart_barrier
	mov	r3, #1
	ldr	r0, [r5, #12]
	str	r3, [r5, #8]
	bl	uart_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	UART_CTRL
	.word	CTRL_INTR_MASK
	.word	UART_TSH
	.word	CTRL_TX_IDLE_INT
	.size	uart_mvebu_bus_transmit, .-uart_mvebu_bus_transmit
	.comm	UART_TSH,4,4
	.comm	UART_CTRL,4,4
	.comm	CTRL_TX_IDLE_INT,4,4
	.comm	CTRL_INTR_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
