	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18250_set_params
_tda18250_set_params:                   ## @tda18250_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movslq	(%rbx), %rdx
	movl	4(%rbx), %ecx
	movl	8(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	leal	-130(%rdx), %eax
	cmpl	$2, %eax
	jae	LBB0_2
## %bb.12:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.13:
	cmpl	$6000000, %eax                  ## imm = 0x5B8D80
	jg	LBB0_15
## %bb.14:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$32, %rax
	movl	$5, %r13d
	jmp	LBB0_17
LBB0_4:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	cmpl	$6000000, %eax                  ## imm = 0x5B8D80
	jg	LBB0_8
## %bb.7:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$8, %rax
	movl	$2, %r13d
	jmp	LBB0_17
LBB0_2:
	cmpl	$132, %edx
	jne	LBB0_46
## %bb.3:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	$7, %r13d
	movq	%r12, %rax
	jmp	LBB0_17
LBB0_46:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	jmp	LBB0_44
LBB0_15:
	cmpl	$8000000, %eax                  ## imm = 0x7A1200
	ja	LBB0_5
## %bb.16:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$40, %rax
	movl	$6, %r13d
	jmp	LBB0_17
LBB0_8:
	cmpl	$7000000, %eax                  ## imm = 0x6ACFC0
	ja	LBB0_10
## %bb.9:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$16, %rax
	movl	$3, %r13d
	jmp	LBB0_17
LBB0_10:
	cmpl	$8000000, %eax                  ## imm = 0x7A1200
	ja	LBB0_5
## %bb.11:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, %rax
	addq	$24, %rax
	movl	$4, %r13d
LBB0_17:
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	shlq	$7, %r13
	leaq	_tda18250_set_params.delsys_params(%rip), %r14
	addq	%r14, %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	56(%r12), %edi
	movq	(%r14,%r15,8), %rsi
	movq	128(%r14,%r15,8), %rdx
	movq	(%r13,%r15,8), %rcx
	callq	_regmap_write_bits
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%r15
	cmpq	$16, %r15
	jne	LBB0_19
## %bb.21:
	movq	-104(%rbp), %r15                ## 8-byte Reload
	cmpq	%r15, 48(%r12)
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_24
## %bb.22:
	movq	%r15, %rdi
	movl	$50, %esi
	callq	_DIV_ROUND_CLOSEST
	movl	56(%r12), %edi
	movq	_R26_IF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.23:
	movq	%r15, 48(%r12)
	leaq	L_.str.2(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_24:
	movq	%r14, %rdi
	callq	_tda18250_set_agc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.25:
	movl	56(%r12), %edi
	movq	_R1A_AGCK@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movl	$3, %edx
	movl	$1, %ecx
	callq	_regmap_write_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.26:
	movl	56(%r12), %edi
	movq	_R14_AGC23@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movl	$64, %edx
	xorl	%ecx, %ecx
	callq	_regmap_write_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.27:
	movslq	4(%r14), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movzbl	%ah, %ecx
	movzbl	%al, %edx
                                        ## kill: def $eax killed $eax killed $rax
	shrl	$16, %eax
	movzbl	%al, %eax
	movq	%rax, -80(%rbp)
	movq	%rcx, -72(%rbp)
	movq	%rdx, -64(%rbp)
	movl	56(%r12), %edi
	movq	_R27_RF1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movl	$3, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.28:
	movl	56(%r12), %edi
	movq	_R0A_IRQ3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_TDA18250_IRQ_TUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.29:
	movl	56(%r12), %edi
	movq	_R2A_MSM1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.30:
	movl	56(%r12), %edi
	movq	_R2B_MSM2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.31:
	movq	_TDA18250_IRQ_TUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	movl	$10, %edx
	callq	_tda18250_wait_for_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.32:
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_tda18250_pll_calc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.33:
	movl	56(%r12), %edi
	movq	_R4F_XTALFLX3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rcx
	shlq	$6, %rax
	shlq	$5, %rcx
	orq	%rax, %rcx
	movl	$224, %edx
	callq	_regmap_write_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.34:
	movl	56(%r12), %edi
	movq	_R0A_IRQ3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_TDA18250_IRQ_TUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.35:
	movl	56(%r12), %edi
	movq	_R46_CPUMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$7, %edx
	xorl	%ecx, %ecx
	callq	_regmap_write_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.36:
	movl	56(%r12), %edi
	movq	_R39_SD5@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_regmap_write_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.37:
	movl	56(%r12), %edi
	movq	_R2A_MSM1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.38:
	movl	56(%r12), %edi
	movq	_R2B_MSM2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.39:
	movq	_TDA18250_IRQ_TUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	movl	$10, %edx
	callq	_tda18250_wait_for_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.40:
	movl	$20, %edi
	callq	_msleep
	movl	56(%r12), %edi
	movq	_R2B_MSM2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_regmap_write_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.41:
	movl	$20, %edi
	callq	_msleep
	movl	56(%r12), %edi
	movq	(%r15), %rsi
	movl	$3, %edx
	movl	$3, %ecx
	callq	_regmap_write_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.42:
	movl	56(%r12), %edi
	movq	(%r13), %rsi
	movl	$64, %edx
	movl	$64, %ecx
	callq	_regmap_write_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.43:
	movl	56(%r12), %edi
	movq	_R46_CPUMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-64(%rbp), %rcx
	movl	$7, %edx
	callq	_regmap_write_bits
	xorl	%ebx, %ebx
	jmp	LBB0_44
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_44
LBB0_20:
	movl	%eax, %ebx
LBB0_44:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_47
## %bb.45:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @tda18250_set_params.delsys_params
_tda18250_set_params.delsys_params:
	.quad	34                              ## 0x22
	.quad	35                              ## 0x23
	.quad	36                              ## 0x24
	.quad	33                              ## 0x21
	.quad	13                              ## 0xd
	.quad	12                              ## 0xc
	.quad	15                              ## 0xf
	.quad	20                              ## 0x14
	.quad	14                              ## 0xe
	.quad	18                              ## 0x12
	.quad	88                              ## 0x58
	.quad	89                              ## 0x59
	.quad	26                              ## 0x1a
	.quad	25                              ## 0x19
	.quad	30                              ## 0x1e
	.quad	48                              ## 0x30
	.quad	119                             ## 0x77
	.quad	255                             ## 0xff
	.quad	255                             ## 0xff
	.quad	135                             ## 0x87
	.quad	240                             ## 0xf0
	.quad	120                             ## 0x78
	.quad	7                               ## 0x7
	.quad	224                             ## 0xe0
	.quad	96                              ## 0x60
	.quad	15                              ## 0xf
	.quad	96                              ## 0x60
	.quad	15                              ## 0xf
	.quad	51                              ## 0x33
	.quad	48                              ## 0x30
	.quad	128                             ## 0x80
	.quad	6                               ## 0x6
	.quad	81                              ## 0x51
	.quad	3                               ## 0x3
	.quad	131                             ## 0x83
	.quad	130                             ## 0x82
	.quad	64                              ## 0x40
	.quad	72                              ## 0x48
	.quad	1                               ## 0x1
	.quad	224                             ## 0xe0
	.quad	96                              ## 0x60
	.quad	15                              ## 0xf
	.quad	96                              ## 0x60
	.quad	5                               ## 0x5
	.quad	3                               ## 0x3
	.quad	16                              ## 0x10
	.quad	0                               ## 0x0
	.quad	4                               ## 0x4
	.quad	82                              ## 0x52
	.quad	3                               ## 0x3
	.quad	133                             ## 0x85
	.quad	130                             ## 0x82
	.quad	64                              ## 0x40
	.quad	72                              ## 0x48
	.quad	1                               ## 0x1
	.quad	224                             ## 0xe0
	.quad	96                              ## 0x60
	.quad	15                              ## 0xf
	.quad	96                              ## 0x60
	.quad	5                               ## 0x5
	.quad	3                               ## 0x3
	.quad	16                              ## 0x10
	.quad	0                               ## 0x0
	.quad	4                               ## 0x4
	.quad	83                              ## 0x53
	.quad	3                               ## 0x3
	.quad	135                             ## 0x87
	.quad	130                             ## 0x82
	.quad	64                              ## 0x40
	.quad	72                              ## 0x48
	.quad	6                               ## 0x6
	.quad	224                             ## 0xe0
	.quad	96                              ## 0x60
	.quad	7                               ## 0x7
	.quad	96                              ## 0x60
	.quad	5                               ## 0x5
	.quad	3                               ## 0x3
	.quad	16                              ## 0x10
	.quad	0                               ## 0x0
	.quad	4                               ## 0x4
	.quad	50                              ## 0x32
	.quad	5                               ## 0x5
	.quad	134                             ## 0x86
	.quad	130                             ## 0x82
	.quad	80                              ## 0x50
	.quad	0                               ## 0x0
	.quad	6                               ## 0x6
	.quad	96                              ## 0x60
	.quad	64                              ## 0x40
	.quad	14                              ## 0xe
	.quad	96                              ## 0x60
	.quad	5                               ## 0x5
	.quad	51                              ## 0x33
	.quad	16                              ## 0x10
	.quad	0                               ## 0x0
	.quad	4                               ## 0x4
	.quad	83                              ## 0x53
	.quad	3                               ## 0x3
	.quad	136                             ## 0x88
	.quad	130                             ## 0x82
	.quad	80                              ## 0x50
	.quad	0                               ## 0x0
	.quad	6                               ## 0x6
	.quad	96                              ## 0x60
	.quad	64                              ## 0x40
	.quad	14                              ## 0xe
	.quad	96                              ## 0x60
	.quad	5                               ## 0x5
	.quad	51                              ## 0x33
	.quad	16                              ## 0x10
	.quad	0                               ## 0x0
	.quad	4                               ## 0x4
	.quad	81                              ## 0x51
	.quad	3                               ## 0x3
	.quad	131                             ## 0x83
	.quad	130                             ## 0x82
	.quad	64                              ## 0x40
	.quad	72                              ## 0x48
	.quad	1                               ## 0x1
	.quad	224                             ## 0xe0
	.quad	64                              ## 0x40
	.quad	14                              ## 0xe
	.quad	96                              ## 0x60
	.quad	5                               ## 0x5
	.quad	3                               ## 0x3
	.quad	0                               ## 0x0
	.quad	128                             ## 0x80
	.quad	4                               ## 0x4

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delivery_system=%d frequency=%u bandwidth_hz=%u"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"unsupported delivery system=%d"

	.comm	_R26_IF,8,3                     ## @R26_IF
L_.str.2:                               ## @.str.2
	.asciz	"set IF=%u kHz"

	.comm	_R1A_AGCK,8,3                   ## @R1A_AGCK
	.comm	_R14_AGC23,8,3                  ## @R14_AGC23
	.comm	_R27_RF1,4,2                    ## @R27_RF1
	.comm	_R0A_IRQ3,8,3                   ## @R0A_IRQ3
	.comm	_TDA18250_IRQ_TUNE,4,2          ## @TDA18250_IRQ_TUNE
	.comm	_R2A_MSM1,8,3                   ## @R2A_MSM1
	.comm	_R2B_MSM2,8,3                   ## @R2B_MSM2
	.comm	_R4F_XTALFLX3,8,3               ## @R4F_XTALFLX3
	.comm	_R46_CPUMP,8,3                  ## @R46_CPUMP
	.comm	_R39_SD5,8,3                    ## @R39_SD5
	.no_dead_strip	_tda18250_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18250_set_params
_tda18250_set_params:                   ; @tda18250_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x21, [x0, #16]
	mov	x0, x21
	bl	_i2c_get_clientdata
	mov	x19, x0
	ldp	w2, w8, [x20]
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x2, w2
	ldr	w9, [x20, #8]
	stp	x8, x9, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	w2, [x20]
	sub	w8, w2, #128
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.1:
	sub	w8, w2, #130
	cmp	w8, #2
	b.hs	LBB0_8
; %bb.2:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_43
; %bb.3:
	mov	w9, #36225
	movk	w9, #91, lsl #16
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.4:
	add	x8, x19, #32
	mov	w9, #5
	b	LBB0_17
LBB0_5:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_43
; %bb.6:
	mov	w9, #36225
	movk	w9, #91, lsl #16
	cmp	w8, w9
	b.ge	LBB0_13
; %bb.7:
	add	x8, x19, #8
	mov	w9, #2
	b	LBB0_17
LBB0_8:
	cmp	w2, #132
	b.ne	LBB0_10
; %bb.9:
	mov	w9, #7
	mov	x8, x19
	b	LBB0_17
LBB0_10:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_45
LBB0_11:
	mov	w9, #4609
	movk	w9, #122, lsl #16
	cmp	w8, w9
	b.hs	LBB0_43
; %bb.12:
	add	x8, x19, #40
	mov	w9, #6
	b	LBB0_17
LBB0_13:
	mov	w9, #53184
	movk	w9, #106, lsl #16
	cmp	w8, w9
	b.hi	LBB0_15
; %bb.14:
	add	x8, x19, #16
	mov	w9, #3
	b	LBB0_17
LBB0_15:
	mov	w9, #4609
	movk	w9, #122, lsl #16
	cmp	w8, w9
	b.hs	LBB0_43
; %bb.16:
	add	x8, x19, #24
	mov	w9, #4
LBB0_17:
	mov	x24, #0
	ldr	x23, [x8]
Lloh10:
	adrp	x25, _tda18250_set_params.delsys_params@PAGE
Lloh11:
	add	x25, x25, _tda18250_set_params.delsys_params@PAGEOFF
	add	x26, x25, x9, lsl #7
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #56]
	add	x8, x25, x24
	ldr	x1, [x8]
	ldr	x2, [x8, #128]
	ldr	x3, [x26, x24]
	bl	_regmap_write_bits
	cbnz	w0, LBB0_44
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x24, x24, #8
	cmp	x24, #128
	b.ne	LBB0_18
; %bb.20:
	ldr	x8, [x19, #48]
	cmp	x8, x23
	b.eq	LBB0_23
; %bb.21:
	mov	x0, x23
	mov	w1, #50
	bl	_DIV_ROUND_CLOSEST
	mov	x2, x0
	ldr	w0, [x19, #56]
Lloh12:
	adrp	x8, _R26_IF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R26_IF@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.22:
	str	x23, [x19, #48]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_dev_dbg
LBB0_23:
	mov	x0, x20
	bl	_tda18250_set_agc
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.24:
	ldr	w0, [x19, #56]
Lloh17:
	adrp	x21, _R1A_AGCK@GOTPAGE
Lloh18:
	ldr	x21, [x21, _R1A_AGCK@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	w2, #3
	mov	w3, #1
	bl	_regmap_write_bits
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.25:
	ldr	w0, [x19, #56]
Lloh19:
	adrp	x23, _R14_AGC23@GOTPAGE
Lloh20:
	ldr	x23, [x23, _R14_AGC23@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	w2, #64
	mov	x3, #0
	bl	_regmap_write_bits
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.26:
	ldrsw	x8, [x20, #4]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	ubfx	w9, w8, #16, #8
	ubfx	w10, w8, #8, #8
	add	x28, sp, #16
	stp	x9, x10, [sp, #16]
	and	w8, w8, #0xff
	str	x8, [sp, #32]
	ldr	w0, [x19, #56]
Lloh21:
	adrp	x8, _R27_RF1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _R27_RF1@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	w3, #3
	bl	_regmap_bulk_write
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.27:
	ldr	w0, [x19, #56]
Lloh24:
	adrp	x26, _R0A_IRQ3@GOTPAGE
Lloh25:
	ldr	x26, [x26, _R0A_IRQ3@GOTPAGEOFF]
	ldr	x1, [x26]
Lloh26:
	adrp	x24, _TDA18250_IRQ_TUNE@GOTPAGE
Lloh27:
	ldr	x24, [x24, _TDA18250_IRQ_TUNE@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.28:
	ldr	w0, [x19, #56]
Lloh28:
	adrp	x27, _R2A_MSM1@GOTPAGE
Lloh29:
	ldr	x27, [x27, _R2A_MSM1@GOTPAGEOFF]
	ldr	x1, [x27]
	mov	w2, #1
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.29:
	ldr	w0, [x19, #56]
Lloh30:
	adrp	x25, _R2B_MSM2@GOTPAGE
Lloh31:
	ldr	x25, [x25, _R2B_MSM2@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	w2, #1
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.30:
	ldr	w3, [x24]
	mov	x0, x20
	mov	w1, #500
	mov	w2, #10
	bl	_tda18250_wait_for_irq
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.31:
	add	x2, x28, #8
	add	x3, x28, #16
	add	x1, sp, #16
	mov	x0, x20
	bl	_tda18250_pll_calc
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.32:
Lloh32:
	adrp	x8, _R4F_XTALFLX3@GOTPAGE
Lloh33:
	ldr	x8, [x8, _R4F_XTALFLX3@GOTPAGEOFF]
	ldr	w0, [x19, #56]
Lloh34:
	ldr	x1, [x8]
	ldp	x8, x9, [sp, #16]
	lsl	x9, x9, #5
	orr	x3, x9, x8, lsl #6
	mov	w2, #224
	bl	_regmap_write_bits
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.33:
	ldr	w0, [x19, #56]
	ldr	x1, [x26]
	ldr	w2, [x24]
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.34:
	ldr	w0, [x19, #56]
Lloh35:
	adrp	x26, _R46_CPUMP@GOTPAGE
Lloh36:
	ldr	x26, [x26, _R46_CPUMP@GOTPAGEOFF]
	ldr	x1, [x26]
	mov	w2, #7
	mov	x3, #0
	bl	_regmap_write_bits
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.35:
	ldr	w0, [x19, #56]
Lloh37:
	adrp	x8, _R39_SD5@GOTPAGE
Lloh38:
	ldr	x8, [x8, _R39_SD5@GOTPAGEOFF]
Lloh39:
	ldr	x1, [x8]
	mov	w2, #3
	mov	x3, #0
	bl	_regmap_write_bits
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.36:
	ldr	w0, [x19, #56]
	ldr	x1, [x27]
	mov	w2, #1
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.37:
	ldr	w0, [x19, #56]
	ldr	x1, [x25]
	mov	w2, #1
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.38:
	ldr	w3, [x24]
	mov	x0, x20
	mov	w1, #500
	mov	w2, #10
	bl	_tda18250_wait_for_irq
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.39:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19, #56]
	ldr	x1, [x25]
	mov	w2, #4
	mov	w3, #4
	bl	_regmap_write_bits
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.40:
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x19, #56]
	ldr	x1, [x21]
	mov	w2, #3
	mov	w3, #3
	bl	_regmap_write_bits
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.41:
	ldr	w0, [x19, #56]
	ldr	x1, [x23]
	mov	w2, #64
	mov	w3, #64
	bl	_regmap_write_bits
	mov	x22, x0
	cbnz	w0, LBB0_45
; %bb.42:
	ldr	w0, [x19, #56]
	ldr	x1, [x26]
	ldr	x3, [sp, #32]
	mov	w2, #7
	bl	_regmap_write_bits
	b	LBB0_45
LBB0_43:
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_45
LBB0_44:
	mov	x22, x0
LBB0_45:
	ldr	x8, [sp, #40]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.46:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_47:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @tda18250_set_params.delsys_params
_tda18250_set_params.delsys_params:
	.quad	34                              ; 0x22
	.quad	35                              ; 0x23
	.quad	36                              ; 0x24
	.quad	33                              ; 0x21
	.quad	13                              ; 0xd
	.quad	12                              ; 0xc
	.quad	15                              ; 0xf
	.quad	20                              ; 0x14
	.quad	14                              ; 0xe
	.quad	18                              ; 0x12
	.quad	88                              ; 0x58
	.quad	89                              ; 0x59
	.quad	26                              ; 0x1a
	.quad	25                              ; 0x19
	.quad	30                              ; 0x1e
	.quad	48                              ; 0x30
	.quad	119                             ; 0x77
	.quad	255                             ; 0xff
	.quad	255                             ; 0xff
	.quad	135                             ; 0x87
	.quad	240                             ; 0xf0
	.quad	120                             ; 0x78
	.quad	7                               ; 0x7
	.quad	224                             ; 0xe0
	.quad	96                              ; 0x60
	.quad	15                              ; 0xf
	.quad	96                              ; 0x60
	.quad	15                              ; 0xf
	.quad	51                              ; 0x33
	.quad	48                              ; 0x30
	.quad	128                             ; 0x80
	.quad	6                               ; 0x6
	.quad	81                              ; 0x51
	.quad	3                               ; 0x3
	.quad	131                             ; 0x83
	.quad	130                             ; 0x82
	.quad	64                              ; 0x40
	.quad	72                              ; 0x48
	.quad	1                               ; 0x1
	.quad	224                             ; 0xe0
	.quad	96                              ; 0x60
	.quad	15                              ; 0xf
	.quad	96                              ; 0x60
	.quad	5                               ; 0x5
	.quad	3                               ; 0x3
	.quad	16                              ; 0x10
	.quad	0                               ; 0x0
	.quad	4                               ; 0x4
	.quad	82                              ; 0x52
	.quad	3                               ; 0x3
	.quad	133                             ; 0x85
	.quad	130                             ; 0x82
	.quad	64                              ; 0x40
	.quad	72                              ; 0x48
	.quad	1                               ; 0x1
	.quad	224                             ; 0xe0
	.quad	96                              ; 0x60
	.quad	15                              ; 0xf
	.quad	96                              ; 0x60
	.quad	5                               ; 0x5
	.quad	3                               ; 0x3
	.quad	16                              ; 0x10
	.quad	0                               ; 0x0
	.quad	4                               ; 0x4
	.quad	83                              ; 0x53
	.quad	3                               ; 0x3
	.quad	135                             ; 0x87
	.quad	130                             ; 0x82
	.quad	64                              ; 0x40
	.quad	72                              ; 0x48
	.quad	6                               ; 0x6
	.quad	224                             ; 0xe0
	.quad	96                              ; 0x60
	.quad	7                               ; 0x7
	.quad	96                              ; 0x60
	.quad	5                               ; 0x5
	.quad	3                               ; 0x3
	.quad	16                              ; 0x10
	.quad	0                               ; 0x0
	.quad	4                               ; 0x4
	.quad	50                              ; 0x32
	.quad	5                               ; 0x5
	.quad	134                             ; 0x86
	.quad	130                             ; 0x82
	.quad	80                              ; 0x50
	.quad	0                               ; 0x0
	.quad	6                               ; 0x6
	.quad	96                              ; 0x60
	.quad	64                              ; 0x40
	.quad	14                              ; 0xe
	.quad	96                              ; 0x60
	.quad	5                               ; 0x5
	.quad	51                              ; 0x33
	.quad	16                              ; 0x10
	.quad	0                               ; 0x0
	.quad	4                               ; 0x4
	.quad	83                              ; 0x53
	.quad	3                               ; 0x3
	.quad	136                             ; 0x88
	.quad	130                             ; 0x82
	.quad	80                              ; 0x50
	.quad	0                               ; 0x0
	.quad	6                               ; 0x6
	.quad	96                              ; 0x60
	.quad	64                              ; 0x40
	.quad	14                              ; 0xe
	.quad	96                              ; 0x60
	.quad	5                               ; 0x5
	.quad	51                              ; 0x33
	.quad	16                              ; 0x10
	.quad	0                               ; 0x0
	.quad	4                               ; 0x4
	.quad	81                              ; 0x51
	.quad	3                               ; 0x3
	.quad	131                             ; 0x83
	.quad	130                             ; 0x82
	.quad	64                              ; 0x40
	.quad	72                              ; 0x48
	.quad	1                               ; 0x1
	.quad	224                             ; 0xe0
	.quad	64                              ; 0x40
	.quad	14                              ; 0xe
	.quad	96                              ; 0x60
	.quad	5                               ; 0x5
	.quad	3                               ; 0x3
	.quad	0                               ; 0x0
	.quad	128                             ; 0x80
	.quad	4                               ; 0x4

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delivery_system=%d frequency=%u bandwidth_hz=%u"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"unsupported delivery system=%d"

	.comm	_R26_IF,8,3                     ; @R26_IF
l_.str.2:                               ; @.str.2
	.asciz	"set IF=%u kHz"

	.comm	_R1A_AGCK,8,3                   ; @R1A_AGCK
	.comm	_R14_AGC23,8,3                  ; @R14_AGC23
	.comm	_R27_RF1,4,2                    ; @R27_RF1
	.comm	_R0A_IRQ3,8,3                   ; @R0A_IRQ3
	.comm	_TDA18250_IRQ_TUNE,4,2          ; @TDA18250_IRQ_TUNE
	.comm	_R2A_MSM1,8,3                   ; @R2A_MSM1
	.comm	_R2B_MSM2,8,3                   ; @R2B_MSM2
	.comm	_R4F_XTALFLX3,8,3               ; @R4F_XTALFLX3
	.comm	_R46_CPUMP,8,3                  ; @R46_CPUMP
	.comm	_R39_SD5,8,3                    ; @R39_SD5
	.no_dead_strip	_tda18250_set_params
.subsections_via_symbols
