	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fc2580_set_params
_fc2580_set_params:                     ## @fc2580_set_params
	.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	$40, %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	40(%rdi), %rdi
	cmpl	$0, 32(%r15)
	je	LBB0_5
## %bb.1:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_fc2580_pll_lut@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%r14), %rdi
	cmpq	(%rdi,%rbx), %rax
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$120, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_21
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	jne	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_9:
	movq	(%r14), %rax
	movl	%r12d, %ecx
	imulq	$120, %rcx, %rcx
	movl	8(%rax,%rcx), %edx
	movl	(%r15), %r12d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	imull	%edx, %r12d
	xorl	%r13d, %r13d
	cmpl	$-1694967296, %r12d             ## imm = 0x9AF8DA00
	setae	%r13b
	shll	$3, %r13d
	orl	12(%rax,%rcx), %r13d
	imull	$152, 24(%r15), %edi
	movl	$1, %r14d
	movl	$1, %esi
	callq	_div_u64
	xorl	%ecx, %ecx
	cmpl	%eax, %r12d
	jae	LBB0_11
## %bb.10:
	imull	$152, 24(%r15), %edi
	movl	$2, %esi
	callq	_div_u64
	xorl	%ecx, %ecx
	cmpl	%eax, %r12d
	setb	%cl
	leal	(%rcx,%rcx), %r14d
	addl	$2, %r14d
                                        ## kill: def $ecx killed $ecx killed $rcx
	shll	$4, %ecx
	addl	$16, %ecx
LBB0_11:
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	orl	$6, %r13d
	movq	24(%r15), %rax
	addq	%rax, %rax
	movl	%r14d, %esi
	movq	%rax, %rcx
	shrq	$32, %rcx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.12:
	cqto
	idivq	%rsi
	movq	%rax, %r14
	jmp	LBB0_14
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r14d
LBB0_14:
	movl	%r14d, -44(%rbp)
	leaq	-48(%rbp), %rdx
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_div_u64_rem
                                        ## kill: def $eax killed $eax def $rax
	movl	-48(%rbp), %edi
	shll	$20, %edi
	movl	%r14d, %esi
	movq	%rax, %r14
	callq	_div_u64
	movl	%eax, %ebx
	movq	(%r15), %rdx
	movq	8(%r15), %rcx
	movq	24(%r15), %r9
	movl	-48(%rbp), %r10d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %r8d
	xorl	%eax, %eax
	movq	%rbx, %r12
	pushq	%rbx
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	pushq	%r14
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_dev_dbg
	addq	$48, %rsp
	movl	16(%r15), %edi
	movl	$2, %esi
	movl	%r13d, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.15:
	movl	16(%r15), %edi
	movq	%r12, %rax
	movl	%eax, %edx
	shrl	$16, %edx
	orl	-60(%rbp), %edx                 ## 4-byte Folded Reload
	movl	$24, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	movl	16(%r15), %edi
	movq	%r12, %rax
	movzbl	%ah, %edx
	movl	$26, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movl	16(%r15), %edi
	movzbl	%r12b, %edx
	movl	$27, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movl	16(%r15), %edi
	movl	$28, %esi
	movl	%r14d, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_22
LBB0_19:
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
LBB0_20:
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_21:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_fc2580_freq_regs_lut@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_26
## %bb.23:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%r14), %rdi
	cmpq	(%rdi,%rbx), %rax
	jle	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$120, %rbx
	cmpq	%rax, %r12
	jl	LBB0_24
	jmp	LBB0_27
LBB0_26:
	xorl	%r12d, %r12d
