	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0367ddb_setup_ter
_stv0367ddb_setup_ter:                  ## @stv0367ddb_setup_ter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_R367TER_DEBUG_LT4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_stv0367_writereg
	movq	_R367TER_DEBUG_LT5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0367_writereg
	movq	_R367TER_DEBUG_LT6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0367_writereg
	movq	_R367TER_DEBUG_LT7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0367_writereg
	movq	_R367TER_DEBUG_LT8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0367_writereg
	movq	_R367TER_DEBUG_LT9@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0367_writereg
	movq	_R367TER_ANADIGCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$137, %edx
	callq	_stv0367_writereg
	movq	_R367TER_DUAL_AD12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_stv0367_writereg
	movq	_R367TER_ANACTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$13, %edx
	callq	_stv0367_writereg
	movq	_R367TER_TOPCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0367_writereg
	movq	_STV0367_ICSPEED_53125@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stv0367_pll_setup
	movl	$50, %edi
	callq	_msleep
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0367_writereg
	movq	_demod_ter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R367TER_DEBUG_LT4,4,2          ## @R367TER_DEBUG_LT4
	.comm	_R367TER_DEBUG_LT5,4,2          ## @R367TER_DEBUG_LT5
	.comm	_R367TER_DEBUG_LT6,4,2          ## @R367TER_DEBUG_LT6
	.comm	_R367TER_DEBUG_LT7,4,2          ## @R367TER_DEBUG_LT7
	.comm	_R367TER_DEBUG_LT8,4,2          ## @R367TER_DEBUG_LT8
	.comm	_R367TER_DEBUG_LT9,4,2          ## @R367TER_DEBUG_LT9
	.comm	_R367TER_ANADIGCTRL,4,2         ## @R367TER_ANADIGCTRL
	.comm	_R367TER_DUAL_AD12,4,2          ## @R367TER_DUAL_AD12
	.comm	_R367TER_ANACTRL,4,2            ## @R367TER_ANACTRL
	.comm	_R367TER_TOPCTRL,4,2            ## @R367TER_TOPCTRL
	.comm	_STV0367_ICSPEED_53125,4,2      ## @STV0367_ICSPEED_53125
	.comm	_demod_ter,4,2                  ## @demod_ter
	.no_dead_strip	_stv0367ddb_setup_ter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0367ddb_setup_ter
_stv0367ddb_setup_ter:                  ; @stv0367ddb_setup_ter
	.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
Lloh0:
	adrp	x8, _R367TER_DEBUG_LT4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R367TER_DEBUG_LT4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_stv0367_writereg
Lloh3:
	adrp	x8, _R367TER_DEBUG_LT5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R367TER_DEBUG_LT5@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0367_writereg
Lloh6:
	adrp	x8, _R367TER_DEBUG_LT6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R367TER_DEBUG_LT6@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0367_writereg
Lloh9:
	adrp	x8, _R367TER_DEBUG_LT7@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R367TER_DEBUG_LT7@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0367_writereg
Lloh12:
	adrp	x8, _R367TER_DEBUG_LT8@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R367TER_DEBUG_LT8@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0367_writereg
Lloh15:
	adrp	x8, _R367TER_DEBUG_LT9@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R367TER_DEBUG_LT9@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0367_writereg
Lloh18:
	adrp	x8, _R367TER_ANADIGCTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _R367TER_ANADIGCTRL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #137
	bl	_stv0367_writereg
Lloh21:
	adrp	x8, _R367TER_DUAL_AD12@GOTPAGE
Lloh22:
	ldr	x8, [x8, _R367TER_DUAL_AD12@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_stv0367_writereg
Lloh24:
	adrp	x20, _R367TER_ANACTRL@GOTPAGE
Lloh25:
	ldr	x20, [x20, _R367TER_ANACTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #13
	bl	_stv0367_writereg
Lloh26:
	adrp	x8, _R367TER_TOPCTRL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R367TER_TOPCTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0367_writereg
Lloh29:
	adrp	x8, _STV0367_ICSPEED_53125@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STV0367_ICSPEED_53125@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stv0367_pll_setup
	mov	w0, #50
	bl	_msleep
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0367_writereg
Lloh32:
	adrp	x8, _demod_ter@GOTPAGE
Lloh33:
	ldr	x8, [x8, _demod_ter@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R367TER_DEBUG_LT4,4,2          ; @R367TER_DEBUG_LT4
	.comm	_R367TER_DEBUG_LT5,4,2          ; @R367TER_DEBUG_LT5
	.comm	_R367TER_DEBUG_LT6,4,2          ; @R367TER_DEBUG_LT6
	.comm	_R367TER_DEBUG_LT7,4,2          ; @R367TER_DEBUG_LT7
	.comm	_R367TER_DEBUG_LT8,4,2          ; @R367TER_DEBUG_LT8
	.comm	_R367TER_DEBUG_LT9,4,2          ; @R367TER_DEBUG_LT9
	.comm	_R367TER_ANADIGCTRL,4,2         ; @R367TER_ANADIGCTRL
	.comm	_R367TER_DUAL_AD12,4,2          ; @R367TER_DUAL_AD12
	.comm	_R367TER_ANACTRL,4,2            ; @R367TER_ANACTRL
	.comm	_R367TER_TOPCTRL,4,2            ; @R367TER_TOPCTRL
	.comm	_STV0367_ICSPEED_53125,4,2      ; @STV0367_ICSPEED_53125
	.comm	_demod_ter,4,2                  ; @demod_ter
	.no_dead_strip	_stv0367ddb_setup_ter
.subsections_via_symbols
