	.file	"extr_es18xx.c_snd_es18xx_mixer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_es18xx_mixer, @function
snd_es18xx_mixer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	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]
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR 40[rbx]
	mov	esi, DWORD PTR [rax]
	call	strcpy@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L56:
	cmp	r12d, 1
	jne	.L3
	mov	rax, QWORD PTR snd_es18xx_hwv_free[rip]
	mov	QWORD PTR 24[rbx], rsi
	mov	QWORD PTR [rsi], rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
.L57:
	add	r12d, 1
.L2:
	mov	rdi, QWORD PTR snd_es18xx_base_controls[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	jbe	.L55
	mov	rdx, QWORD PTR snd_es18xx_base_controls[rip]
	mov	eax, r12d
	mov	rsi, rbx
	lea	rdi, [rdx+rax*4]
	call	snd_ctl_new1@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ES18XX_HWV[rip], eax
	je	.L3
	test	r12d, r12d
	jne	.L56
	mov	rax, QWORD PTR snd_es18xx_hwv_free[rip]
	mov	QWORD PTR 32[rbx], rsi
	mov	rdi, rbp
	mov	QWORD PTR [rsi], rax
	call	snd_ctl_add@PLT
	test	eax, eax
	jns	.L57
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L55:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	xor	r12d, r12d
	test	DWORD PTR ES18XX_PCM2[rip], eax
	jne	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR snd_es18xx_pcm2_controls[rip]
	mov	eax, r12d
	mov	rsi, rbx
	lea	rdi, [rdx+rax*4]
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	add	r12d, 1
.L8:
	mov	rdi, QWORD PTR snd_es18xx_pcm2_controls[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	ja	.L10
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ES18XX_RECMIX[rip], eax
	je	.L12
.L39:
	xor	r12d, r12d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdx, QWORD PTR snd_es18xx_recmix_controls[rip]
	mov	eax, r12d
	mov	rsi, rbx
	lea	rdi, [rdx+rax*4]
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	add	r12d, 1
.L11:
	mov	rdi, QWORD PTR snd_es18xx_recmix_controls[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	ja	.L17
.L12:
	mov	eax, DWORD PTR 4[rbx]
	mov	rsi, rbx
	lea	rdi, snd_es18xx_micpre1_control[rip]
	and	eax, -17
	cmp	eax, 6249
	je	.L58
.L53:
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ES18XX_SPATIALIZER[rip], eax
	je	.L19
	xor	r12d, r12d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdx, QWORD PTR snd_es18xx_spatializer_controls[rip]
	mov	eax, r12d
	mov	rsi, rbx
	lea	rdi, [rdx+rax*4]
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	add	r12d, 1
.L18:
	mov	rdi, QWORD PTR snd_es18xx_spatializer_controls[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	ja	.L21
	mov	eax, DWORD PTR [rbx]
.L19:
	test	DWORD PTR ES18XX_HWV[rip], eax
	je	.L28
	xor	r12d, r12d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L59:
	mov	QWORD PTR 16[rbx], rax
.L26:
	mov	rax, QWORD PTR snd_es18xx_hwv_free[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rsi], rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	add	r12d, 1
.L22:
	mov	rdi, QWORD PTR snd_es18xx_hw_volume_controls[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	jbe	.L28
	mov	rdx, QWORD PTR snd_es18xx_hw_volume_controls[rip]
	mov	eax, r12d
	mov	rsi, rbx
	lea	rdi, [rdx+rax*4]
	call	snd_ctl_new1@PLT
	mov	rsi, rax
	test	r12d, r12d
	je	.L59
	mov	QWORD PTR 8[rbx], rax
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, QWORD PTR snd_es18xx_pcm1_controls[rip]
	mov	eax, r12d
	mov	rsi, rbx
	lea	rdi, [rdx+rax*4]
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	add	r12d, 1
.L9:
	mov	rdi, QWORD PTR snd_es18xx_pcm1_controls[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	ja	.L13
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ES18XX_RECMIX[rip], eax
	jne	.L39
	jmp	.L12
.L58:
	lea	rdi, snd_es18xx_micpre2_control[rip]
	jmp	.L53
.L28:
	cmp	DWORD PTR 4[rbx], 6248
	jne	.L60
.L24:
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR ES18XX_GPO_2BIT[rip], eax
	je	.L30
	xor	r12d, r12d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdx, QWORD PTR snd_es18xx_opt_gpo_2bit[rip]
	mov	eax, r12d
	mov	rsi, rbx
	lea	rdi, [rdx+rax*4]
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	add	r12d, 1
.L29:
	mov	rdi, QWORD PTR snd_es18xx_opt_gpo_2bit[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	ja	.L37
.L30:
	xor	eax, eax
	jmp	.L1
.L60:
	mov	rsi, rbx
	lea	rdi, snd_es18xx_opt_speaker[rip]
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 4[rbx]
	xor	r12d, r12d
	cmp	eax, 6249
	je	.L31
	cmp	eax, 6264
	je	.L61
	cmp	eax, 6265
	jne	.L24
	xor	r12d, r12d
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdx, QWORD PTR snd_es18xx_opt_1879[rip]
	mov	eax, r12d
	mov	rsi, rbx
	lea	rdi, [rdx+rax*4]
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	add	r12d, 1
.L35:
	mov	rdi, QWORD PTR snd_es18xx_opt_1879[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	ja	.L36
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdx, QWORD PTR snd_es18xx_opt_1869[rip]
	mov	eax, r12d
	mov	rsi, rbx
	lea	rdi, [rdx+rax*4]
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	js	.L1
	add	r12d, 1
.L31:
	mov	rdi, QWORD PTR snd_es18xx_opt_1869[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, r12d
	ja	.L33
	jmp	.L24
.L61:
	mov	rsi, rbx
	lea	rdi, snd_es18xx_opt_1878[rip]
	call	snd_ctl_new1@PLT
	mov	rdi, rbp
	mov	rsi, rax
	call	snd_ctl_add@PLT
	test	eax, eax
	jns	.L24
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	snd_es18xx_mixer, .-snd_es18xx_mixer
	.comm	snd_es18xx_spatializer_controls,8,8
	.comm	snd_es18xx_recmix_controls,8,8
	.comm	snd_es18xx_pcm2_controls,8,8
	.comm	snd_es18xx_pcm1_controls,8,8
	.comm	snd_es18xx_opt_speaker,4,4
	.comm	snd_es18xx_opt_gpo_2bit,8,8
	.comm	snd_es18xx_opt_1879,8,8
	.comm	snd_es18xx_opt_1878,4,4
	.comm	snd_es18xx_opt_1869,8,8
	.comm	snd_es18xx_micpre2_control,4,4
	.comm	snd_es18xx_micpre1_control,4,4
	.comm	snd_es18xx_hwv_free,8,8
	.comm	snd_es18xx_hw_volume_controls,8,8
	.comm	snd_es18xx_base_controls,8,8
	.comm	ES18XX_SPATIALIZER,4,4
	.comm	ES18XX_RECMIX,4,4
	.comm	ES18XX_PCM2,4,4
	.comm	ES18XX_HWV,4,4
	.comm	ES18XX_GPO_2BIT,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_es18xx.c_snd_es18xx_mixer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_es18xx_mixer, %function
snd_es18xx_mixer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldm	r0, {r0, r4}
	ldr	r3, [r4, #24]
	mov	r6, #0
	ldr	r1, [r3]
	bl	strcpy
	ldr	r7, .L63
	ldr	r8, .L63+4
	ldr	r9, .L63+8
	b	.L2
.L57:
	cmp	r6, #1
	ldreq	r3, [r9]
	streq	r0, [r4, #16]
	streq	r3, [r0]
.L3:
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r6, #1
.L2:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bls	.L56
	ldr	r0, [r7]
	mov	r1, r4
	add	r0, r0, r6, lsl #2
	bl	snd_ctl_new1
	ldr	r2, [r4]
	ldr	r3, [r8]
	mov	r1, r0
	tst	r2, r3
	beq	.L3
	cmp	r6, #0
	bne	.L57
	ldr	r3, [r9]
	str	r0, [r4, #20]
	str	r3, [r0]
	b	.L3
.L56:
	ldr	r3, .L63+12
	ldr	r6, [r4]
	ldr	r3, [r3]
	ands	r6, r6, r3
	beq	.L58
	mov	r6, #0
	ldr	r7, .L63+16
	b	.L8
.L10:
	ldr	r0, [r7]
	mov	r1, r4
	add	r0, r0, r6, lsl #2
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r6, #1
.L8:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bhi	.L10
.L14:
	ldr	r3, .L63+20
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L12
	mov	r6, #0
	ldr	r7, .L63+24
	b	.L11
.L17:
	ldr	r0, [r7]
	mov	r1, r4
	add	r0, r0, r6, lsl #2
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r6, #1
.L11:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bhi	.L17
.L12:
	ldr	r3, [r4, #4]
	ldr	r2, .L63+28
	bic	r3, r3, #16
	cmp	r3, r2
	beq	.L59
	mov	r1, r4
	ldr	r0, .L63+32
.L54:
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, .L63+36
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L19
	mov	r6, #0
	ldr	r7, .L63+40
	b	.L18
.L21:
	ldr	r0, [r7]
	mov	r1, r4
	add	r0, r0, r6, lsl #2
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r6, #1
.L18:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bhi	.L21
	ldr	r3, [r4]
.L19:
	ldr	r2, .L63+4
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L28
	mov	r6, #0
	ldr	r7, .L63+44
	ldr	r8, .L63+8
	b	.L22
.L27:
	ldr	r0, [r7]
	mov	r1, r4
	add	r0, r0, r6, lsl #2
	bl	snd_ctl_new1
	ldr	r3, [r8]
	cmp	r6, #0
	streq	r0, [r4, #12]
	strne	r0, [r4, #8]
	mov	r1, r0
	str	r3, [r0]
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r6, #1
.L22:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bhi	.L27
.L28:
	ldr	r3, .L63+48
	ldr	r2, [r4, #4]
	cmp	r2, r3
	bne	.L60
.L24:
	ldr	r3, .L63+52
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L30
	mov	r6, #0
	ldr	r7, .L63+56
	b	.L29
.L37:
	ldr	r0, [r7]
	mov	r1, r4
	add	r0, r0, r6, lsl #2
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r6, #1
.L29:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bhi	.L37
.L30:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L58:
	ldr	r7, .L63+60
	b	.L9
.L13:
	ldr	r0, [r7]
	mov	r1, r4
	add	r0, r0, r6, lsl #2
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r6, #1
.L9:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bhi	.L13
	b	.L14
.L59:
	mov	r1, r4
	ldr	r0, .L63+64
	b	.L54
.L60:
	mov	r1, r4
	ldr	r0, .L63+68
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r4, #4]
	ldr	r2, .L63+28
	cmp	r3, r2
	bne	.L61
	mov	r6, #0
	ldr	r7, .L63+72
	b	.L31
.L33:
	ldr	r0, [r7]
	mov	r1, r4
	add	r0, r0, r6, lsl #2
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r6, #1
.L31:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bhi	.L33
	b	.L24
.L61:
	ldr	r2, .L63+76
	cmp	r3, r2
	beq	.L62
	ldr	r2, .L63+80
	cmp	r3, r2
	moveq	r6, #0
	ldreq	r7, .L63+84
	beq	.L35
	b	.L24
.L36:
	ldr	r0, [r7]
	mov	r1, r4
	add	r0, r0, r6, lsl #2
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	add	r6, r6, #1
.L35:
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	cmp	r0, r6
	bhi	.L36
	b	.L24
.L62:
	mov	r1, r4
	ldr	r0, .L63+88
	bl	snd_ctl_new1
	mov	r1, r0
	mov	r0, r5
	bl	snd_ctl_add
	cmp	r0, #0
	bge	.L24
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L64:
	.align	2
.L63:
	.word	snd_es18xx_base_controls
	.word	ES18XX_HWV
	.word	snd_es18xx_hwv_free
	.word	ES18XX_PCM2
	.word	snd_es18xx_pcm2_controls
	.word	ES18XX_RECMIX
	.word	snd_es18xx_recmix_controls
	.word	6249
	.word	snd_es18xx_micpre1_control
	.word	ES18XX_SPATIALIZER
	.word	snd_es18xx_spatializer_controls
	.word	snd_es18xx_hw_volume_controls
	.word	6248
	.word	ES18XX_GPO_2BIT
	.word	snd_es18xx_opt_gpo_2bit
	.word	snd_es18xx_pcm1_controls
	.word	snd_es18xx_micpre2_control
	.word	snd_es18xx_opt_speaker
	.word	snd_es18xx_opt_1869
	.word	6264
	.word	6265
	.word	snd_es18xx_opt_1879
	.word	snd_es18xx_opt_1878
	.size	snd_es18xx_mixer, .-snd_es18xx_mixer
	.comm	snd_es18xx_spatializer_controls,4,4
	.comm	snd_es18xx_recmix_controls,4,4
	.comm	snd_es18xx_pcm2_controls,4,4
	.comm	snd_es18xx_pcm1_controls,4,4
	.comm	snd_es18xx_opt_speaker,4,4
	.comm	snd_es18xx_opt_gpo_2bit,4,4
	.comm	snd_es18xx_opt_1879,4,4
	.comm	snd_es18xx_opt_1878,4,4
	.comm	snd_es18xx_opt_1869,4,4
	.comm	snd_es18xx_micpre2_control,4,4
	.comm	snd_es18xx_micpre1_control,4,4
	.comm	snd_es18xx_hwv_free,4,4
	.comm	snd_es18xx_hw_volume_controls,4,4
	.comm	snd_es18xx_base_controls,4,4
	.comm	ES18XX_SPATIALIZER,4,4
	.comm	ES18XX_RECMIX,4,4
	.comm	ES18XX_PCM2,4,4
	.comm	ES18XX_HWV,4,4
	.comm	ES18XX_GPO_2BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
