	.file	"extr_xonar_wm87x6.c_wm8776_level_control_put.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8776_level_control_put, @function
wm8776_level_control_put:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rax, QWORD PTR [rsi]
	cmp	DWORD PTR [rax], 2
	jle	.L2
	mov	r13d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12, QWORD PTR 8[rdi]
	mov	r14, rdi
	mov	rbx, rsi
	xor	r13d, r13d
	mov	rdi, r12
	mov	rbp, QWORD PTR 8[r12]
	call	mutex_lock@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR [r14]
	mov	eax, DWORD PTR [rax]
	cmp	eax, edx
	setne	r13b
	je	.L10
	mov	rcx, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR WM8776_ALCCTRL1[rip]
	mov	DWORD PTR [r14], eax
	mov	r8, QWORD PTR WM8776_ALCCTRL2[rip]
	mov	edi, DWORD PTR [rcx+rsi*4]
	mov	ebx, DWORD PTR [rcx+r8*4]
	cmp	eax, 1
	je	.L5
	cmp	eax, 2
	je	.L6
	mov	edx, DWORD PTR WM8776_LCEN[rip]
	mov	rsi, r8
	mov	rdi, r12
	xor	r14d, r14d
	not	edx
	and	edx, ebx
	call	wm8776_write_cached@PLT
.L7:
	xor	ebx, ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, ebx
	mov	rdi, r12
	add	ebx, 1
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	edx, r14d
	call	activate_control@PLT
.L8:
	mov	rdi, QWORD PTR 8[rbp]
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	ja	.L9
.L10:
	mov	rdi, r12
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L6:
	.cfi_restore_state
	mov	edx, DWORD PTR WM8776_LCSEL_MASK[rip]
	not	edx
	and	edx, edi
	mov	rdi, r12
	or	edx, DWORD PTR WM8776_LCSEL_ALC_STEREO[rip]
	call	wm8776_write_cached@PLT
	or	ebx, DWORD PTR WM8776_LCEN[rip]
	mov	rsi, QWORD PTR WM8776_ALCCTRL2[rip]
	mov	rdi, r12
	mov	edx, ebx
	call	wm8776_write_cached@PLT
	mov	r14d, DWORD PTR LC_CONTROL_ALC[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR WM8776_LCSEL_MASK[rip]
	not	edx
	and	edx, edi
	mov	rdi, r12
	or	edx, DWORD PTR WM8776_LCSEL_LIMITER[rip]
	call	wm8776_write_cached@PLT
	or	ebx, DWORD PTR WM8776_LCEN[rip]
	mov	rsi, QWORD PTR WM8776_ALCCTRL2[rip]
	mov	rdi, r12
	mov	edx, ebx
	call	wm8776_write_cached@PLT
	mov	r14d, DWORD PTR LC_CONTROL_LIMITER[rip]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	wm8776_level_control_put, .-wm8776_level_control_put
	.comm	WM8776_LCSEL_MASK,4,4
	.comm	WM8776_LCSEL_LIMITER,4,4
	.comm	WM8776_LCSEL_ALC_STEREO,4,4
	.comm	WM8776_LCEN,4,4
	.comm	WM8776_ALCCTRL2,8,8
	.comm	WM8776_ALCCTRL1,8,8
	.comm	LC_CONTROL_LIMITER,4,4
	.comm	LC_CONTROL_ALC,4,4
	.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_xonar_wm87x6.c_wm8776_level_control_put.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8776_level_control_put, %function
wm8776_level_control_put:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L2
	ldr	r3, .L14
	ldr	r8, [r3]
	rsb	r8, r8, #0
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r4, r1
	mov	r7, r0
	ldr	r6, [r0, #4]
	mov	r0, r6
	ldr	r5, [r6, #4]
	bl	mutex_lock
	ldr	r3, [r4]
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r3, r2
	movne	r8, #1
	moveq	r8, #0
	beq	.L10
	ldr	r2, .L14+4
	ldr	r4, .L14+8
	ldr	r1, [r2]
	ldr	r0, [r4]
	ldr	r2, [r5]
	cmp	r3, #1
	str	r3, [r7]
	ldr	ip, [r2, r1, lsl #2]
	ldr	r7, [r2, r0, lsl #2]
	beq	.L5
	cmp	r3, #2
	bne	.L13
	ldr	r3, .L14+12
	ldr	r2, .L14+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	bic	ip, ip, r3
	orr	r2, ip, r2
	mov	r0, r6
	bl	wm8776_write_cached
	ldr	r3, .L14+20
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, [r4]
	orr	r2, r7, r2
	bl	wm8776_write_cached
	ldr	r3, .L14+24
	ldr	r7, [r3]
.L7:
	mov	r4, #0
	b	.L8
.L9:
	ldr	r3, [r5, #4]
	mov	r2, r7
	ldr	r1, [r3, r4, lsl #2]
	mov	r0, r6
	bl	activate_control
	add	r4, r4, #1
.L8:
	ldr	r0, [r5, #4]
	bl	ARRAY_SIZE
	cmp	r0, r4
	bhi	.L9
.L10:
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, .L14+20
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r6
	bic	r2, r7, r2
	bl	wm8776_write_cached
	mov	r7, #0
	b	.L7
.L5:
	ldr	r3, .L14+12
	ldr	r2, .L14+28
	ldr	r3, [r3]
	ldr	r2, [r2]
	bic	ip, ip, r3
	orr	r2, ip, r2
	mov	r0, r6
	bl	wm8776_write_cached
	ldr	r3, .L14+20
	mov	r0, r6
	ldr	r2, [r3]
	ldr	r1, [r4]
	orr	r2, r7, r2
	bl	wm8776_write_cached
	ldr	r3, .L14+32
	ldr	r7, [r3]
	b	.L7
.L15:
	.align	2
.L14:
	.word	EINVAL
	.word	WM8776_ALCCTRL1
	.word	WM8776_ALCCTRL2
	.word	WM8776_LCSEL_MASK
	.word	WM8776_LCSEL_ALC_STEREO
	.word	WM8776_LCEN
	.word	LC_CONTROL_ALC
	.word	WM8776_LCSEL_LIMITER
	.word	LC_CONTROL_LIMITER
	.size	wm8776_level_control_put, .-wm8776_level_control_put
	.comm	WM8776_LCSEL_MASK,4,4
	.comm	WM8776_LCSEL_LIMITER,4,4
	.comm	WM8776_LCSEL_ALC_STEREO,4,4
	.comm	WM8776_LCEN,4,4
	.comm	WM8776_ALCCTRL2,4,4
	.comm	WM8776_ALCCTRL1,4,4
	.comm	LC_CONTROL_LIMITER,4,4
	.comm	LC_CONTROL_ALC,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
