	.file	"extr_uart.c_uart_enable_tx_intr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"uart_num error"
.LC1:
	.string	"empty intr threshold error"
	.text
	.p2align 4
	.globl	uart_enable_tx_intr
	.type	uart_enable_tx_intr, @function
uart_enable_tx_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	lea	r12, 0[0+rbp*4]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR UART_NUM_MAX[rip], rbp
	mov	edx, DWORD PTR ESP_FAIL[rip]
	seta	dil
	call	UART_CHECK@PLT
	mov	edx, DWORD PTR ESP_FAIL[rip]
	xor	edi, edi
	cmp	DWORD PTR UART_FIFO_LEN[rip], ebx
	setg	dil
	lea	rsi, .LC1[rip]
	and	r13d, 1
	call	UART_CHECK@PLT
	mov	rdi, QWORD PTR uart_spinlock[rip]
	add	rdi, r12
	call	UART_ENTER_CRITICAL@PLT
	mov	rax, QWORD PTR UART[rip]
	and	ebx, DWORD PTR UART_TXFIFO_EMPTY_THRHD_V[rip]
	mov	rdi, QWORD PTR uart_spinlock[rip]
	mov	rax, QWORD PTR [rax+rbp*8]
	add	rdi, r12
	mov	DWORD PTR 4[rax], ebx
	mov	DWORD PTR [rax], r13d
	mov	DWORD PTR 8[rax], 1
	call	UART_EXIT_CRITICAL@PLT
	mov	eax, DWORD PTR ESP_OK[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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_enable_tx_intr, .-uart_enable_tx_intr
	.comm	uart_spinlock,8,8
	.comm	UART_TXFIFO_EMPTY_THRHD_V,4,4
	.comm	UART_NUM_MAX,8,8
	.comm	UART_FIFO_LEN,4,4
	.comm	UART,8,8
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,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.c_uart_enable_tx_intr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"uart_num error\000"
	.align	2
.LC1:
	.ascii	"empty intr threshold error\000"
	.text
	.align	2
	.global	uart_enable_tx_intr
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_enable_tx_intr, %function
uart_enable_tx_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r6, r2
	ldr	r3, .L4
	ldr	r8, .L4+4
	ldr	r0, [r3]
	ldr	r2, [r8]
	cmp	r0, r4
	movls	r0, #0
	movhi	r0, #1
	mov	r5, r1
	ldr	r1, .L4+8
	bl	UART_CHECK
	ldr	r3, .L4+12
	ldr	r7, .L4+16
	ldr	r0, [r3]
	ldr	r2, [r8]
	cmp	r0, r6
	movle	r0, #0
	movgt	r0, #1
	ldr	r1, .L4+20
	bl	UART_CHECK
	ldr	r0, [r7]
	lsl	r8, r4, #2
	add	r0, r0, r4, lsl #2
	bl	UART_ENTER_CRITICAL
	mov	r1, #1
	ldr	r3, .L4+24
	ldr	r2, .L4+28
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r0, [r7]
	and	r5, r5, r1
	and	r6, r6, r2
	stm	r3, {r5, r6}
	str	r1, [r3, #8]
	add	r0, r0, r8
	bl	UART_EXIT_CRITICAL
	ldr	r3, .L4+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	UART_NUM_MAX
	.word	ESP_FAIL
	.word	.LC0
	.word	UART_FIFO_LEN
	.word	uart_spinlock
	.word	.LC1
	.word	UART
	.word	UART_TXFIFO_EMPTY_THRHD_V
	.word	ESP_OK
	.size	uart_enable_tx_intr, .-uart_enable_tx_intr
	.comm	uart_spinlock,4,4
	.comm	UART_TXFIFO_EMPTY_THRHD_V,4,4
	.comm	UART_NUM_MAX,4,4
	.comm	UART_FIFO_LEN,4,4
	.comm	UART,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
