	.file	"extr_morse.c_ttyout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ttyout, @function
ttyout:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR [rdi]
	lea	r12, 4[rsp]
	test	al, al
	jne	.L2
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	cmp	al, 32
	je	.L21
.L6:
	mov	esi, DWORD PTR TIOCMGET[rip]
	mov	edi, DWORD PTR line[rip]
	mov	rdx, r12
	add	rbp, 1
	call	ioctl@PLT
	mov	eax, DWORD PTR TIOCM_RTS[rip]
	mov	esi, DWORD PTR TIOCMSET[rip]
	mov	rdx, r12
	mov	edi, DWORD PTR line[rip]
	not	eax
	and	DWORD PTR 4[rsp], eax
	call	ioctl@PLT
	imul	edi, DWORD PTR dot_clock[rip], 10000
	call	usleep@PLT
	movzx	eax, BYTE PTR 0[rbp]
	test	al, al
	je	.L9
.L2:
	cmp	al, 45
	je	.L3
	cmp	al, 46
	jne	.L22
	mov	ebx, DWORD PTR dot_clock[rip]
.L7:
	mov	esi, DWORD PTR TIOCMGET[rip]
	mov	edi, DWORD PTR line[rip]
	mov	rdx, r12
	call	ioctl@PLT
	mov	edi, DWORD PTR line[rip]
	mov	rdx, r12
	mov	esi, DWORD PTR TIOCMSET[rip]
	mov	eax, DWORD PTR TIOCM_RTS[rip]
	or	DWORD PTR 4[rsp], eax
	call	ioctl@PLT
	imul	edi, ebx, 10000
.L8:
	test	edi, edi
	je	.L6
	call	usleep@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR dot_clock[rip]
	mov	ebx, DWORD PTR DASH_LEN[rip]
	imul	ebx, edi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR cdot_clock[rip]
	imul	edi, DWORD PTR WORD_SPACE[rip]
	imul	edi, edi, 10000
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR cdot_clock[rip]
	imul	edi, DWORD PTR CHAR_SPACE[rip]
	imul	edi, edi, 10000
	call	usleep@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ttyout, .-ttyout
	.comm	line,4,4
	.comm	dot_clock,4,4
	.comm	cdot_clock,4,4
	.comm	WORD_SPACE,4,4
	.comm	TIOCM_RTS,4,4
	.comm	TIOCMSET,4,4
	.comm	TIOCMGET,4,4
	.comm	DASH_LEN,4,4
	.comm	CHAR_SPACE,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_morse.c_ttyout.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ttyout, %function
ttyout:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldrb	r3, [r0]	@ zero_extendqisi2
	ldr	r2, .L22
	sub	sp, sp, #12
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldreq	r10, .L22+4
	beq	.L9
	mov	r5, r0
	ldr	r10, .L22+4
	ldr	r9, .L22+8
	ldr	r8, .L22+12
	ldr	r4, .L22+16
	ldr	r7, .L22+20
	ldr	r6, .L22+24
	b	.L2
.L20:
	cmp	r3, #32
	beq	.L19
.L6:
	mov	r2, sp
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	ioctl
	ldr	r1, [r7]
	ldr	r3, [sp]
	mov	r2, sp
	bic	r3, r3, r1
	ldr	r0, [r4]
	ldr	r1, [r6]
	str	r3, [sp]
	bl	ioctl
	ldr	r0, [r9]
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	add	r0, r0, r0, lsl #2
	lsl	r0, r0, #4
	bl	usleep
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
.L2:
	cmp	r3, #45
	beq	.L3
	cmp	r3, #46
	bne	.L20
	ldr	fp, [r9]
.L7:
	mov	r2, sp
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	ioctl
	ldr	r3, [sp]
	ldr	r1, [r7]
	mov	r2, sp
	orr	r3, r3, r1
	ldr	r0, [r4]
	ldr	r1, [r6]
	str	r3, [sp]
	bl	ioctl
	rsb	r0, fp, fp, lsl #5
	add	fp, fp, r0, lsl #2
	add	fp, fp, fp, lsl #2
	lsl	r0, fp, #4
.L8:
	cmp	r0, #0
	beq	.L6
	bl	usleep
	b	.L6
.L3:
	ldr	r3, .L22+28
	ldr	fp, [r9]
	ldr	r3, [r3]
	mul	fp, r3, fp
	b	.L7
.L19:
	ldr	r3, .L22+32
	ldr	r0, [r10]
	ldr	r3, [r3]
	mul	r0, r3, r0
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	add	r0, r0, r0, lsl #2
	lsl	r0, r0, #4
	b	.L8
.L9:
	ldr	r3, .L22+36
	ldr	r0, [r10]
	ldr	r3, [r3]
	mul	r0, r3, r0
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	add	r0, r0, r0, lsl #2
	lsl	r0, r0, #4
	bl	usleep
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	cdot_clock
	.word	dot_clock
	.word	TIOCMGET
	.word	line
	.word	TIOCM_RTS
	.word	TIOCMSET
	.word	DASH_LEN
	.word	WORD_SPACE
	.word	CHAR_SPACE
	.size	ttyout, .-ttyout
	.comm	line,4,4
	.comm	dot_clock,4,4
	.comm	cdot_clock,4,4
	.comm	WORD_SPACE,4,4
	.comm	TIOCM_RTS,4,4
	.comm	TIOCMSET,4,4
	.comm	TIOCMGET,4,4
	.comm	DASH_LEN,4,4
	.comm	CHAR_SPACE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
