	.file	"extr_main.c_speakup_con_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	speakup_con_write, @function
speakup_con_write:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR fg_console[rip]
	cmp	QWORD PTR [rdi], rax
	jne	.L17
	cmp	QWORD PTR spk_shut_up[rip], 0
	jne	.L17
	mov	eax, DWORD PTR synth[rip]
	test	eax, eax
	jne	.L22
.L17:
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	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
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	lea	rdi, speakup_info[rip]
	call	spin_trylock_irqsave@PLT
	test	eax, eax
	je	.L1
	mov	eax, DWORD PTR spk_bell_pos[rip]
	test	eax, eax
	je	.L5
	cmp	QWORD PTR spk_keydown[rip], 0
	jne	.L23
.L5:
	cmp	QWORD PTR is_cursor[rip], 0
	mov	rax, QWORD PTR cursor_track[rip]
	jne	.L6
	cmp	QWORD PTR read_all_mode[rip], rax
	je	.L6
	cmp	QWORD PTR win_enabled[rip], 0
	je	.L9
	movsx	rax, DWORD PTR 8[rbp]
	cmp	rax, QWORD PTR win_left[rip]
	jl	.L9
	cmp	rax, QWORD PTR win_right[rip]
	jg	.L9
	mov	rax, QWORD PTR 16[rbp]
	cmp	rax, QWORD PTR win_top[rip]
	jl	.L9
	cmp	rax, QWORD PTR win_bottom[rip]
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, r13d
	mov	rdi, r12
	call	spkup_write@PLT
.L20:
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	xor	esi, esi
	lea	rdi, speakup_info[rip]
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbp
	.cfi_remember_state
	.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
.L6:
	.cfi_restore_state
	cmp	QWORD PTR CT_Highlight[rip], rax
	jne	.L20
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, rbp
	call	update_color_buffer@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L23:
	sub	eax, 1
	cmp	DWORD PTR 8[rbp], eax
	jne	.L5
	mov	edi, 3
	call	bleep@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	speakup_con_write, .-speakup_con_write
	.comm	win_top,8,8
	.comm	win_right,8,8
	.comm	win_left,8,8
	.comm	win_enabled,8,8
	.comm	win_bottom,8,8
	.comm	synth,4,4
	.comm	spk_shut_up,8,8
	.comm	spk_keydown,8,8
	.comm	spk_bell_pos,4,4
	.comm	speakup_info,4,4
	.comm	read_all_mode,8,8
	.comm	is_cursor,8,8
	.comm	fg_console,8,8
	.comm	cursor_track,8,8
	.comm	CT_Highlight,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_speakup_con_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	speakup_con_write, %function
speakup_con_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L32
	ldr	ip, [r0]
	ldr	r3, [r3]
	cmp	ip, r3
	bxne	lr
	ldr	r3, .L32+4
	ldr	r3, [r3]
	cmp	r3, #0
	bxne	lr
	ldr	r3, .L32+8
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r6, r1
	ldr	r0, .L32+12
	mov	r1, #0
	mov	r5, r2
	bl	spin_trylock_irqsave
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L32+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r2, .L32+20
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L31
.L5:
	ldr	r2, .L32+24
	ldr	r3, .L32+28
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, #0
	bne	.L6
	ldr	r2, .L32+32
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L6
	ldr	r3, .L32+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r2, .L32+40
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	blt	.L9
	ldr	r2, .L32+44
	ldr	r2, [r2]
	cmp	r3, r2
	bgt	.L9
	ldr	r2, .L32+48
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	cmp	r3, r2
	blt	.L9
	ldr	r2, .L32+52
	ldr	r2, [r2]
	cmp	r3, r2
	ble	.L29
.L9:
	mov	r1, r5
	mov	r0, r6
	bl	spkup_write
.L29:
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	ldr	r0, .L32+12
	b	spin_unlock_irqrestore
.L6:
	ldr	r2, .L32+56
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L29
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	update_color_buffer
	b	.L29
.L31:
	ldr	r2, [r4, #4]
	sub	r3, r3, #1
	cmp	r2, r3
	bne	.L5
	mov	r0, #3
	bl	bleep
	b	.L5
.L33:
	.align	2
.L32:
	.word	fg_console
	.word	spk_shut_up
	.word	synth
	.word	speakup_info
	.word	spk_bell_pos
	.word	spk_keydown
	.word	is_cursor
	.word	cursor_track
	.word	read_all_mode
	.word	win_enabled
	.word	win_left
	.word	win_right
	.word	win_top
	.word	win_bottom
	.word	CT_Highlight
	.size	speakup_con_write, .-speakup_con_write
	.comm	win_top,4,4
	.comm	win_right,4,4
	.comm	win_left,4,4
	.comm	win_enabled,4,4
	.comm	win_bottom,4,4
	.comm	synth,4,4
	.comm	spk_shut_up,4,4
	.comm	spk_keydown,4,4
	.comm	spk_bell_pos,4,4
	.comm	speakup_info,4,4
	.comm	read_all_mode,4,4
	.comm	is_cursor,4,4
	.comm	fg_console,4,4
	.comm	cursor_track,4,4
	.comm	CT_Highlight,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
