	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_input_clocks
_detect_input_clocks:                   ## @detect_input_clocks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %ecx
	movq	_ECHO_CLOCK_BIT_INTERNAL@GOTPCREL(%rip), %rdx
	movq	_E3G_CLOCK_DETECT_BIT_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	movq	_ECHO_CLOCK_BIT_WORD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	(%rdx), %eax
	movl	(%rbx), %edx
	leal	-128(%rdx), %esi
	cmpl	$2, %esi
	jae	LBB0_3
## %bb.6:
	movq	_E3G_CLOCK_DETECT_BIT_SPDIF@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.7:
	movq	_ECHO_CLOCK_BIT_SPDIF@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_3:
	cmpl	$130, %edx
	jne	LBB0_9
## %bb.4:
	movq	_E3G_CLOCK_DETECT_BIT_ADAT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.5:
	movq	_ECHO_CLOCK_BIT_ADAT@GOTPCREL(%rip), %rcx
LBB0_8:
	orl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECHO_CLOCK_BIT_INTERNAL,4,2    ## @ECHO_CLOCK_BIT_INTERNAL
	.comm	_E3G_CLOCK_DETECT_BIT_WORD,4,2  ## @E3G_CLOCK_DETECT_BIT_WORD
	.comm	_ECHO_CLOCK_BIT_WORD,4,2        ## @ECHO_CLOCK_BIT_WORD
	.comm	_E3G_CLOCK_DETECT_BIT_SPDIF,4,2 ## @E3G_CLOCK_DETECT_BIT_SPDIF
	.comm	_ECHO_CLOCK_BIT_SPDIF,4,2       ## @ECHO_CLOCK_BIT_SPDIF
	.comm	_E3G_CLOCK_DETECT_BIT_ADAT,4,2  ## @E3G_CLOCK_DETECT_BIT_ADAT
	.comm	_ECHO_CLOCK_BIT_ADAT,4,2        ## @ECHO_CLOCK_BIT_ADAT
	.no_dead_strip	_detect_input_clocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_input_clocks
_detect_input_clocks:                   ; @detect_input_clocks
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x8, x0
Lloh0:
	adrp	x9, _ECHO_CLOCK_BIT_INTERNAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ECHO_CLOCK_BIT_INTERNAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _E3G_CLOCK_DETECT_BIT_WORD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _E3G_CLOCK_DETECT_BIT_WORD@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _ECHO_CLOCK_BIT_WORD@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ECHO_CLOCK_BIT_WORD@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w10, w0
	csel	w10, wzr, w11, eq
	orr	w0, w10, w9
	ldr	w9, [x19]
	sub	w10, w9, #128
	cmp	w10, #2
	b.hs	LBB0_3
; %bb.1:
Lloh9:
	adrp	x9, _E3G_CLOCK_DETECT_BIT_SPDIF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E3G_CLOCK_DETECT_BIT_SPDIF@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
Lloh12:
	adrp	x8, _ECHO_CLOCK_BIT_SPDIF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ECHO_CLOCK_BIT_SPDIF@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	cmp	w9, #130
	b.ne	LBB0_7
; %bb.4:
Lloh14:
	adrp	x9, _E3G_CLOCK_DETECT_BIT_ADAT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _E3G_CLOCK_DETECT_BIT_ADAT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh17:
	adrp	x8, _ECHO_CLOCK_BIT_ADAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ECHO_CLOCK_BIT_ADAT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ECHO_CLOCK_BIT_INTERNAL,4,2    ; @ECHO_CLOCK_BIT_INTERNAL
	.comm	_E3G_CLOCK_DETECT_BIT_WORD,4,2  ; @E3G_CLOCK_DETECT_BIT_WORD
	.comm	_ECHO_CLOCK_BIT_WORD,4,2        ; @ECHO_CLOCK_BIT_WORD
	.comm	_E3G_CLOCK_DETECT_BIT_SPDIF,4,2 ; @E3G_CLOCK_DETECT_BIT_SPDIF
	.comm	_ECHO_CLOCK_BIT_SPDIF,4,2       ; @ECHO_CLOCK_BIT_SPDIF
	.comm	_E3G_CLOCK_DETECT_BIT_ADAT,4,2  ; @E3G_CLOCK_DETECT_BIT_ADAT
	.comm	_ECHO_CLOCK_BIT_ADAT,4,2        ; @ECHO_CLOCK_BIT_ADAT
	.no_dead_strip	_detect_input_clocks
.subsections_via_symbols
