	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1x_spdif_put
_snd_emu10k1x_spdif_put:                ## @snd_emu10k1x_spdif_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
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movq	(%r15), %rcx
	movl	4(%rcx), %edx
	movl	8(%rcx), %esi
	shll	$8, %edx
	orl	(%rcx), %edx
	shll	$16, %esi
	movl	12(%rcx), %ebx
	shll	$24, %ebx
	orl	%esi, %ebx
	orl	%edx, %ebx
	movq	(%r14), %rcx
	movl	%eax, %r12d
	movl	(%rcx,%r12,4), %r15d
	cmpl	%r15d, %ebx
	je	LBB0_2
## %bb.1:
	movq	_SPCS0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_snd_emu10k1x_ptr_write
	movq	(%r14), %rax
	movl	%ebx, (%rax,%r12,4)
LBB0_2:
	xorl	%eax, %eax
	cmpl	%r15d, %ebx
	setne	%al
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPCS0,8,3                      ## @SPCS0
	.no_dead_strip	_snd_emu10k1x_spdif_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1x_spdif_put
_snd_emu10k1x_spdif_put:                ; @snd_emu10k1x_spdif_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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	add	x1, x20, #8
	mov	x0, x21
	bl	_snd_ctl_get_ioffidx
	ldr	x8, [x20]
	ldp	w9, w10, [x8]
	orr	w9, w9, w10, lsl #8
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #16
	orr	w20, w9, w8, lsl #24
	ldr	x8, [x19]
	ldr	w21, [x8, w0, uxtw #2]
	cmp	w20, w21
	b.eq	LBB0_2
; %bb.1:
	mov	w22, w0
Lloh0:
	adrp	x8, _SPCS0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPCS0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_snd_emu10k1x_ptr_write
	ldr	x8, [x19]
	str	w20, [x8, x22, lsl #2]
LBB0_2:
	cmp	w20, w21
	cset	w0, ne
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SPCS0,8,3                      ; @SPCS0
	.no_dead_strip	_snd_emu10k1x_spdif_put
.subsections_via_symbols