LBB0_27:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	je	LBB0_8
## %bb.28:
	movq	(%r14), %rax
	movl	%r12d, %ecx
	imulq	$120, %rcx, %r12
	movl	116(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$37, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.29:
	movq	(%r14), %rax
	movl	112(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$39, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.30:
	movq	(%r14), %rax
	movl	108(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.31:
	movq	(%r14), %rax
	movl	104(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$41, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.32:
	movq	(%r14), %rax
	movl	100(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$43, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.33:
	movq	(%r14), %rax
	movl	96(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$44, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.34:
	movq	(%r14), %rax
	movl	92(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$45, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.35:
	movq	(%r14), %rax
	movl	88(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.36:
	movq	(%r14), %rax
	movl	84(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$68, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.37:
	movq	(%r14), %rax
	movl	80(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$80, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.38:
	movq	(%r14), %rax
	movl	76(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$83, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.39:
	movq	(%r14), %rax
	movl	72(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$95, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.40:
	movq	(%r14), %rax
	movl	68(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$97, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.41:
	movq	(%r14), %rax
	movl	64(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$98, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.42:
	movq	(%r14), %rax
	movl	60(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$99, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.43:
	movq	(%r14), %rax
	movl	56(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$103, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.44:
	movq	(%r14), %rax
	movl	52(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$104, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.45:
	movq	(%r14), %rax
	movl	48(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$105, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.46:
	movq	(%r14), %rax
	movl	44(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$106, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.47:
	movq	(%r14), %rax
	movl	40(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$107, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.48:
	movq	(%r14), %rax
	movl	36(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$108, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.49:
	movq	(%r14), %rax
	movl	32(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$109, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.50:
	movq	(%r14), %rax
	movl	28(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$110, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.51:
	movq	(%r14), %rax
	movl	24(%rax,%r12), %edx
	movq	%r15, %rdi
	movl	$111, %esi
	callq	_fc2580_wr_reg_ff
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.52:
	movq	_fc2580_if_filter_lut@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_56
## %bb.53:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
LBB0_54:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%r14), %rdi
	cmpq	(%rdi,%rbx), %rax
	jle	LBB0_57
## %bb.55:                              ##   in Loop: Header=BB0_54 Depth=1
	incq	%r12
	callq	_ARRAY_SIZE
	cltq
	addq	$120, %rbx
	cmpq	%rax, %r12
	jl	LBB0_54
	jmp	LBB0_57
LBB0_56:
	xorl	%r12d, %r12d
LBB0_57:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r12d
	je	LBB0_8
## %bb.58:
	movl	16(%r15), %edi
	movq	(%r14), %rax
	movl	%r12d, %ecx
	imulq	$120, %rcx, %r12
	movl	16(%rax,%r12), %edx
	movl	$54, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.59:
	imulq	$122, 8(%r15), %rcx
	movabsq	$6640827866535438581, %rdx      ## imm = 0x5C28F5C28F5C28F5
	movq	%rcx, %rax
	imulq	%rdx
	subq	%rcx, %rdx
	movq	%rdx, %rax
	shrq	$7, %rax
	shrq	$63, %rdx
	leal	(%rax,%rdx), %edi
	addl	$8058000, %edi                  ## imm = 0x7AF490
	imull	24(%r15), %edi
	movabsq	$1000000000000, %rsi            ## imm = 0xE8D4A51000
	callq	_div64_u64
	movl	%eax, -44(%rbp)
	movl	16(%r15), %edi
	movl	$55, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.60:
	movl	16(%r15), %edi
	movq	(%r14), %rax
	movl	20(%rax,%r12), %edx
	movl	$57, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.61:
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movl	$30, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	$-193, -44(%rbp)
	leaq	-44(%rbp), %r13
LBB0_62:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%r12, %rsi
	callq	_time_after
	movl	-44(%rbp), %edx
	testl	%eax, %eax
	jne	LBB0_67
## %bb.63:                              ##   in Loop: Header=BB0_62 Depth=1
	cmpl	$192, %edx
	je	LBB0_67
## %bb.64:                              ##   in Loop: Header=BB0_62 Depth=1
	movl	16(%r15), %edi
	movl	$46, %esi
	movl	$9, %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_70
## %bb.65:                              ##   in Loop: Header=BB0_62 Depth=1
	movl	16(%r15), %edi
	movl	$47, %esi
	movq	%r13, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_70
## %bb.66:                              ##   in Loop: Header=BB0_62 Depth=1
	andl	$192, -44(%rbp)
	movl	16(%r15), %edi
	movl	$46, %esi
	movl	$1, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_62
	jmp	LBB0_19
LBB0_70:
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_67:
	xorl	%ebx, %ebx
	cmpl	$192, %edx
	je	LBB0_21
## %bb.68:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuner is sleeping\n"

	.comm	_fc2580_pll_lut,8,3             ## @fc2580_pll_lut
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"frequency=%u bandwidth=%u f_vco=%llu F_REF=%u div_ref=%u div_n=%u k=%u div_out=%u k_cw=%0x\n"

	.comm	_fc2580_freq_regs_lut,8,3       ## @fc2580_freq_regs_lut
	.comm	_fc2580_if_filter_lut,8,3       ## @fc2580_if_filter_lut
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.2:                               ## @.str.2
	.asciz	"filter did not lock %02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed=%d\n"

	.comm	_DIV_N_MIN,4,2                  ## @DIV_N_MIN
	.comm	_DIV_PRE_N,4,2                  ## @DIV_PRE_N
	.comm	_F_REF,4,2                      ## @F_REF
	.no_dead_strip	_fc2580_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fc2580_set_params
_fc2580_set_params:                     ; @fc2580_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x19, [x0, #40]
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x21, _fc2580_pll_lut@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fc2580_pll_lut@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x23, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x21]
	ldr	x9, [x0, x23]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x23, x23, #120
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_dbg
	mov	w21, #0
	b	LBB0_19
LBB0_7:
	mov	w22, #0
LBB0_8:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ne	LBB0_10
LBB0_9:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_10:
	ldr	x8, [x21]
	mov	w9, #120
	umaddl	x8, w22, w9, x8
	ldr	w9, [x20]
	ldp	w25, w8, [x8, #8]
	mul	w23, w25, w9
	mov	w9, #55808
	movk	w9, #39672, lsl #16
	mov	w10, #14
	mov	w11, #6
	cmp	w23, w9
	csel	w9, w11, w10, lo
	orr	w21, w9, w8
	ldr	w8, [x20, #24]
	mov	w22, #152
	mul	w0, w8, w22
	mov	w27, #1
	mov	w1, #1
	bl	_div_u64
	cmp	w23, w0
	b.hs	LBB0_12
; %bb.11:
	ldr	w8, [x20, #24]
	mul	w0, w8, w22
	mov	w22, #2
	mov	w1, #2
	bl	_div_u64
	mov	w8, #16
	mov	w9, #32
	cmp	w23, w0
	csel	w26, w9, w8, lo
	mov	w8, #4
	csel	w27, w8, w22, lo
	b	LBB0_13
LBB0_12:
	mov	w26, #0
LBB0_13:
	ldr	x8, [x20, #24]
	lsl	x8, x8, #1
	mov	w9, w27
	sdiv	x24, x8, x9
	str	w24, [sp, #76]
	add	x2, sp, #72
	mov	x0, x23
	mov	x1, x24
	bl	_div_u64_rem
	mov	x22, x0
	ldr	w8, [sp, #72]
	lsl	w0, w8, #20
	mov	x1, x24
	bl	_div_u64
	mov	x24, x0
	ldp	x8, x9, [x20]
	ldr	x10, [x20, #24]
	ldr	w11, [sp, #72]
	stp	x25, x24, [sp, #56]
	stp	x22, x11, [sp, #40]
	stp	x10, x27, [sp, #24]
	stp	x9, x23, [sp, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	mov	x0, x19
	bl	_dev_dbg
	ldr	w0, [x20, #16]
	mov	w1, #2
	mov	x2, x21
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.14:
	ldr	w0, [x20, #16]
	orr	w2, w26, w24, lsr #16
	mov	w1, #24
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.15:
	ldr	w0, [x20, #16]
	ubfx	w2, w24, #8, #8
	mov	w1, #26
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.16:
	ldr	w0, [x20, #16]
	and	w2, w24, #0xff
	mov	w1, #27
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	w0, [x20, #16]
	mov	w1, #28
	mov	x2, x22
	bl	_regmap_write
	mov	x21, x0
	cbz	w0, LBB0_20
LBB0_18:
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_20:
Lloh11:
	adrp	x22, _fc2580_freq_regs_lut@GOTPAGE
Lloh12:
	ldr	x22, [x22, _fc2580_freq_regs_lut@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_24
; %bb.21:
	mov	x21, #0
	mov	x23, #0
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x22]
	ldr	x9, [x0, x21]
	cmp	x8, x9
	b.le	LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #120
	cmp	x23, w0, sxtw
	b.lt	LBB0_22
	b	LBB0_25
LBB0_24:
	mov	w23, #0
LBB0_25:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.eq	LBB0_9
; %bb.26:
	ldr	x8, [x22]
	mov	w9, #120
	umaddl	x8, w23, w9, x8
	ldr	w2, [x8, #116]
	mov	x0, x20
	mov	w1, #37
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.27:
	mov	w23, w23
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #112]
	mov	x0, x20
	mov	w1, #39
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.28:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #108]
	mov	x0, x20
	mov	w1, #40
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.29:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #104]
	mov	x0, x20
	mov	w1, #41
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.30:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #100]
	mov	x0, x20
	mov	w1, #43
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.31:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #96]
	mov	x0, x20
	mov	w1, #44
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.32:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #92]
	mov	x0, x20
	mov	w1, #45
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.33:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #88]
	mov	x0, x20
	mov	w1, #48
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.34:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #84]
	mov	x0, x20
	mov	w1, #68
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.35:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #80]
	mov	x0, x20
	mov	w1, #80
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.36:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #76]
	mov	x0, x20
	mov	w1, #83
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.37:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #72]
	mov	x0, x20
	mov	w1, #95
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.38:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #68]
	mov	x0, x20
	mov	w1, #97
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.39:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #64]
	mov	x0, x20
	mov	w1, #98
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.40:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #60]
	mov	x0, x20
	mov	w1, #99
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.41:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #56]
	mov	x0, x20
	mov	w1, #103
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.42:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #52]
	mov	x0, x20
	mov	w1, #104
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.43:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #48]
	mov	x0, x20
	mov	w1, #105
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.44:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #44]
	mov	x0, x20
	mov	w1, #106
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.45:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #40]
	mov	x0, x20
	mov	w1, #107
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.46:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #36]
	mov	x0, x20
	mov	w1, #108
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.47:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #32]
	mov	x0, x20
	mov	w1, #109
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.48:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #28]
	mov	x0, x20
	mov	w1, #110
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.49:
	ldr	x8, [x22]
	mov	w9, #120
	madd	x8, x23, x9, x8
	ldr	w2, [x8, #24]
	mov	x0, x20
	mov	w1, #111
	bl	_fc2580_wr_reg_ff
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.50:
Lloh13:
	adrp	x22, _fc2580_if_filter_lut@GOTPAGE
Lloh14:
	ldr	x22, [x22, _fc2580_if_filter_lut@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_54
; %bb.51:
	mov	x21, #0
	mov	x23, #0
LBB0_52:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x22]
	ldr	x9, [x0, x21]
	cmp	x8, x9
	b.le	LBB0_55
; %bb.53:                               ;   in Loop: Header=BB0_52 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #120
	cmp	x23, w0, sxtw
	b.lt	LBB0_52
	b	LBB0_55
LBB0_54:
	mov	w23, #0
LBB0_55:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.eq	LBB0_9
; %bb.56:
	ldr	w0, [x20, #16]
	ldr	x8, [x22]
	mov	w9, #120
	umaddl	x8, w23, w9, x8
	ldr	w2, [x8, #16]
	mov	w1, #54
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.57:
	ldr	x8, [x20, #8]
	mov	w9, #122
	mul	x8, x8, x9
	mov	x9, #10485
	movk	x9, #36700, lsl #16
	movk	x9, #62914, lsl #32
	movk	x9, #23592, lsl #48
	smulh	x9, x8, x9
	sub	x8, x9, x8
	lsr	x9, x8, #63
	lsr	x8, x8, #7
	add	w8, w8, w9
	add	w8, w8, #1967, lsl #12          ; =8056832
	add	w8, w8, #1168
	ldr	w9, [x20, #24]
	mul	w0, w8, w9
	mov	x1, #4096
	movk	x1, #54437, lsl #16
	movk	x1, #232, lsl #32
	bl	_div64_u64
	mov	x2, x0
	str	w0, [sp, #76]
	ldr	w0, [x20, #16]
	mov	w1, #55
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.58:
	mov	w8, w23
	ldr	w0, [x20, #16]
	ldr	x9, [x22]
	mov	w10, #120
	madd	x8, x8, x10, x9
	ldr	w2, [x8, #20]
	mov	w1, #57
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.59:
Lloh15:
	adrp	x23, _jiffies@GOTPAGE
Lloh16:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x21, [x23]
	mov	w0, #30
	bl	_msecs_to_jiffies
	add	x22, x0, x21
	mov	w8, #-193
	str	w8, [sp, #76]
LBB0_60:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_after
	ldr	w8, [sp, #76]
	cbnz	w0, LBB0_66
; %bb.61:                               ;   in Loop: Header=BB0_60 Depth=1
	cmp	w8, #192
	b.eq	LBB0_66
; %bb.62:                               ;   in Loop: Header=BB0_60 Depth=1
	ldr	w0, [x20, #16]
	mov	w1, #46
	mov	w2, #9
	bl	_regmap_write
	cbnz	w0, LBB0_65
; %bb.63:                               ;   in Loop: Header=BB0_60 Depth=1
	ldr	w0, [x20, #16]
	add	x2, sp, #76
	mov	w1, #47
	bl	_regmap_read
	cbnz	w0, LBB0_65
; %bb.64:                               ;   in Loop: Header=BB0_60 Depth=1
	ldr	w8, [sp, #76]
	and	w8, w8, #0xc0
	str	w8, [sp, #76]
	ldr	w0, [x20, #16]
	mov	w1, #46
	mov	w2, #1
	bl	_regmap_write
	mov	x21, x0
	cbz	w0, LBB0_60
	b	LBB0_18
LBB0_65:
	mov	x21, x0
	b	LBB0_18
LBB0_66:
	cmp	w8, #192
	b.eq	LBB0_68
; %bb.67:
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_68:
	mov	w21, #0
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuner is sleeping\n"

	.comm	_fc2580_pll_lut,8,3             ; @fc2580_pll_lut
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"frequency=%u bandwidth=%u f_vco=%llu F_REF=%u div_ref=%u div_n=%u k=%u div_out=%u k_cw=%0x\n"

	.comm	_fc2580_freq_regs_lut,8,3       ; @fc2580_freq_regs_lut
	.comm	_fc2580_if_filter_lut,8,3       ; @fc2580_if_filter_lut
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.2:                               ; @.str.2
	.asciz	"filter did not lock %02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed=%d\n"

	.comm	_DIV_N_MIN,4,2                  ; @DIV_N_MIN
	.comm	_DIV_PRE_N,4,2                  ; @DIV_PRE_N
	.comm	_F_REF,4,2                      ; @F_REF
	.no_dead_strip	_fc2580_set_params
.subsections_via_symbols
