	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_start_search           ## -- Begin function stv0900_start_search
	.p2align	4, 0x90
_stv0900_start_search:                  ## @stv0900_start_search
	.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, %rbx
	movq	_DEMOD_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$31, %edx
	callq	_stv0900_write_bits
	movl	(%rbx), %eax
	cmpl	$16, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CORRELEXP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$170, %edx
	callq	_stv0900_write_reg
	movl	(%rbx), %eax
LBB0_2:
	cmpl	$31, %eax
	jg	LBB0_4
## %bb.3:
	movq	_CARHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$85, %edx
	callq	_stv0900_write_reg
	movl	(%rbx), %eax
LBB0_4:
	movq	8(%rbx), %rcx
	movl	%r14d, %r12d
	cmpl	$32, %eax
	jg	LBB0_7
## %bb.5:
	cmpl	$5000000, (%rcx)                ## imm = 0x4C4B40
	movq	_CARCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	jg	LBB0_10
## %bb.6:
	movl	$68, %edx
	callq	_stv0900_write_reg
	movq	_CFRUP1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_stv0900_write_reg
	movq	_CFRUP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_stv0900_write_reg
	movq	_CFRLOW1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$240, %edx
	callq	_stv0900_write_reg
	movq	_CFRLOW0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_reg
	movq	_RTCS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$104, %edx
	jmp	LBB0_11
LBB0_7:
	cmpl	$5000001, (%rcx,%r12,4)         ## imm = 0x4C4B41
	movq	_RTCS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$104, %eax
	movl	$68, %edx
	cmovll	%eax, %edx
	movq	%rbx, %rdi
	callq	_stv0900_write_reg
	movq	_CARCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$70, %edx
	callq	_stv0900_write_reg
	movq	16(%rbx), %rcx
	movl	$65536000, %eax                 ## imm = 0x3E80000
	cmpl	$128, (%rcx,%r12,4)
	je	LBB0_9
## %bb.8:
	movq	8(%rbx), %rax
	movq	32(%rbx), %rcx
	movslq	(%rcx,%r12,4), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$39, %rdx
	shrq	$63, %rcx
	cmpl	$5000001, (%rax,%r12,4)         ## imm = 0x4C4B41
	leal	80(%rdx,%rcx), %esi
	leal	600(%rdx,%rcx), %eax
	cmovll	%esi, %eax
	shll	$16, %eax
LBB0_9:
	movslq	24(%rbx), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r14d
	movq	_CFR_UP1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_MSB
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_stv0900_write_bits
	movq	_CFR_UP0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_LSB
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_stv0900_write_bits
	negl	%r14d
	movq	_CFR_LOW1@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_MSB
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_stv0900_write_bits
	movq	_CFR_LOW0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_LSB
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_stv0900_write_bits
	jmp	LBB0_12
LBB0_10:
	movl	$196, %edx
	callq	_stv0900_write_reg
	movq	_RTCS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$68, %edx
LBB0_11:
	callq	_stv0900_write_reg
LBB0_12:
	movq	_CFRINIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_reg
	movq	_CFRINIT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_reg
	cmpl	$32, (%rbx)
	jl	LBB0_17
