	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm9761_spdif_out_source_put
_cm9761_spdif_out_source_put:           ## @cm9761_spdif_out_source_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpl	$2, (%rax)
	movq	_AC97_CM9761_FUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_snd_ac97_update_bits
	movq	_AC97_CM9761_SPDIF_CTRL@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdx
	xorl	%ecx, %ecx
	cmpl	$1, (%rdx)
	movl	(%rax), %esi
	sete	%cl
	addl	%ecx, %ecx
	movq	%r14, %rdi
	movl	$2, %edx
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_ac97_update_bits           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_CM9761_FUNC,4,2           ## @AC97_CM9761_FUNC
	.comm	_AC97_CM9761_SPDIF_CTRL,4,2     ## @AC97_CM9761_SPDIF_CTRL
	.no_dead_strip	_cm9761_spdif_out_source_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm9761_spdif_out_source_put
_cm9761_spdif_out_source_put:           ; @cm9761_spdif_out_source_put
	.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
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _AC97_CM9761_FUNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC97_CM9761_FUNC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	cmp	w8, #2
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_snd_ac97_update_bits
Lloh3:
	adrp	x8, _AC97_CM9761_SPDIF_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC97_CM9761_SPDIF_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #1
	cset	w8, eq
	lsl	w3, w8, #1
	mov	x0, x19
	mov	w2, #2
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_ac97_update_bits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_CM9761_FUNC,4,2           ; @AC97_CM9761_FUNC
	.comm	_AC97_CM9761_SPDIF_CTRL,4,2     ; @AC97_CM9761_SPDIF_CTRL
	.no_dead_strip	_cm9761_spdif_out_source_put
.subsections_via_symbols
