	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_msndmix_set_mux
_snd_msndmix_set_mux:                   ## @snd_msndmix_set_mux
	.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
	cmpl	$3, %esi
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movslq	%esi, %rax
	leaq	l_switch.table.snd_msndmix_set_mux(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	movl	(%rcx), %r15d
	xorl	%ebx, %ebx
	cmpl	(%rdi), %r15d
	je	LBB0_6
## %bb.3:
	leaq	l_switch.table.snd_msndmix_set_mux.1(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movzbl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_snd_msnd_send_word
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_HDEX_AUX_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_snd_msnd_send_dsp_cmd
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	%r15d, (%r14)
	movl	$1, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSND_MASK_IMIX,4,2             ## @MSND_MASK_IMIX
	.comm	_HDEXAR_SET_ANA_IN,1,0          ## @HDEXAR_SET_ANA_IN
	.comm	_MSND_MASK_SYNTH,4,2            ## @MSND_MASK_SYNTH
	.comm	_HDEXAR_SET_SYNTH_IN,1,0        ## @HDEXAR_SET_SYNTH_IN
	.comm	_MSND_MASK_DIGITAL,4,2          ## @MSND_MASK_DIGITAL
	.comm	_HDEXAR_SET_DAT_IN,1,0          ## @HDEXAR_SET_DAT_IN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HDEX_AUX_REQ,4,2               ## @HDEX_AUX_REQ
	.no_dead_strip	_snd_msndmix_set_mux
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.snd_msndmix_set_mux
l_switch.table.snd_msndmix_set_mux:
	.quad	_MSND_MASK_IMIX
	.quad	_MSND_MASK_SYNTH
	.quad	_MSND_MASK_DIGITAL

	.p2align	3                               ## @switch.table.snd_msndmix_set_mux.1
l_switch.table.snd_msndmix_set_mux.1:
	.quad	_HDEXAR_SET_ANA_IN
	.quad	_HDEXAR_SET_SYNTH_IN
	.quad	_HDEXAR_SET_DAT_IN

.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_mux
_snd_msndmix_set_mux:                   ; @snd_msndmix_set_mux
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w1, #3
	b.hs	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, l_switch.table.snd_msndmix_set_mux@PAGE
Lloh1:
	add	x8, x8, l_switch.table.snd_msndmix_set_mux@PAGEOFF
	ldr	x8, [x8, w1, sxtw #3]
	ldr	w20, [x8]
	ldr	w8, [x0]
	cmp	w20, w8
	b.ne	LBB0_4
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	sxtw	x8, w1
Lloh5:
	adrp	x9, l_switch.table.snd_msndmix_set_mux.1@PAGE
Lloh6:
	add	x9, x9, l_switch.table.snd_msndmix_set_mux.1@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldrb	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_snd_msnd_send_word
	mov	x8, x0
	mov	w0, #0
	cbz	w8, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh7:
	adrp	x8, _HDEX_AUX_REQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HDEX_AUX_REQ@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_snd_msnd_send_dsp_cmd
	cbnz	w0, LBB0_2
; %bb.7:
	str	w20, [x19]
	mov	w0, #1
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSND_MASK_IMIX,4,2             ; @MSND_MASK_IMIX
	.comm	_HDEXAR_SET_ANA_IN,1,0          ; @HDEXAR_SET_ANA_IN
	.comm	_MSND_MASK_SYNTH,4,2            ; @MSND_MASK_SYNTH
	.comm	_HDEXAR_SET_SYNTH_IN,1,0        ; @HDEXAR_SET_SYNTH_IN
	.comm	_MSND_MASK_DIGITAL,4,2          ; @MSND_MASK_DIGITAL
	.comm	_HDEXAR_SET_DAT_IN,1,0          ; @HDEXAR_SET_DAT_IN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HDEX_AUX_REQ,4,2               ; @HDEX_AUX_REQ
	.no_dead_strip	_snd_msndmix_set_mux
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.snd_msndmix_set_mux
l_switch.table.snd_msndmix_set_mux:
	.quad	_MSND_MASK_IMIX
	.quad	_MSND_MASK_SYNTH
	.quad	_MSND_MASK_DIGITAL

	.p2align	3                               ; @switch.table.snd_msndmix_set_mux.1
l_switch.table.snd_msndmix_set_mux.1:
	.quad	_HDEXAR_SET_ANA_IN
	.quad	_HDEXAR_SET_SYNTH_IN
	.quad	_HDEXAR_SET_DAT_IN

.subsections_via_symbols
