	.file	"extr_uart_core.c_mp_hal_stdout_tx_strn.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mp_hal_stdout_tx_strn
	.type	mp_hal_stdout_tx_strn, @function
mp_hal_stdout_tx_strn:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR uart_console_dev.1932[rip], 0
	je	.L11
.L2:
	test	ebp, ebp
	je	.L1
	lea	eax, -1[rbp]
	lea	rbp, 1[rbx+rax]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR uart_console_dev.1932[rip]
	movsx	esi, BYTE PTR [rbx]
	add	rbx, 1
	call	uart_poll_out@PLT
	cmp	rbx, rbp
	jne	.L4
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR CONFIG_UART_CONSOLE_ON_DEV_NAME[rip]
	call	device_get_binding@PLT
	mov	QWORD PTR uart_console_dev.1932[rip], rax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mp_hal_stdout_tx_strn, .-mp_hal_stdout_tx_strn
	.local	uart_console_dev.1932
	.comm	uart_console_dev.1932,8,8
	.comm	CONFIG_UART_CONSOLE_ON_DEV_NAME,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_core.c_mp_hal_stdout_tx_strn.c"
	.text
	.align	2
	.global	mp_hal_stdout_tx_strn
	.syntax unified
	.arm
	.fpu softvfp
	.type	mp_hal_stdout_tx_strn, %function
mp_hal_stdout_tx_strn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L13
	mov	r4, r0
	ldr	r3, [r6]
	mov	r5, r1
	cmp	r3, #0
	beq	.L11
	cmp	r5, #0
	popeq	{r4, r5, r6, pc}
.L12:
	add	r5, r4, r5
.L4:
	ldrb	r1, [r4], #1	@ zero_extendqisi2
	ldr	r0, [r6]
	bl	uart_poll_out
	cmp	r4, r5
	bne	.L4
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	bl	device_get_binding
	cmp	r5, #0
	str	r0, [r6]
	bne	.L12
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	.LANCHOR0
	.word	CONFIG_UART_CONSOLE_ON_DEV_NAME
	.size	mp_hal_stdout_tx_strn, .-mp_hal_stdout_tx_strn
	.comm	CONFIG_UART_CONSOLE_ON_DEV_NAME,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	uart_console_dev.4216, %object
	.size	uart_console_dev.4216, 4
uart_console_dev.4216:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
