	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onyx_spdif_put
_onyx_spdif_put:                        ## @onyx_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	_ONYX_REG_DIG_INFO1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_onyx_read_register
	movl	-36(%rbp), %eax
	andl	$-63, %eax
	movq	(%r14), %rcx
	movl	(%rcx), %edx
	andl	$62, %edx
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_onyx_write_register
	movq	(%r14), %rax
	movl	4(%rax), %edx
	movl	%edx, -36(%rbp)
	movq	_ONYX_REG_DIG_INFO2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_onyx_write_register
	movq	_ONYX_REG_DIG_INFO3@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_onyx_read_register
	movl	-36(%rbp), %eax
	andl	$-64, %eax
	movq	(%r14), %rcx
	movl	12(%rcx), %edx
	andl	$63, %edx
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_onyx_write_register
	movq	_ONYX_REG_DIG_INFO4@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_onyx_read_register
	movl	-36(%rbp), %eax
	andl	$-16, %eax
	movq	(%r14), %rcx
	movl	16(%rcx), %edx
	andl	$15, %edx
	orl	%eax, %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_onyx_write_register
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	$1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ONYX_REG_DIG_INFO1,4,2         ## @ONYX_REG_DIG_INFO1
	.comm	_ONYX_REG_DIG_INFO2,4,2         ## @ONYX_REG_DIG_INFO2
	.comm	_ONYX_REG_DIG_INFO3,4,2         ## @ONYX_REG_DIG_INFO3
	.comm	_ONYX_REG_DIG_INFO4,4,2         ## @ONYX_REG_DIG_INFO4
	.no_dead_strip	_onyx_spdif_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function onyx_spdif_put
_onyx_spdif_put:                        ; @onyx_spdif_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x21, _ONYX_REG_DIG_INFO1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ONYX_REG_DIG_INFO1@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_onyx_read_register
	ldr	w2, [sp, #12]
	ldr	x8, [x20]
	ldr	w8, [x8]
	lsr	w8, w8, #1
	bfi	w2, w8, #1, #5
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_onyx_write_register
	ldr	x8, [x20]
	ldr	w2, [x8, #4]
	str	w2, [sp, #12]
Lloh2:
	adrp	x8, _ONYX_REG_DIG_INFO2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ONYX_REG_DIG_INFO2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_onyx_write_register
Lloh5:
	adrp	x21, _ONYX_REG_DIG_INFO3@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ONYX_REG_DIG_INFO3@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_onyx_read_register
	ldr	w2, [sp, #12]
	ldr	x8, [x20]
	ldr	w8, [x8, #12]
	bfxil	w2, w8, #0, #6
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_onyx_write_register
Lloh7:
	adrp	x21, _ONYX_REG_DIG_INFO4@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ONYX_REG_DIG_INFO4@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_onyx_read_register
	ldr	w2, [sp, #12]
	ldr	x8, [x20]
	ldr	w8, [x8, #16]
	bfxil	w2, w8, #0, #4
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_onyx_write_register
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #1
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ONYX_REG_DIG_INFO1,4,2         ; @ONYX_REG_DIG_INFO1
	.comm	_ONYX_REG_DIG_INFO2,4,2         ; @ONYX_REG_DIG_INFO2
	.comm	_ONYX_REG_DIG_INFO3,4,2         ; @ONYX_REG_DIG_INFO3
	.comm	_ONYX_REG_DIG_INFO4,4,2         ; @ONYX_REG_DIG_INFO4
	.no_dead_strip	_onyx_spdif_put
.subsections_via_symbols
