	.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), %r15
	movq	(%r15), %rdx
	movq	16(%r15), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_STV0900@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdx
	jne	LBB0_2
## %bb.1:
	movq	_stv0900_cut20_val@GOTPCREL(%rip), %r14
	movq	_stv0900_initval@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_2:
	movq	_STV0903@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	movl	$0, %r14d
	movl	$0, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, %eax
	cmpq	(%rcx), %rdx
	jne	LBB0_5
## %bb.3:
	movq	_stv0903_cut20_val@GOTPCREL(%rip), %r14
	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), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
LBB0_5:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_STV090x_P1_DMDISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$92, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.6:
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.7:
	movq	_STV090x_P2_DMDISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$92, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
LBB0_8:
	movl	$5, %edi
	callq	_msleep
	movq	_STV090x_P1_TNRCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$108, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.9:
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.10:
	movq	_STV090x_P2_TNRCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$108, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
LBB0_11:
	movq	_ENARPT_LEVEL_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edx
	xorl	%edi, %edi
	callq	_STV090x_SETFIELD_Px
	movq	_STV090x_P1_I2CRPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.12:
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_14
## %bb.13:
	movq	_STV090x_P2_I2CRPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
LBB0_14:
	movq	_STV090x_NCOARSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$19, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.15:
	movl	$5, %edi
	callq	_msleep
	movq	_STV090x_I2CCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.16:
	movq	_STV090x_SYNTCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	orl	$32, %edx
	movq	%r15, %rdi
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.17:
	movl	$5, %edi
	callq	_msleep
	movq	_FE_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.18:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,8), %edx
	movl	4(%r12,%rbx,8), %esi
	movq	%r15, %rdi
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_20
LBB0_21:
	movq	_STV090x_MID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_stv090x_read_reg
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	cmpl	$32, %eax
	jl	LBB0_27
## %bb.22:
	movq	_STV090x_TSGENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$12, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.23:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_28
## %bb.24:
	xorl	%ebx, %ebx
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,8), %edx
	movl	4(%r14,%rbx,8), %esi
	movq	%r15, %rdi
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_26 Depth=1
	incq	%rbx
	cmpq	%rbx, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_26
LBB0_28:
	movq	_STV090x_TSTTNR1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %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), %r14
	xorl	%edx, %edx
	cmpq	(%r14), %rax
	setne	%dl
	movl	%ebx, %edi
	callq	_STV090x_SETFIELD
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.29:
	movq	_STV090x_TSTTNR3@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %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	(%r14), %rax
	setne	%dl
	movl	%ebx, %edi
	callq	_STV090x_SETFIELD
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.30:
	movq	_STV090x_TSTRES0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	$128, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_32
## %bb.31:
	movl	(%rbx), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	jns	LBB0_33
	jmp	LBB0_32
