	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv6110x_set_frequency
_stv6110x_set_frequency:                ## @stv6110x_set_frequency
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %r12
	movq	(%r12), %rax
	movq	_STV6110x_CTRL1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_CTRL1_K@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REFCLOCK_MHz@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$-16, %edx
	callq	_STV6110x_SETFIELD
	cmpl	$1023000, %ebx                  ## imm = 0xF9C18
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jg	LBB0_3
## %bb.1:
	movq	(%r12), %rax
	movq	_STV6110x_TNG1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_TNG1_DIV4SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_STV6110x_SETFIELD
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_TNG1_PRESC32_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	jmp	LBB0_2
LBB0_3:
	cmpl	$1300000, %ebx                  ## imm = 0x13D620
	ja	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movq	_STV6110x_TNG1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_TNG1_DIV4SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_STV6110x_SETFIELD
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_TNG1_PRESC32_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
LBB0_2:
	callq	_STV6110x_SETFIELD
	movl	$40, %r14d
	jmp	LBB0_9
LBB0_5:
	movq	(%r12), %rax
	movq	_STV6110x_TNG1@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_TNG1_DIV4SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_STV6110x_SETFIELD
	movq	(%r12), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_TNG1_PRESC32_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$2046000, %ebx                  ## imm = 0x1F3830
	ja	LBB0_7
## %bb.6:
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_7:
	movl	$1, %edx
LBB0_8:
	callq	_STV6110x_SETFIELD
	movl	$20, %r14d
LBB0_9:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_REFCLOCK_kHz@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rax
	movq	%rcx, %r13
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	xorl	%edi, %edi
	callq	_R_DIV
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	subl	%r14d, %eax
	movl	%eax, %edi
	callq	_abs
	movl	$1000, %edi                     ## imm = 0x3E8
	subl	%r14d, %edi
	callq	_abs
	movslq	(%r13), %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	xorl	%edi, %edi
	callq	_R_DIV
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r15d
	movslq	(%r13), %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movl	$1, %edi
	callq	_R_DIV
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	subl	%r14d, %eax
	movl	%eax, %edi
	callq	_abs
	movq	%rax, %rbx
	subl	%r14d, %r15d
	movl	%r15d, %edi
	callq	_abs
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	setl	%r15b
	movslq	(%r13), %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movl	%r15d, %edi
	callq	_R_DIV
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	movq	_REFCLOCK_kHz@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movl	$2, %edi
	callq	_R_DIV
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	subl	%r14d, %eax
	movl	%eax, %edi
	callq	_abs
	movq	%rax, %rbx
	subl	%r14d, %r13d
	movl	%r13d, %edi
	callq	_abs
	cmpq	%rax, %rbx
	movl	$2, %eax
	cmovll	%eax, %r15d
	movq	_REFCLOCK_kHz@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movl	%r15d, %edi
	callq	_R_DIV
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	movslq	(%r14), %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movl	$3, %edi
	callq	_R_DIV
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	%ebx, %eax
	movl	%eax, %edi
	callq	_abs
	movq	%rax, %r14
	subl	%ebx, %r13d
	movl	%r13d, %edi
	callq	_abs
	cmpq	%rax, %r14
	movl	$3, %eax
	cmovll	%eax, %r15d
	movl	%r15d, %edi
	callq	_R_DIV
	movl	%r15d, %edi
	callq	_R_DIV
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	imull	%ebx, %ecx
	imull	%ecx, %eax
	cltd
	movq	_REFCLOCK_kHz@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	addl	$5, %eax
	cltq
	imulq	$1717986919, %rax, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	movq	(%r12), %rax
	movq	_STV6110x_TNG1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	%rdx, %r14
	movl	(%rax,%rcx,4), %edi
	movq	_TNG1_R_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_STV6110x_SETFIELD
	movq	(%r12), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %r14d
	movq	_TNG1_N_DIV_11_8@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_MSB
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_STV6110x_SETFIELD
	movq	(%r12), %rax
	movq	_STV6110x_TNG0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r14d
	movq	_TNG0_N_DIV_7_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_LSB
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_STV6110x_SETFIELD
	movq	(%r12), %rax
	movq	_STV6110x_STAT1@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_STAT1_CALVCO_STRT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$1, %edx
	callq	_STV6110x_SETFIELD
	movq	_STV6110x_CTRL1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r12), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r12, %rdi
	callq	_stv6110x_write_reg
	movq	_STV6110x_TNG1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r12), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r12, %rdi
	callq	_stv6110x_write_reg
	movq	_STV6110x_TNG0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r12), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r12, %rdi
	callq	_stv6110x_write_reg
	movq	(%r13), %rsi
	movq	(%r12), %rax
	movl	(%rax,%rsi,4), %edx
	movq	%r12, %rdi
	callq	_stv6110x_write_reg
	movq	_TRIALS@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_13
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	leaq	(,%rsi,4), %rdx
	addq	(%r12), %rdx
	movq	%r12, %rdi
	callq	_stv6110x_read_reg
	movl	(%r14), %edi
	movq	(%r12), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_STV6110x_GETFIELD
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %edi
	callq	_msleep
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_11
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STV6110x_CTRL1,8,3             ## @STV6110x_CTRL1
	.comm	_CTRL1_K,4,2                    ## @CTRL1_K
	.comm	_REFCLOCK_MHz,4,2               ## @REFCLOCK_MHz
	.comm	_STV6110x_TNG1,8,3              ## @STV6110x_TNG1
	.comm	_TNG1_DIV4SEL,4,2               ## @TNG1_DIV4SEL
	.comm	_TNG1_PRESC32_ON,4,2            ## @TNG1_PRESC32_ON
	.comm	_REFCLOCK_kHz,4,2               ## @REFCLOCK_kHz
	.comm	_TNG1_R_DIV,4,2                 ## @TNG1_R_DIV
	.comm	_TNG1_N_DIV_11_8,4,2            ## @TNG1_N_DIV_11_8
	.comm	_STV6110x_TNG0,8,3              ## @STV6110x_TNG0
	.comm	_TNG0_N_DIV_7_0,4,2             ## @TNG0_N_DIV_7_0
	.comm	_STV6110x_STAT1,8,3             ## @STV6110x_STAT1
	.comm	_STAT1_CALVCO_STRT,4,2          ## @STAT1_CALVCO_STRT
	.comm	_TRIALS,8,3                     ## @TRIALS
	.no_dead_strip	_stv6110x_set_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv6110x_set_frequency
