	.file	"extr_main.c_spkup_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" "
	.text
	.p2align 4
	.type	spkup_write, @function
spkup_write:
.LFB0:
	.cfi_startproc
	endbr64
	mov	QWORD PTR spk_keydown[rip], 0
	test	esi, esi
	je	.L2
	lea	eax, -1[rsi]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	lea	rbp, 4[rdi+rax*4]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR last_type.1960[rip]
	test	DWORD PTR CH_RPT[rip], eax
	je	.L9
	cmp	DWORD PTR rep_count.1956[rip], 2
	jg	.L46
.L9:
	mov	DWORD PTR rep_count.1956[rip], 0
	cmp	DWORD PTR spk_lastkey[rip], edi
	je	.L47
.L10:
	mov	eax, DWORD PTR char_type.1959[rip]
	test	DWORD PTR B_ALPHA[rip], eax
	je	.L14
	mov	eax, DWORD PTR synth_flags[rip]
	test	DWORD PTR SF_DEC[rip], eax
	je	.L42
	mov	eax, DWORD PTR last_type.1960[rip]
	test	DWORD PTR PUNC[rip], eax
	jne	.L48
.L42:
	call	synth_putwc_s@PLT
	mov	edi, DWORD PTR ch.1957[rip]
	mov	eax, DWORD PTR char_type.1959[rip]
.L12:
	mov	DWORD PTR old_ch.1958[rip], edi
	mov	DWORD PTR last_type.1960[rip], eax
.L7:
	cmp	rbp, rbx
	je	.L49
.L21:
	mov	rax, QWORD PTR read_all_mode[rip]
	cmp	QWORD PTR cursor_track[rip], rax
	je	.L50
.L3:
	mov	edi, DWORD PTR [rbx]
	add	rbx, 4
	mov	eax, DWORD PTR ALPHA[rip]
	mov	DWORD PTR ch.1957[rip], edi
	cmp	edi, 255
	jg	.L5
	mov	rdx, QWORD PTR spk_chartab[rip]
	movsx	rax, edi
	mov	eax, DWORD PTR [rdx+rax*4]
.L5:
	cmp	edi, DWORD PTR old_ch.1958[rip]
	mov	DWORD PTR char_type.1959[rip], eax
	jne	.L6
	test	DWORD PTR B_NUM[rip], eax
	jne	.L6
	mov	eax, DWORD PTR rep_count.1956[rip]
	add	eax, 1
	mov	DWORD PTR rep_count.1956[rip], eax
	cmp	eax, 2
	jg	.L7
	cmp	DWORD PTR spk_lastkey[rip], edi
	jne	.L10
	.p2align 4,,10
	.p2align 3
.L47:
	cmp	DWORD PTR spk_key_echo[rip], 1
	mov	DWORD PTR rep_count.1956[rip], 0
	je	.L11
