	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0070_tune_digital
_dib0070_tune_digital:                  ## @dib0070_tune_digital
	.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	8(%rdi), %r14
	movslq	(%rdi), %rax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$38, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BAND_OF_FREQUENCY
	movl	%eax, %ebx
	xorl	%ecx, %ecx
	cmpl	$131, %eax
	setne	%cl
	movslq	(%r15), %rax
	imulq	$274877907, %rax, %r13          ## imm = 0x10624DD3
	movq	%r13, %rax
	shrq	$63, %rax
	sarq	$38, %r13
	addl	%eax, %r13d
	movq	40(%r14), %rax
	addl	(%rax,%rcx,4), %r13d
	cmpl	%r13d, 4(%r14)
	je	LBB0_12
## %bb.1:
	cmpl	$130, 8(%r14)
	jne	LBB0_3
## %bb.2:
	movq	_dib0070s_tuning_table@GOTPCREL(%rip), %rcx
	movq	_dib0070_lna@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_3:
	cmpl	$0, 24(%rax)
	jne	LBB0_4
## %bb.5:
	movq	_dib0070_lna@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	_dib0070_lna_flip_chip@GOTPCREL(%rip), %rdx
LBB0_6:
	movq	_dib0070_tuning_table@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rcx
	movq	(%rdx), %rdx
	addq	$-32, %rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rsi
	addq	$32, %rcx
	cmpl	32(%rsi), %r13d
	jg	LBB0_8
## %bb.9:
	addq	$-8, %rdx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rsi
	addq	$8, %rdx
	cmpl	8(%rsi), %r13d
	jg	LBB0_10
## %bb.11:
	movq	%rcx, 32(%r14)
	movq	%rdx, 24(%r14)
LBB0_12:
	movl	(%r14), %ecx
	movq	_CT_TUNER_START@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_40
## %bb.13:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	%r13d, 4(%r14)
	jne	LBB0_14
## %bb.39:
	movq	_CT_TUNER_STEP_5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$50, %eax
	jmp	LBB0_53
LBB0_40:
	movq	_CT_TUNER_STEP_4@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jbe	LBB0_42
## %bb.41:
	cmpl	%edx, %ecx
	jae	LBB0_42
## %bb.54:
	movq	%r14, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib0070_captrim                ## TAILCALL
LBB0_42:
	cmpl	%edx, %ecx
	jne	LBB0_49
