	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_voice
_update_voice:                          ## @update_voice
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	16(%rsi), %edi
	callq	_STATE_IS_PLAYING
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.3:
	movq	_SNDRV_EMUX_UPDATE_VOLUME@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_calc_volume
LBB0_5:
	movq	_SNDRV_EMUX_UPDATE_PITCH@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_calc_pitch
LBB0_7:
	movq	_SNDRV_EMUX_UPDATE_PAN@GOTPCREL(%rip), %r12
	testl	%r14d, (%r12)
	je	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_calc_pan
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	cmpl	%r14d, (%r12)
	jne	LBB0_11
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r15), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_EMUX_UPDATE_VOLUME,4,2   ## @SNDRV_EMUX_UPDATE_VOLUME
	.comm	_SNDRV_EMUX_UPDATE_PITCH,4,2    ## @SNDRV_EMUX_UPDATE_PITCH
	.comm	_SNDRV_EMUX_UPDATE_PAN,4,2      ## @SNDRV_EMUX_UPDATE_PAN
	.no_dead_strip	_update_voice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_voice
_update_voice:                          ; @update_voice
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x1, #16]
	bl	_STATE_IS_PLAYING
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.3:
Lloh0:
	adrp	x8, _SNDRV_EMUX_UPDATE_VOLUME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_EMUX_UPDATE_VOLUME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_calc_volume
LBB0_5:
Lloh3:
	adrp	x8, _SNDRV_EMUX_UPDATE_PITCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_EMUX_UPDATE_PITCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_calc_pitch
LBB0_7:
Lloh6:
	adrp	x22, _SNDRV_EMUX_UPDATE_PAN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SNDRV_EMUX_UPDATE_PAN@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w19
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_calc_pan
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	w8, [x22]
	cmp	w8, w19
	b.ne	LBB0_11
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x2, [x21]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_EMUX_UPDATE_VOLUME,4,2   ; @SNDRV_EMUX_UPDATE_VOLUME
	.comm	_SNDRV_EMUX_UPDATE_PITCH,4,2    ; @SNDRV_EMUX_UPDATE_PITCH
	.comm	_SNDRV_EMUX_UPDATE_PAN,4,2      ; @SNDRV_EMUX_UPDATE_PAN
	.no_dead_strip	_update_voice
.subsections_via_symbols
