	.file	"extr_thread.c_speakup_thread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	speakup_thread
	.type	speakup_thread, @function
speakup_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rdi, spk_mutex[rip]
	lea	r14, spk_unprocessed_sound[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	rbx, speakup_info[rip]
	call	mutex_lock@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L31:
	test	rbp, rbp
	jne	.L30
	mov	rax, QWORD PTR synth[rip]
	test	rax, rax
	je	.L6
	cmp	QWORD PTR [rax], 0
	je	.L6
	cmp	QWORD PTR 8[rax], 0
	je	.L6
	cmp	QWORD PTR speakup_info[rip+8], 0
	je	.L7
.L9:
	xor	esi, esi
	mov	rdi, rbx
	call	spin_unlock_irqrestore@PLT
	lea	rsi, wait[rip]
	lea	rdi, speakup_event[rip]
	call	finish_wait@PLT
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	jne	.L4
.L5:
	mov	rdi, QWORD PTR synth[rip]
	test	rdi, rdi
	je	.L13
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L13
	cmp	QWORD PTR 8[rdi], 0
	je	.L13
	call	rax
.L13:
	xor	eax, eax
	call	speakup_start_ttys@PLT
.L14:
	mov	edi, DWORD PTR wait[rip]
	call	DEFINE_WAIT@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	xor	esi, esi
	mov	rdi, rbx
	call	spin_lock_irqsave@PLT
	mov	edx, DWORD PTR TASK_INTERRUPTIBLE[rip]
	mov	r12, QWORD PTR [r14]
	lea	rsi, wait[rip]
	lea	rdi, speakup_event[rip]
	mov	rbp, QWORD PTR spk_unprocessed_sound[rip+16]
	mov	r13, QWORD PTR spk_unprocessed_sound[rip+8]
	mov	QWORD PTR spk_unprocessed_sound[rip+16], 0
	call	prepare_to_wait@PLT
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	je	.L31
	xor	esi, esi
	mov	rdi, rbx
	call	spin_unlock_irqrestore@PLT
	lea	rsi, wait[rip]
	lea	rdi, speakup_event[rip]
	call	finish_wait@PLT
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	jne	.L4
	test	rbp, rbp
	je	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, r12
	mov	rdi, r13
	call	kd_mksound@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	xor	eax, eax
	call	synth_buffer_empty@PLT
	test	eax, eax
	je	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	xor	esi, esi
	mov	rdi, rbx
	call	spin_unlock_irqrestore@PLT
	lea	rdi, spk_mutex[rip]
	call	mutex_unlock@PLT
	xor	eax, eax
	call	schedule@PLT
	lea	rdi, spk_mutex[rip]
	call	mutex_lock@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L30:
	xor	esi, esi
	mov	rdi, rbx
	call	spin_unlock_irqrestore@PLT
	lea	rsi, wait[rip]
	lea	rdi, speakup_event[rip]
	call	finish_wait@PLT
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	je	.L12
.L4:
	lea	rdi, spk_mutex[rip]
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	speakup_thread, .-speakup_thread
	.comm	wait,4,4
	.comm	synth,8,8
	.comm	spk_unprocessed_sound,24,16
	.comm	spk_mutex,4,4
	.comm	speakup_info,16,16
	.comm	speakup_event,4,4
	.comm	TASK_INTERRUPTIBLE,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_thread.c_speakup_thread.c"
	.text
	.align	2
	.global	speakup_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	speakup_thread, %function
speakup_thread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r0, .L42
	bl	mutex_lock
	ldr	r8, .L42+4
	ldr	r5, .L42+8
	ldr	r4, .L42+12
	ldr	fp, .L42+16
	ldr	r6, .L42
	b	.L14
.L40:
	cmp	r7, #0
	bne	.L39
	ldr	r3, .L42+20
	ldr	r7, .L42+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L6
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L42+8
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L7
.L9:
	mov	r1, #0
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r1, r8
	mov	r0, fp
	bl	finish_wait
	bl	kthread_should_stop
	cmp	r0, #0
	bne	.L4
.L5:
	ldr	r0, [r7]
	cmp	r0, #0
	beq	.L13
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L13
	ldr	r2, [r0, #4]
	cmp	r2, #0
	beq	.L13
	blx	r3
.L13:
	bl	speakup_start_ttys
.L14:
	ldr	r3, .L42+4
	ldr	r0, [r3]
	bl	DEFINE_WAIT
.L11:
	mov	r1, #0
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r3, .L42+24
	mov	r1, r8
	ldr	r2, [r3]
	mov	r3, #0
	mov	r0, fp
	ldr	r7, [r4, #8]
	ldr	r10, [r4]
	str	r3, [r4, #8]
	ldr	r9, [r4, #4]
	bl	prepare_to_wait
	bl	kthread_should_stop
	cmp	r0, #0
	beq	.L40
	mov	r1, #0
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r1, r8
	mov	r0, fp
	bl	finish_wait
	bl	kthread_should_stop
	cmp	r0, #0
	bne	.L4
	cmp	r7, #0
	beq	.L41
.L12:
	mov	r1, r10
	mov	r0, r9
	bl	kd_mksound
	ldr	r7, .L42+20
	b	.L5
.L7:
	bl	synth_buffer_empty
	cmp	r0, #0
	beq	.L9
.L6:
	mov	r1, #0
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r0, r6
	bl	mutex_unlock
	bl	schedule
	mov	r0, r6
	bl	mutex_lock
	b	.L11
.L39:
	mov	r1, #0
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r1, r8
	mov	r0, fp
	bl	finish_wait
	bl	kthread_should_stop
	cmp	r0, #0
	beq	.L12
.L4:
	ldr	r0, .L42
	bl	mutex_unlock
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L41:
	ldr	r7, .L42+20
	b	.L5
.L43:
	.align	2
.L42:
	.word	spk_mutex
	.word	wait
	.word	speakup_info
	.word	spk_unprocessed_sound
	.word	speakup_event
	.word	synth
	.word	TASK_INTERRUPTIBLE
	.size	speakup_thread, .-speakup_thread
	.comm	wait,4,4
	.comm	synth,4,4
	.comm	spk_unprocessed_sound,12,4
	.comm	spk_mutex,4,4
	.comm	speakup_info,8,4
	.comm	speakup_event,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
