	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse_set_volume
_pulse_set_volume:                      ## @pulse_set_volume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_pa_stream_get_sample_spec
	movq	%rax, %r14
	movq	_PA_VOLUME_NORM@GOTPCREL(%rip), %r12
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	(%r12), %xmm0
	callq	_lrint
	movl	12(%rbx), %esi
	movl	%eax, %edi
	callq	_pa_sw_volume_multiply
	movl	%eax, %r15d
	movl	(%r14), %esi
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_pa_cvolume_set
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_pa_sw_cvolume_multiply_scalar
	movl	8(%rbx), %edi
	callq	_pa_threaded_mainloop_lock
	movl	(%rbx), %edi
	movl	4(%rbx), %r15d
	callq	_pa_stream_get_index
	movq	_pulse_context_result@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	_pa_context_set_sink_input_volume
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_pulse_finish_context_operation
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PA_VOLUME_NORM,8,3             ## @PA_VOLUME_NORM
	.comm	_pulse_context_result,4,2       ## @pulse_context_result
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pa_context_set_sink_input_volume"

	.no_dead_strip	_pulse_set_volume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse_set_volume
_pulse_set_volume:                      ; @pulse_set_volume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	fmov	d8, d0
	mov	x19, x0
	ldr	w0, [x0]
	bl	_pa_stream_get_sample_spec
	mov	x20, x0
Lloh0:
	adrp	x22, _PA_VOLUME_NORM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PA_VOLUME_NORM@GOTPAGEOFF]
	ldr	d0, [x22]
	fmul	d0, d0, d8
	bl	_lrint
	ldr	w1, [x19, #12]
	bl	_pa_sw_volume_multiply
	mov	x21, x0
	ldr	w1, [x20]
	ldr	d0, [x22]
	add	x0, sp, #12
	bl	_pa_cvolume_set
	add	x0, sp, #12
	add	x1, sp, #12
	mov	x2, x21
	bl	_pa_sw_cvolume_multiply_scalar
	ldr	w0, [x19, #8]
	bl	_pa_threaded_mainloop_lock
	ldp	w0, w20, [x19]
	bl	_pa_stream_get_index
	mov	x1, x0
Lloh2:
	adrp	x8, _pulse_context_result@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pulse_context_result@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x0, x20
	mov	x4, x19
	bl	_pa_context_set_sink_input_volume
	mov	x1, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pulse_finish_context_operation
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PA_VOLUME_NORM,8,3             ; @PA_VOLUME_NORM
	.comm	_pulse_context_result,4,2       ; @pulse_context_result
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pa_context_set_sink_input_volume"

	.no_dead_strip	_pulse_set_volume
.subsections_via_symbols