_stv6110x_set_frequency:                ; @stv6110x_set_frequency
	.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
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x9, _STV6110x_CTRL1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STV6110x_CTRL1@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _CTRL1_K@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTRL1_K@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _REFCLOCK_MHz@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REFCLOCK_MHz@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	sub	w2, w8, #16
	bl	_STV6110x_SETFIELD
	mov	w8, #39960
	movk	w8, #15, lsl #16
Lloh9:
	adrp	x24, _STV6110x_TNG1@GOTPAGE
Lloh10:
	ldr	x24, [x24, _STV6110x_TNG1@GOTPAGEOFF]
	cmp	w20, w8
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
Lloh11:
	adrp	x8, _TNG1_DIV4SEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TNG1_DIV4SEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV6110x_SETFIELD
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
Lloh14:
	adrp	x8, _TNG1_PRESC32_ON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TNG1_PRESC32_ON@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #0
	b	LBB0_4
LBB0_2:
	mov	w8, #54816
	movk	w8, #19, lsl #16
	cmp	w20, w8
	b.hi	LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
Lloh17:
	adrp	x8, _TNG1_DIV4SEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TNG1_DIV4SEL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV6110x_SETFIELD
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
Lloh20:
	adrp	x8, _TNG1_PRESC32_ON@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TNG1_PRESC32_ON@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #1
LBB0_4:
	bl	_STV6110x_SETFIELD
	mov	w25, #40
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
Lloh23:
	adrp	x8, _TNG1_DIV4SEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TNG1_DIV4SEL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_STV6110x_SETFIELD
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
Lloh26:
	adrp	x8, _TNG1_PRESC32_ON@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TNG1_PRESC32_ON@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w8, #14384
	movk	w8, #31, lsl #16
	cmp	w20, w8
	b.hi	LBB0_7
; %bb.6:
	mov	w2, #0
	b	LBB0_8
LBB0_7:
	mov	w2, #1
LBB0_8:
	bl	_STV6110x_SETFIELD
	mov	w25, #20
LBB0_9:
Lloh29:
	adrp	x26, _REFCLOCK_kHz@GOTPAGE
