	.file	"extr_nozomi.c_ntty_tiocmset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ntty_tiocmset, @function
ntty_tiocmset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	get_dc_by_tty@PLT
	xor	esi, esi
	mov	rdi, rax
	mov	r12, rax
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR TIOCM_RTS[rip]
	test	eax, ebx
	jne	.L14
	test	eax, r13d
	jne	.L15
.L3:
	mov	eax, DWORD PTR TIOCM_DTR[rip]
	test	eax, ebx
	jne	.L16
.L4:
	test	eax, r13d
	jne	.L17
.L5:
	mov	rdi, r12
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	call	set_dtr@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	xor	esi, esi
	mov	rdi, rbp
	call	set_rts@PLT
	mov	eax, DWORD PTR TIOCM_DTR[rip]
	test	eax, ebx
	je	.L4
.L16:
	mov	esi, 1
	mov	rdi, rbp
	call	set_dtr@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, 1
	mov	rdi, rbp
	call	set_rts@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ntty_tiocmset, .-ntty_tiocmset
	.comm	TIOCM_RTS,4,4
	.comm	TIOCM_DTR,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_nozomi.c_ntty_tiocmset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ntty_tiocmset, %function
ntty_tiocmset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r2
	mov	r6, r0
	bl	get_dc_by_tty
	mov	r1, #0
	mov	r7, r0
	bl	spin_lock_irqsave
	ldr	r3, .L18
	ldr	r3, [r3]
	ands	r1, r3, r4
	bne	.L14
	tst	r3, r5
	bne	.L15
.L3:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ands	r1, r3, r4
	bne	.L16
.L4:
	tst	r3, r5
	bne	.L17
.L5:
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r0, r6
	bl	set_dtr
	b	.L5
.L15:
	mov	r0, r6
	bl	set_rts
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ands	r1, r3, r4
	beq	.L4
.L16:
	mov	r0, r6
	mov	r1, #1
	bl	set_dtr
	b	.L5
.L14:
	mov	r1, #1
	mov	r0, r6
	bl	set_rts
	b	.L3
.L19:
	.align	2
.L18:
	.word	TIOCM_RTS
	.word	TIOCM_DTR
	.size	ntty_tiocmset, .-ntty_tiocmset
	.comm	TIOCM_RTS,4,4
	.comm	TIOCM_DTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
