	.file	"extr_main.c_speak_highlight.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	speak_highlight, @function
speak_highlight:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movsx	rbp, DWORD PTR [rdi]
	call	count_highlight_color@PLT
	cmp	eax, 1
	je	.L4
	mov	rdi, rbx
	call	get_highlight_color@PLT
	cmp	eax, -1
	je	.L4
	mov	rcx, QWORD PTR speakup_console[rip]
	movsx	rdx, DWORD PTR 4[rbx]
	movsx	rbx, eax
	mov	rcx, QWORD PTR [rcx+rbp*8]
	mov	eax, edx
	sub	eax, DWORD PTR [rcx]
	add	eax, 1
	and	eax, -3
	jne	.L5
	mov	rax, QWORD PTR 8[rcx]
	cmp	QWORD PTR [rax+rbx*8], rdx
	je	.L5
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	eax, eax
	or	DWORD PTR spk_parked[rip], 1
	call	spk_do_flush@PLT
	mov	rax, QWORD PTR speakup_console[rip]
	mov	rax, QWORD PTR [rax+rbp*8]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR 40[rax]
	mov	esi, DWORD PTR [rdx+rbx*4]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	spkup_write@PLT
	mov	rax, QWORD PTR speakup_console[rip]
	mov	rax, QWORD PTR [rax+rbp*8]
	mov	rdx, QWORD PTR 24[rax]
	mov	edx, DWORD PTR [rdx+rbx*4]
	mov	DWORD PTR spk_cp[rip], edx
	mov	DWORD PTR spk_pos[rip], edx
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rdx+rbx*4]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	DWORD PTR spk_cx[rip], edx
	mov	QWORD PTR spk_cy[rip], rax
	mov	QWORD PTR spk_y[rip], rax
	mov	eax, 1
	mov	DWORD PTR spk_x[rip], edx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	speak_highlight, .-speak_highlight
	.comm	spk_y,8,8
	.comm	spk_x,4,4
	.comm	spk_pos,4,4
	.comm	spk_parked,4,4
	.comm	spk_cy,8,8
	.comm	spk_cx,4,4
	.comm	spk_cp,4,4
	.comm	speakup_console,8,8
	.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_speak_highlight.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	speak_highlight, %function
speak_highlight:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r6, [r0]
	bl	count_highlight_color
	cmp	r0, #1
	beq	.L4
	mov	r0, r4
	bl	get_highlight_color
	cmn	r0, #1
	mov	r5, r0
	beq	.L4
	ldr	r7, .L11
	ldr	r2, [r4, #4]
	ldr	r3, [r7]
	ldr	r1, [r3, r6, lsl #2]
	ldr	r3, [r1]
	sub	r3, r2, r3
	add	r3, r3, #1
	bics	r3, r3, #2
	bne	.L5
	ldr	r3, [r1, #4]
	ldr	r3, [r3, r0, lsl #2]
	cmp	r2, r3
	beq	.L5
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r2, .L11+4
	ldr	r3, [r2]
	orr	r3, r3, #1
	str	r3, [r2]
	bl	spk_do_flush
	ldr	r3, [r7]
	ldr	r3, [r3, r6, lsl #2]
	ldr	r2, [r3, #16]
	ldr	r3, [r3, #20]
	ldr	r1, [r2, r5, lsl #2]
	ldr	r0, [r3, r5, lsl #2]
	bl	spkup_write
	ldr	r3, [r7]
	ldr	lr, .L11+8
	ldr	r3, [r3, r6, lsl #2]
	ldr	ip, .L11+12
	ldr	r2, [r3, #12]
	ldr	r1, [r3, #8]
	ldr	r2, [r2, r5, lsl #2]
	ldr	r3, [r3, #4]
	str	r2, [lr]
	str	r2, [ip]
	ldr	r2, [r1, r5, lsl #2]
	ldr	r1, .L11+16
	ldr	r3, [r3, r5, lsl #2]
	ldr	lr, .L11+20
	str	r2, [r1]
	ldr	ip, .L11+24
	ldr	r1, .L11+28
	mov	r0, #1
	str	r2, [lr]
	str	r3, [ip]
	str	r3, [r1]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	speakup_console
	.word	spk_parked
	.word	spk_cp
	.word	spk_pos
	.word	spk_cx
	.word	spk_x
	.word	spk_cy
	.word	spk_y
	.size	speak_highlight, .-speak_highlight
	.comm	spk_y,4,4
	.comm	spk_x,4,4
	.comm	spk_pos,4,4
	.comm	spk_parked,4,4
	.comm	spk_cy,4,4
	.comm	spk_cx,4,4
	.comm	spk_cp,4,4
	.comm	speakup_console,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
