	.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, %r15
	movq	16(%rdi), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_GML_CLOCK_CLEAR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	16(%r15), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	leal	-128(%r14), %ecx
	cmpl	$3, %ecx
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_6:
	movq	_GML_WORD_CLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_GML_CLOCK_DETECT_BIT_WORD96@GOTPCREL(%rip), %rcx
	movq	_GML_DOUBLE_SPEED_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	movl	%r12d, %edx
	orl	%ebx, %edx
	notl	%r12d
	andl	%ebx, %r12d
	testl	%eax, (%rcx)
	cmovnel	%edx, %r12d
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DE_ACT
	movl	$130, (%r15)
	movl	8(%r15), %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_sample_rate                ## TAILCALL
LBB0_7:
	movl	4(%r15), %eax
	movq	_DIGITAL_MODE_ADAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.8:
	movq	_GML_ADAT_CLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_GML_DOUBLE_SPEED_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	notl	%r12d
	andl	%ebx, %r12d
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_11
LBB0_9:
	movslq	%r14d, %rdi
	callq	_DE_ACT
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movl	4(%r15), %eax
	movq	_DIGITAL_MODE_ADAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
LBB0_4:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_GML_SPDIF_CLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_GML_DOUBLE_SPEED_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	notl	%r12d
	andl	%ebx, %r12d
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	callq	_DE_ACT
	movl	%r14d, (%r15)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r12d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_control_reg              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_GML_CLOCK_CLEAR_MASK,4,2       ## @GML_CLOCK_CLEAR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set Layla24 clock to INTERNAL\n"

	.comm	_DIGITAL_MODE_ADAT,4,2          ## @DIGITAL_MODE_ADAT
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_GML_SPDIF_CLOCK,4,2            ## @GML_SPDIF_CLOCK
	.comm	_GML_DOUBLE_SPEED_MODE,4,2      ## @GML_DOUBLE_SPEED_MODE
L_.str.1:                               ## @.str.1
	.asciz	"Set Layla24 clock to SPDIF\n"

	.comm	_GML_WORD_CLOCK,4,2             ## @GML_WORD_CLOCK
	.comm	_GML_CLOCK_DETECT_BIT_WORD96,4,2 ## @GML_CLOCK_DETECT_BIT_WORD96
L_.str.2:                               ## @.str.2
	.asciz	"Set Layla24 clock to WORD\n"

	.comm	_GML_ADAT_CLOCK,4,2             ## @GML_ADAT_CLOCK
L_.str.3:                               ## @.str.3
	.asciz	"Set Layla24 clock to ADAT\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TRUE,4,2                       ## @TRUE
	.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
	ldr	x8, [x0, #16]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	mov	x21, x0
Lloh0:
	adrp	x8, _GML_CLOCK_CLEAR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GML_CLOCK_CLEAR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	sub	w9, w20, #128
	cmp	w9, #3
	b.hi	LBB0_6
; %bb.1:
	and	w8, w22, w21
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh5:
	adrp	x9, _GML_WORD_CLOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GML_WORD_CLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _GML_CLOCK_DETECT_BIT_WORD96@GOTPAGE
Lloh9:
	ldr	x9, [x9, _GML_CLOCK_DETECT_BIT_WORD96@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _GML_DOUBLE_SPEED_MODE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _GML_DOUBLE_SPEED_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w11, w10, w8
	bic	w8, w8, w10
	tst	w9, w0
	csel	w21, w8, w11, eq
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_3:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_ACT
	mov	w8, #130
	str	w8, [x19]
	ldr	w1, [x19, #8]
	mov	x0, x19
	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
	b	_set_sample_rate
LBB0_4:
	ldr	w9, [x19, #4]
Lloh18:
	adrp	x10, _DIGITAL_MODE_ADAT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DIGITAL_MODE_ADAT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.5:
Lloh21:
	adrp	x9, _GML_ADAT_CLOCK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _GML_ADAT_CLOCK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _GML_DOUBLE_SPEED_MODE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _GML_DOUBLE_SPEED_MODE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	bic	w21, w8, w9
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_6:
	sxtw	x0, w20
	bl	_DE_ACT
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	ldr	w9, [x19, #4]
Lloh31:
	adrp	x10, _DIGITAL_MODE_ADAT@GOTPAGE
Lloh32:
	ldr	x10, [x10, _DIGITAL_MODE_ADAT@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_10
LBB0_8:
Lloh34:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_10:
Lloh36:
	adrp	x9, _GML_SPDIF_CLOCK@GOTPAGE
Lloh37:
	ldr	x9, [x9, _GML_SPDIF_CLOCK@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh39:
	adrp	x9, _GML_DOUBLE_SPEED_MODE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _GML_DOUBLE_SPEED_MODE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	bic	w21, w8, w9
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_DE_ACT
	str	w20, [x19]
Lloh44:
	adrp	x8, _TRUE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	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
	b	_write_control_reg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_GML_CLOCK_CLEAR_MASK,4,2       ; @GML_CLOCK_CLEAR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set Layla24 clock to INTERNAL\n"

	.comm	_DIGITAL_MODE_ADAT,4,2          ; @DIGITAL_MODE_ADAT
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_GML_SPDIF_CLOCK,4,2            ; @GML_SPDIF_CLOCK
	.comm	_GML_DOUBLE_SPEED_MODE,4,2      ; @GML_DOUBLE_SPEED_MODE
l_.str.1:                               ; @.str.1
	.asciz	"Set Layla24 clock to SPDIF\n"

	.comm	_GML_WORD_CLOCK,4,2             ; @GML_WORD_CLOCK
	.comm	_GML_CLOCK_DETECT_BIT_WORD96,4,2 ; @GML_CLOCK_DETECT_BIT_WORD96
l_.str.2:                               ; @.str.2
	.asciz	"Set Layla24 clock to WORD\n"

	.comm	_GML_ADAT_CLOCK,4,2             ; @GML_ADAT_CLOCK
l_.str.3:                               ; @.str.3
	.asciz	"Set Layla24 clock to ADAT\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_set_input_clock
.subsections_via_symbols
