	.file	"extr_ews.c_snd_ice1712_ews88mt_input_sense_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ice1712_ews88mt_input_sense_get, @function
snd_ice1712_ews88mt_input_sense_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	snd_kcontrol_chip@PLT
	mov	rdi, rbp
	lea	rsi, 8[r12]
	mov	r14, QWORD PTR 8[rax]
	mov	rbx, rax
	call	snd_ctl_get_ioffidx@PLT
	xor	edi, edi
	cmp	eax, 7
	mov	ebp, eax
	seta	dil
	xor	r13d, r13d
	call	snd_BUG_ON@PLT
	test	rax, rax
	je	.L8
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	snd_i2c_lock@PLT
	mov	rdx, QWORD PTR EWS_I2C_PCF1[rip]
	mov	rax, QWORD PTR [r14]
	lea	rsi, 7[rsp]
	mov	edi, DWORD PTR [rax+rdx*4]
	mov	edx, 1
	call	snd_i2c_readbytes@PLT
	cmp	eax, 1
	je	.L3
	mov	edi, DWORD PTR [rbx]
	call	snd_i2c_unlock@PLT
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	movzx	eax, BYTE PTR 7[rsp]
	mov	ecx, ebp
	mov	rdx, QWORD PTR [r12]
	sar	eax, cl
	not	eax
	and	eax, 1
	mov	DWORD PTR [rdx], eax
	mov	edi, DWORD PTR [rbx]
	call	snd_i2c_unlock@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snd_ice1712_ews88mt_input_sense_get, .-snd_ice1712_ews88mt_input_sense_get
	.comm	EWS_I2C_PCF1,8,8
	.comm	EIO,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_ews.c_snd_ice1712_ews88mt_input_sense_get.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ice1712_ews88mt_input_sense_get, %function
snd_ice1712_ews88mt_input_sense_get:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L10
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	mov	r7, r1
	bl	snd_kcontrol_chip
	mov	r5, r0
	add	r1, r7, #4
	mov	r0, r4
	ldr	r8, [r5, #4]
	bl	snd_ctl_get_ioffidx
	cmp	r0, #7
	mov	r6, r0
	movls	r0, #0
	movhi	r0, #1
	bl	snd_BUG_ON
	subs	r4, r0, #0
	movne	r4, #0
	beq	.L8
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, [r5]
	bl	snd_i2c_lock
	ldr	r2, .L10+4
	ldr	r3, [r8]
	ldr	r1, [r2]
	mov	r2, #1
	ldr	r0, [r3, r1, lsl #2]
	add	r1, sp, #3
	bl	snd_i2c_readbytes
	cmp	r0, #1
	beq	.L3
	ldr	r0, [r5]
	bl	snd_i2c_unlock
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L3:
	ldrb	r0, [sp, #3]	@ zero_extendqisi2
	ldr	r3, [r7]
	mvn	r6, r0, asr r6
	and	r6, r6, #1
	str	r6, [r3]
	ldr	r0, [r5]
	bl	snd_i2c_unlock
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	EWS_I2C_PCF1
	.word	EIO
	.size	snd_ice1712_ews88mt_input_sense_get, .-snd_ice1712_ews88mt_input_sense_get
	.comm	EWS_I2C_PCF1,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
