	.file	"extr_uart_dev_aml8726.c_aml8726_uart_putc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aml8726_uart_putc, @function
aml8726_uart_putc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	xor	eax, eax
	call	cpu_spinwait@PLT
.L2:
	mov	esi, DWORD PTR AML_UART_STATUS_REG[rip]
	mov	rdi, rbp
	call	uart_getreg@PLT
	test	DWORD PTR AML_UART_STATUS_TX_FIFO_FULL[rip], eax
	jne	.L3
	mov	esi, DWORD PTR AML_UART_WFIFO_REG[rip]
	mov	rdi, rbp
	mov	edx, r12d
	call	uart_setreg@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	uart_barrier@PLT
	.cfi_endproc
.LFE0:
	.size	aml8726_uart_putc, .-aml8726_uart_putc
	.comm	AML_UART_WFIFO_REG,4,4
	.comm	AML_UART_STATUS_TX_FIFO_FULL,4,4
	.comm	AML_UART_STATUS_REG,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_aml8726.c_aml8726_uart_putc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aml8726_uart_putc, %function
aml8726_uart_putc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r7, r1
	ldr	r6, .L6
	ldr	r5, .L6+4
	b	.L2
.L3:
	bl	cpu_spinwait
.L2:
	mov	r0, r4
	ldr	r1, [r6]
	bl	uart_getreg
	ldr	r3, [r5]
	tst	r0, r3
	bne	.L3
	ldr	r3, .L6+8
	mov	r2, r7
	mov	r0, r4
	ldr	r1, [r3]
	bl	uart_setreg
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	uart_barrier
.L7:
	.align	2
.L6:
	.word	AML_UART_STATUS_REG
	.word	AML_UART_STATUS_TX_FIFO_FULL
	.word	AML_UART_WFIFO_REG
	.size	aml8726_uart_putc, .-aml8726_uart_putc
	.comm	AML_UART_WFIFO_REG,4,4
	.comm	AML_UART_STATUS_TX_FIFO_FULL,4,4
	.comm	AML_UART_STATUS_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
