	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spdif_pcm_put
_spdif_pcm_put:                         ## @spdif_pcm_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	(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_iec958_to_oxygen
	movq	%rax, %r15
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %r12
	cmpq	%r12, %r15
	je	LBB0_3
## %bb.1:
	movq	%r15, (%rbx)
	movl	8(%rbx), %eax
	movq	_PCM_SPDIF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_write_spdif_bits
LBB0_3:
	xorl	%ebx, %ebx
	cmpq	%r12, %r15
	setne	%bl
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCM_SPDIF,4,2                  ## @PCM_SPDIF
	.no_dead_strip	_spdif_pcm_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spdif_pcm_put
_spdif_pcm_put:                         ; @spdif_pcm_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
	ldr	x20, [x0]
	mov	x0, x1
	bl	_iec958_to_oxygen
	mov	x21, x0
	add	x19, x20, #12
	mov	x0, x19
	bl	_mutex_lock
	ldr	x22, [x20]
	cmp	x21, x22
	b.eq	LBB0_3
; %bb.1:
	str	x21, [x20]
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _PCM_SPDIF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PCM_SPDIF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_write_spdif_bits
LBB0_3:
	cmp	x21, x22
	cset	w20, ne
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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	_PCM_SPDIF,4,2                  ; @PCM_SPDIF
	.no_dead_strip	_spdif_pcm_put
.subsections_via_symbols
