	.file	"extr_playback.c_add_monitor_signal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	add_monitor_signal, @function
add_monitor_signal:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	ecx, 4
	jne	.L12
	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
	mov	ebx, edx
	test	edx, edx
	jne	.L16
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L16:
	.cfi_restore_state
	movsx	r12, DWORD PTR [rdi]
	mov	r14, QWORD PTR 8[rdi]
	and	r12, -4
	add	r12, r14
	cmp	r14, r12
	jnb	.L1
	sub	rsi, r14
	mov	rbp, rsi
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR [r14]
	add	r14, 4
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR -4[r14+rbp]
	movsx	r13d, ax
	call	le16_to_cpu@PLT
	mov	edx, 32767
	mov	esi, -32768
	movsx	edi, ax
	imul	edi, ebx
	sar	edi, 8
	add	edi, r13d
	call	clamp@PLT
	movsx	edi, ax
	call	cpu_to_le16@PLT
	mov	DWORD PTR -4[r14], eax
	cmp	r12, r14
	ja	.L3
	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
.L12:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	add_monitor_signal, .-add_monitor_signal
	.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_add_monitor_signal.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_monitor_signal, %function
add_monitor_signal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r3, r3, #4
	clz	r3, r3
	cmp	r2, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [r0]
	ldr	r4, [r0, #4]
	bic	r8, r8, #3
	add	r8, r4, r8
	cmp	r4, r8
	popcs	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r7, r2
	mov	r6, r1
	ldr	r10, .L13
	ldr	r9, .L13+4
.L3:
	ldr	r0, [r4]
	bl	le16_to_cpu
	mov	r5, r0
	ldr	r0, [r6], #4
	bl	le16_to_cpu
	mul	r0, r7, r0
	mov	r2, r10
	mov	r1, r9
	add	r0, r5, r0, asr #8
	bl	clamp
	bl	cpu_to_le16
	str	r0, [r4], #4
	cmp	r8, r4
	bhi	.L3
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	32767
	.word	-32768
	.size	add_monitor_signal, .-add_monitor_signal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
