	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse_audio_sink_input_cb
_pulse_audio_sink_input_cb:             ## @pulse_audio_sink_input_cb
	.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
	testl	%edx, %edx
	jne	LBB0_11
## %bb.1:
	movq	%rcx, %r14
	movq	(%rcx), %r12
	cmpq	%rdi, 24(%r12)
	jne	LBB0_11
## %bb.2:
	movq	%rsi, %rbx
	leaq	8(%rsi), %rdi
	callq	_pa_cvolume_avg
	movq	%rax, %r15
	cmpq	$0, (%r12)
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	je	LBB0_7
## %bb.5:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	(%rbx), %rax
	jmp	LBB0_8
LBB0_7:
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	%rax, (%r12)
	movq	_AV_DEV_TO_APP_MUTE_STATE_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	$8, %ecx
	callq	_avdevice_dev_to_app_control_message
LBB0_9:
	movl	16(%r12), %esi
	movq	%r15, %rdi
	callq	_pa_sw_volume_divide
	cmpq	%rax, 8(%r12)
	je	LBB0_11
## %bb.10:
	movq	%rax, %rbx
	cvtsi2sd	%rax, %xmm0
	movq	_PA_VOLUME_NORM@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
	movsd	%xmm0, -40(%rbp)
	movq	_AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_avdevice_dev_to_app_control_message
	movq	%rbx, 8(%r12)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_DEV_TO_APP_MUTE_STATE_CHANGED,4,2 ## @AV_DEV_TO_APP_MUTE_STATE_CHANGED
	.comm	_PA_VOLUME_NORM,8,3             ## @PA_VOLUME_NORM
	.comm	_AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED,4,2 ## @AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED
	.no_dead_strip	_pulse_audio_sink_input_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse_audio_sink_input_cb
_pulse_audio_sink_input_cb:             ; @pulse_audio_sink_input_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbnz	w2, LBB0_10
; %bb.1:
	mov	x19, x3
	ldr	x20, [x3]
	ldr	x8, [x20, #24]
	cmp	x8, x0
	b.ne	LBB0_10
; %bb.2:
	mov	x22, x1
	add	x0, x1, #8
	bl	_pa_cvolume_avg
	mov	x21, x0
	ldr	x9, [x20]
	tbnz	x9, #63, LBB0_5
; %bb.3:
	ldr	x8, [x22]
	cbz	x9, LBB0_6
; %bb.4:
	cbnz	x8, LBB0_8
	b	LBB0_7
LBB0_5:
	ldr	x8, [x22]
	b	LBB0_7
LBB0_6:
	cbz	x8, LBB0_8
LBB0_7:
	str	x8, [x20]
Lloh0:
	adrp	x8, _AV_DEV_TO_APP_MUTE_STATE_CHANGED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_DEV_TO_APP_MUTE_STATE_CHANGED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #8
	bl	_avdevice_dev_to_app_control_message
LBB0_8:
	ldr	w1, [x20, #16]
	mov	x0, x21
	bl	_pa_sw_volume_divide
	ldr	x8, [x20, #8]
	cmp	x8, x0
	b.eq	LBB0_10
; %bb.9:
	mov	x21, x0
	scvtf	d0, x0
Lloh3:
	adrp	x8, _PA_VOLUME_NORM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PA_VOLUME_NORM@GOTPAGEOFF]
Lloh5:
	ldr	d1, [x8]
	fdiv	d0, d0, d1
	str	d0, [sp, #8]
Lloh6:
	adrp	x8, _AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #8
	bl	_avdevice_dev_to_app_control_message
	str	x21, [x20, #8]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_DEV_TO_APP_MUTE_STATE_CHANGED,4,2 ; @AV_DEV_TO_APP_MUTE_STATE_CHANGED
	.comm	_PA_VOLUME_NORM,8,3             ; @PA_VOLUME_NORM
	.comm	_AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED,4,2 ; @AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED
	.no_dead_strip	_pulse_audio_sink_input_cb
.subsections_via_symbols
