	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_setup
_stv090x_setup:                         ## @stv090x_setup
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movq	(%r14), %rdx
	movq	16(%r14), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_STV0900@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_2
## %bb.1:
	movq	_stv0900_cut20_val@GOTPCREL(%rip), %r15
	movq	_stv0900_initval@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_2:
	movq	_STV0903@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	movl	$0, %r15d
	movl	$0, %r12d
	movl	$0, %eax
	cmpq	(%rcx), %rdx
	jne	LBB0_5
## %bb.3:
	movq	_stv0903_cut20_val@GOTPCREL(%rip), %r15
	movq	_stv0903_initval@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%rbx), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, %r12
	movq	(%r15), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
LBB0_5:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_STV090x_P1_DMDISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$92, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.6:
	movq	_STV090x_P2_DMDISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$92, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.7:
	movl	$5, %edi
	callq	_msleep
	movq	_STV090x_P1_TNRCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$108, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.8:
	movq	_STV090x_P2_TNRCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$108, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.9:
	movq	_ENARPT_LEVEL_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edx
	xorl	%edi, %edi
	callq	_STV090x_SETFIELD_Px
	movq	_STV090x_P1_I2CRPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.10:
	movq	_STV090x_P2_I2CRPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.11:
	movq	_STV090x_NCOARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$19, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.12:
	movl	$5, %edi
	callq	_msleep
	movq	_STV090x_I2CCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.13:
	movq	_STV090x_SYNTCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	orl	$32, %edx
	movq	%r14, %rdi
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.14:
	movl	$5, %edi
	callq	_msleep
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	testq	%r12, %r12
	je	LBB0_18
