	.file	"extr_uart_dev_oct16550.c_oct16550_bus_transmit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	oct16550_bus_transmit, @function
oct16550_bus_transmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 24[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR 20[rdi]
	call	uart_lock@PLT
	mov	rdi, r12
	call	oct16550_delay@PLT
	mov	esi, 100
	mov	rdi, r12
	mov	edx, eax
	call	oct16550_wait_txhr_empty@PLT
	mov	esi, DWORD PTR REG_IER[rip]
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, r12
	or	edx, DWORD PTR IER_ETXRDY[rip]
	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 REG_DATA[rip]
	mov	rdi, r12
	mov	edx, DWORD 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	DWORD PTR 16[rbp], 1
	mov	edi, DWORD PTR 20[rbp]
	call	uart_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	oct16550_bus_transmit, .-oct16550_bus_transmit
	.comm	REG_IER,4,4
	.comm	REG_DATA,4,4
	.comm	IER_ETXRDY,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_oct16550.c_oct16550_bus_transmit.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	oct16550_bus_transmit, %function
oct16550_bus_transmit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	add	r6, r0, #16
	mov	r5, r0
	ldr	r0, [r0, #12]
	bl	uart_lock
	mov	r0, r6
	bl	oct16550_delay
	mov	r1, #100
	mov	r2, r0
	mov	r0, r6
	bl	oct16550_wait_txhr_empty
	ldr	r3, .L7
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, .L7+4
	orr	r2, r1, r2
	mov	r0, r6
	ldr	r1, [r3]
	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]
	ldr	r2, [r3, r4, lsl #2]
	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:
	mov	r3, #1
	ldr	r0, [r5, #12]
	str	r3, [r5, #8]
	bl	uart_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	IER_ETXRDY
	.word	REG_IER
	.word	REG_DATA
	.size	oct16550_bus_transmit, .-oct16550_bus_transmit
	.comm	REG_IER,4,4
	.comm	REG_DATA,4,4
	.comm	IER_ETXRDY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