## %bb.43:
	movq	16(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_47
## %bb.44:
	movslq	%r13d, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	addq	$-4, %rbx
	.p2align	4, 0x90
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rcx
	addq	$8, %rbx
	cmpl	4(%rcx), %eax
	jg	LBB0_45
## %bb.46:
	movl	(%rbx), %edx
	shll	$9, %edx
	movq	32(%r14), %rax
	orl	24(%rax), %edx
	orl	$28800, %edx                    ## imm = 0x7080
	movq	%r14, %rdi
	movl	$15, %esi
	callq	_dib0070_write_reg
	movl	(%rbx), %eax
	jmp	LBB0_48
LBB0_14:
	movl	%r13d, 4(%r14)
	movq	32(%r14), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %eax
	shll	$11, %ecx
	shll	$7, %eax
	orl	%ecx, %eax
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$48, %edx
	callq	_dib0070_write_reg
	cmpl	$132, %ebx
	je	LBB0_17
## %bb.15:
	cmpl	$131, %ebx
	jne	LBB0_18
## %bb.16:
	movq	40(%r14), %rax
	movl	8(%rax), %eax
	leal	9999(%rax), %ecx
	movslq	%ecx, %rcx
	imulq	$1759218605, %rcx, %rdi         ## imm = 0x68DB8BAD
	jmp	LBB0_19
LBB0_49:
	movq	_CT_TUNER_STEP_5@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_52
## %bb.50:
	movq	%r15, %rdi
	callq	_dib0070_set_bandwidth
	movq	_CT_TUNER_STOP@GOTPCREL(%rip), %rax
	jmp	LBB0_51
LBB0_17:
	movq	40(%r14), %rax
	movslq	8(%rax), %rax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdi
	jmp	LBB0_20
LBB0_18:
	movq	40(%r14), %rax
	movslq	8(%rax), %rax
	imulq	$1759218605, %rax, %rdi         ## imm = 0x68DB8BAD
LBB0_19:
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$44, %rdi
LBB0_20:
	addl	%ecx, %edi
	leal	(%r13,%r13), %ecx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%edi
	movl	%eax, %r8d
	cmpl	$130, 8(%r14)
	jne	LBB0_22
## %bb.21:
	movq	32(%r14), %rsi
	imull	12(%rsi), %ecx
	movl	%ecx, %eax
	cltd
	idivl	16(%rsi)
	movl	%eax, %ecx
	cltd
	idivl	%r8d
	jmp	LBB0_23
LBB0_22:
	movl	%r8d, %esi
	shrl	$31, %esi
	addl	%r8d, %esi
	sarl	%esi
	movl	%r13d, %eax
	cltd
	idivl	%esi
LBB0_23:
	movl	%eax, %r9d
	imull	%r8d, %eax
	subl	%eax, %ecx
	movq	_LPF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jge	LBB0_25
## %bb.24:
	movq	%rdi, %rbx
	jmp	LBB0_30
LBB0_25:
	leal	(%rsi,%rsi), %edx
	movq	%rdi, %rbx
	cmpl	%edx, %ecx
	jge	LBB0_27
## %bb.26:
	movl	%edx, %eax
	jmp	LBB0_30
LBB0_52:
	movq	_FE_CALLBACK_TIME_NEVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_53
LBB0_27:
	movl	%r8d, %edi
	subl	%esi, %edi
	cmpl	%edi, %ecx
	jle	LBB0_29
## %bb.28:
	incl	%r9d
	jmp	LBB0_30
LBB0_47:
	movq	32(%r14), %rax
	movl	$31872, %edx                    ## imm = 0x7C80
	orl	24(%rax), %edx
	movq	%r14, %rdi
	movl	$15, %esi
	callq	_dib0070_write_reg
	movl	$6, %eax
LBB0_48:
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	movl	$6, %esi
	movl	$16383, %edx                    ## imm = 0x3FFF
	callq	_dib0070_write_reg
	movq	24(%r14), %rax
	movq	32(%r14), %rcx
	movl	28(%rcx), %ecx
	shll	$11, %ecx
	movl	4(%rax), %edx
	shll	$3, %edx
	orl	%ecx, %edx
	orl	$1795, %edx                     ## imm = 0x703
	movq	%r14, %rdi
	movl	$7, %esi
	callq	_dib0070_write_reg
	movq	24(%r14), %rax
	movl	4(%rax), %edx
	shll	$10, %edx
	orl	$511, %edx                      ## imm = 0x1FF
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_dib0070_write_reg
	movq	%r14, %rdi
	movl	$13, %esi
	movl	$3456, %edx                     ## imm = 0xD80
	callq	_dib0070_write_reg
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$2047, %edx                     ## imm = 0x7FF
	callq	_dib0070_write_reg
	movq	%r14, %rdi
	movl	$23, %esi
	movl	$51, %edx
	callq	_dib0070_write_reg
	movq	_CT_TUNER_STEP_5@GOTPCREL(%rip), %rax
	jmp	LBB0_51
LBB0_29:
	movl	%r8d, %eax
	subl	%edx, %eax
	cmpl	%eax, %ecx
	cmovll	%ecx, %eax
LBB0_30:
	imull	$6528, %eax, %eax               ## imm = 0x1980
	movslq	%r8d, %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	jle	LBB0_31
## %bb.32:
	orb	$80, 13(%r14)
	movl	$255, %r12d
	jmp	LBB0_33
LBB0_31:
	movl	$1, %r12d
LBB0_33:
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	movl	$17, %esi
	movl	%r9d, %edx
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	callq	_dib0070_write_reg
	movl	%r12d, %edx
	shll	$8, %edx
	orl	%ebx, %edx
	movq	%r14, %rdi
	movl	$18, %esi
	callq	_dib0070_write_reg
	movq	%r14, %rdi
	movl	$19, %esi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_dib0070_write_reg
	cmpl	$130, 8(%r14)
	jne	LBB0_38
## %bb.34:
	movq	_BAND_SBAND@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_36
## %bb.35:
	movq	%r15, %rdi
	movl	$2, %esi
	movl	$4, %edx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	callq	_dib0070_set_ctrl_lo5
	movq	%r14, %rdi
	movl	$29, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_dib0070_write_reg
	jmp	LBB0_37
LBB0_36:
	movq	%r15, %rdi
	movl	$5, %esi
	movl	$4, %edx
	movl	$3, %ecx
	movl	$1, %r8d
	callq	_dib0070_set_ctrl_lo5
LBB0_37:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_38:
	movq	32(%r14), %rax
	movl	20(%rax), %edx
	orl	$123, %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_dib0070_write_reg
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dprintk
	leaq	L_.str.2(%rip), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	12(%r14), %ecx
	shrl	$12, %ecx
	andl	$1, %ecx
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dprintk
	movq	32(%r14), %rax
	movl	8(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	32(%r14), %rax
	movl	4(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	32(%r14), %rax
	movl	12(%rax), %esi
	leaq	L_.str.6(%rip), %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_CT_TUNER_STEP_0@GOTPCREL(%rip), %rax
LBB0_51:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$10, %eax
LBB0_53:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dib0070s_tuning_table,8,3      ## @dib0070s_tuning_table
	.comm	_dib0070_lna,8,3                ## @dib0070_lna
	.comm	_dib0070_tuning_table,8,3       ## @dib0070_tuning_table
	.comm	_dib0070_lna_flip_chip,8,3      ## @dib0070_lna_flip_chip
	.comm	_CT_TUNER_START,4,2             ## @CT_TUNER_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tuning for Band: %hd (%d kHz)\n"

	.comm	_LPF,4,2                        ## @LPF
	.comm	_BAND_SBAND,4,2                 ## @BAND_SBAND
L_.str.1:                               ## @.str.1
	.asciz	"REFDIV: %hd, FREF: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"FBDIV: %d, Rest: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Num: %hd, Den: %hd, SD: %hd\n"

L_.str.4:                               ## @.str.4
	.asciz	"HFDIV code: %hd\n"

L_.str.5:                               ## @.str.5
	.asciz	"VCO = %hd\n"

L_.str.6:                               ## @.str.6
	.asciz	"VCOF: ((%hd*%d) << 1))\n"

	.comm	_CT_TUNER_STEP_0,4,2            ## @CT_TUNER_STEP_0
	.comm	_CT_TUNER_STEP_5,4,2            ## @CT_TUNER_STEP_5
	.comm	_CT_TUNER_STEP_4,4,2            ## @CT_TUNER_STEP_4
	.comm	_CT_TUNER_STOP,4,2              ## @CT_TUNER_STOP
	.comm	_FE_CALLBACK_TIME_NEVER,4,2     ## @FE_CALLBACK_TIME_NEVER
	.comm	_SYS_ISDBT,8,3                  ## @SYS_ISDBT
	.no_dead_strip	_dib0070_tune_digital
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib0070_tune_digital
_dib0070_tune_digital:                  ; @dib0070_tune_digital
	.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	x20, x0
	ldr	x19, [x0, #8]
	ldrsw	x8, [x0]
	mov	w22, #19923
	movk	w22, #4194, lsl #16
	mul	x8, x8, x22
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	bl	_BAND_OF_FREQUENCY
	mov	x21, x0
	cmp	w0, #131
	cset	w9, ne
	ldrsw	x8, [x20]
	mul	x8, x8, x22
	lsr	x10, x8, #63
	asr	x11, x8, #38
	ldr	x8, [x19, #40]
	ldr	w9, [x8, w9, uxtw #2]
	add	w10, w11, w10
	add	w25, w9, w10
	ldr	w9, [x19, #4]
	cmp	w9, w25
	b.eq	LBB0_9
; %bb.1:
	ldr	w10, [x19, #8]
Lloh0:
	adrp	x9, _dib0070_lna@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dib0070_lna@GOTPAGEOFF]
	cmp	w10, #130
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x10, _dib0070s_tuning_table@GOTPAGE
Lloh3:
	ldr	x10, [x10, _dib0070s_tuning_table@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w10, [x8, #24]
Lloh4:
	adrp	x11, _dib0070_lna_flip_chip@GOTPAGE
Lloh5:
	ldr	x11, [x11, _dib0070_lna_flip_chip@GOTPAGEOFF]
	cmp	w10, #0
	csel	x9, x9, x11, eq
Lloh6:
	adrp	x10, _dib0070_tuning_table@GOTPAGE
Lloh7:
	ldr	x10, [x10, _dib0070_tuning_table@GOTPAGEOFF]
LBB0_4:
	ldr	x11, [x10]
	ldr	x10, [x9]
	sub	x9, x11, #32
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, #32]!
	cmp	w25, w11
	b.gt	LBB0_5
; %bb.6:
	sub	x10, x10, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, #8]!
	cmp	w25, w11
	b.gt	LBB0_7
; %bb.8:
	stp	x10, x9, [x19, #24]
LBB0_9:
	ldr	w9, [x19]
Lloh8:
	adrp	x10, _CT_TUNER_START@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CT_TUNER_START@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.10:
	mov	x8, x25
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_dprintk
	ldr	w8, [x19, #4]
	cmp	w8, w25
	b.ne	LBB0_18
; %bb.11:
Lloh13:
	adrp	x8, _CT_TUNER_STEP_5@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CT_TUNER_STEP_5@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #50
	b	LBB0_47
LBB0_12:
Lloh16:
	adrp	x11, _CT_TUNER_STEP_4@GOTPAGE
Lloh17:
	ldr	x11, [x11, _CT_TUNER_STEP_4@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	cmp	w9, w10
	ccmp	w9, w11, #2, hi
	b.lo	LBB0_21
; %bb.13:
	cmp	w9, w11
	b.ne	LBB0_22
; %bb.14:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_35
; %bb.15:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w25, w8
	lsr	x10, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w10
	sub	x20, x9, #4
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20, #4]
	add	x20, x20, #8
	cmp	w8, w9
	b.gt	LBB0_16
; %bb.17:
	ldr	w8, [x20]
	ldr	x9, [x19, #32]
	ldr	w9, [x9, #24]
	orr	w8, w9, w8, lsl #9
	mov	w9, #28800
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #15
	bl	_dib0070_write_reg
	ldr	w8, [x20]
	b	LBB0_36
LBB0_18:
	str	w25, [x19, #4]
	ldr	x8, [x19, #32]
	ldp	w9, w8, [x8, #4]
	lsl	w8, w8, #7
	orr	w8, w8, w9, lsl #11
	str	w8, [x19, #12]
	mov	x0, x19
	mov	w1, #23
	mov	w2, #48
	bl	_dib0070_write_reg
	cmp	w21, #132
	b.eq	LBB0_24
; %bb.19:
	cmp	w21, #131
	b.ne	LBB0_25
; %bb.20:
	ldr	x8, [x19, #40]
	ldr	w8, [x8, #8]
	mov	w9, #9999
	add	w9, w8, w9
	mov	w10, #35757
	movk	w10, #26843, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #44
	add	w22, w9, w10
	b	LBB0_26
LBB0_21:
	mov	x0, x19
	mov	x1, x19
	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
	b	_dib0070_captrim
LBB0_22:
Lloh19:
	adrp	x8, _CT_TUNER_STEP_5@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CT_TUNER_STEP_5@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_34
; %bb.23:
	mov	x0, x20
	bl	_dib0070_set_bandwidth
Lloh22:
	adrp	x8, _CT_TUNER_STOP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CT_TUNER_STOP@GOTPAGEOFF]
	b	LBB0_46
LBB0_24:
	ldr	x8, [x19, #40]
	ldrsw	x8, [x8, #8]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w22, w9, w10
	b	LBB0_26
LBB0_25:
	ldr	x8, [x19, #40]
	ldrsw	x8, [x8, #8]
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	asr	x9, x9, #44
	add	w22, w9, w10
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_26:
	lsl	w9, w25, #1
	ldr	w10, [x19, #8]
	sdiv	w26, w8, w22
	cmp	w10, #130
	b.ne	LBB0_28
; %bb.27:
	ldr	x8, [x19, #32]
	ldp	w10, w8, [x8, #12]
	mul	w9, w9, w10
	sdiv	w9, w9, w8
	sdiv	w23, w9, w26
	b	LBB0_29
LBB0_28:
	cmp	w26, #0
	cinc	w8, w26, lt
	asr	w8, w8, #1
	sdiv	w23, w25, w8
LBB0_29:
	msub	w9, w23, w26, w9
Lloh24:
	adrp	x8, _LPF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LPF@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x8]
	cmp	w9, w10
	b.ge	LBB0_31
; %bb.30:
	mov	w8, #0
	b	LBB0_38
LBB0_31:
	lsl	w8, w10, #1
	cmp	w9, w8
	b.lt	LBB0_38
; %bb.32:
	sub	w10, w26, w10
	cmp	w9, w10
	b.le	LBB0_37
; %bb.33:
	mov	w8, #0
	add	w23, w23, #1
	b	LBB0_38
LBB0_34:
Lloh27:
	adrp	x8, _FE_CALLBACK_TIME_NEVER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FE_CALLBACK_TIME_NEVER@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	LBB0_47
LBB0_35:
	ldr	x8, [x19, #32]
	ldr	w8, [x8, #24]
	mov	w9, #31872
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #15
	bl	_dib0070_write_reg
	mov	w8, #6
LBB0_36:
	str	w8, [x19, #16]
	mov	x0, x19
	mov	w1, #6
	mov	w2, #16383
	bl	_dib0070_write_reg
	ldp	x9, x8, [x19, #24]
	ldr	w8, [x8, #28]
	lsl	w8, w8, #11
	ldr	w9, [x9, #4]
	orr	w8, w8, w9, lsl #3
	mov	w9, #1795
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #7
	bl	_dib0070_write_reg
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #4]
	mov	w2, #511
	bfi	w2, w8, #10, #22
	mov	x0, x19
	mov	w1, #8
	bl	_dib0070_write_reg
	mov	x0, x19
	mov	w1, #13
	mov	w2, #3456
	bl	_dib0070_write_reg
	mov	x0, x19
	mov	w1, #24
	mov	w2, #2047
	bl	_dib0070_write_reg
	mov	x0, x19
	mov	w1, #23
	mov	w2, #51
	bl	_dib0070_write_reg
Lloh30:
	adrp	x8, _CT_TUNER_STEP_5@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CT_TUNER_STEP_5@GOTPAGEOFF]
	b	LBB0_46
LBB0_37:
	sub	w8, w26, w8
	cmp	w9, w8
	csel	w8, w9, w8, lt
LBB0_38:
	mov	w9, #6528
	mul	w8, w8, w9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x9, w26, w9
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	sdiv	w24, w8, w9
	cmp	w24, #1
	b.lt	LBB0_40
; %bb.39:
	ldr	w8, [x19, #12]
	mov	w9, #20480
	orr	w8, w8, w9
	str	w8, [x19, #12]
	mov	w27, #255
	b	LBB0_41
LBB0_40:
	mov	w27, #1
LBB0_41:
	mov	x0, x19
	mov	w1, #17
	mov	x2, x23
	bl	_dib0070_write_reg
	orr	w2, w22, w27, lsl #8
	mov	x0, x19
	mov	w1, #18
	bl	_dib0070_write_reg
	mov	x0, x19
	mov	w1, #19
	mov	x2, x24
	bl	_dib0070_write_reg
	ldr	w8, [x19, #8]
	cmp	w8, #130
	b.ne	LBB0_45
; %bb.42:
Lloh32:
	adrp	x8, _BAND_SBAND@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BAND_SBAND@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	mov	x0, x20
	cmp	w21, w8
	b.ne	LBB0_44
; %bb.43:
	mov	w1, #2
	mov	w2, #4
	mov	w3, #3
	mov	w4, #0
	bl	_dib0070_set_ctrl_lo5
	mov	x0, x19
	mov	w1, #29
	mov	w2, #65535
	bl	_dib0070_write_reg
	b	LBB0_45
LBB0_44:
	mov	w1, #5
	mov	w2, #4
	mov	w3, #3
	mov	w4, #1
	bl	_dib0070_set_ctrl_lo5
LBB0_45:
	ldr	x8, [x19, #32]
	ldr	w8, [x8, #20]
	mov	w9, #123
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #32
	bl	_dib0070_write_reg
	str	x26, [sp]
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_dprintk
	str	x24, [sp]
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	bl	_dprintk
	ldr	w8, [x19, #12]
	ubfx	w8, w8, #12, #1
	stp	x27, x8, [sp]
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x24
	bl	_dprintk
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #8]
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
Lloh43:
	adrp	x0, l_.str.5@PAGE
Lloh44:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #12]
	str	x25, [sp]
Lloh45:
	adrp	x0, l_.str.6@PAGE
Lloh46:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_dprintk
Lloh47:
	adrp	x8, _CT_TUNER_STEP_0@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CT_TUNER_STEP_0@GOTPAGEOFF]
LBB0_46:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #10
LBB0_47:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_dib0070s_tuning_table,8,3      ; @dib0070s_tuning_table
	.comm	_dib0070_lna,8,3                ; @dib0070_lna
	.comm	_dib0070_tuning_table,8,3       ; @dib0070_tuning_table
	.comm	_dib0070_lna_flip_chip,8,3      ; @dib0070_lna_flip_chip
	.comm	_CT_TUNER_START,4,2             ; @CT_TUNER_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tuning for Band: %hd (%d kHz)\n"

	.comm	_LPF,4,2                        ; @LPF
	.comm	_BAND_SBAND,4,2                 ; @BAND_SBAND
l_.str.1:                               ; @.str.1
	.asciz	"REFDIV: %hd, FREF: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"FBDIV: %d, Rest: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Num: %hd, Den: %hd, SD: %hd\n"

l_.str.4:                               ; @.str.4
	.asciz	"HFDIV code: %hd\n"

l_.str.5:                               ; @.str.5
	.asciz	"VCO = %hd\n"

l_.str.6:                               ; @.str.6
	.asciz	"VCOF: ((%hd*%d) << 1))\n"

	.comm	_CT_TUNER_STEP_0,4,2            ; @CT_TUNER_STEP_0
	.comm	_CT_TUNER_STEP_5,4,2            ; @CT_TUNER_STEP_5
	.comm	_CT_TUNER_STEP_4,4,2            ; @CT_TUNER_STEP_4
	.comm	_CT_TUNER_STOP,4,2              ; @CT_TUNER_STOP
	.comm	_FE_CALLBACK_TIME_NEVER,4,2     ; @FE_CALLBACK_TIME_NEVER
	.comm	_SYS_ISDBT,8,3                  ; @SYS_ISDBT
	.no_dead_strip	_dib0070_tune_digital
.subsections_via_symbols
