	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_msndmix_set
_snd_msndmix_set:                       ## @snd_msndmix_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_LEVEL_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	%edx, %eax
	shll	$16, %eax
	subl	%edx, %eax
	cltq
	imulq	$1374389535, %rax, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$37, %rdi
	addl	%eax, %edi
	movl	%ecx, %eax
	shll	$16, %eax
	subl	%ecx, %eax
	cltq
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movq	(%r14), %rax
	movslq	%esi, %rsi
	movl	%edi, (%rax,%rsi,4)
	movq	8(%r14), %rax
	movl	%ebx, (%rax,%rsi,4)
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_1
## %bb.3:
	movl	%edx, %eax
	shll	$8, %eax
	subl	%edx, %eax
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	movl	%ecx, %edx
	shll	$8, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	imulq	$1374389535, %rcx, %r15         ## imm = 0x51EB851F
	movq	%r15, %rcx
	shrq	$63, %rcx
	sarq	$37, %r15
	addl	%ecx, %r15d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_10:
	movq	_wCurrPlayVol@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$130, %edi
	callq	_update_volm
	movq	_wCurrInVol@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$133, %edi
	callq	_update_volm
	movq	16(%r14), %rax
	movq	_msndPinnacle@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_wCurrMHdrVol@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$129, %edi
	callq	_update_volm
LBB0_12:
	movq	_bAuxPotPos@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HDEXAR_AUX_SET_POTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$134, %edi
	callq	_update_potm
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	movq	_SMA_wCurrMastVolLeft@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r14), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_writew
	movq	_SMA_wCurrMastVolRight@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r14), %rsi
	movl	%ebx, %edi
	callq	_writew
	jmp	LBB0_10
LBB0_7:
	movq	16(%r14), %rcx
	movq	_msndClassic@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_SMA_bInPotPosLeft@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	24(%r14), %rsi
	movl	%eax, %edi
	callq	_writeb
	movq	_SMA_bInPotPosRight@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r14), %rsi
	movl	%r15d, %edi
	callq	_writeb
	movq	_HDEXAR_IN_SET_POTS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_SMA_bMicPotPosLeft@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	24(%r14), %rsi
	movl	%eax, %edi
	callq	_writeb
	movq	_SMA_bMicPotPosRight@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%r14), %rsi
	movl	%r15d, %edi
	callq	_writeb
	movq	_HDEXAR_MIC_SET_POTS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_snd_msnd_send_word
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	_HDEX_AUX_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_msnd_send_dsp_cmd
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_LEVEL_ENTRIES,4,2              ## @LEVEL_ENTRIES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMA_bInPotPosLeft,8,3          ## @SMA_bInPotPosLeft
	.comm	_SMA_bInPotPosRight,8,3         ## @SMA_bInPotPosRight
	.comm	_HDEXAR_IN_SET_POTS,4,2         ## @HDEXAR_IN_SET_POTS
	.comm	_HDEX_AUX_REQ,4,2               ## @HDEX_AUX_REQ
	.comm	_msndClassic,8,3                ## @msndClassic
	.comm	_SMA_bMicPotPosLeft,8,3         ## @SMA_bMicPotPosLeft
	.comm	_SMA_bMicPotPosRight,8,3        ## @SMA_bMicPotPosRight
	.comm	_HDEXAR_MIC_SET_POTS,4,2        ## @HDEXAR_MIC_SET_POTS
	.comm	_SMA_wCurrMastVolLeft,8,3       ## @SMA_wCurrMastVolLeft
	.comm	_SMA_wCurrMastVolRight,8,3      ## @SMA_wCurrMastVolRight
	.comm	_wCurrPlayVol,4,2               ## @wCurrPlayVol
	.comm	_wCurrInVol,4,2                 ## @wCurrInVol
	.comm	_msndPinnacle,8,3               ## @msndPinnacle
	.comm	_wCurrMHdrVol,4,2               ## @wCurrMHdrVol
	.comm	_bAuxPotPos,4,2                 ## @bAuxPotPos
	.comm	_HDEXAR_AUX_SET_POTS,4,2        ## @HDEXAR_AUX_SET_POTS
	.no_dead_strip	_snd_msndmix_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_msndmix_set
_snd_msndmix_set:                       ; @snd_msndmix_set
	.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
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _LEVEL_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEVEL_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	lsl	w8, w2, #16
	sub	w8, w8, w2
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w10
	lsl	w8, w3, #16
	sub	w8, w8, w3
	smull	x8, w8, w9
	lsr	x10, x8, #63
	asr	x8, x8, #37
	add	w20, w8, w10
	sbfiz	x8, x1, #2, #32
	ldp	x10, x11, [x19]
	str	w0, [x10, x8]
	str	w20, [x11, x8]
	sub	w10, w1, #128
	cmp	w10, #6
	b.hi	LBB0_9