Lloh30:
	ldr	x26, [x26, _REFCLOCK_kHz@GOTPAGEOFF]
	ldrsw	x8, [x26]
	mov	w27, #34079
	movk	w27, #20971, lsl #16
	mul	x8, x8, x27
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w21, w8, w9
	mov	w0, #0
	bl	_R_DIV
	sdiv	w8, w21, w0
	sub	w0, w8, w25
	bl	_abs
	mov	w8, #1000
	sub	w0, w8, w25
	bl	_abs
	ldrsw	x8, [x26]
	mul	x8, x8, x27
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w21, w8, w9
	mov	w0, #0
	bl	_R_DIV
	sdiv	w22, w21, w0
	ldrsw	x8, [x26]
	mul	x8, x8, x27
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w21, w8, w9
	mov	w0, #1
	bl	_R_DIV
	sdiv	w8, w21, w0
	sub	w0, w8, w25
	bl	_abs
	mov	x21, x0
	sub	w0, w22, w25
	bl	_abs
	cmp	x21, x0
	cset	w21, lt
	ldrsw	x8, [x26]
	mul	x8, x8, x27
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w22, w8, w9
	mov	x0, x21
	bl	_R_DIV
	sdiv	w28, w22, w0
	ldrsw	x8, [x26]
	mul	x8, x8, x27
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w22, w8, w9
	mov	w23, #2
	mov	w0, #2
	bl	_R_DIV
	sdiv	w8, w22, w0
	sub	w0, w8, w25
	bl	_abs
	mov	x22, x0
	sub	w0, w28, w25
	bl	_abs
	cmp	x22, x0
	csel	w21, w23, w21, lt
	ldrsw	x8, [x26]
	mul	x8, x8, x27
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w22, w8, w9
	mov	x0, x21
	bl	_R_DIV
	sdiv	w23, w22, w0
	ldrsw	x8, [x26]
	mul	x8, x8, x27
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w22, w8, w9
	mov	w27, #3
	mov	w0, #3
	bl	_R_DIV
	sdiv	w8, w22, w0
	sub	w0, w8, w25
	bl	_abs
	mov	x22, x0
	sub	w0, w23, w25
	bl	_abs
	cmp	x22, x0
	csel	w21, w27, w21, lt
	mov	x0, x21
	bl	_R_DIV
	mov	x0, x21
	bl	_R_DIV
	mul	w8, w25, w20
	mul	w8, w8, w0
	ldr	w9, [x26]
	sdiv	w8, w8, w9
	add	w8, w8, #5
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w20, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
Lloh31:
	adrp	x8, _TNG1_R_DIV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TNG1_R_DIV@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_STV6110x_SETFIELD
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	w21, [x8, x9, lsl #2]
Lloh34:
	adrp	x8, _TNG1_N_DIV_11_8@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TNG1_N_DIV_11_8@GOTPAGEOFF]
Lloh36:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_MSB
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_STV6110x_SETFIELD
	ldr	x8, [x19]
Lloh37:
	adrp	x23, _STV6110x_TNG0@GOTPAGE
Lloh38:
	ldr	x23, [x23, _STV6110x_TNG0@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	w21, [x8, x9, lsl #2]
Lloh39:
	adrp	x8, _TNG0_N_DIV_7_0@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TNG0_N_DIV_7_0@GOTPAGEOFF]
Lloh41:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_LSB
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_STV6110x_SETFIELD
	ldr	x8, [x19]
Lloh42:
	adrp	x20, _STV6110x_STAT1@GOTPAGE
Lloh43:
	ldr	x20, [x20, _STV6110x_STAT1@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
Lloh44:
	adrp	x21, _STAT1_CALVCO_STRT@GOTPAGE
Lloh45:
	ldr	x21, [x21, _STAT1_CALVCO_STRT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #1
	bl	_STV6110x_SETFIELD
Lloh46:
	adrp	x8, _STV6110x_CTRL1@GOTPAGE
Lloh47:
	ldr	x8, [x8, _STV6110x_CTRL1@GOTPAGEOFF]
Lloh48:
	ldr	x1, [x8]
	ldr	x8, [x19]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_stv6110x_write_reg
	ldr	x1, [x24]
	ldr	x8, [x19]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_stv6110x_write_reg
	ldr	x1, [x23]
	ldr	x8, [x19]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_stv6110x_write_reg
	ldr	x1, [x20]
	ldr	x8, [x19]
	ldr	w2, [x8, x1, lsl #2]
	mov	x0, x19
	bl	_stv6110x_write_reg
Lloh49:
	adrp	x22, _TRIALS@GOTPAGE
Lloh50:
	ldr	x22, [x22, _TRIALS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x20]
	ldr	x8, [x19]
	add	x2, x8, x1, lsl #2
	mov	x0, x19
	bl	_stv6110x_read_reg
	ldr	w0, [x21]
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	bl	_STV6110x_GETFIELD
	cbz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #1
	bl	_msleep
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_11
LBB0_13:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_STV6110x_CTRL1,8,3             ; @STV6110x_CTRL1
	.comm	_CTRL1_K,4,2                    ; @CTRL1_K
	.comm	_REFCLOCK_MHz,4,2               ; @REFCLOCK_MHz
	.comm	_STV6110x_TNG1,8,3              ; @STV6110x_TNG1
	.comm	_TNG1_DIV4SEL,4,2               ; @TNG1_DIV4SEL
	.comm	_TNG1_PRESC32_ON,4,2            ; @TNG1_PRESC32_ON
	.comm	_REFCLOCK_kHz,4,2               ; @REFCLOCK_kHz
	.comm	_TNG1_R_DIV,4,2                 ; @TNG1_R_DIV
	.comm	_TNG1_N_DIV_11_8,4,2            ; @TNG1_N_DIV_11_8
	.comm	_STV6110x_TNG0,8,3              ; @STV6110x_TNG0
	.comm	_TNG0_N_DIV_7_0,4,2             ; @TNG0_N_DIV_7_0
	.comm	_STV6110x_STAT1,8,3             ; @STV6110x_STAT1
	.comm	_STAT1_CALVCO_STRT,4,2          ; @STAT1_CALVCO_STRT
	.comm	_TRIALS,8,3                     ; @TRIALS
	.no_dead_strip	_stv6110x_set_frequency
.subsections_via_symbols
