	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_recsrc
_set_recsrc:                            ## @set_recsrc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rax
	movq	_dev@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	cmpq	%rdi, %rcx
	je	LBB0_13
## %bb.1:
	xorq	%rax, %rcx
	movq	%rcx, (%rbx)
	movq	_SOUND_MASK_IMIX@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	testq	%rax, %rcx
	je	LBB0_4
## %bb.2:
	movq	_HDEXAR_SET_ANA_IN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_SOUND_MASK_SYNTH@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	testq	%rdx, %rcx
	je	LBB0_6
## %bb.5:
	movq	_HDEXAR_SET_SYNTH_IN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	_dev@GOTPCREL(%rip), %rdi
LBB0_10:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_msnd_send_word
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_HDEX_AUX_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dev@GOTPCREL(%rip), %rdi
	callq	_chk_send_dsp_cmd
LBB0_12:
	movq	(%rbx), %rax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_SOUND_MASK_DIGITAL1@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	testq	%rdx, %rcx
	je	LBB0_9
## %bb.7:
	movq	_F_HAVEDIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.14:
	movq	_HDEXAR_SET_DAT_IN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movslq	(%r14), %rax
LBB0_9:
	movq	%rax, (%rbx)
	movq	_HDEXAR_SET_ANA_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_dev,16,3                       ## @dev
	.comm	_SOUND_MASK_IMIX,4,2            ## @SOUND_MASK_IMIX
	.comm	_HDEXAR_SET_ANA_IN,4,2          ## @HDEXAR_SET_ANA_IN
	.comm	_HDEX_AUX_REQ,4,2               ## @HDEX_AUX_REQ
	.comm	_SOUND_MASK_SYNTH,4,2           ## @SOUND_MASK_SYNTH
	.comm	_HDEXAR_SET_SYNTH_IN,4,2        ## @HDEXAR_SET_SYNTH_IN
	.comm	_SOUND_MASK_DIGITAL1,4,2        ## @SOUND_MASK_DIGITAL1
	.comm	_F_HAVEDIGITAL,4,2              ## @F_HAVEDIGITAL
	.comm	_HDEXAR_SET_DAT_IN,4,2          ## @HDEXAR_SET_DAT_IN
	.no_dead_strip	_set_recsrc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_recsrc
_set_recsrc:                            ; @set_recsrc
	.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
Lloh0:
	adrp	x19, _dev@GOTPAGE
Lloh1:
	ldr	x19, [x19, _dev@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, x0
	b.eq	LBB0_9
; %bb.1:
	eor	x9, x8, x0
	str	x9, [x19]
Lloh2:
	adrp	x20, _SOUND_MASK_IMIX@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SOUND_MASK_IMIX@GOTPAGEOFF]
	ldrsw	x8, [x20]
	tst	x9, x8
	b.eq	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _HDEXAR_SET_ANA_IN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HDEXAR_SET_ANA_IN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x10, _SOUND_MASK_SYNTH@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SOUND_MASK_SYNTH@GOTPAGEOFF]
Lloh8:
	ldrsw	x10, [x10]
	tst	x9, x10
	b.eq	LBB0_10
; %bb.4:
Lloh9:
	adrp	x8, _HDEXAR_SET_SYNTH_IN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HDEXAR_SET_SYNTH_IN@GOTPAGEOFF]
LBB0_5:
	ldr	w3, [x8]
Lloh11:
	adrp	x0, _dev@GOTPAGE
Lloh12:
	ldr	x0, [x0, _dev@GOTPAGEOFF]
LBB0_6:
	mov	w1, #0
	mov	w2, #0
	bl	_msnd_send_word
	cbnz	x0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _HDEX_AUX_REQ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HDEX_AUX_REQ@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x0, _dev@GOTPAGE
Lloh17:
	ldr	x0, [x0, _dev@GOTPAGEOFF]
	bl	_chk_send_dsp_cmd
LBB0_8:
	ldr	x0, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh18:
	adrp	x10, _SOUND_MASK_DIGITAL1@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SOUND_MASK_DIGITAL1@GOTPAGEOFF]
Lloh20:
	ldrsw	x10, [x10]
	tst	x9, x10
	b.eq	LBB0_14
; %bb.11:
Lloh21:
	adrp	x8, _F_HAVEDIGITAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _F_HAVEDIGITAL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.12:
Lloh24:
	adrp	x8, _HDEXAR_SET_DAT_IN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HDEXAR_SET_DAT_IN@GOTPAGEOFF]
	b	LBB0_5
LBB0_13:
	ldrsw	x8, [x20]
LBB0_14:
	str	x8, [x19]
Lloh26:
	adrp	x8, _HDEXAR_SET_ANA_IN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDEXAR_SET_ANA_IN@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x19
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_dev,16,3                       ; @dev
	.comm	_SOUND_MASK_IMIX,4,2            ; @SOUND_MASK_IMIX
	.comm	_HDEXAR_SET_ANA_IN,4,2          ; @HDEXAR_SET_ANA_IN
	.comm	_HDEX_AUX_REQ,4,2               ; @HDEX_AUX_REQ
	.comm	_SOUND_MASK_SYNTH,4,2           ; @SOUND_MASK_SYNTH
	.comm	_HDEXAR_SET_SYNTH_IN,4,2        ; @HDEXAR_SET_SYNTH_IN
	.comm	_SOUND_MASK_DIGITAL1,4,2        ; @SOUND_MASK_DIGITAL1
	.comm	_F_HAVEDIGITAL,4,2              ; @F_HAVEDIGITAL
	.comm	_HDEXAR_SET_DAT_IN,4,2          ; @HDEXAR_SET_DAT_IN
	.no_dead_strip	_set_recsrc
.subsections_via_symbols
