	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdsp_spdif_sync_check
_hdsp_spdif_sync_check:                 ## @hdsp_spdif_sync_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HDSP_statusRegister@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hdsp_read
	movq	_HDSP_SPDIFErrorFlag@GOTPCREL(%rip), %rdx
	movq	_HDSP_SPDIFSync@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	cmpl	$1, %ecx
	movl	$2, %esi
	sbbl	$0, %esi
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	cmovel	%esi, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDSP_statusRegister,4,2        ## @HDSP_statusRegister
	.comm	_HDSP_SPDIFErrorFlag,4,2        ## @HDSP_SPDIFErrorFlag
	.comm	_HDSP_SPDIFSync,4,2             ## @HDSP_SPDIFSync
	.no_dead_strip	_hdsp_spdif_sync_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdsp_spdif_sync_check
_hdsp_spdif_sync_check:                 ; @hdsp_spdif_sync_check
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _HDSP_statusRegister@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDSP_statusRegister@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_hdsp_read
Lloh3:
	adrp	x8, _HDSP_SPDIFErrorFlag@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDSP_SPDIFErrorFlag@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _HDSP_SPDIFSync@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HDSP_SPDIFSync@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w0
	mov	w9, #1
	cinc	w9, w9, ne
	tst	w8, w0
	csel	w0, w9, wzr, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDSP_statusRegister,4,2        ; @HDSP_statusRegister
	.comm	_HDSP_SPDIFErrorFlag,4,2        ; @HDSP_SPDIFErrorFlag
	.comm	_HDSP_SPDIFSync,4,2             ; @HDSP_SPDIFSync
	.no_dead_strip	_hdsp_spdif_sync_check
.subsections_via_symbols
