	.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
	leaq	L_.str(%rip), %rdi
	callq	_DE_ACT
	movq	16(%r15), %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
	movl	%eax, %r12d
	leal	-128(%r14), %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movl	4(%r15), %eax
	movq	_DIGITAL_MODE_ADAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_DE_ACT
	movq	_GML_SPDIF_CLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_GML_CLOCK_DETECT_BIT_SPDIF96@GOTPCREL(%rip), %rax
	movq	_GML_DOUBLE_SPEED_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.7:
	orl	%ebx, %esi
	jmp	LBB0_15
LBB0_13:
	movslq	%r14d, %rdi
	callq	_DE_ACT
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_DE_ACT
	movl	$129, (%r15)
	movl	8(%r15), %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_sample_rate                ## TAILCALL
LBB0_14:
	leaq	L_.str.5(%rip), %rdi
	callq	_DE_ACT
	movq	_GML_ESYNC_CLOCK@GOTPCREL(%rip), %rax
	movq	_GML_DOUBLE_SPEED_MODE@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movl	%ebx, %esi
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.4(%rip), %rdi
	callq	_DE_ACT
	movq	_GML_ESYNC_CLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movl	4(%r15), %eax
	movq	_DIGITAL_MODE_ADAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	_DE_ACT
	movq	_GML_ADAT_CLOCK@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %ebx
	movq	_GML_DOUBLE_SPEED_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_11:
	notl	%esi
	andl	%ebx, %esi
LBB0_15:
	movl	%r14d, (%r15)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_control_reg              ## TAILCALL
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
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_input_clock:\n"

	.comm	_GML_CLOCK_CLEAR_MASK,4,2       ## @GML_CLOCK_CLEAR_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Set Gina24 clock to INTERNAL\n"

	.comm	_DIGITAL_MODE_ADAT,4,2          ## @DIGITAL_MODE_ADAT
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.2:                               ## @.str.2
	.asciz	"Set Gina24 clock to SPDIF\n"

	.comm	_GML_SPDIF_CLOCK,4,2            ## @GML_SPDIF_CLOCK
	.comm	_GML_CLOCK_DETECT_BIT_SPDIF96,4,2 ## @GML_CLOCK_DETECT_BIT_SPDIF96
	.comm	_GML_DOUBLE_SPEED_MODE,4,2      ## @GML_DOUBLE_SPEED_MODE
L_.str.3:                               ## @.str.3
	.asciz	"Set Gina24 clock to ADAT\n"

	.comm	_GML_ADAT_CLOCK,4,2             ## @GML_ADAT_CLOCK
L_.str.4:                               ## @.str.4
	.asciz	"Set Gina24 clock to ESYNC\n"

	.comm	_GML_ESYNC_CLOCK,4,2            ## @GML_ESYNC_CLOCK
L_.str.5:                               ## @.str.5
	.asciz	"Set Gina24 clock to ESYNC96\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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_ACT
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	mov	x22, x0
Lloh2:
	adrp	x8, _GML_CLOCK_CLEAR_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GML_CLOCK_CLEAR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	sub	w8, w20, #128
	cmp	w8, #4
	b.hi	LBB0_11
; %bb.1:
	and	w22, w23, w22
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #4]
Lloh7:
	adrp	x9, _DIGITAL_MODE_ADAT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DIGITAL_MODE_ADAT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.3:
	mov	x21, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DE_ACT
Lloh12:
	adrp	x8, _GML_SPDIF_CLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GML_SPDIF_CLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w8, w22
Lloh15:
	adrp	x9, _GML_CLOCK_DETECT_BIT_SPDIF96@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GML_CLOCK_DETECT_BIT_SPDIF96@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w21
Lloh18:
	adrp	x9, _GML_DOUBLE_SPEED_MODE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _GML_DOUBLE_SPEED_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	csel	w1, w10, w8, eq
	b	LBB0_9
LBB0_4:
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DE_ACT
Lloh23:
	adrp	x8, _GML_ESYNC_CLOCK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GML_ESYNC_CLOCK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _GML_DOUBLE_SPEED_MODE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GML_DOUBLE_SPEED_MODE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w1, w8, w9
	b	LBB0_9
LBB0_5:
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DE_ACT
Lloh31:
	adrp	x8, _GML_ESYNC_CLOCK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _GML_ESYNC_CLOCK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	w8, [x19, #4]
Lloh33:
	adrp	x9, _DIGITAL_MODE_ADAT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _DIGITAL_MODE_ADAT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.7:
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DE_ACT
Lloh38:
	adrp	x8, _GML_ADAT_CLOCK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GML_ADAT_CLOCK@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	orr	w8, w8, w22
Lloh40:
	adrp	x9, _GML_DOUBLE_SPEED_MODE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _GML_DOUBLE_SPEED_MODE@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	bic	w1, w8, w9
LBB0_9:
	str	w20, [x19]
Lloh43:
	adrp	x8, _TRUE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_write_control_reg
LBB0_10:
Lloh46:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
	sxtw	x0, w20
	bl	_DE_ACT
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh50:
	adrp	x0, l_.str.1@PAGE
Lloh51:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DE_ACT
	mov	w8, #129
	str	w8, [x19]
	ldr	w1, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_set_sample_rate
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-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"

	.comm	_GML_CLOCK_CLEAR_MASK,4,2       ; @GML_CLOCK_CLEAR_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Set Gina24 clock to INTERNAL\n"

	.comm	_DIGITAL_MODE_ADAT,4,2          ; @DIGITAL_MODE_ADAT
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.2:                               ; @.str.2
	.asciz	"Set Gina24 clock to SPDIF\n"

	.comm	_GML_SPDIF_CLOCK,4,2            ; @GML_SPDIF_CLOCK
	.comm	_GML_CLOCK_DETECT_BIT_SPDIF96,4,2 ; @GML_CLOCK_DETECT_BIT_SPDIF96
	.comm	_GML_DOUBLE_SPEED_MODE,4,2      ; @GML_DOUBLE_SPEED_MODE
l_.str.3:                               ; @.str.3
	.asciz	"Set Gina24 clock to ADAT\n"

	.comm	_GML_ADAT_CLOCK,4,2             ; @GML_ADAT_CLOCK
l_.str.4:                               ; @.str.4
	.asciz	"Set Gina24 clock to ESYNC\n"

	.comm	_GML_ESYNC_CLOCK,4,2            ; @GML_ESYNC_CLOCK
l_.str.5:                               ; @.str.5
	.asciz	"Set Gina24 clock to ESYNC96\n"

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