	.file	"extr_hda_generic.c_mux_select.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mux_select, @function
mux_select:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	mov	eax, DWORD PTR 32[rbx]
	test	eax, eax
	je	.L5
	mov	r12d, edx
	lea	edx, -1[rax]
	mov	r15d, esi
	mov	r13d, esi
	cmp	eax, r12d
	mov	rax, QWORD PTR [rbx]
	cmovbe	r12d, edx
	mov	edx, DWORD PTR [rax+r15*4]
	cmp	edx, r12d
	je	.L5
	mov	rbp, rdi
	call	get_input_path@PLT
	mov	r14, rax
	test	rax, rax
	je	.L5
	cmp	QWORD PTR [rax], 0
	jne	.L21
.L6:
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 24[rbx], 0
	mov	DWORD PTR [rax+r15*4], r12d
	jne	.L22
.L7:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L23
.L8:
	mov	edx, r12d
	mov	esi, r13d
	mov	rdi, rbp
	call	get_input_path@PLT
	test	rax, rax
	je	.L5
	cmp	QWORD PTR [rax], 0
	je	.L24
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	xor	ecx, ecx
	mov	edx, 1
	mov	rsi, rax
	mov	rdi, rbp
	call	snd_hda_activate_path@PLT
	mov	rax, QWORD PTR 8[rbx]
	test	rax, rax
	je	.L9
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	rax
.L9:
	mov	rsi, r14
	mov	rdi, rbp
	call	path_power_down_sync@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	dyn_adc_pcm_resetup@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	xor	edx, edx
	mov	esi, r13d
	mov	rdi, rbp
	call	update_hp_mic@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rax
	mov	rdi, rbp
	call	snd_hda_activate_path@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	mux_select, .-mux_select
	.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_hda_generic.c_mux_select.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mux_select, %function
mux_select:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	ldr	r3, [r7, #16]
	cmp	r3, #0
	beq	.L5
	mov	r5, r2
	cmp	r3, r2
	subls	r5, r3, #1
	ldr	r3, [r7]
	mov	r4, r0
	ldr	r2, [r3, r1, lsl #2]
	mov	r6, r1
	cmp	r2, r5
	beq	.L5
	bl	get_input_path
	subs	r8, r0, #0
	beq	.L5
	ldr	r3, [r8]
	cmp	r3, #0
	bne	.L30
.L6:
	ldr	r2, [r7, #12]
	ldr	r3, [r7]
	cmp	r2, #0
	str	r5, [r3, r6, lsl #2]
	bne	.L31
.L7:
	ldr	r3, [r7, #8]
	cmp	r3, #0
	bne	.L32
.L8:
	mov	r1, r6
	mov	r2, r5
	mov	r0, r4
	bl	get_input_path
	subs	r1, r0, #0
	beq	.L5
	ldr	r5, [r1]
	cmp	r5, #0
	beq	.L33
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L33:
	mov	r3, r5
	mov	r2, #1
	mov	r0, r4
	bl	snd_hda_activate_path
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L9
	mov	r2, r5
	mov	r1, r5
	mov	r0, r4
	blx	r3
.L9:
	mov	r1, r8
	mov	r0, r4
	bl	path_power_down_sync
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	mov	r1, r5
	mov	r0, r4
	bl	dyn_adc_pcm_resetup
	b	.L8
.L31:
	mov	r2, #0
	mov	r1, r6
	mov	r0, r4
	bl	update_hp_mic
	b	.L7
.L30:
	mov	r3, #0
	mov	r1, r8
	mov	r2, r3
	mov	r0, r4
	bl	snd_hda_activate_path
	b	.L6
	.size	mux_select, .-mux_select
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