## %bb.15:
	xorl	%ebx, %ebx
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,8), %edx
	movl	4(%r13,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_17
LBB0_18:
	movq	_STV090x_MID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_stv090x_read_reg
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	cmpl	$32, %eax
	jl	LBB0_30
## %bb.19:
	movq	_STV090x_TSGENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$12, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.20:
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_24
## %bb.21:
	xorl	%ebx, %ebx
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,8), %edx
	movl	4(%r15,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.22:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_23
LBB0_24:
	movq	_STV090x_TSTTNR1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_stv090x_read_reg
	movq	%rax, %rbx
	movq	_ADC1_INMODE_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_STV090x_ADC_1Vpp@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	cmpq	(%r15), %rax
	setne	%dl
	movl	%ebx, %edi
	callq	_STV090x_SETFIELD
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.25:
	movq	_STV090x_TSTTNR3@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_stv090x_read_reg
	movq	%rax, %rbx
	movq	_ADC2_INMODE_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	xorl	%edx, %edx
	cmpq	(%r15), %rax
	setne	%dl
	movl	%ebx, %edi
	callq	_STV090x_SETFIELD
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.26:
	movq	_STV090x_TSTRES0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$128, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.27:
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_31
## %bb.28:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	je	LBB0_32
## %bb.29:
	movq	_SEC_MINI_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_stv090x_send_diseqc_burst
	jmp	LBB0_32
LBB0_30:
	movq	_FE_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dprintk
LBB0_31:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$-1, %ebx
LBB0_32:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV0900,8,3                    ## @STV0900
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing STV0900"

	.comm	_stv0900_initval,8,3            ## @stv0900_initval
	.comm	_stv0900_cut20_val,8,3          ## @stv0900_cut20_val
	.comm	_STV0903,8,3                    ## @STV0903
L_.str.1:                               ## @.str.1
	.asciz	"Initializing STV0903"

	.comm	_stv0903_initval,8,3            ## @stv0903_initval
	.comm	_stv0903_cut20_val,8,3          ## @stv0903_cut20_val
	.comm	_STV090x_P1_DMDISTATE,4,2       ## @STV090x_P1_DMDISTATE
	.comm	_STV090x_P2_DMDISTATE,4,2       ## @STV090x_P2_DMDISTATE
	.comm	_STV090x_P1_TNRCFG,4,2          ## @STV090x_P1_TNRCFG
	.comm	_STV090x_P2_TNRCFG,4,2          ## @STV090x_P2_TNRCFG
	.comm	_ENARPT_LEVEL_FIELD,4,2         ## @ENARPT_LEVEL_FIELD
	.comm	_STV090x_P1_I2CRPT,4,2          ## @STV090x_P1_I2CRPT
	.comm	_STV090x_P2_I2CRPT,4,2          ## @STV090x_P2_I2CRPT
	.comm	_STV090x_NCOARSE,4,2            ## @STV090x_NCOARSE
	.comm	_STV090x_I2CCFG,4,2             ## @STV090x_I2CCFG
	.comm	_STV090x_SYNTCTRL,4,2           ## @STV090x_SYNTCTRL
L_.str.2:                               ## @.str.2
	.asciz	"Setting up initial values"

	.comm	_STV090x_MID,4,2                ## @STV090x_MID
	.comm	_STV090x_TSGENERAL,4,2          ## @STV090x_TSGENERAL
L_.str.3:                               ## @.str.3
	.asciz	"Setting up Cut 2.0 initial values"

	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"ERROR: Unsupported Cut: 0x%02x!"

	.comm	_STV090x_TSTTNR1,4,2            ## @STV090x_TSTTNR1
	.comm	_ADC1_INMODE_FIELD,4,2          ## @ADC1_INMODE_FIELD
	.comm	_STV090x_ADC_1Vpp,8,3           ## @STV090x_ADC_1Vpp
	.comm	_STV090x_TSTTNR3,4,2            ## @STV090x_TSTTNR3
	.comm	_ADC2_INMODE_FIELD,4,2          ## @ADC2_INMODE_FIELD
	.comm	_STV090x_TSTRES0,4,2            ## @STV090x_TSTRES0
	.comm	_SEC_MINI_A,4,2                 ## @SEC_MINI_A
L_.str.6:                               ## @.str.6
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_setup
_stv090x_setup:                         ; @stv090x_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x25, [x20, #16]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _STV0900@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STV0900@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, _stv0900_cut20_val@GOTPAGE
Lloh4:
	ldr	x21, [x21, _stv0900_cut20_val@GOTPAGEOFF]
Lloh5:
	adrp	x22, _stv0900_initval@GOTPAGE
Lloh6:
	ldr	x22, [x22, _stv0900_initval@GOTPAGEOFF]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh9:
	adrp	x9, _STV0903@GOTPAGE
Lloh10:
	ldr	x9, [x9, _STV0903@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh12:
	adrp	x21, _stv0903_cut20_val@GOTPAGE
Lloh13:
	ldr	x21, [x21, _stv0903_cut20_val@GOTPAGEOFF]
Lloh14:
	adrp	x22, _stv0903_initval@GOTPAGE
Lloh15:
	ldr	x22, [x22, _stv0903_initval@GOTPAGEOFF]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_4:
Lloh18:
	adrp	x8, _FE_DEBUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FE_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_dprintk
	ldr	x24, [x22]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	x22, [x21]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x21, x0
	b	LBB0_6
LBB0_5:
	mov	x24, #0
	mov	x22, #0
	mov	x23, #0
	mov	x21, #0
LBB0_6:
Lloh21:
	adrp	x8, _STV090x_P1_DMDISTATE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _STV090x_P1_DMDISTATE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #92
	bl	_stv090x_write_reg
Lloh24:
	adrp	x26, _FE_ERROR@GOTPAGE
Lloh25:
	ldr	x26, [x26, _FE_ERROR@GOTPAGEOFF]
	tbnz	x0, #63, LBB0_32
; %bb.7:
Lloh26:
	adrp	x8, _STV090x_P2_DMDISTATE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STV090x_P2_DMDISTATE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #92
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.8:
	mov	w0, #5
	bl	_msleep
Lloh29:
	adrp	x8, _STV090x_P1_TNRCFG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _STV090x_P1_TNRCFG@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #108
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.9:
Lloh32:
	adrp	x8, _STV090x_P2_TNRCFG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _STV090x_P2_TNRCFG@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #108
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.10:
Lloh35:
	adrp	x8, _ENARPT_LEVEL_FIELD@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENARPT_LEVEL_FIELD@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x25, #32]
	mov	w0, #0
	bl	_STV090x_SETFIELD_Px
Lloh38:
	adrp	x8, _STV090x_P1_I2CRPT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _STV090x_P1_I2CRPT@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.11:
Lloh41:
	adrp	x8, _STV090x_P2_I2CRPT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _STV090x_P2_I2CRPT@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.12:
Lloh44:
	adrp	x8, _STV090x_NCOARSE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _STV090x_NCOARSE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #19
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.13:
	mov	w0, #5
	bl	_msleep
Lloh47:
	adrp	x8, _STV090x_I2CCFG@GOTPAGE
Lloh48:
	ldr	x8, [x8, _STV090x_I2CCFG@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #8
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.14:
Lloh50:
	adrp	x8, _STV090x_SYNTCTRL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _STV090x_SYNTCTRL@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	ldr	w8, [x25]
	orr	w2, w8, #0x20
	mov	x0, x20
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.15:
	mov	w0, #5
	bl	_msleep
Lloh53:
	adrp	x27, _FE_DEBUG@GOTPAGE
Lloh54:
	ldr	x27, [x27, _FE_DEBUG@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh55:
	adrp	x2, l_.str.2@PAGE
Lloh56:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	cbz	x23, LBB0_19
; %bb.16:
	add	x24, x24, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x24, #-4]
	mov	x0, x20
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x24, x24, #8
	subs	x23, x23, #1
	b.ne	LBB0_17
LBB0_19:
Lloh57:
	adrp	x8, _STV090x_MID@GOTPAGE
Lloh58:
	ldr	x8, [x8, _STV090x_MID@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_stv090x_read_reg
	ldr	x8, [x20, #8]
	str	w0, [x8]
	cmp	w0, #32
	b.lt	LBB0_31
; %bb.20:
Lloh60:
	adrp	x8, _STV090x_TSGENERAL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _STV090x_TSGENERAL@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #12
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.21:
	ldr	w0, [x27]
Lloh63:
	adrp	x2, l_.str.3@PAGE
Lloh64:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	cbz	x21, LBB0_25
; %bb.22:
	add	x22, x22, #4
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x22, #-4]
	mov	x0, x20
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x22, x22, #8
	subs	x21, x21, #1
	b.ne	LBB0_23
LBB0_25:
Lloh65:
	adrp	x23, _STV090x_TSTTNR1@GOTPAGE
Lloh66:
	ldr	x23, [x23, _STV090x_TSTTNR1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_stv090x_read_reg
	mov	x21, x0
Lloh67:
	adrp	x8, _ADC1_INMODE_FIELD@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ADC1_INMODE_FIELD@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	ldr	x8, [x25, #8]
Lloh70:
	adrp	x22, _STV090x_ADC_1Vpp@GOTPAGE
Lloh71:
	ldr	x22, [x22, _STV090x_ADC_1Vpp@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w2, ne
	bl	_STV090x_SETFIELD
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.26:
Lloh72:
	adrp	x23, _STV090x_TSTTNR3@GOTPAGE
Lloh73:
	ldr	x23, [x23, _STV090x_TSTTNR3@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_stv090x_read_reg
	mov	x21, x0
Lloh74:
	adrp	x8, _ADC2_INMODE_FIELD@GOTPAGE
Lloh75:
	ldr	x8, [x8, _ADC2_INMODE_FIELD@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
	ldr	x8, [x25, #16]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w2, ne
	bl	_STV090x_SETFIELD
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x21
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.27:
Lloh77:
	adrp	x21, _STV090x_TSTRES0@GOTPAGE
Lloh78:
	ldr	x21, [x21, _STV090x_TSTRES0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #128
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.28:
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_32
; %bb.29:
	ldr	x8, [x25, #24]
	cbz	x8, LBB0_34
; %bb.30:
Lloh79:
	adrp	x8, _SEC_MINI_A@GOTPAGE
Lloh80:
	ldr	x8, [x8, _SEC_MINI_A@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv090x_send_diseqc_burst
	mov	w0, #0
	b	LBB0_33
LBB0_31:
	ldr	w8, [x26]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh82:
	adrp	x2, l_.str.4@PAGE
Lloh83:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x8
	mov	w1, #1
	bl	_dprintk
LBB0_32:
	ldr	w0, [x26]
Lloh84:
	adrp	x2, l_.str.6@PAGE
Lloh85:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_33:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_34:
	mov	w0, #0
	b	LBB0_33
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
	.comm	_STV0900,8,3                    ; @STV0900
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing STV0900"

	.comm	_stv0900_initval,8,3            ; @stv0900_initval
	.comm	_stv0900_cut20_val,8,3          ; @stv0900_cut20_val
	.comm	_STV0903,8,3                    ; @STV0903
l_.str.1:                               ; @.str.1
	.asciz	"Initializing STV0903"

	.comm	_stv0903_initval,8,3            ; @stv0903_initval
	.comm	_stv0903_cut20_val,8,3          ; @stv0903_cut20_val
	.comm	_STV090x_P1_DMDISTATE,4,2       ; @STV090x_P1_DMDISTATE
	.comm	_STV090x_P2_DMDISTATE,4,2       ; @STV090x_P2_DMDISTATE
	.comm	_STV090x_P1_TNRCFG,4,2          ; @STV090x_P1_TNRCFG
	.comm	_STV090x_P2_TNRCFG,4,2          ; @STV090x_P2_TNRCFG
	.comm	_ENARPT_LEVEL_FIELD,4,2         ; @ENARPT_LEVEL_FIELD
	.comm	_STV090x_P1_I2CRPT,4,2          ; @STV090x_P1_I2CRPT
	.comm	_STV090x_P2_I2CRPT,4,2          ; @STV090x_P2_I2CRPT
	.comm	_STV090x_NCOARSE,4,2            ; @STV090x_NCOARSE
	.comm	_STV090x_I2CCFG,4,2             ; @STV090x_I2CCFG
	.comm	_STV090x_SYNTCTRL,4,2           ; @STV090x_SYNTCTRL
l_.str.2:                               ; @.str.2
	.asciz	"Setting up initial values"

	.comm	_STV090x_MID,4,2                ; @STV090x_MID
	.comm	_STV090x_TSGENERAL,4,2          ; @STV090x_TSGENERAL
l_.str.3:                               ; @.str.3
	.asciz	"Setting up Cut 2.0 initial values"

	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"ERROR: Unsupported Cut: 0x%02x!"

	.comm	_STV090x_TSTTNR1,4,2            ; @STV090x_TSTTNR1
	.comm	_ADC1_INMODE_FIELD,4,2          ; @ADC1_INMODE_FIELD
	.comm	_STV090x_ADC_1Vpp,8,3           ; @STV090x_ADC_1Vpp
	.comm	_STV090x_TSTTNR3,4,2            ; @STV090x_TSTTNR3
	.comm	_ADC2_INMODE_FIELD,4,2          ; @ADC2_INMODE_FIELD
	.comm	_STV090x_TSTRES0,4,2            ; @STV090x_TSTRES0
	.comm	_SEC_MINI_A,4,2                 ; @SEC_MINI_A
l_.str.6:                               ; @.str.6
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_setup
.subsections_via_symbols
