	.file	"extr_control.c_snd_ctl_elem_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	snd_ctl_elem_write, @function
snd_ctl_elem_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	down_read@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	snd_ctl_find_id@PLT
	test	rax, rax
	je	.L22
	mov	rsi, r12
	mov	rdi, rax
	mov	rbx, rax
	call	snd_ctl_get_ioff@PLT
	mov	ecx, eax
	mov	rdx, rcx
	sal	rcx, 4
	add	rcx, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rcx]
	test	DWORD PTR SNDRV_CTL_ELEM_ACCESS_WRITE[rip], eax
	jne	.L23
.L4:
	mov	r13d, DWORD PTR EPERM[rip]
	neg	r13d
	test	r13d, r13d
	jg	.L24
.L3:
	mov	rdi, rbp
	call	up_read@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	cmp	QWORD PTR [rbx], 0
	je	.L4
	test	r13, r13
	je	.L5
	mov	rax, QWORD PTR 8[rcx]
	test	rax, rax
	je	.L5
	cmp	rax, r13
	jne	.L4
.L5:
	mov	rsi, rbx
	mov	rdi, r12
	call	snd_ctl_build_ioff@PLT
	mov	rsi, r12
	mov	rdi, rbx
	call	[QWORD PTR [rbx]]
	mov	r13d, eax
	test	r13d, r13d
	jle	.L3
.L24:
	mov	rdi, rbp
	xor	r13d, r13d
	call	up_read@PLT
	mov	esi, DWORD PTR SNDRV_CTL_EVENT_MASK_VALUE[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	snd_ctl_notify@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	r13d, DWORD PTR ENOENT[rip]
	neg	r13d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	snd_ctl_elem_write, .-snd_ctl_elem_write
	.comm	SNDRV_CTL_EVENT_MASK_VALUE,4,4
	.comm	SNDRV_CTL_ELEM_ACCESS_WRITE,4,4
	.comm	EPERM,4,4
	.comm	ENOENT,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_control.c_snd_ctl_elem_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_ctl_elem_write, %function
snd_ctl_elem_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r4, r0
	mov	r7, r1
	bl	down_read
	mov	r1, r6
	mov	r0, r4
	bl	snd_ctl_find_id
	subs	r5, r0, #0
	beq	.L22
	mov	r1, r6
	bl	snd_ctl_get_ioff
	ldr	r3, [r5, #4]
	ldr	r2, .L25
	ldr	r1, [r3, r0, lsl #3]
	ldr	r2, [r2]
	add	r3, r3, r0, lsl #3
	tst	r1, r2
	bne	.L23
.L4:
	ldr	r3, .L25+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	cmp	r5, #0
	bgt	.L24
.L3:
	mov	r0, r4
	bl	up_read
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	ldr	r2, [r5]
	cmp	r2, #0
	beq	.L4
	cmp	r7, #0
	beq	.L5
	ldr	r3, [r3, #4]
	cmp	r3, #0
	cmpne	r3, r7
	bne	.L4
.L5:
	mov	r2, r0
	mov	r1, r5
	mov	r0, r6
	bl	snd_ctl_build_ioff
	mov	r0, r5
	ldr	r3, [r5]
	mov	r1, r6
	blx	r3
	mov	r5, r0
	cmp	r5, #0
	ble	.L3
.L24:
	mov	r5, #0
	mov	r0, r4
	bl	up_read
	ldr	r3, .L25+8
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r3]
	bl	snd_ctl_notify
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	ldr	r3, .L25+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L26:
	.align	2
.L25:
	.word	SNDRV_CTL_ELEM_ACCESS_WRITE
	.word	EPERM
	.word	SNDRV_CTL_EVENT_MASK_VALUE
	.word	ENOENT
	.size	snd_ctl_elem_write, .-snd_ctl_elem_write
	.comm	SNDRV_CTL_EVENT_MASK_VALUE,4,4
	.comm	SNDRV_CTL_ELEM_ACCESS_WRITE,4,4
	.comm	EPERM,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
