	.file	"extr_mixer.c_get_ctl_value_v1.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"cannot get ctl value: req = %#x, wValue = %#x, wIndex = %#x, type = %d\n"
	.text
	.p2align 4
	.type	get_ctl_value_v1, @function
get_ctl_value_v1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 24[rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 16[rdi]
	mov	rbp, QWORD PTR [rax]
	mov	eax, DWORD PTR USB_MIXER_S16[rip]
	cmp	DWORD PTR [rdi], eax
	mov	rdi, rbp
	setge	r12b
	call	snd_usb_lock_shutdown@PLT
	mov	r8d, DWORD PTR EIO[rip]
	lea	rdx, 38[rsp]
	mov	DWORD PTR 20[rsp], 10
	mov	QWORD PTR 8[rsp], rdx
	add	r12d, 1
	neg	r8d
	test	eax, eax
	js	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	snd_usb_ctrl_intf@PLT
	mov	ebx, DWORD PTR 8[r13]
	mov	edi, DWORD PTR 0[rbp]
	xor	esi, esi
	mov	ecx, DWORD PTR USB_RECIP_INTERFACE[rip]
	or	ecx, DWORD PTR USB_TYPE_CLASS[rip]
	sal	ebx, 8
	or	ecx, DWORD PTR USB_DIR_IN[rip]
	mov	DWORD PTR 16[rsp], ecx
	or	ebx, eax
	call	usb_rcvctrlpipe@PLT
	push	r12
	.cfi_def_cfa_offset 120
	mov	edi, DWORD PTR 0[rbp]
	mov	r8d, r15d
	push	QWORD PTR 16[rsp]
	.cfi_def_cfa_offset 128
	mov	ecx, DWORD PTR 32[rsp]
	mov	edx, r14d
	mov	esi, eax
	mov	r9d, ebx
	call	snd_usb_ctl_msg@PLT
	mov	r8d, eax
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
	cmp	r12d, r8d
	jle	.L14
	mov	eax, r8d
	add	eax, DWORD PTR ETIMEDOUT[rip]
	je	.L6
	sub	DWORD PTR 20[rsp], 1
	jne	.L3
	mov	r9d, DWORD PTR 0[r13]
	mov	r8d, ebx
	mov	ecx, r15d
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	usb_audio_dbg@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
.L6:
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], r8d
	call	snd_usb_unlock_shutdown@PLT
	mov	r8d, DWORD PTR 16[rsp]
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L14:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, r12d
	call	snd_usb_combine_bytes@PLT
	mov	rdi, r13
	mov	esi, eax
	call	convert_signed_value@PLT
	mov	rdx, QWORD PTR 24[rsp]
	xor	r8d, r8d
	mov	DWORD PTR [rdx], eax
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_ctl_value_v1, .-get_ctl_value_v1
	.comm	USB_TYPE_CLASS,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_MIXER_S16,4,4
	.comm	USB_DIR_IN,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EIO,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_mixer.c_get_ctl_value_v1.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot get ctl value: req = %#x, wValue = %#x, wInd"
	.ascii	"ex = %#x, type = %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_ctl_value_v1, %function
get_ctl_value_v1:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	ldr	ip, [r0, #8]
	ldr	r0, .L17
	ldr	r6, [r7]
	sub	sp, sp, #44
	ldr	r5, [ip]
	ldr	ip, [r0]
	str	r3, [sp, #28]
	ldr	r3, .L17+4
	cmp	r6, ip
	str	r2, [sp, #24]
	mov	r0, r5
	movge	r6, #2
	movlt	r6, #1
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	snd_usb_lock_shutdown
	cmp	r0, #0
	blt	.L14
	mov	r3, #10
	ldr	fp, .L17+8
	ldr	r10, .L17+12
	ldr	r9, .L17+16
	str	r3, [sp, #16]
.L3:
	mov	r0, r5
	bl	snd_usb_ctrl_intf
	mov	r4, r0
	ldr	r2, [r5]
	ldr	r3, [r7, #4]
	mov	r0, r2
	mov	r1, #0
	orr	r4, r4, r3, lsl #8
	str	r2, [sp, #20]
	bl	usb_rcvctrlpipe
	ldr	r2, [sp, #20]
	mov	r1, r0
	ldr	ip, [fp]
	mov	r0, r2
	ldr	r3, [r10]
	add	r2, sp, #32
	ldr	lr, [r9]
	str	r2, [sp, #8]
	ldr	r2, [sp, #24]
	orr	r3, ip, r3
	str	r2, [sp]
	str	r4, [sp, #4]
	mov	r2, r8
	str	r6, [sp, #12]
	orr	r3, r3, lr
	bl	snd_usb_ctl_msg
	cmp	r6, r0
	ble	.L15
	ldr	r3, .L17+20
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L11
	ldr	r3, [sp, #16]
	subs	r3, r3, #1
	str	r3, [sp, #16]
	bne	.L3
	ldr	r3, [r7]
	mov	r2, r8
	str	r3, [sp, #4]
	mov	r0, r5
	ldr	r3, [sp, #24]
	ldr	r1, .L17+24
	str	r4, [sp]
	bl	usb_audio_dbg
	ldr	r3, .L17+28
	ldr	r3, [r3]
	rsb	r3, r3, #0
.L6:
	mov	r0, r5
	str	r3, [sp, #16]
	bl	snd_usb_unlock_shutdown
	ldr	r3, [sp, #16]
.L1:
	ldr	r2, .L17+4
	ldr	r1, [r2]
	ldr	r2, [sp, #36]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L16
	mov	r0, r3
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L17+32
	ldr	r3, [r3]
	rsb	r3, r3, #0
	b	.L1
.L15:
	mov	r1, r6
	add	r0, sp, #32
	bl	snd_usb_combine_bytes
	mov	r1, r0
	mov	r0, r7
	bl	convert_signed_value
	ldr	r2, [sp, #28]
	mov	r3, #0
	str	r0, [r2]
	b	.L6
.L11:
	mov	r3, r0
	b	.L6
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	USB_MIXER_S16
	.word	.LC1
	.word	USB_RECIP_INTERFACE
	.word	USB_TYPE_CLASS
	.word	USB_DIR_IN
	.word	ETIMEDOUT
	.word	.LC0
	.word	EINVAL
	.word	EIO
	.size	get_ctl_value_v1, .-get_ctl_value_v1
	.comm	USB_TYPE_CLASS,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_MIXER_S16,4,4
	.comm	USB_DIR_IN,4,4
	.comm	ETIMEDOUT,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