## %bb.13:
	movq	_EQUALCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65, %edx
	callq	_stv0900_write_reg
	movq	_FFECFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65, %edx
	callq	_stv0900_write_reg
	movq	40(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movq	_STV0900_SEARCH_DVBS1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.14:
	movq	_STV0900_SEARCH_DSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.15:
	movq	_STV0900_AUTO_SEARCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_16:
	movq	_VITSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$130, %edx
	callq	_stv0900_write_reg
	movq	_VAVSRVIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_reg
LBB0_17:
	movq	_SFRSTEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_reg
	movq	_TMGTHRISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$224, %edx
	callq	_stv0900_write_reg
	movq	_TMGTHFALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$192, %edx
	callq	_stv0900_write_reg
	movq	_SCAN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_bits
	movq	_CFR_AUTOSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_bits
	movq	_S1S2_SEQUENTIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stv0900_write_bits
	movq	_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$136, %edx
	callq	_stv0900_write_reg
	movl	(%rbx), %ecx
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %eax
	cmpl	$32, %ecx
	jl	LBB0_20
## %bb.18:
	cmpl	$1999999, %eax                  ## imm = 0x1E847F
	jg	LBB0_22
## %bb.19:
	cmpl	$33, %ecx
	movq	_CARFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$57, %eax
	movl	$137, %edx
	cmovbl	%eax, %edx
	movq	%rbx, %rdi
	callq	_stv0900_write_reg
	movq	_CARHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$64, %edx
	jmp	LBB0_27
LBB0_20:
	movq	_CARFREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	cmpl	$9999999, %eax                  ## imm = 0x98967F
	jg	LBB0_24
## %bb.21:
	movl	$239, %edx
	jmp	LBB0_27
LBB0_22:
	movq	_CARFREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	cmpl	$9999999, %eax                  ## imm = 0x98967F
	ja	LBB0_25
## %bb.23:
	movl	$76, %edx
	jmp	LBB0_26
LBB0_24:
	movl	$237, %edx
	jmp	LBB0_27
LBB0_25:
	movl	$75, %edx
LBB0_26:
	callq	_stv0900_write_reg
	movq	_CARHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32, %edx
LBB0_27:
	callq	_stv0900_write_reg
	movq	16(%rbx), %rax
	movl	(%rax,%r12,4), %eax
	cmpl	$128, %eax
	je	LBB0_30
## %bb.28:
	cmpl	$129, %eax
	jne	LBB0_32
## %bb.29:
	movl	$21, %r14d
	jmp	LBB0_31
LBB0_30:
	movl	$24, %r14d
LBB0_31:
	movq	_DMDISTATE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$31, %edx
	callq	_stv0900_write_reg
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stv0900_write_reg              ## TAILCALL
LBB0_32:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEMOD_MODE,4,2                 ## @DEMOD_MODE
	.comm	_CORRELEXP,4,2                  ## @CORRELEXP
	.comm	_CARHDR,4,2                     ## @CARHDR
	.comm	_CARCFG,4,2                     ## @CARCFG
	.comm	_CFRUP1,4,2                     ## @CFRUP1
	.comm	_CFRUP0,4,2                     ## @CFRUP0
	.comm	_CFRLOW1,4,2                    ## @CFRLOW1
	.comm	_CFRLOW0,4,2                    ## @CFRLOW0
	.comm	_RTCS2,4,2                      ## @RTCS2
	.comm	_CFR_UP1,4,2                    ## @CFR_UP1
	.comm	_CFR_UP0,4,2                    ## @CFR_UP0
	.comm	_CFR_LOW1,4,2                   ## @CFR_LOW1
	.comm	_CFR_LOW0,4,2                   ## @CFR_LOW0
	.comm	_CFRINIT1,4,2                   ## @CFRINIT1
	.comm	_CFRINIT0,4,2                   ## @CFRINIT0
	.comm	_EQUALCFG,4,2                   ## @EQUALCFG
	.comm	_FFECFG,4,2                     ## @FFECFG
	.comm	_STV0900_SEARCH_DVBS1,8,3       ## @STV0900_SEARCH_DVBS1
	.comm	_STV0900_SEARCH_DSS,8,3         ## @STV0900_SEARCH_DSS
	.comm	_STV0900_AUTO_SEARCH,8,3        ## @STV0900_AUTO_SEARCH
	.comm	_VITSCALE,4,2                   ## @VITSCALE
	.comm	_VAVSRVIT,4,2                   ## @VAVSRVIT
	.comm	_SFRSTEP,4,2                    ## @SFRSTEP
	.comm	_TMGTHRISE,4,2                  ## @TMGTHRISE
	.comm	_TMGTHFALL,4,2                  ## @TMGTHFALL
	.comm	_SCAN_ENABLE,4,2                ## @SCAN_ENABLE
	.comm	_CFR_AUTOSCAN,4,2               ## @CFR_AUTOSCAN
	.comm	_S1S2_SEQUENTIAL,4,2            ## @S1S2_SEQUENTIAL
	.comm	_RTC,4,2                        ## @RTC
	.comm	_CARFREQ,4,2                    ## @CARFREQ
	.comm	_DMDISTATE,4,2                  ## @DMDISTATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_start_search           ; -- Begin function stv0900_start_search
	.p2align	2
_stv0900_start_search:                  ; @stv0900_start_search
	.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	x8, _DEMOD_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEMOD_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #31
	bl	_stv0900_write_bits
	ldr	w8, [x19]
	cmp	w8, #16
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CORRELEXP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CORRELEXP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #170
	bl	_stv0900_write_reg
	ldr	w8, [x19]
LBB0_2:
	cmp	w8, #32
	b.ge	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _CARHDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARHDR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #85
	bl	_stv0900_write_reg
	ldr	w8, [x19]
LBB0_4:
	ldr	x9, [x19, #8]
	cmp	w8, #32
	b.gt	LBB0_7
; %bb.5:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _CARCFG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CARCFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	w9, #19265
	movk	w9, #76, lsl #16
	mov	x0, x19
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.6:
	mov	w2, #68
	bl	_stv0900_write_reg
Lloh12:
	adrp	x8, _CFRUP1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CFRUP1@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #15
	bl	_stv0900_write_reg
Lloh15:
	adrp	x8, _CFRUP0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CFRUP0@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_stv0900_write_reg
Lloh18:
	adrp	x8, _CFRLOW1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CFRLOW1@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #240
	bl	_stv0900_write_reg
Lloh21:
	adrp	x8, _CFRLOW0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CFRLOW0@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_reg
Lloh24:
	adrp	x8, _RTCS2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RTCS2@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #104
	bl	_stv0900_write_reg
	b	LBB0_12
LBB0_7:
	mov	w8, w20
	lsl	x22, x8, #2
	ldr	w8, [x9, x22]
Lloh27:
	adrp	x9, _RTCS2@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RTCS2@GOTPAGEOFF]
	mov	w21, #19265
	movk	w21, #76, lsl #16
Lloh29:
	ldr	w1, [x9]
	mov	w9, #68
	mov	w10, #104
	cmp	w8, w21
	csel	w2, w10, w9, lt
	mov	x0, x19
	bl	_stv0900_write_reg
Lloh30:
	adrp	x8, _CARCFG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CARCFG@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #70
	bl	_stv0900_write_reg
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x22]
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.8:
	mov	w8, #65536000
	b	LBB0_11
