	.file	"extr_pulse_audio_enc.c_pulse_set_volume.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pa_context_set_sink_input_volume"
	.text
	.p2align 4
	.type	pulse_set_volume, @function
pulse_set_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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	movsd	QWORD PTR 8[rsp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	pa_stream_get_sample_spec@PLT
	movsd	xmm0, QWORD PTR 8[rsp]
	mov	r12d, DWORD PTR 12[rbp]
	mulsd	xmm0, QWORD PTR PA_VOLUME_NORM[rip]
	mov	rbx, rax
	call	lrint@PLT
	mov	esi, r12d
	lea	r12, 20[rsp]
	mov	edi, eax
	call	pa_sw_volume_multiply@PLT
	movsd	xmm0, QWORD PTR PA_VOLUME_NORM[rip]
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r12
	mov	r13d, eax
	call	pa_cvolume_set@PLT
	mov	edx, r13d
	mov	rsi, r12
	mov	rdi, r12
	call	pa_sw_cvolume_multiply_scalar@PLT
	mov	edi, DWORD PTR 8[rbp]
	call	pa_threaded_mainloop_lock@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r13d, DWORD PTR pulse_context_result[rip]
	call	pa_stream_get_index@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	ecx, r13d
	mov	r8, rbp
	mov	esi, eax
	mov	rdx, r12
	call	pa_context_set_sink_input_volume@PLT
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	mov	rsi, rax
	call	pulse_finish_context_operation@PLT
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L5
	add	rsp, 40
	.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
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pulse_set_volume, .-pulse_set_volume
	.comm	pulse_context_result,4,4
	.comm	PA_VOLUME_NORM,8,8
	.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_pulse_audio_enc.c_pulse_set_volume.c"
	.text
	.global	__aeabi_dmul
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pa_context_set_sink_input_volume\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pulse_set_volume, %function
pulse_set_volume:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r3
	ldr	r3, .L6
	sub	sp, sp, #16
	mov	r4, r0
	ldr	r0, [r0]
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	pa_stream_get_sample_spec
	ldr	r8, .L6+4
	mov	r5, r0
	ldmia	r8, {r2-r3}
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	bl	lrint
	ldr	r1, [r4, #12]
	bl	pa_sw_volume_multiply
	ldmia	r8, {r2-r3}
	ldr	r1, [r5]
	mov	r5, r0
	add	r0, sp, #8
	bl	pa_cvolume_set
	add	r1, sp, #8
	mov	r2, r5
	mov	r0, r1
	bl	pa_sw_cvolume_multiply_scalar
	ldr	r0, [r4, #8]
	bl	pa_threaded_mainloop_lock
	ldm	r4, {r0, r5}
	bl	pa_stream_get_index
	ldr	r3, .L6+8
	str	r4, [sp]
	mov	r1, r0
	ldr	r3, [r3]
	add	r2, sp, #8
	mov	r0, r5
	bl	pa_context_set_sink_input_volume
	ldr	r2, .L6+12
	mov	r1, r0
	mov	r0, r4
	bl	pulse_finish_context_operation
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	PA_VOLUME_NORM
	.word	pulse_context_result
	.word	.LC0
	.size	pulse_set_volume, .-pulse_set_volume
	.comm	pulse_context_result,4,4
	.comm	PA_VOLUME_NORM,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
