	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1843_set_outsrc
_ad1843_set_outsrc:                     ## @ad1843_set_outsrc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_SOUND_MASK_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOUND_MASK_LINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %ecx
	orl	%edi, %ecx
	movq	_SOUND_MASK_CD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_SOUND_MASK_MIC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%r8d, %eax
	orl	%esi, %eax
	orl	%ecx, %eax
	notl	%eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	xorl	%ecx, %ecx
	testl	%ebx, %edi
	sete	%cl
	xorl	%r13d, %r13d
	testl	%ebx, %edx
	sete	%r13b
	xorl	%r15d, %r15d
	testl	%ebx, %esi
	sete	%r15b
	xorl	%r12d, %r12d
	testl	%ebx, %r8d
	sete	%r12b
	movq	_ad1843_LDA1GM@GOTPCREL(%rip), %rdx
	movq	_ad1843_RDA1GM@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%ecx, %r9d
	callq	_ad1843_write_multi
	movq	_ad1843_LX1MM@GOTPCREL(%rip), %rdx
	movq	_ad1843_RX1MM@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%r13d, %ecx
	movl	%r13d, %r9d
	callq	_ad1843_write_multi
	movq	_ad1843_LX2MM@GOTPCREL(%rip), %rdx
	movq	_ad1843_RX2MM@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%r12d, %ecx
	movl	%r12d, %r9d
	callq	_ad1843_write_multi
	movq	_ad1843_LMCMM@GOTPCREL(%rip), %rdx
	movq	_ad1843_RMCMM@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%r15d, %ecx
	movl	%r15d, %r9d
	callq	_ad1843_write_multi
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOUND_MASK_PCM,4,2             ## @SOUND_MASK_PCM
	.comm	_SOUND_MASK_LINE,4,2            ## @SOUND_MASK_LINE
	.comm	_SOUND_MASK_CD,4,2              ## @SOUND_MASK_CD
	.comm	_SOUND_MASK_MIC,4,2             ## @SOUND_MASK_MIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ad1843_LDA1GM,4,2              ## @ad1843_LDA1GM
	.comm	_ad1843_RDA1GM,4,2              ## @ad1843_RDA1GM
	.comm	_ad1843_LX1MM,4,2               ## @ad1843_LX1MM
	.comm	_ad1843_RX1MM,4,2               ## @ad1843_RX1MM
	.comm	_ad1843_LX2MM,4,2               ## @ad1843_LX2MM
	.comm	_ad1843_RX2MM,4,2               ## @ad1843_RX2MM
	.comm	_ad1843_LMCMM,4,2               ## @ad1843_LMCMM
	.comm	_ad1843_RMCMM,4,2               ## @ad1843_RMCMM
	.no_dead_strip	_ad1843_set_outsrc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1843_set_outsrc
_ad1843_set_outsrc:                     ; @ad1843_set_outsrc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _SOUND_MASK_PCM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOUND_MASK_PCM@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SOUND_MASK_LINE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SOUND_MASK_LINE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w11, w9, w10
Lloh6:
	adrp	x8, _SOUND_MASK_CD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOUND_MASK_CD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w12, w11, w8
Lloh9:
	adrp	x11, _SOUND_MASK_MIC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SOUND_MASK_MIC@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w12, w12, w11
	bics	wzr, w1, w12
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	tst	w10, w1
	cset	w3, eq
	tst	w9, w1
	cset	w21, eq
	tst	w11, w1
	cset	w22, eq
	tst	w8, w1
	cset	w23, eq
Lloh15:
	adrp	x2, _ad1843_LDA1GM@GOTPAGE
Lloh16:
	ldr	x2, [x2, _ad1843_LDA1GM@GOTPAGEOFF]
Lloh17:
	adrp	x4, _ad1843_RDA1GM@GOTPAGE
Lloh18:
	ldr	x4, [x4, _ad1843_RDA1GM@GOTPAGEOFF]
	mov	w1, #2
	mov	x5, x3
	bl	_ad1843_write_multi
Lloh19:
	adrp	x2, _ad1843_LX1MM@GOTPAGE
Lloh20:
	ldr	x2, [x2, _ad1843_LX1MM@GOTPAGEOFF]
Lloh21:
	adrp	x4, _ad1843_RX1MM@GOTPAGE
Lloh22:
	ldr	x4, [x4, _ad1843_RX1MM@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #2
	mov	x3, x21
	mov	x5, x21
	bl	_ad1843_write_multi
Lloh23:
	adrp	x2, _ad1843_LX2MM@GOTPAGE
Lloh24:
	ldr	x2, [x2, _ad1843_LX2MM@GOTPAGEOFF]
Lloh25:
	adrp	x4, _ad1843_RX2MM@GOTPAGE
Lloh26:
	ldr	x4, [x4, _ad1843_RX2MM@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #2
	mov	x3, x23
	mov	x5, x23
	bl	_ad1843_write_multi
Lloh27:
	adrp	x2, _ad1843_LMCMM@GOTPAGE
Lloh28:
	ldr	x2, [x2, _ad1843_LMCMM@GOTPAGEOFF]
Lloh29:
	adrp	x4, _ad1843_RMCMM@GOTPAGE
Lloh30:
	ldr	x4, [x4, _ad1843_RMCMM@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #2
	mov	x3, x22
	mov	x5, x22
	bl	_ad1843_write_multi
LBB0_3:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SOUND_MASK_PCM,4,2             ; @SOUND_MASK_PCM
	.comm	_SOUND_MASK_LINE,4,2            ; @SOUND_MASK_LINE
	.comm	_SOUND_MASK_CD,4,2              ; @SOUND_MASK_CD
	.comm	_SOUND_MASK_MIC,4,2             ; @SOUND_MASK_MIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ad1843_LDA1GM,4,2              ; @ad1843_LDA1GM
	.comm	_ad1843_RDA1GM,4,2              ; @ad1843_RDA1GM
	.comm	_ad1843_LX1MM,4,2               ; @ad1843_LX1MM
	.comm	_ad1843_RX1MM,4,2               ; @ad1843_RX1MM
	.comm	_ad1843_LX2MM,4,2               ; @ad1843_LX2MM
	.comm	_ad1843_RX2MM,4,2               ; @ad1843_RX2MM
	.comm	_ad1843_LMCMM,4,2               ; @ad1843_LMCMM
	.comm	_ad1843_RMCMM,4,2               ; @ad1843_RMCMM
	.no_dead_strip	_ad1843_set_outsrc
.subsections_via_symbols
