	.file	"extr_playback.c_change_volume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	change_volume, @function
change_volume:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ecx, DWORD PTR [rsi]
	cmp	ecx, 256
	je	.L11
	cmp	edx, 4
	je	.L12
.L4:
	cmp	edx, 6
	je	.L13
.L1:
	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	r12, QWORD PTR 8[rdi]
	movsx	rbp, DWORD PTR [rdi]
	add	rbp, r12
	cmp	r12, rbp
	jnb	.L1
	xor	r13d, r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, r13d
	and	eax, 1
	mov	ecx, DWORD PTR [rbx+rax*4]
.L6:
	movzx	eax, BYTE PTR 1[r12]
	movzx	edi, BYTE PTR [r12]
	add	r12, 3
	add	r13d, 1
	mov	esi, -8388608
	sal	eax, 8
	add	eax, edi
	movsx	edi, BYTE PTR -1[r12]
	mov	edx, edi
	sal	edx, 16
	lea	edi, [rax+rdx]
	mov	edx, 8388607
	imul	edi, ecx
	sar	edi, 8
	call	clamp@PLT
	mov	WORD PTR -3[r12], ax
	sar	eax, 16
	mov	BYTE PTR -1[r12], al
	cmp	rbp, r12
	ja	.L14
	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
.L11:
	.cfi_restore_state
	cmp	DWORD PTR 4[rsi], 256
	je	.L1
	cmp	edx, 4
	jne	.L4
.L12:
	movsx	r12, DWORD PTR [rdi]
	mov	r13, QWORD PTR 8[rdi]
	and	r12, -4
	add	r12, r13
	cmp	r13, r12
	jnb	.L1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR 0[r13]
	add	r13, 4
	call	le16_to_cpu@PLT
	mov	edx, ebp
	mov	esi, -32768
	add	ebp, 1
	and	edx, 1
	movsx	edi, ax
	imul	edi, DWORD PTR [rbx+rdx*4]
	mov	edx, 32767
	sar	edi, 8
	call	clamp@PLT
	movsx	edi, ax
	call	cpu_to_le16@PLT
	mov	DWORD PTR -4[r13], eax
	cmp	r12, r13
	ja	.L5
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	change_volume, .-change_volume
	.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_playback.c_change_volume.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_volume, %function
change_volume:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #256
	mov	r5, r1
	beq	.L14
	cmp	r2, #4
	beq	.L15
.L4:
	cmp	r2, #6
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r4, [r0, #4]
	ldr	r7, [r0]
	add	r7, r4, r7
	cmp	r4, r7
	popcs	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r6, #0
	ldr	r9, .L16
	ldr	r8, .L16+4
.L6:
	ldrb	r1, [r4, #1]	@ zero_extendqisi2
	ldrb	r0, [r4]	@ zero_extendqisi2
	ldrsb	r2, [r4, #2]
	add	r0, r0, r1, lsl #8
	add	r0, r0, r2, lsl #16
	mul	r0, r3, r0
	mov	r2, r9
	mov	r1, r8
	asr	r0, r0, #8
	bl	clamp
	asr	r3, r0, #16
	asr	r2, r0, #8
	strb	r3, [r4, #2]
	strb	r0, [r4]
	strb	r2, [r4, #1]
	add	r4, r4, #3
	add	r6, r6, #1
	cmp	r7, r4
	and	r3, r6, #1
	popls	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r5, r3, lsl #2]
	b	.L6
.L14:
	ldr	r1, [r1, #4]
	cmp	r1, #256
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	cmp	r2, #4
	bne	.L4
.L15:
	ldr	r7, [r0]
	ldr	r4, [r0, #4]
	bic	r7, r7, #3
	add	r7, r4, r7
	cmp	r4, r7
	popcs	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r6, #0
	ldr	r9, .L16+8
	ldr	r8, .L16+12
.L5:
	ldr	r0, [r4]
	bl	le16_to_cpu
	and	r3, r6, #1
	ldr	r3, [r5, r3, lsl #2]
	mov	r2, r9
	mul	r0, r3, r0
	mov	r1, r8
	asr	r0, r0, #8
	bl	clamp
	lsl	r0, r0, #16
	asr	r0, r0, #16
	bl	cpu_to_le16
	str	r0, [r4], #4
	cmp	r7, r4
	add	r6, r6, #1
	bhi	.L5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	8388607
	.word	-8388608
	.word	32767
	.word	-32768
	.size	change_volume, .-change_volume
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
