	.file	"extr_cs5345.c_cs5345_g_ctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cs5345_g_ctrl, @function
cs5345_g_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR [rsi]
	mov	rbx, rsi
	cmp	rax, QWORD PTR V4L2_CID_AUDIO_MUTE[rip]
	je	.L8
	cmp	rax, QWORD PTR V4L2_CID_AUDIO_VOLUME[rip]
	je	.L4
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, 7
	call	cs5345_read@PLT
	mov	edx, eax
	and	edx, 63
	and	eax, 32
	je	.L9
	sub	edx, 64
	xor	eax, eax
	mov	DWORD PTR 8[rbx], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	DWORD PTR 8[rbx], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, 4
	call	cs5345_read@PLT
	shr	eax, 3
	and	eax, 1
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cs5345_g_ctrl, .-cs5345_g_ctrl
	.comm	V4L2_CID_AUDIO_VOLUME,8,8
	.comm	V4L2_CID_AUDIO_MUTE,8,8
	.comm	EINVAL,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_cs5345.c_cs5345_g_ctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cs5345_g_ctrl, %function
cs5345_g_ctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L10
	ldr	r3, [r1]
	ldr	r2, [r2]
	push	{r4, lr}
	cmp	r3, r2
	mov	r4, r1
	beq	.L9
	ldr	r2, .L10+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L4
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L4:
	mov	r1, #7
	bl	cs5345_read
	mov	r3, r0
	ands	r0, r0, #32
	and	r3, r3, #63
	subne	r3, r3, #64
	movne	r0, #0
	str	r3, [r4, #4]
	pop	{r4, pc}
.L9:
	mov	r1, #4
	bl	cs5345_read
	lsr	r0, r0, #3
	and	r0, r0, #1
	str	r0, [r4, #4]
	mov	r0, #0
	pop	{r4, pc}
.L11:
	.align	2
.L10:
	.word	V4L2_CID_AUDIO_MUTE
	.word	V4L2_CID_AUDIO_VOLUME
	.word	EINVAL
	.size	cs5345_g_ctrl, .-cs5345_g_ctrl
	.comm	V4L2_CID_AUDIO_VOLUME,4,4
	.comm	V4L2_CID_AUDIO_MUTE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
