	.file	"extr_n810.c_n810_ext_control.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Ext Spk"
.LC1:
	.string	"Headphone Jack"
.LC2:
	.string	"HS Mic"
.LC3:
	.string	"DMic"
	.text
	.p2align 4
	.type	n810_ext_control, @function
n810_ext_control:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR n810_jack_func[rip]
	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
	add	eax, -128
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	eax, 2
	ja	.L11
	lea	rdx, CSWTCH.4[rip]
	mov	r12d, DWORD PTR [rdx+rax*4]
	lea	rdx, CSWTCH.5[rip]
	mov	ebx, DWORD PTR [rdx+rax*4]
.L2:
	mov	rdi, rbp
	call	snd_soc_dapm_mutex_lock@PLT
	cmp	QWORD PTR n810_spk_func[rip], 0
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	je	.L3
	call	snd_soc_dapm_enable_pin_unlocked@PLT
.L4:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	test	r12d, r12d
	je	.L5
	call	snd_soc_dapm_enable_pin_unlocked@PLT
.L6:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	test	ebx, ebx
	je	.L7
	call	snd_soc_dapm_enable_pin_unlocked@PLT
.L8:
	cmp	QWORD PTR n810_dmic_func[rip], 0
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	je	.L9
	call	snd_soc_dapm_enable_pin_unlocked@PLT
.L10:
	mov	rdi, rbp
	call	snd_soc_dapm_sync_unlocked@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	snd_soc_dapm_mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	xor	ebx, ebx
	xor	r12d, r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	call	snd_soc_dapm_disable_pin_unlocked@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	call	snd_soc_dapm_disable_pin_unlocked@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	call	snd_soc_dapm_disable_pin_unlocked@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	call	snd_soc_dapm_disable_pin_unlocked@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	n810_ext_control, .-n810_ext_control
	.section	.rodata
	.align 8
	.type	CSWTCH.5, @object
	.size	CSWTCH.5, 12
CSWTCH.5:
	.long	1
	.long	1
	.long	0
	.align 8
	.type	CSWTCH.4, @object
	.size	CSWTCH.4, 12
CSWTCH.4:
	.long	0
	.long	1
	.long	1
	.comm	n810_spk_func,8,8
	.comm	n810_jack_func,4,4
	.comm	n810_dmic_func,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_n810.c_n810_ext_control.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Ext Spk\000"
	.align	2
.LC1:
	.ascii	"Headphone Jack\000"
	.align	2
.LC2:
	.ascii	"HS Mic\000"
	.align	2
.LC3:
	.ascii	"DMic\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	n810_ext_control, %function
n810_ext_control:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L16
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r0
	sub	r3, r3, #128
	cmp	r3, #2
	movhi	r5, #0
	ldrls	r2, .L16+4
	movhi	r6, r5
	addls	r1, r2, r3, lsl #2
	ldrls	r5, [r1, #12]
	ldrls	r6, [r2, r3, lsl #2]
	bl	snd_soc_dapm_mutex_lock
	ldr	r3, .L16+8
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r1, .L16+12
	cmp	r3, #0
	beq	.L3
	bl	snd_soc_dapm_enable_pin_unlocked
	cmp	r6, #0
	mov	r0, r4
	ldr	r1, .L16+16
	beq	.L5
.L14:
	bl	snd_soc_dapm_enable_pin_unlocked
	cmp	r5, #0
	mov	r0, r4
	ldr	r1, .L16+20
	beq	.L7
.L15:
	bl	snd_soc_dapm_enable_pin_unlocked
.L8:
	ldr	r3, .L16+24
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r1, .L16+28
	cmp	r3, #0
	beq	.L9
	bl	snd_soc_dapm_enable_pin_unlocked
.L10:
	mov	r0, r4
	bl	snd_soc_dapm_sync_unlocked
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	snd_soc_dapm_mutex_unlock
.L3:
	bl	snd_soc_dapm_disable_pin_unlocked
	cmp	r6, #0
	mov	r0, r4
	ldr	r1, .L16+16
	bne	.L14
.L5:
	bl	snd_soc_dapm_disable_pin_unlocked
	cmp	r5, #0
	mov	r0, r4
	ldr	r1, .L16+20
	bne	.L15
.L7:
	bl	snd_soc_dapm_disable_pin_unlocked
	b	.L8
.L9:
	bl	snd_soc_dapm_disable_pin_unlocked
	b	.L10
.L17:
	.align	2
.L16:
	.word	n810_jack_func
	.word	.LANCHOR0
	.word	n810_spk_func
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	n810_dmic_func
	.word	.LC3
	.size	n810_ext_control, .-n810_ext_control
	.comm	n810_spk_func,4,4
	.comm	n810_jack_func,4,4
	.comm	n810_dmic_func,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	CSWTCH.4, %object
	.size	CSWTCH.4, 12
CSWTCH.4:
	.word	0
	.word	1
	.word	1
	.type	CSWTCH.5, %object
	.size	CSWTCH.5, 12
CSWTCH.5:
	.word	1
	.word	1
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