LBB0_9:
	mov	w2, #196
	bl	_stv0900_write_reg
Lloh33:
	adrp	x8, _RTCS2@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RTCS2@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #68
	bl	_stv0900_write_reg
	b	LBB0_12
LBB0_10:
	ldr	x8, [x19, #32]
	ldrsw	x8, [x8, x22]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #39
	ldr	x10, [x19, #8]
	ldr	w10, [x10, x22]
	mov	w11, #600
	mov	w12, #80
	cmp	w10, w21
	csel	w10, w12, w11, lt
	add	w8, w8, w9
	add	w8, w10, w8
	lsl	w8, w8, #16
LBB0_11:
	ldrsw	x9, [x19, #24]
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	sdiv	w21, w8, w9
Lloh36:
	adrp	x8, _CFR_UP1@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CFR_UP1@GOTPAGEOFF]
Lloh38:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_MSB
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_stv0900_write_bits
Lloh39:
	adrp	x8, _CFR_UP0@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CFR_UP0@GOTPAGEOFF]
Lloh41:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_LSB
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_stv0900_write_bits
	neg	w21, w21
Lloh42:
	adrp	x8, _CFR_LOW1@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CFR_LOW1@GOTPAGEOFF]
Lloh44:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_MSB
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_stv0900_write_bits
Lloh45:
	adrp	x8, _CFR_LOW0@GOTPAGE
Lloh46:
	ldr	x8, [x8, _CFR_LOW0@GOTPAGEOFF]
Lloh47:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_LSB
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_stv0900_write_bits
LBB0_12:
Lloh48:
	adrp	x8, _CFRINIT1@GOTPAGE
