	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_input_clock
_set_input_clock:                       ## @set_input_clock
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_DE_ACT
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	leaq	L_.str.3(%rip), %rdi
	callq	_DE_ACT
	movq	_LAYLA20_CLOCK_WORD@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_5:
	movslq	%r14d, %rdi
	callq	_DE_ACT
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	callq	_DE_ACT
	movq	_LAYLA20_CLOCK_SUPER@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	_DE_ACT
	movq	_LAYLA20_CLOCK_SPDIF@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_DE_ACT
	movq	16(%r12), %r15
	movq	_LAYLA20_CLOCK_INTERNAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	movl	%r14d, (%r12)
	callq	_cpu_to_le16
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movq	%r12, %rdi
	callq	_clear_handshake
	movq	_DSP_VC_UPDATE_CLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_send_vector
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_set_sample_rate
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_input_clock:\n"

L_.str.1:                               ## @.str.1
	.asciz	"Set Layla20 clock to INTERNAL\n"

	.comm	_LAYLA20_CLOCK_INTERNAL,4,2     ## @LAYLA20_CLOCK_INTERNAL
L_.str.2:                               ## @.str.2
	.asciz	"Set Layla20 clock to SPDIF\n"

	.comm	_LAYLA20_CLOCK_SPDIF,4,2        ## @LAYLA20_CLOCK_SPDIF
L_.str.3:                               ## @.str.3
	.asciz	"Set Layla20 clock to WORD\n"

	.comm	_LAYLA20_CLOCK_WORD,4,2         ## @LAYLA20_CLOCK_WORD
L_.str.4:                               ## @.str.4
	.asciz	"Set Layla20 clock to SUPER\n"

	.comm	_LAYLA20_CLOCK_SUPER,4,2        ## @LAYLA20_CLOCK_SUPER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DSP_VC_UPDATE_CLOCKS,4,2       ## @DSP_VC_UPDATE_CLOCKS
	.no_dead_strip	_set_input_clock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_input_clock
_set_input_clock:                       ; @set_input_clock
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_ACT
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DE_ACT
	mov	x21, #0
Lloh6:
	adrp	x8, _LAYLA20_CLOCK_WORD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LAYLA20_CLOCK_WORD@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	sxtw	x0, w20
	bl	_DE_ACT
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DE_ACT
	mov	x21, #0
Lloh13:
	adrp	x8, _LAYLA20_CLOCK_SUPER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LAYLA20_CLOCK_SUPER@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DE_ACT
	mov	x21, #0
Lloh17:
	adrp	x8, _LAYLA20_CLOCK_SPDIF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LAYLA20_CLOCK_SPDIF@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DE_ACT
	ldr	x21, [x19, #16]
Lloh21:
	adrp	x8, _LAYLA20_CLOCK_INTERNAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LAYLA20_CLOCK_INTERNAL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	str	w20, [x19]
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	str	w0, [x8]
	mov	x0, x19
	bl	_clear_handshake
Lloh23:
	adrp	x8, _DSP_VC_UPDATE_CLOCKS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DSP_VC_UPDATE_CLOCKS@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_send_vector
	cbz	x21, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_set_sample_rate
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_input_clock:\n"

l_.str.1:                               ; @.str.1
	.asciz	"Set Layla20 clock to INTERNAL\n"

	.comm	_LAYLA20_CLOCK_INTERNAL,4,2     ; @LAYLA20_CLOCK_INTERNAL
l_.str.2:                               ; @.str.2
	.asciz	"Set Layla20 clock to SPDIF\n"

	.comm	_LAYLA20_CLOCK_SPDIF,4,2        ; @LAYLA20_CLOCK_SPDIF
l_.str.3:                               ; @.str.3
	.asciz	"Set Layla20 clock to WORD\n"

	.comm	_LAYLA20_CLOCK_WORD,4,2         ; @LAYLA20_CLOCK_WORD
l_.str.4:                               ; @.str.4
	.asciz	"Set Layla20 clock to SUPER\n"

	.comm	_LAYLA20_CLOCK_SUPER,4,2        ; @LAYLA20_CLOCK_SUPER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DSP_VC_UPDATE_CLOCKS,4,2       ; @DSP_VC_UPDATE_CLOCKS
	.no_dead_strip	_set_input_clock
.subsections_via_symbols
