	.file	"extr_pc300_tty.c_pc300_tiocmget.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s-tty: tiocmget\n"
	.text
	.p2align 4
	.type	pc300_tiocmget, @function
pc300_tiocmget:
.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
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	rbp, QWORD PTR 8[rdx]
	mov	esi, DWORD PTR [rax]
	mov	r13d, DWORD PTR [rdx]
	call	CPC_TTY_DBG@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	CPC_TTY_LOCK@PLT
	mov	edi, DWORD PTR CTL[rip]
	mov	rbx, QWORD PTR 0[rbp]
	mov	esi, r13d
	call	M_REG@PLT
	lea	rdi, [rbx+rax]
	call	cpc_readb@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	ebx, eax
	call	CPC_TTY_UNLOCK@PLT
	test	BYTE PTR CTL_DTR[rip], bl
	mov	eax, 0
	cmovne	eax, DWORD PTR TIOCM_DTR[rip]
	test	BYTE PTR CTL_RTS[rip], bl
	je	.L3
	or	eax, DWORD PTR TIOCM_RTS[rip]
.L3:
	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	pc300_tiocmget, .-pc300_tiocmget
	.comm	TIOCM_RTS,4,4
	.comm	TIOCM_DTR,4,4
	.comm	CTL_RTS,1,1
	.comm	CTL_DTR,1,1
	.comm	CTL,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_pc300_tty.c_pc300_tiocmget.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s-tty: tiocmget\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pc300_tiocmget, %function
pc300_tiocmget:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, #0
	ldr	r3, [r0]
	ldr	r0, .L10
	ldr	r2, [r3]
	ldm	r2, {r2, r3}
	ldr	r5, [r3, #4]
	ldr	r1, [r2]
	ldr	r4, [r3]
	bl	CPC_TTY_DBG
	mov	r1, r6
	mov	r0, r5
	bl	CPC_TTY_LOCK
	ldr	r3, .L10+4
	mov	r1, r4
	ldr	r0, [r3]
	ldr	r4, [r5]
	bl	M_REG
	add	r0, r4, r0
	bl	cpc_readb
	mov	r4, r0
	mov	r1, r6
	mov	r0, r5
	bl	CPC_TTY_UNLOCK
	ldr	r3, .L10+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	ands	r0, r4, r3
	ldrne	r3, .L10+12
	ldrne	r0, [r3]
	ldr	r3, .L10+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r4, r3
	ldrne	r3, .L10+20
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	CTL
	.word	CTL_DTR
	.word	TIOCM_DTR
	.word	CTL_RTS
	.word	TIOCM_RTS
	.size	pc300_tiocmget, .-pc300_tiocmget
	.comm	TIOCM_RTS,4,4
	.comm	TIOCM_DTR,4,4
	.comm	CTL_RTS,1,1
	.comm	CTL_DTR,1,1
	.comm	CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
