	.file	"extr_vx222_ops.c_vx2_set_input_level.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vx2_set_input_level, @function
vx2_set_input_level:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ebp, DWORD PTR [rdi]
	add	ebp, DWORD PTR V2_MICRO_LEVEL_RANGE[rip]
	cmp	ebp, 210
	jle	.L7
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	sub	ebp, 36
	add	ebx, 1
	cmp	ebp, 210
	jg	.L3
	xor	edi, edi
	cmp	ebx, 3
	setg	dil
.L2:
	call	snd_BUG_ON@PLT
	test	rax, rax
	je	.L13
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L13:
	.cfi_restore_state
	mov	ecx, DWORD PTR MICRO_SELECT_PREAMPLI_OFFSET[rip]
	mov	rdi, r12
	sal	ebp, 16
	xor	r13d, r13d
	mov	eax, DWORD PTR 4[r12]
	mov	esi, DWORD PTR SELMIC[rip]
	sal	ebx, cl
	mov	edx, ebx
	xor	edx, eax
	and	edx, DWORD PTR MICRO_SELECT_PREAMPLI_MASK[rip]
	xor	edx, eax
	mov	DWORD PTR 4[r12], edx
	call	vx_outl@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR DATA[rip]
	mov	rdi, r12
	mov	ebx, DWORD PTR 8[rax]
	sal	ebx, 8
	or	ebx, DWORD PTR [rax]
	call	vx_inl@PLT
	or	ebx, ebp
	mov	ebp, 32
	.p2align 4,,10
	.p2align 3
.L6:
	test	ebx, ebx
	mov	esi, DWORD PTR DATA[rip]
	mov	edx, r13d
	mov	rdi, r12
	cmovs	edx, DWORD PTR VX_DATA_CODEC_MASK[rip]
	add	ebx, ebx
	call	vx_outl@PLT
	sub	ebp, 1
	jne	.L6
	mov	esi, DWORD PTR RUER[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	vx_inl@PLT
.L7:
	.cfi_restore_state
	xor	edi, edi
	xor	ebx, ebx
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	vx2_set_input_level, .-vx2_set_input_level
	.comm	VX_DATA_CODEC_MASK,4,4
	.comm	V2_MICRO_LEVEL_RANGE,8,8
	.comm	SELMIC,4,4
	.comm	RUER,4,4
	.comm	MICRO_SELECT_PREAMPLI_OFFSET,4,4
	.comm	MICRO_SELECT_PREAMPLI_MASK,4,4
	.comm	DATA,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_vx222_ops.c_vx2_set_input_level.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vx2_set_input_level, %function
vx2_set_input_level:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r4, [r0]
	mov	r7, r0
	add	r5, r4, r3
	cmp	r5, #210
	ble	.L7
	mov	r4, #0
.L3:
	sub	r5, r5, #36
	cmp	r5, #210
	add	r4, r4, #1
	bgt	.L3
	cmp	r4, #3
	movle	r0, #0
	movgt	r0, #1
.L2:
	bl	snd_BUG_ON
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L13+4
	ldr	r1, .L13+8
	ldr	r2, [r3]
	ldr	r3, [r7, #4]
	ldr	r1, [r1]
	eor	r2, r3, r4, lsl r2
	and	r2, r2, r1
	ldr	r1, .L13+12
	eor	r2, r2, r3
	ldr	r1, [r1]
	str	r2, [r7, #4]
	mov	r0, r7
	bl	vx_outl
	ldr	r3, [r7, #8]
	ldr	r6, .L13+16
	ldr	r2, [r3, #4]
	ldr	r4, [r3]
	mov	r0, r7
	orr	r4, r4, r2, lsl #8
	ldr	r1, [r6]
	orr	r4, r4, r5, lsl #16
	bl	vx_inl
	mov	r5, #32
	ldr	r8, .L13+20
.L6:
	cmp	r4, #0
	movge	r2, #0
	ldrlt	r2, [r8]
	mov	r0, r7
	ldr	r1, [r6]
	bl	vx_outl
	subs	r5, r5, #1
	lsl	r4, r4, #1
	bne	.L6
	ldr	r3, .L13+24
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3]
	b	vx_inl
.L7:
	mov	r0, #0
	mov	r4, r0
	b	.L2
.L14:
	.align	2
.L13:
	.word	V2_MICRO_LEVEL_RANGE
	.word	MICRO_SELECT_PREAMPLI_OFFSET
	.word	MICRO_SELECT_PREAMPLI_MASK
	.word	SELMIC
	.word	DATA
	.word	VX_DATA_CODEC_MASK
	.word	RUER
	.size	vx2_set_input_level, .-vx2_set_input_level
	.comm	VX_DATA_CODEC_MASK,4,4
	.comm	V2_MICRO_LEVEL_RANGE,4,4
	.comm	SELMIC,4,4
	.comm	RUER,4,4
	.comm	MICRO_SELECT_PREAMPLI_OFFSET,4,4
	.comm	MICRO_SELECT_PREAMPLI_MASK,4,4
	.comm	DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
