	.file	"extr_digicolor-usart.c_digicolor_uart_console_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	digicolor_uart_console_write, @function
digicolor_uart_console_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rax, QWORD PTR digicolor_ports[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	xor	esi, esi
	cmp	QWORD PTR oops_in_progress[rip], 0
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rdx, QWORD PTR [rdi]
	mov	rbx, QWORD PTR [rax+rdx*8]
	lea	r13, 8[rbx]
	mov	rdi, r13
	je	.L2
	call	spin_trylock_irqsave@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, rbx
	mov	ecx, DWORD PTR digicolor_uart_console_putchar[rip]
	mov	r14d, eax
	call	uart_console_write@PLT
	test	r14d, r14d
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR UA_STATUS[rip]
	add	rdi, QWORD PTR [rbx]
	call	readb_relaxed@PLT
	test	DWORD PTR UA_STATUS_TX_READY[rip], eax
	je	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	spin_lock_irqsave@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, rbx
	mov	ecx, DWORD PTR digicolor_uart_console_putchar[rip]
	call	uart_console_write@PLT
.L3:
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	digicolor_uart_console_write, .-digicolor_uart_console_write
	.comm	oops_in_progress,8,8
	.comm	digicolor_uart_console_putchar,4,4
	.comm	digicolor_ports,8,8
	.comm	UA_STATUS_TX_READY,4,4
	.comm	UA_STATUS,8,8
	.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_digicolor-usart.c_digicolor_uart_console_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	digicolor_uart_console_write, %function
digicolor_uart_console_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	lr, .L11
	ldr	ip, [r0]
	ldr	r3, .L11+4
	ldr	r0, [lr]
	ldr	r3, [r3]
	ldr	r4, [r0, ip, lsl #2]
	cmp	r3, #0
	add	r7, r4, #4
	mov	r5, r1
	mov	r6, r2
	mov	r1, #0
	mov	r0, r7
	beq	.L2
	bl	spin_trylock_irqsave
	mov	r8, r0
	ldr	r3, .L11+8
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r3]
	bl	uart_console_write
	cmp	r8, #0
	bne	.L3
.L4:
	ldr	r6, .L11+12
	ldr	r5, .L11+16
.L5:
	ldr	r3, [r6]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	readb_relaxed
	ldr	r3, [r5]
	tst	r0, r3
	beq	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	bl	spin_lock_irqsave
	ldr	r3, .L11+8
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r3]
	bl	uart_console_write
.L3:
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	b	.L4
.L12:
	.align	2
.L11:
	.word	digicolor_ports
	.word	oops_in_progress
	.word	digicolor_uart_console_putchar
	.word	UA_STATUS
	.word	UA_STATUS_TX_READY
	.size	digicolor_uart_console_write, .-digicolor_uart_console_write
	.comm	oops_in_progress,4,4
	.comm	digicolor_uart_console_putchar,4,4
	.comm	digicolor_ports,4,4
	.comm	UA_STATUS_TX_READY,4,4
	.comm	UA_STATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
