	.file	"extr_mixer_scarlett.c_scarlett_ctl_put.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scarlett_ctl_put, @function
scarlett_ctl_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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	jle	.L6
	mov	rbp, rsi
	xor	ebx, ebx
	lea	r12, 4[rsp]
	xor	r13d, r13d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR [rax+rbx*4]
	sub	ecx, DWORD PTR SND_SCARLETT_LEVEL_BIAS[rip]
	sal	ecx, 8
	cmp	DWORD PTR 4[rsp], ecx
	je	.L3
	mov	edx, ebx
	mov	esi, ebx
	mov	rdi, r14
	call	snd_usb_set_cur_mix_value@PLT
	test	eax, eax
	js	.L1
	mov	r13d, 1
.L3:
	add	rbx, 1
	cmp	DWORD PTR [r14], ebx
	jle	.L10
.L4:
	mov	rcx, r12
	mov	edx, ebx
	mov	esi, ebx
	mov	rdi, r14
	call	snd_usb_get_cur_mix_value@PLT
	test	eax, eax
	jns	.L11
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L10:
	.cfi_restore_state
	mov	eax, r13d
	jmp	.L1
.L6:
	xor	eax, eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	scarlett_ctl_put, .-scarlett_ctl_put
	.comm	SND_SCARLETT_LEVEL_BIAS,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_mixer_scarlett.c_scarlett_ctl_put.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scarlett_ctl_put, %function
scarlett_ctl_put:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0]
	ldr	r2, .L13
	ldr	r3, [r5]
	sub	sp, sp, #8
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ble	.L6
	mov	r8, #0
	mov	r6, r1
	mov	r4, r8
	ldr	r7, .L13+4
	b	.L4
.L11:
	ldr	r3, [r6]
	ldr	r1, [r7]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r2, [sp]
	sub	r3, r3, r1
	cmp	r2, r3, lsl #8
	lsl	r3, r3, #8
	beq	.L3
	mov	r2, r4
	mov	r1, r4
	mov	r0, r5
	bl	snd_usb_set_cur_mix_value
	cmp	r0, #0
	blt	.L1
	mov	r8, #1
.L3:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L10
.L4:
	mov	r3, sp
	mov	r2, r4
	mov	r1, r4
	mov	r0, r5
	bl	snd_usb_get_cur_mix_value
	cmp	r0, #0
	bge	.L11
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r8
	b	.L1
.L6:
	mov	r0, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	SND_SCARLETT_LEVEL_BIAS
	.size	scarlett_ctl_put, .-scarlett_ctl_put
	.comm	SND_SCARLETT_LEVEL_BIAS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