Lloh49:
	ldr	x8, [x8, _CFRINIT1@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_reg
Lloh51:
	adrp	x8, _CFRINIT0@GOTPAGE
Lloh52:
	ldr	x8, [x8, _CFRINIT0@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_reg
	ldr	w8, [x19]
	cmp	w8, #32
	b.lt	LBB0_17
; %bb.13:
Lloh54:
	adrp	x8, _EQUALCFG@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EQUALCFG@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65
	bl	_stv0900_write_reg
Lloh57:
	adrp	x8, _FFECFG@GOTPAGE
Lloh58:
	ldr	x8, [x8, _FFECFG@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65
	bl	_stv0900_write_reg
	ldr	x8, [x19, #40]
	ldr	x8, [x8, w20, uxtw #3]
Lloh60:
	adrp	x9, _STV0900_SEARCH_DVBS1@GOTPAGE
Lloh61:
	ldr	x9, [x9, _STV0900_SEARCH_DVBS1@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.14:
Lloh63:
	adrp	x9, _STV0900_SEARCH_DSS@GOTPAGE
Lloh64:
	ldr	x9, [x9, _STV0900_SEARCH_DSS@GOTPAGEOFF]
Lloh65:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.15:
Lloh66:
	adrp	x9, _STV0900_AUTO_SEARCH@GOTPAGE
Lloh67:
	ldr	x9, [x9, _STV0900_AUTO_SEARCH@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_16:
Lloh69:
	adrp	x8, _VITSCALE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _VITSCALE@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #130
	bl	_stv0900_write_reg
Lloh72:
	adrp	x8, _VAVSRVIT@GOTPAGE
Lloh73:
	ldr	x8, [x8, _VAVSRVIT@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_reg
LBB0_17:
Lloh75:
	adrp	x8, _SFRSTEP@GOTPAGE
Lloh76:
	ldr	x8, [x8, _SFRSTEP@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_reg
Lloh78:
	adrp	x8, _TMGTHRISE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _TMGTHRISE@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #224
	bl	_stv0900_write_reg
Lloh81:
	adrp	x8, _TMGTHFALL@GOTPAGE
Lloh82:
	ldr	x8, [x8, _TMGTHFALL@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #192
	bl	_stv0900_write_reg
Lloh84:
	adrp	x8, _SCAN_ENABLE@GOTPAGE
Lloh85:
	ldr	x8, [x8, _SCAN_ENABLE@GOTPAGEOFF]
Lloh86:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_bits
Lloh87:
	adrp	x8, _CFR_AUTOSCAN@GOTPAGE
Lloh88:
	ldr	x8, [x8, _CFR_AUTOSCAN@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_bits
Lloh90:
	adrp	x8, _S1S2_SEQUENTIAL@GOTPAGE
Lloh91:
	ldr	x8, [x8, _S1S2_SEQUENTIAL@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv0900_write_bits
Lloh93:
	adrp	x8, _RTC@GOTPAGE
Lloh94:
	ldr	x8, [x8, _RTC@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #136
	bl	_stv0900_write_reg
	ldr	w9, [x19]
	ldr	x8, [x19, #8]
	mov	w21, w20
	ldr	w8, [x8, w20, uxtw #2]
	cmp	w9, #32
	b.lt	LBB0_20
; %bb.18:
	mov	w10, #33919
	movk	w10, #30, lsl #16
	cmp	w8, w10
	b.gt	LBB0_22
; %bb.19:
Lloh96:
	adrp	x8, _CARFREQ@GOTPAGE
Lloh97:
	ldr	x8, [x8, _CARFREQ@GOTPAGEOFF]
Lloh98:
	ldr	w1, [x8]
	mov	w8, #137
	mov	w10, #57
	cmp	w9, #33
	csel	w2, w10, w8, lo
	mov	x0, x19
	bl	_stv0900_write_reg
Lloh99:
	adrp	x8, _CARHDR@GOTPAGE
Lloh100:
	ldr	x8, [x8, _CARHDR@GOTPAGEOFF]
Lloh101:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #64
	b	LBB0_27
LBB0_20:
Lloh102:
	adrp	x9, _CARFREQ@GOTPAGE
Lloh103:
	ldr	x9, [x9, _CARFREQ@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x9]
	mov	w9, #38528
	movk	w9, #152, lsl #16
	mov	x0, x19
	cmp	w8, w9
	b.ge	LBB0_24
; %bb.21:
	mov	w2, #239
	b	LBB0_27
LBB0_22:
Lloh105:
	adrp	x9, _CARFREQ@GOTPAGE
Lloh106:
	ldr	x9, [x9, _CARFREQ@GOTPAGEOFF]
Lloh107:
	ldr	w1, [x9]
	mov	w9, #38528
	movk	w9, #152, lsl #16
	mov	x0, x19
	cmp	w8, w9
	b.hs	LBB0_25
; %bb.23:
	mov	w2, #76
	b	LBB0_26
LBB0_24:
	mov	w2, #237
	b	LBB0_27
LBB0_25:
	mov	w2, #75
LBB0_26:
	bl	_stv0900_write_reg
Lloh108:
	adrp	x8, _CARHDR@GOTPAGE
Lloh109:
	ldr	x8, [x8, _CARHDR@GOTPAGEOFF]
Lloh110:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32
LBB0_27:
	bl	_stv0900_write_reg
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x21, lsl #2]
	cmp	w8, #128
	b.eq	LBB0_30
; %bb.28:
	cmp	w8, #129
	b.ne	LBB0_32
; %bb.29:
	mov	w20, #21
	b	LBB0_31
LBB0_30:
	mov	w20, #24
LBB0_31:
Lloh111:
	adrp	x21, _DMDISTATE@GOTPAGE
Lloh112:
	ldr	x21, [x21, _DMDISTATE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #31
	bl	_stv0900_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	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	_stv0900_write_reg
LBB0_32:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh111, Lloh112
	.cfi_endproc
                                        ; -- End function
	.comm	_DEMOD_MODE,4,2                 ; @DEMOD_MODE
	.comm	_CORRELEXP,4,2                  ; @CORRELEXP
	.comm	_CARHDR,4,2                     ; @CARHDR
	.comm	_CARCFG,4,2                     ; @CARCFG
	.comm	_CFRUP1,4,2                     ; @CFRUP1
	.comm	_CFRUP0,4,2                     ; @CFRUP0
	.comm	_CFRLOW1,4,2                    ; @CFRLOW1
	.comm	_CFRLOW0,4,2                    ; @CFRLOW0
	.comm	_RTCS2,4,2                      ; @RTCS2
	.comm	_CFR_UP1,4,2                    ; @CFR_UP1
	.comm	_CFR_UP0,4,2                    ; @CFR_UP0
	.comm	_CFR_LOW1,4,2                   ; @CFR_LOW1
	.comm	_CFR_LOW0,4,2                   ; @CFR_LOW0
	.comm	_CFRINIT1,4,2                   ; @CFRINIT1
	.comm	_CFRINIT0,4,2                   ; @CFRINIT0
	.comm	_EQUALCFG,4,2                   ; @EQUALCFG
	.comm	_FFECFG,4,2                     ; @FFECFG
	.comm	_STV0900_SEARCH_DVBS1,8,3       ; @STV0900_SEARCH_DVBS1
	.comm	_STV0900_SEARCH_DSS,8,3         ; @STV0900_SEARCH_DSS
	.comm	_STV0900_AUTO_SEARCH,8,3        ; @STV0900_AUTO_SEARCH
	.comm	_VITSCALE,4,2                   ; @VITSCALE
	.comm	_VAVSRVIT,4,2                   ; @VAVSRVIT
	.comm	_SFRSTEP,4,2                    ; @SFRSTEP
	.comm	_TMGTHRISE,4,2                  ; @TMGTHRISE
	.comm	_TMGTHFALL,4,2                  ; @TMGTHFALL
	.comm	_SCAN_ENABLE,4,2                ; @SCAN_ENABLE
	.comm	_CFR_AUTOSCAN,4,2               ; @CFR_AUTOSCAN
	.comm	_S1S2_SEQUENTIAL,4,2            ; @S1S2_SEQUENTIAL
	.comm	_RTC,4,2                        ; @RTC
	.comm	_CARFREQ,4,2                    ; @CARFREQ
	.comm	_DMDISTATE,4,2                  ; @DMDISTATE
.subsections_via_symbols