; %bb.2:
	lsl	w8, w2, #8
	sub	w8, w8, w2
	smull	x8, w8, w9
	lsr	x11, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w11
	lsl	w11, w3, #8
	sub	w11, w11, w3
	smull	x9, w11, w9
	lsr	x11, x9, #63
	asr	x9, x9, #37
	add	w21, w9, w11
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x9, x10]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh5:
	adrp	x8, _wCurrPlayVol@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wCurrPlayVol@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #130
	bl	_update_volm
Lloh8:
	adrp	x8, _wCurrInVol@GOTPAGE
Lloh9:
	ldr	x8, [x8, _wCurrInVol@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #133
	bl	_update_volm
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _msndPinnacle@GOTPAGE
Lloh12:
	ldr	x9, [x9, _msndPinnacle@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _wCurrMHdrVol@GOTPAGE
Lloh15:
	ldr	x8, [x8, _wCurrMHdrVol@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #129
	bl	_update_volm
LBB0_5:
Lloh17:
	adrp	x8, _bAuxPotPos@GOTPAGE
Lloh18:
	ldr	x8, [x8, _bAuxPotPos@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _HDEXAR_AUX_SET_POTS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HDEXAR_AUX_SET_POTS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w0, #134
	bl	_update_potm
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19, #24]
Lloh23:
	adrp	x9, _SMA_wCurrMastVolLeft@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SMA_wCurrMastVolLeft@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writew
	ldr	x8, [x19, #24]
Lloh26:
	adrp	x9, _SMA_wCurrMastVolRight@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SMA_wCurrMastVolRight@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writew
	b	LBB0_3
LBB0_8:
	ldr	x9, [x19, #16]
Lloh29:
	adrp	x10, _msndClassic@GOTPAGE
Lloh30:
	ldr	x10, [x10, _msndClassic@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
LBB0_9:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
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	x9, [x19, #24]
Lloh35:
	adrp	x10, _SMA_bInPotPosLeft@GOTPAGE
Lloh36:
	ldr	x10, [x10, _SMA_bInPotPosLeft@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	add	x1, x10, x9
	mov	x0, x8
	bl	_writeb
	ldr	x8, [x19, #24]
Lloh38:
	adrp	x9, _SMA_bInPotPosRight@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SMA_bInPotPosRight@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writeb
Lloh41:
	adrp	x8, _HDEXAR_IN_SET_POTS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _HDEXAR_IN_SET_POTS@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	ldr	x9, [x19, #24]
Lloh43:
	adrp	x10, _SMA_bMicPotPosLeft@GOTPAGE
Lloh44:
	ldr	x10, [x10, _SMA_bMicPotPosLeft@GOTPAGEOFF]
Lloh45:
	ldr	x10, [x10]
	add	x1, x10, x9
	mov	x0, x8
	bl	_writeb
	ldr	x8, [x19, #24]
Lloh46:
	adrp	x9, _SMA_bMicPotPosRight@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SMA_bMicPotPosRight@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writeb
Lloh49:
	adrp	x8, _HDEXAR_MIC_SET_POTS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _HDEXAR_MIC_SET_POTS@GOTPAGEOFF]
LBB0_13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_snd_msnd_send_word
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_10
; %bb.14:
Lloh51:
	adrp	x8, _HDEX_AUX_REQ@GOTPAGE
Lloh52:
	ldr	x8, [x8, _HDEX_AUX_REQ@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_msnd_send_dsp_cmd
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_LEVEL_ENTRIES,4,2              ; @LEVEL_ENTRIES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMA_bInPotPosLeft,8,3          ; @SMA_bInPotPosLeft
	.comm	_SMA_bInPotPosRight,8,3         ; @SMA_bInPotPosRight
	.comm	_HDEXAR_IN_SET_POTS,4,2         ; @HDEXAR_IN_SET_POTS
	.comm	_HDEX_AUX_REQ,4,2               ; @HDEX_AUX_REQ
	.comm	_msndClassic,8,3                ; @msndClassic
	.comm	_SMA_bMicPotPosLeft,8,3         ; @SMA_bMicPotPosLeft
	.comm	_SMA_bMicPotPosRight,8,3        ; @SMA_bMicPotPosRight
	.comm	_HDEXAR_MIC_SET_POTS,4,2        ; @HDEXAR_MIC_SET_POTS
	.comm	_SMA_wCurrMastVolLeft,8,3       ; @SMA_wCurrMastVolLeft
	.comm	_SMA_wCurrMastVolRight,8,3      ; @SMA_wCurrMastVolRight
	.comm	_wCurrPlayVol,4,2               ; @wCurrPlayVol
	.comm	_wCurrInVol,4,2                 ; @wCurrInVol
	.comm	_msndPinnacle,8,3               ; @msndPinnacle
	.comm	_wCurrMHdrVol,4,2               ; @wCurrMHdrVol
	.comm	_bAuxPotPos,4,2                 ; @bAuxPotPos
	.comm	_HDEXAR_AUX_SET_POTS,4,2        ; @HDEXAR_AUX_SET_POTS
	.no_dead_strip	_snd_msndmix_set
.subsections_via_symbols
