	.file	"extr_uart.c_uart_set_line_inverse.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"uart_num error"
.LC1:
	.string	"inverse_mask error"
	.text
	.p2align 4
	.globl	uart_set_line_inverse
	.type	uart_set_line_inverse, @function
uart_set_line_inverse:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	lea	rsi, .LC0[rip]
	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
	lea	rbx, 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	eax, DWORD PTR UART_LINE_INV_MASK[rip]
	xor	edi, edi
	mov	edx, DWORD PTR ESP_FAIL[rip]
	lea	rsi, .LC1[rip]
	not	eax
	test	eax, r12d
	sete	dil
	call	UART_CHECK@PLT
	mov	rdi, QWORD PTR uart_spinlock[rip]
	add	rdi, rbx
	call	UART_ENTER_CRITICAL@PLT
	mov	r13d, DWORD PTR UART_LINE_INV_MASK[rip]
	mov	rdi, rbp
	call	UART_CONF0_REG@PLT
	mov	edi, eax
	mov	esi, r13d
	call	CLEAR_PERI_REG_MASK@PLT
	mov	rdi, rbp
	call	UART_CONF0_REG@PLT
	mov	esi, r12d
	mov	edi, eax
	call	SET_PERI_REG_MASK@PLT
	add	rbx, QWORD PTR uart_spinlock[rip]
	mov	rdi, rbx
	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_set_line_inverse, .-uart_set_line_inverse
	.comm	uart_spinlock,8,8
	.comm	UART_NUM_MAX,8,8
	.comm	UART_LINE_INV_MASK,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
	.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_set_line_inverse.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"uart_num error\000"
	.align	2
.LC1:
	.ascii	"inverse_mask error\000"
	.text
	.align	2
	.global	uart_set_line_inverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	uart_set_line_inverse, %function
uart_set_line_inverse:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L4
	ldr	r8, .L4+4
	ldr	r0, [r3]
	ldr	r7, .L4+8
	cmp	r0, r4
	movls	r0, #0
	movhi	r0, #1
	ldr	r2, [r8]
	ldr	r1, .L4+12
	bl	UART_CHECK
	ldr	r3, [r7]
	ldr	r6, .L4+16
	bics	r3, r5, r3
	ldr	r2, [r8]
	moveq	r0, #1
	movne	r0, #0
	ldr	r1, .L4+20
	bl	UART_CHECK
	ldr	r0, [r6]
	lsl	r8, r4, #2
	add	r0, r0, r4, lsl #2
	bl	UART_ENTER_CRITICAL
	mov	r0, r4
	bl	UART_CONF0_REG
	ldr	r1, [r7]
	bl	CLEAR_PERI_REG_MASK
	mov	r0, r4
	bl	UART_CONF0_REG
	mov	r1, r5
	bl	SET_PERI_REG_MASK
	ldr	r0, [r6]
	add	r0, r0, r8
	bl	UART_EXIT_CRITICAL
	ldr	r3, .L4+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	UART_NUM_MAX
	.word	ESP_FAIL
	.word	UART_LINE_INV_MASK
	.word	.LC0
	.word	uart_spinlock
	.word	.LC1
	.word	ESP_OK
	.size	uart_set_line_inverse, .-uart_set_line_inverse
	.comm	uart_spinlock,4,4
	.comm	UART_NUM_MAX,4,4
	.comm	UART_LINE_INV_MASK,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
