	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cmipci_spdout_enable_put
_snd_cmipci_spdout_enable_put:          ## @snd_cmipci_spdout_enable_put
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	_cmipci_switch_arg_spdif_enable@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	__snd_cmipci_uswitch_put
	movl	%eax, %r12d
	movq	_cmipci_switch_arg_spdo2dac@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	__snd_cmipci_uswitch_put
	movl	%eax, %ebx
	orl	%r12d, %ebx
	je	LBB0_6
## %bb.1:
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	movq	8(%r14), %rax
	je	LBB0_4
## %bb.2:
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_CM_REG_FUNCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_PLAYBACK_SPDF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_snd_cmipci_set_bit
	jmp	LBB0_6
LBB0_4:
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_CM_REG_FUNCTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CM_PLAYBACK_SPDF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_snd_cmipci_clear_bit
LBB0_6:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmipci_switch_arg_spdif_enable,4,2 ## @cmipci_switch_arg_spdif_enable
	.comm	_cmipci_switch_arg_spdo2dac,4,2 ## @cmipci_switch_arg_spdo2dac
	.comm	_CM_REG_FUNCTRL1,4,2            ## @CM_REG_FUNCTRL1
	.comm	_CM_PLAYBACK_SPDF,4,2           ## @CM_PLAYBACK_SPDF
	.no_dead_strip	_snd_cmipci_spdout_enable_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cmipci_spdout_enable_put
_snd_cmipci_spdout_enable_put:          ; @snd_cmipci_spdout_enable_put
	.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, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x20, x0
Lloh0:
	adrp	x2, _cmipci_switch_arg_spdif_enable@GOTPAGE
Lloh1:
	ldr	x2, [x2, _cmipci_switch_arg_spdif_enable@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	__snd_cmipci_uswitch_put
	mov	x22, x0
Lloh2:
	adrp	x2, _cmipci_switch_arg_spdo2dac@GOTPAGE
Lloh3:
	ldr	x2, [x2, _cmipci_switch_arg_spdo2dac@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	__snd_cmipci_uswitch_put
	orr	w21, w0, w22
	cbz	w21, LBB0_6
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	x8, [x20, #8]
	cbz	x9, LBB0_4
; %bb.2:
	cbz	x8, LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _CM_REG_FUNCTRL1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CM_REG_FUNCTRL1@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _CM_PLAYBACK_SPDF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CM_PLAYBACK_SPDF@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_snd_cmipci_set_bit
	b	LBB0_6
LBB0_4:
	cbz	x8, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _CM_REG_FUNCTRL1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CM_REG_FUNCTRL1@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _CM_PLAYBACK_SPDF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CM_PLAYBACK_SPDF@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_snd_cmipci_clear_bit
LBB0_6:
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x8, [x20]
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_cmipci_switch_arg_spdif_enable,4,2 ; @cmipci_switch_arg_spdif_enable
	.comm	_cmipci_switch_arg_spdo2dac,4,2 ; @cmipci_switch_arg_spdo2dac
	.comm	_CM_REG_FUNCTRL1,4,2            ; @CM_REG_FUNCTRL1
	.comm	_CM_PLAYBACK_SPDF,4,2           ; @CM_PLAYBACK_SPDF
	.no_dead_strip	_snd_cmipci_spdout_enable_put
.subsections_via_symbols