.L43:
	mov	eax, DWORD PTR char_type.1959[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L50:
	mov	rax, QWORD PTR bn[rip]
	mov	rdx, QWORD PTR sentmarks[rip]
	mov	rdi, QWORD PTR currsentence[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	cmp	QWORD PTR [rdx+rdi*8], rbx
	jne	.L3
	mov	rdx, QWORD PTR numsentences[rip]
	cmp	rdi, QWORD PTR [rdx+rax*8]
	ja	.L3
	lea	rax, 1[rdi]
	mov	QWORD PTR currsentence[rip], rax
	call	synth_insert_next_index@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	test	DWORD PTR B_NUM[rip], eax
	jne	.L51
	test	DWORD PTR spk_punc_mask[rip], eax
	jne	.L52
	mov	edx, DWORD PTR old_ch.1958[rip]
	test	DWORD PTR SYNTH_OK[rip], eax
	je	.L18
	cmp	edi, edx
	jne	.L42
.L20:
	mov	DWORD PTR rep_count.1956[rip], 0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rdi, r13
	xor	eax, eax
	call	synth_printf@PLT
	mov	eax, DWORD PTR rep_count.1956[rip]
	mov	edi, DWORD PTR MSG_REPEAT_DESC[rip]
	lea	r14d, 1[rax]
	mov	DWORD PTR rep_count.1956[rip], r14d
	call	spk_msg_get@PLT
	mov	esi, r14d
	movsx	rdi, eax
	xor	eax, eax
	call	synth_printf@PLT
	mov	rdi, r13
	xor	eax, eax
	call	synth_printf@PLT
	mov	edi, DWORD PTR ch.1957[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L49:
	mov	DWORD PTR spk_lastkey[rip], 0
	cmp	r12d, 2
	jle	.L1
	cmp	DWORD PTR rep_count.1956[rip], 2
	jle	.L1
	mov	eax, DWORD PTR last_type.1960[rip]
	test	DWORD PTR CH_RPT[rip], eax
	jne	.L53
.L23:
	mov	DWORD PTR rep_count.1956[rip], 0
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cmp	DWORD PTR MINECHOCHAR[rip], edi
	jg	.L43
	call	speak_char@PLT
	mov	edi, DWORD PTR ch.1957[rip]
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L51:
	mov	DWORD PTR rep_count.1956[rip], 0
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	edi, edx
	je	.L20
	mov	edi, DWORD PTR SPACE[rip]
	call	synth_buffer_add@PLT
	mov	edi, DWORD PTR ch.1957[rip]
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L52:
	call	speak_char@PLT
	mov	eax, DWORD PTR PUNC[rip]
	mov	edi, DWORD PTR ch.1957[rip]
	not	eax
	and	eax, DWORD PTR char_type.1959[rip]
	mov	DWORD PTR char_type.1959[rip], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L48:
	mov	edi, DWORD PTR SPACE[rip]
	call	synth_buffer_add@PLT
	mov	edi, DWORD PTR ch.1957[rip]
	jmp	.L42
.L53:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	synth_printf@PLT
	mov	eax, DWORD PTR rep_count.1956[rip]
	mov	edi, DWORD PTR MSG_REPEAT_DESC2[rip]
	lea	ebp, 1[rax]
	mov	DWORD PTR rep_count.1956[rip], ebp
	call	spk_msg_get@PLT
	mov	esi, ebp
	movsx	rdi, eax
	xor	eax, eax
	call	synth_printf@PLT
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	synth_printf@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	DWORD PTR spk_lastkey[rip], 0
	ret
	.cfi_endproc
.LFE0:
	.size	spkup_write, .-spkup_write
	.local	last_type.1960
	.comm	last_type.1960,4,4
	.local	rep_count.1956
	.comm	rep_count.1956,4,4
	.local	old_ch.1958
	.comm	old_ch.1958,4,4
	.local	char_type.1959
	.comm	char_type.1959,4,4
	.local	ch.1957
	.comm	ch.1957,4,4
	.comm	synth_flags,4,4
	.comm	spk_punc_mask,4,4
	.comm	spk_lastkey,4,4
	.comm	spk_keydown,8,8
	.comm	spk_key_echo,4,4
	.comm	spk_chartab,8,8
	.comm	sentmarks,8,8
	.comm	read_all_mode,8,8
	.comm	numsentences,8,8
	.comm	cursor_track,8,8
	.comm	currsentence,8,8
	.comm	bn,8,8
	.comm	SYNTH_OK,4,4
	.comm	SPACE,4,4
	.comm	SF_DEC,4,4
	.comm	PUNC,4,4
	.comm	MSG_REPEAT_DESC2,4,4
	.comm	MSG_REPEAT_DESC,4,4
	.comm	MINECHOCHAR,4,4
	.comm	CH_RPT,4,4
	.comm	B_NUM,4,4
	.comm	B_ALPHA,4,4
	.comm	ALPHA,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_main.c_spkup_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spkup_write, %function
spkup_write:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L51
	sub	sp, sp, #12
	cmp	r1, r2
	str	r1, [sp, #4]
	str	r2, [r3]
	beq	.L2
	mov	r6, r0
	ldr	r9, .L51+4
	ldr	fp, .L51+8
	ldr	r4, .L51+12
	ldr	r7, .L51+16
	ldr	r10, .L51+20
	ldr	r8, .L51+24
	sub	r5, r1, #1
	b	.L21
.L6:
	ldr	r3, .L51+28
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L9
	ldr	r3, [r4, #12]
	cmp	r3, #2
	bgt	.L43
.L9:
	mov	r3, #0
	str	r3, [r4, #12]
	ldr	r3, [r7]
	cmp	r3, r0
	beq	.L44
.L10:
	ldr	r2, .L51+32
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ands	r2, r3, r2
	beq	.L14
	ldr	r2, .L51+36
	ldr	r3, .L51+40
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L39
	ldr	r3, .L51+44
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L45
.L39:
	bl	synth_putwc_s
	ldm	r4, {r0, r3}
.L12:
	str	r0, [r4, #8]
	str	r3, [r4, #16]
.L7:
	subs	r5, r5, #1
	bcc	.L46
.L21:
	ldr	r2, [r9]
	ldr	r3, [fp]
	cmp	r2, r3
	beq	.L47
.L3:
	ldr	r0, [r6], #4
	ldr	r2, [r4, #8]
	cmp	r0, #255
	ldrle	r3, [r8]
	ldrgt	r3, .L51+48
	ldrle	r3, [r3, r0, lsl #2]
	ldrgt	r3, [r3]
	cmp	r0, r2
	str	r0, [r4]
	str	r3, [r4, #4]
	bne	.L6
	ldr	r2, .L51+52
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L6
	ldr	r3, [r4, #12]
	add	r3, r3, #1
	cmp	r3, #2
	str	r3, [r4, #12]
	bgt	.L7
	ldr	r3, [r7]
	cmp	r3, r0
	bne	.L10
.L44:
	mov	r2, #0
	ldr	r3, .L51+56
	str	r2, [r4, #12]
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L11
.L40:
	ldr	r3, [r4, #4]
	b	.L12
.L47:
	ldr	r3, .L51+60
	ldr	r2, [r10]
	ldr	r3, [r3]
	ldr	r1, .L51+64
	ldr	r2, [r2, r3, lsl #2]
	ldr	r0, [r1]
	ldr	r2, [r2, r0, lsl #2]
	cmp	r2, r6
	bne	.L3
	ldr	r2, .L51+68
	ldr	r2, [r2]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r0, r3
	bhi	.L3
	add	r3, r0, #1
	str	r3, [r1]
	bl	synth_insert_next_index
	b	.L3
.L14:
	ldr	r1, .L51+52
	ldr	r1, [r1]
	tst	r3, r1
	bne	.L48
	ldr	r2, .L51+72
	ldr	r2, [r2]
	ands	r2, r3, r2
	bne	.L49
	ldr	r1, .L51+76
	ldr	ip, [r4, #8]
	ldr	r1, [r1]
	ands	r1, r3, r1
	beq	.L18
	cmp	r0, ip
	streq	r2, [r4, #12]
	beq	.L12
	b	.L39
.L43:
	ldr	r0, .L51+80
	bl	synth_printf
	ldr	r3, .L51+84
	ldr	r0, [r3]
	bl	spk_msg_get
	ldr	r1, [r4, #12]
	add	r1, r1, #1
	str	r1, [r4, #12]
	bl	synth_printf
	ldr	r0, .L51+80
	bl	synth_printf
	ldr	r0, [r4]
	b	.L9
.L46:
	mov	r3, #0
	ldr	r2, [sp, #4]
	str	r3, [r7]
	cmp	r2, #2
	ble	.L1
	ldr	r3, [r4, #12]
	cmp	r3, #2
	ble	.L1
	ldr	r3, .L51+28
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L50
.L23:
	mov	r3, #0
	str	r3, [r4, #12]
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, .L51+88
	ldr	r3, [r3]
	cmp	r3, r0
	bgt	.L40
	bl	speak_char
	ldr	r0, [r4]
	b	.L40
.L48:
	str	r2, [r4, #12]
	b	.L39
.L18:
	cmp	r0, ip
	streq	r1, [r4, #12]
	beq	.L12
	ldr	r3, .L51+92
	ldr	r0, [r3]
	bl	synth_buffer_add
	ldr	r0, [r4]
	b	.L40
.L49:
	bl	speak_char
	ldr	r2, .L51+44
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r0, [r4]
	bic	r3, r3, r2
	str	r3, [r4, #4]
	b	.L12
.L45:
	ldr	r3, .L51+92
	ldr	r0, [r3]
	bl	synth_buffer_add
	ldr	r0, [r4]
	b	.L39
.L50:
	ldr	r0, .L51+80
	bl	synth_printf
	ldr	r3, .L51+96
	ldr	r0, [r3]
	bl	spk_msg_get
	ldr	r1, [r4, #12]
	add	r1, r1, #1
	str	r1, [r4, #12]
	bl	synth_printf
	ldr	r0, .L51+80
	bl	synth_printf
	b	.L23
.L2:
	ldr	r3, .L51+16
	ldr	r2, [sp, #4]
	str	r2, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L52:
	.align	2
.L51:
	.word	spk_keydown
	.word	cursor_track
	.word	read_all_mode
	.word	.LANCHOR0
	.word	spk_lastkey
	.word	sentmarks
	.word	spk_chartab
	.word	CH_RPT
	.word	B_ALPHA
	.word	synth_flags
	.word	SF_DEC
	.word	PUNC
	.word	ALPHA
	.word	B_NUM
	.word	spk_key_echo
	.word	bn
	.word	currsentence
	.word	numsentences
	.word	spk_punc_mask
	.word	SYNTH_OK
	.word	.LC0
	.word	MSG_REPEAT_DESC
	.word	MINECHOCHAR
	.word	SPACE
	.word	MSG_REPEAT_DESC2
	.size	spkup_write, .-spkup_write
	.comm	synth_flags,4,4
	.comm	spk_punc_mask,4,4
	.comm	spk_lastkey,4,4
	.comm	spk_keydown,4,4
	.comm	spk_key_echo,4,4
	.comm	spk_chartab,4,4
	.comm	sentmarks,4,4
	.comm	read_all_mode,4,4
	.comm	numsentences,4,4
	.comm	cursor_track,4,4
	.comm	currsentence,4,4
	.comm	bn,4,4
	.comm	SYNTH_OK,4,4
	.comm	SPACE,4,4
	.comm	SF_DEC,4,4
	.comm	PUNC,4,4
	.comm	MSG_REPEAT_DESC2,4,4
	.comm	MSG_REPEAT_DESC,4,4
	.comm	MINECHOCHAR,4,4
	.comm	CH_RPT,4,4
	.comm	B_NUM,4,4
	.comm	B_ALPHA,4,4
	.comm	ALPHA,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	ch.4241, %object
	.size	ch.4241, 4
ch.4241:
	.space	4
	.type	char_type.4243, %object
	.size	char_type.4243, 4
char_type.4243:
	.space	4
	.type	old_ch.4242, %object
	.size	old_ch.4242, 4
old_ch.4242:
	.space	4
	.type	rep_count.4240, %object
	.size	rep_count.4240, 4
rep_count.4240:
	.space	4
	.type	last_type.4244, %object
	.size	last_type.4244, 4
last_type.4244:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
