	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdsp_set_pref_sync_ref
_hdsp_set_pref_sync_ref:                ## @hdsp_set_pref_sync_ref
	.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_SyncRefMask@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	(%rdi), %edx
                                        ## kill: def $esi killed $esi def $rsi
	movl	%edx, (%rdi)
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rsi,4), %rsi
	addq	%rcx, %rsi
	jmpq	*%rsi
LBB0_7:
	movq	_HDSP_SyncRef_WORD@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_HDSP_SyncRef_SPDIF@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_HDSP_SyncRef_ADAT_SYNC@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_HDSP_SyncRef_ADAT3@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	movq	_HDSP_SyncRef_ADAT2@GOTPCREL(%rip), %rax
LBB0_9:
	orl	(%rax), %edx
LBB0_10:
	movl	%edx, (%rdi)
	movq	_HDSP_controlRegister@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hdsp_write
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edx
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_HDSP_SyncRefMask,4,2           ## @HDSP_SyncRefMask
	.comm	_HDSP_SyncRef_ADAT2,4,2         ## @HDSP_SyncRef_ADAT2
	.comm	_HDSP_SyncRef_ADAT3,4,2         ## @HDSP_SyncRef_ADAT3
	.comm	_HDSP_SyncRef_SPDIF,4,2         ## @HDSP_SyncRef_SPDIF
	.comm	_HDSP_SyncRef_WORD,4,2          ## @HDSP_SyncRef_WORD
	.comm	_HDSP_SyncRef_ADAT_SYNC,4,2     ## @HDSP_SyncRef_ADAT_SYNC
	.comm	_HDSP_controlRegister,4,2       ## @HDSP_controlRegister
	.no_dead_strip	_hdsp_set_pref_sync_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdsp_set_pref_sync_ref
_hdsp_set_pref_sync_ref:                ; @hdsp_set_pref_sync_ref
	.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	x9, _HDSP_SyncRefMask@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDSP_SyncRefMask@GOTPAGEOFF]
	ldr	w8, [x9]
	ldr	w10, [x0]
	bic	w8, w10, w8
	str	w8, [x0]
	sub	w10, w1, #128
	cmp	w10, #5
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x11, lJTI0_0@PAGE
Lloh3:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
Lloh4:
	adrp	x9, _HDSP_SyncRef_WORD@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HDSP_SyncRef_WORD@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh6:
	adrp	x9, _HDSP_SyncRef_SPDIF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HDSP_SyncRef_SPDIF@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x9, _HDSP_SyncRef_ADAT_SYNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HDSP_SyncRef_ADAT_SYNC@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x9, _HDSP_SyncRef_ADAT3@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HDSP_SyncRef_ADAT3@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x9, _HDSP_SyncRef_ADAT2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HDSP_SyncRef_ADAT2@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	orr	w2, w9, w8
LBB0_9:
	str	w2, [x0]
Lloh14:
	adrp	x8, _HDSP_controlRegister@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HDSP_controlRegister@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_hdsp_write
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	w9, [x9]
	bic	w2, w8, w9
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_HDSP_SyncRefMask,4,2           ; @HDSP_SyncRefMask
	.comm	_HDSP_SyncRef_ADAT2,4,2         ; @HDSP_SyncRef_ADAT2
	.comm	_HDSP_SyncRef_ADAT3,4,2         ; @HDSP_SyncRef_ADAT3
	.comm	_HDSP_SyncRef_SPDIF,4,2         ; @HDSP_SyncRef_SPDIF
	.comm	_HDSP_SyncRef_WORD,4,2          ; @HDSP_SyncRef_WORD
	.comm	_HDSP_SyncRef_ADAT_SYNC,4,2     ; @HDSP_SyncRef_ADAT_SYNC
	.comm	_HDSP_controlRegister,4,2       ; @HDSP_controlRegister
	.no_dead_strip	_hdsp_set_pref_sync_ref
.subsections_via_symbols