LBB0_27:
	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_32:
	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_33:
	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
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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x19, [x0]
	ldr	x24, [x19, #16]
	ldr	x8, [x19]
Lloh0:
	adrp	x26, _STV0900@GOTPAGE
Lloh1:
	ldr	x26, [x26, _STV0900@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x20, _stv0900_cut20_val@GOTPAGE
Lloh3:
	ldr	x20, [x20, _stv0900_cut20_val@GOTPAGEOFF]
Lloh4:
	adrp	x21, _stv0900_initval@GOTPAGE
Lloh5:
	ldr	x21, [x21, _stv0900_initval@GOTPAGEOFF]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x9, _STV0903@GOTPAGE
Lloh9:
	ldr	x9, [x9, _STV0903@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh11:
	adrp	x20, _stv0903_cut20_val@GOTPAGE
Lloh12:
	ldr	x20, [x20, _stv0903_cut20_val@GOTPAGEOFF]
Lloh13:
	adrp	x21, _stv0903_initval@GOTPAGE
Lloh14:
	ldr	x21, [x21, _stv0903_initval@GOTPAGEOFF]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_4:
Lloh17:
	adrp	x8, _FE_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FE_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_dprintk
	ldr	x23, [x21]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x22, x0
	ldr	x21, [x20]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x20, x0
	b	LBB0_6
LBB0_5:
	mov	x23, #0
	mov	x21, #0
	mov	x22, #0
	mov	x20, #0
LBB0_6:
Lloh20:
	adrp	x8, _STV090x_P1_DMDISTATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STV090x_P1_DMDISTATE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #92
	bl	_stv090x_write_reg
Lloh23:
	adrp	x25, _FE_ERROR@GOTPAGE
Lloh24:
	ldr	x25, [x25, _FE_ERROR@GOTPAGEOFF]
	tbnz	x0, #63, LBB0_33
; %bb.7:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh25:
	adrp	x8, _STV090x_P2_DMDISTATE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _STV090x_P2_DMDISTATE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #92
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
LBB0_9:
	mov	w0, #5
	bl	_msleep
Lloh28:
	adrp	x8, _STV090x_P1_TNRCFG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _STV090x_P1_TNRCFG@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #108
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.10:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh31:
	adrp	x8, _STV090x_P2_TNRCFG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _STV090x_P2_TNRCFG@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #108
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
LBB0_12:
Lloh34:
	adrp	x8, _ENARPT_LEVEL_FIELD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENARPT_LEVEL_FIELD@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ldr	w2, [x24, #24]
	mov	w0, #0
	bl	_STV090x_SETFIELD_Px
Lloh37:
	adrp	x8, _STV090x_P1_I2CRPT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _STV090x_P1_I2CRPT@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.13:
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
Lloh40:
	adrp	x8, _STV090x_P2_I2CRPT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _STV090x_P2_I2CRPT@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
LBB0_15:
Lloh43:
	adrp	x8, _STV090x_NCOARSE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _STV090x_NCOARSE@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #19
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.16:
	mov	w0, #5
	bl	_msleep
Lloh46:
	adrp	x8, _STV090x_I2CCFG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _STV090x_I2CCFG@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.17:
Lloh49:
	adrp	x8, _STV090x_SYNTCTRL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _STV090x_SYNTCTRL@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w8, [x24]
	orr	w2, w8, #0x20
	mov	x0, x19
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.18:
	mov	w0, #5
	bl	_msleep
Lloh52:
	adrp	x26, _FE_DEBUG@GOTPAGE
Lloh53:
	ldr	x26, [x26, _FE_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh54:
	adrp	x2, l_.str.2@PAGE
Lloh55:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	cbz	x22, LBB0_22
; %bb.19:
	add	x23, x23, #4
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x23, #-4]
	mov	x0, x19
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x23, x23, #8
	subs	x22, x22, #1
	b.ne	LBB0_20
LBB0_22:
Lloh56:
	adrp	x8, _STV090x_MID@GOTPAGE
Lloh57:
	ldr	x8, [x8, _STV090x_MID@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv090x_read_reg
	ldr	x8, [x19, #8]
	str	w0, [x8]
	cmp	w0, #32
	b.lt	LBB0_32
; %bb.23:
Lloh59:
	adrp	x8, _STV090x_TSGENERAL@GOTPAGE
Lloh60:
	ldr	x8, [x8, _STV090x_TSGENERAL@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #12
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.24:
	ldr	w0, [x26]
Lloh62:
	adrp	x2, l_.str.3@PAGE
Lloh63:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	cbz	x20, LBB0_28
; %bb.25:
	add	x21, x21, #4
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x21, #-4]
	mov	x0, x19
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	add	x21, x21, #8
	subs	x20, x20, #1
	b.ne	LBB0_26
LBB0_28:
Lloh64:
	adrp	x22, _STV090x_TSTTNR1@GOTPAGE
Lloh65:
	ldr	x22, [x22, _STV090x_TSTTNR1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh66:
	adrp	x8, _ADC1_INMODE_FIELD@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ADC1_INMODE_FIELD@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	ldr	x8, [x24, #8]
Lloh69:
	adrp	x21, _STV090x_ADC_1Vpp@GOTPAGE
Lloh70:
	ldr	x21, [x21, _STV090x_ADC_1Vpp@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w2, ne
	bl	_STV090x_SETFIELD
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.29:
Lloh71:
	adrp	x22, _STV090x_TSTTNR3@GOTPAGE
Lloh72:
	ldr	x22, [x22, _STV090x_TSTTNR3@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh73:
	adrp	x8, _ADC2_INMODE_FIELD@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ADC2_INMODE_FIELD@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
	ldr	x8, [x24, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w2, ne
	bl	_STV090x_SETFIELD
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.30:
Lloh76:
	adrp	x20, _STV090x_TSTRES0@GOTPAGE
Lloh77:
	ldr	x20, [x20, _STV090x_TSTRES0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #128
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_33
; %bb.31:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_stv090x_write_reg
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_34
	b	LBB0_33
LBB0_32:
	ldr	w8, [x25]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh78:
	adrp	x2, l_.str.4@PAGE
Lloh79:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x8
	mov	w1, #1
	bl	_dprintk
LBB0_33:
	ldr	w0, [x25]
Lloh80:
	adrp	x2, l_.str.6@PAGE
Lloh81:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_34:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.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
l_.str.6:                               ; @.str.6
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_setup
.subsections_via_symbols
