	.file	"extr_cmt_speech.c_cs_cmd_destructor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"control cmd destructor\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Cmd flushed while driver active\n"
	.text
	.p2align 4
	.type	cs_cmd_destructor, @function
cs_cmd_destructor:
.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
	mov	rbx, QWORD PTR 8[rdi]
	lea	r12, 12[rbx]
	mov	rdi, r12
	call	spin_lock@PLT
	mov	rdi, QWORD PTR cs_char_data[rip]
	lea	rsi, .LC0[rip]
	call	dev_dbg@PLT
	mov	rax, QWORD PTR CS_STATE_CLOSED[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L2
	mov	rdi, QWORD PTR 16[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
.L2:
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR HSI_MSG_READ[rip]
	je	.L10
	cmp	rax, QWORD PTR HSI_MSG_WRITE[rip]
	je	.L11
.L4:
	mov	rdi, rbp
	call	cs_release_cmd@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR SSI_CHANNEL_STATE_WRITING[rip]
	test	edx, eax
	je	.L4
	not	eax
	and	eax, edx
	mov	DWORD PTR 8[rbx], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR SSI_CHANNEL_STATE_POLL[rip]
	or	eax, DWORD PTR SSI_CHANNEL_STATE_READING[rip]
	not	eax
	and	DWORD PTR 8[rbx], eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	cs_cmd_destructor, .-cs_cmd_destructor
	.comm	cs_char_data,8,8
	.comm	SSI_CHANNEL_STATE_WRITING,4,4
	.comm	SSI_CHANNEL_STATE_READING,4,4
	.comm	SSI_CHANNEL_STATE_POLL,4,4
	.comm	HSI_MSG_WRITE,8,8
	.comm	HSI_MSG_READ,8,8
	.comm	CS_STATE_CLOSED,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_cmt_speech.c_cs_cmd_destructor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"control cmd destructor\012\000"
	.align	2
.LC1:
	.ascii	"Cmd flushed while driver active\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cs_cmd_destructor, %function
cs_cmd_destructor:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0, #4]
	mov	r4, r0
	add	r5, r6, #8
	mov	r0, r5
	bl	spin_lock
	ldr	r3, .L12
	ldr	r1, .L12+4
	ldr	r0, [r3]
	bl	dev_dbg
	ldr	r3, .L12+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r1, .L12+12
	ldr	r0, [r6, #12]
	bl	dev_err
.L2:
	ldr	r2, .L12+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L12+20
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
.L4:
	mov	r0, r4
	bl	cs_release_cmd
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	spin_unlock
.L11:
	ldr	r2, .L12+24
	ldr	r3, [r6, #4]
	ldr	r2, [r2]
	tst	r3, r2
	bicne	r3, r3, r2
	strne	r3, [r6, #4]
	b	.L4
.L10:
	ldr	r3, .L12+28
	ldr	r2, .L12+32
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r6, #4]
	orr	r2, r2, r1
	bic	r3, r3, r2
	str	r3, [r6, #4]
	b	.L4
.L13:
	.align	2
.L12:
	.word	cs_char_data
	.word	.LC0
	.word	CS_STATE_CLOSED
	.word	.LC1
	.word	HSI_MSG_READ
	.word	HSI_MSG_WRITE
	.word	SSI_CHANNEL_STATE_WRITING
	.word	SSI_CHANNEL_STATE_READING
	.word	SSI_CHANNEL_STATE_POLL
	.size	cs_cmd_destructor, .-cs_cmd_destructor
	.comm	cs_char_data,4,4
	.comm	SSI_CHANNEL_STATE_WRITING,4,4
	.comm	SSI_CHANNEL_STATE_READING,4,4
	.comm	SSI_CHANNEL_STATE_POLL,4,4
	.comm	HSI_MSG_WRITE,4,4
	.comm	HSI_MSG_READ,4,4
	.comm	CS_STATE_CLOSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
