	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0297_set_frontend
_stv0297_set_frontend:                  ## @stv0297_set_frontend
	.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
	movl	24(%rdi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movslq	%eax, %r15
	leaq	l_switch.table.stv0297_set_frontend.1(%rip), %rax
	movl	28(%rdi), %ecx
	movq	8(%r12), %rdx
	xorl	%esi, %esi
	cmpl	$133, %ecx
	sete	%sil
	addl	$133, %esi
	cmpq	$0, (%rdx)
	movl	(%rax,%r15,4), %eax
	cmovel	%ecx, %esi
	cmpl	$134, %esi
	je	LBB0_3
## %bb.4:
	cmpl	$133, %esi
	jne	LBB0_1
## %bb.5:
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	negl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$330, -44(%rbp)                 ## 4-byte Folded Spill
                                        ## imm = 0x14A
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_3:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	$-330, -44(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0xFEB6
LBB0_6:
	leaq	l_switch.table.stv0297_set_frontend(%rip), %r14
	movq	%rbx, %rdi
	callq	_stv0297_init
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rax
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_9:
	movl	(%r14,%r15,4), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$130, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$7250, %esi                     ## imm = 0x1C52
	callq	_stv0297_set_initialdemodfreq
	movq	%r12, %rdi
	movl	$67, %esi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$65, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$66, %esi
	movl	$3, %edx
	movl	$1, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$54, %esi
	movl	$96, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$54, %esi
	movl	$24, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$113, %esi
	movl	$128, %edx
	movl	$128, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$114, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$115, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$116, %esi
	movl	$15, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$67, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$113, %esi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$90, %esi
	movl	$32, %edx
	movl	$32, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$91, %esi
	movl	$2, %edx
	movl	$2, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$91, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$91, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$90, %esi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$106, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$129, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$129, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$131, %esi
	movl	$32, %edx
	movl	$32, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$131, %esi
	movl	$32, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_stv0297_readreg
	movl	%eax, %r15d
	andl	$15, %r15d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_stv0297_readreg
	movl	%eax, %r13d
	andl	$-16, %r13d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_stv0297_readreg
	movl	%eax, %r14d
	andl	$15, %r14d
	movq	%r12, %rdi
	movl	$132, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$132, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$15, %edx
	movl	%r15d, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$240, %edx
	movl	%r13d, %ecx
	movq	%rbx, %r13
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$15, %edx
	movl	%r14d, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$135, %esi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$99, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$100, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$101, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$102, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$103, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$104, %esi
	xorl	%edx, %edx
	callq	_stv0297_writereg
	movq	%r12, %rdi
	movl	$105, %esi
	movl	$15, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movl	24(%rbx), %esi
	movq	%r12, %rdi
	callq	_stv0297_set_qam
	movslq	32(%rbx), %rax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_stv0297_set_symbolrate
	movslq	32(%rbx), %rax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$38, %rdx
	addl	%eax, %edx
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_stv0297_set_sweeprate
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_stv0297_set_carrieroffset
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_stv0297_set_inversion
	movl	$-130, %eax
	addl	24(%rbx), %eax
	xorl	%ecx, %ecx
	testl	$-3, %eax
	setne	%cl
	shll	$3, %ecx
	movq	%r12, %rdi
	movl	$136, %esi
	movl	$8, %edx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$90, %esi
	movl	$32, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$106, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$67, %esi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$91, %esi
	movl	$48, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$3, %esi
	movl	$12, %edx
	movl	$12, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$3, %esi
	movl	$3, %edx
	movl	$3, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$67, %esi
	movl	$16, %edx
	movl	$16, %ecx
	callq	_stv0297_writereg_mask
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movl	$2000, %edi                     ## imm = 0x7D0
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r15, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$10, %edi
	callq	_msleep
	movq	%r12, %rdi
	movl	$67, %esi
	callq	_stv0297_readreg
	testb	$8, %al
	je	LBB0_10
LBB0_12:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_27
## %bb.13:
	movl	$20, %edi
	callq	_msleep
	movq	(%r14), %r15
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r15, %rbx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$10, %edi
	callq	_msleep
	movq	%r12, %rdi
	movl	$130, %esi
	callq	_stv0297_readreg
	testb	$4, %al
	je	LBB0_14
LBB0_16:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_27
## %bb.17:
	movq	(%r14), %r15
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r15, %rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$10, %edi
	callq	_msleep
	movq	%r12, %rdi
	movl	$130, %esi
	callq	_stv0297_readreg
	testb	$8, %al
	je	LBB0_18
LBB0_20:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_27
## %bb.21:
	movq	%r12, %rdi
	movl	$106, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	%r12, %rdi
	movl	$136, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movq	(%r14), %r15
	movl	$20, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r15, %rbx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	$10, %edi
	callq	_msleep
	movq	%r12, %rdi
	movl	$223, %esi
	callq	_stv0297_readreg
	testb	$-128, %al
	je	LBB0_22
LBB0_24:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_27
## %bb.25:
	movl	$100, %edi
	callq	_msleep
	movq	%r12, %rdi
	movl	$223, %esi
	callq	_stv0297_readreg
	testb	$-128, %al
	jne	LBB0_26
LBB0_27:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	$106, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	$90, %esi
	movl	$64, %edx
	xorl	%ecx, %ecx
	callq	_stv0297_writereg_mask
	movl	36(%r13), %eax
	movl	%eax, (%r12)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_stv0297_set_frontend
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.stv0297_set_frontend
l_switch.table.stv0297_set_frontend:
	.long	100                             ## 0x64
	.long	100                             ## 0x64
	.long	200                             ## 0xc8
	.long	100                             ## 0x64
	.long	200                             ## 0xc8

	.p2align	2                               ## @switch.table.stv0297_set_frontend.1
l_switch.table.stv0297_set_frontend.1:
	.long	1000                            ## 0x3e8
	.long	1000                            ## 0x3e8
	.long	500                             ## 0x1f4
	.long	1000                            ## 0x3e8
	.long	500                             ## 0x1f4

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0297_set_frontend
_stv0297_set_frontend:                  ; @stv0297_set_frontend
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0, #24]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hs	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x9, l_switch.table.stv0297_set_frontend.1@PAGE
Lloh1:
	add	x9, x9, l_switch.table.stv0297_set_frontend.1@PAGEOFF
	sbfiz	x8, x8, #2, #32
	ldr	w23, [x9, x8]
	ldr	w9, [x0, #28]
	ldr	x10, [x20, #8]
	ldr	x10, [x10]
	cmp	w9, #133
	mov	w11, #133
	cinc	w11, w11, eq
	cmp	x10, #0
	csel	w22, w9, w11, eq
	cmp	w22, #134
	b.eq	LBB0_5
; %bb.2:
	cmp	w22, #133
	b.ne	LBB0_4
; %bb.3:
	neg	w23, w23
	mov	w24, #330
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_27
LBB0_5:
	mov	w24, #-330
LBB0_6:
Lloh5:
	adrp	x9, l_switch.table.stv0297_set_frontend@PAGE
Lloh6:
	add	x9, x9, l_switch.table.stv0297_set_frontend@PAGEOFF
	ldr	w21, [x9, x8]
	mov	x0, x19
	bl	_stv0297_init
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_9:
	mov	x0, x20
	mov	w1, #130
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #7250
	bl	_stv0297_set_initialdemodfreq
	mov	x0, x20
	mov	w1, #67
	mov	w2, #16
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #65
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #66
	mov	w2, #3
	mov	w3, #1
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #54
	mov	w2, #96
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #54
	mov	w2, #24
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #113
	mov	w2, #128
	mov	w3, #128
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #114
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #115
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #116
	mov	w2, #15
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #67
	mov	w2, #8
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #113
	mov	w2, #128
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #90
	mov	w2, #32
	mov	w3, #32
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #91
	mov	w2, #2
	mov	w3, #2
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #91
	mov	w2, #2
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #91
	mov	w2, #1
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #90
	mov	w2, #64
	mov	w3, #64
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #106
	mov	w2, #1
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #129
	mov	w2, #1
	mov	w3, #1
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #129
	mov	w2, #1
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #131
	mov	w2, #32
	mov	w3, #32
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #131
	mov	w2, #32
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #0
	bl	_stv0297_readreg
	and	w25, w0, #0xf
	mov	x0, x20
	mov	w1, #1
	bl	_stv0297_readreg
	and	w26, w0, #0xfffffff0
	mov	x0, x20
	mov	w1, #1
	bl	_stv0297_readreg
	and	w27, w0, #0xf
	mov	x0, x20
	mov	w1, #132
	mov	w2, #1
	mov	w3, #1
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #132
	mov	w2, #1
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #0
	mov	w2, #15
	mov	x3, x25
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #1
	mov	w2, #240
	mov	x3, x26
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #1
	mov	w2, #15
	mov	x3, x27
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #135
	mov	w2, #128
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #99
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #100
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #101
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #102
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #103
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #104
	mov	w2, #0
	bl	_stv0297_writereg
	mov	x0, x20
	mov	w1, #105
	mov	w2, #15
	mov	w3, #0
	bl	_stv0297_writereg_mask
	ldr	w1, [x19, #24]
	mov	x0, x20
	bl	_stv0297_set_qam
	ldrsw	x8, [x19, #32]
	mov	w25, #19923
	movk	w25, #4194, lsl #16
	mul	x8, x8, x25
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w1, w8, w9
	mov	x0, x20
	bl	_stv0297_set_symbolrate
	ldrsw	x8, [x19, #32]
	mul	x8, x8, x25
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w2, w8, w9
	mov	x0, x20
	mov	x1, x23
	bl	_stv0297_set_sweeprate
	mov	x0, x20
	mov	x1, x24
	bl	_stv0297_set_carrieroffset
	mov	x0, x20
	mov	x1, x22
	bl	_stv0297_set_inversion
	ldr	w8, [x19, #24]
	sub	w8, w8, #130
	tst	w8, #0xfffffffd
	cset	w8, ne
	lsl	w3, w8, #3
	mov	x0, x20
	mov	w1, #136
	mov	w2, #8
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #90
	mov	w2, #32
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #106
	mov	w2, #1
	mov	w3, #1
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #67
	mov	w2, #64
	mov	w3, #64
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #91
	mov	w2, #48
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #3
	mov	w2, #12
	mov	w3, #12
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #3
	mov	w2, #3
	mov	w3, #3
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #67
	mov	w2, #16
	mov	w3, #16
	bl	_stv0297_writereg_mask
Lloh7:
	adrp	x23, _jiffies@GOTPAGE
Lloh8:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x22, [x23]
	mov	w0, #2000
	bl	_msecs_to_jiffies
	add	x22, x0, x22
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #10
	bl	_msleep
	mov	x0, x20
	mov	w1, #67
	bl	_stv0297_readreg
	tbz	w0, #3, LBB0_10
LBB0_12:
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_after
	cbnz	x0, LBB0_26
; %bb.13:
	mov	w0, #20
	bl	_msleep
	ldr	x22, [x23]
	mov	w0, #500
	bl	_msecs_to_jiffies
	add	x22, x0, x22
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #10
	bl	_msleep
	mov	x0, x20
	mov	w1, #130
	bl	_stv0297_readreg
	tbz	w0, #2, LBB0_14
LBB0_16:
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_after
	cbnz	x0, LBB0_26
; %bb.17:
	ldr	x22, [x23]
	mov	x0, x21
	bl	_msecs_to_jiffies
	add	x21, x0, x22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #10
	bl	_msleep
	mov	x0, x20
	mov	w1, #130
	bl	_stv0297_readreg
	tbz	w0, #3, LBB0_18
LBB0_20:
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_26
; %bb.21:
	mov	x0, x20
	mov	w1, #106
	mov	w2, #1
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	x0, x20
	mov	w1, #136
	mov	w2, #8
	mov	w3, #0
	bl	_stv0297_writereg_mask
	ldr	x21, [x23]
	mov	w0, #20
	bl	_msecs_to_jiffies
	add	x21, x0, x21
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w0, #10
	bl	_msleep
	mov	x0, x20
	mov	w1, #223
	bl	_stv0297_readreg
	tbz	w0, #7, LBB0_22
LBB0_24:
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_after
	cbnz	x0, LBB0_26
; %bb.25:
	mov	w0, #100
	bl	_msleep
	mov	x0, x20
	mov	w1, #223
	bl	_stv0297_readreg
	tbnz	w0, #7, LBB0_28
LBB0_26:
	mov	x0, x20
	mov	w1, #106
	mov	w2, #1
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	w0, #0
LBB0_27:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_28:
	mov	x0, x20
	mov	w1, #90
	mov	w2, #64
	mov	w3, #0
	bl	_stv0297_writereg_mask
	mov	w0, #0
	ldr	w8, [x19, #36]
	str	w8, [x20]
	b	LBB0_27
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_stv0297_set_frontend
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.stv0297_set_frontend
l_switch.table.stv0297_set_frontend:
	.long	100                             ; 0x64
	.long	100                             ; 0x64
	.long	200                             ; 0xc8
	.long	100                             ; 0x64
	.long	200                             ; 0xc8

	.p2align	2                               ; @switch.table.stv0297_set_frontend.1
l_switch.table.stv0297_set_frontend.1:
	.long	1000                            ; 0x3e8
	.long	1000                            ; 0x3e8
	.long	500                             ; 0x1f4
	.long	1000                            ; 0x3e8
	.long	500                             ; 0x1f4

.subsections_via_symbols
