	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda8290_set_params
_tda8290_set_params:                    ## @tda8290_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movb	$1, -44(%rbp)
	movb	(%rbx), %al
	movb	%al, -43(%rbp)
	callq	_set_audio
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
LBB0_2:
	leaq	4(%rbx), %r13
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda8290_set_params.agc_out_on(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda8290_set_params.soft_reset(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movl	$1, %edi
	callq	_msleep
	movq	(%r15), %rax
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movw	$275, -42(%rbp)                 ## imm = 0x113
	movq	_deemphasis_50@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movb	$2, -41(%rbp)
LBB0_5:
	movq	_fm_mode@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	(%rax,%r12,8), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	incq	%r12
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r12
	jl	LBB0_7
LBB0_8:
	leaq	-42(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_9:
	movb	(%rbx), %al
	addb	$-128, %al
	movb	%al, _tda8290_set_params.expert_mode+1(%rip)
	leaq	_tda8290_set_params.expert_mode(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda8290_set_params.gainset_off(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda8290_set_params.if_agc_spd(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	testb	$96, (%rbx)
	leaq	_tda8290_set_params.adc_head_6(%rip), %rax
	leaq	_tda8290_set_params.adc_head_9(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda8290_set_params.pll_bw_nom(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
LBB0_10:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	*%rax
LBB0_12:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*%rax
LBB0_14:
	leaq	_tda8290_set_params.addr_pll_stat(%rip), %rsi
	leaq	_tda8290_set_params.pll_stat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$0, _tda8290_set_params.pll_stat(%rip)
	js	LBB0_15
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	movl	$100, %edi
	callq	_msleep
	leaq	_tda8290_set_params.addr_pll_stat(%rip), %rsi
	leaq	_tda8290_set_params.pll_stat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$0, _tda8290_set_params.pll_stat(%rip)
	js	LBB0_15
## %bb.17:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	movl	$100, %edi
	callq	_msleep
	leaq	_tda8290_set_params.addr_pll_stat(%rip), %rsi
	leaq	_tda8290_set_params.pll_stat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$0, _tda8290_set_params.pll_stat(%rip)
	js	LBB0_15
## %bb.18:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	movl	$100, %edi
	callq	_msleep
	jmp	LBB0_19
LBB0_15:
	leaq	_tda8290_set_params.addr_adc_sat(%rip), %rsi
	leaq	_tda8290_set_params.adc_sat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	leaq	_tda8290_set_params.addr_agc_stat(%rip), %rsi
	leaq	_tda8290_set_params.agc_stat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	movzbl	_tda8290_set_params.agc_stat(%rip), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
LBB0_19:
	movzbl	_tda8290_set_params.agc_stat(%rip), %esi
	cmpl	$116, %esi
	jb	LBB0_21
## %bb.20:
	movb	_tda8290_set_params.adc_sat(%rip), %cl
	movb	_tda8290_set_params.pll_stat(%rip), %al
	jmp	LBB0_23
LBB0_21:
	movb	_tda8290_set_params.pll_stat(%rip), %al
	testb	%al, %al
	js	LBB0_30
## %bb.22:
	movb	_tda8290_set_params.adc_sat(%rip), %cl
	cmpb	$19, %cl
	ja	LBB0_30
LBB0_23:
	movzbl	%cl, %edx
	andb	$-128, %al
	movzbl	%al, %ecx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	leaq	_tda8290_set_params.gainset_2(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movl	$100, %edi
	callq	_msleep
	leaq	_tda8290_set_params.addr_agc_stat(%rip), %rsi
	leaq	_tda8290_set_params.agc_stat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	leaq	_tda8290_set_params.addr_pll_stat(%rip), %rsi
	leaq	_tda8290_set_params.pll_stat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	movzbl	_tda8290_set_params.agc_stat(%rip), %esi
	movb	_tda8290_set_params.pll_stat(%rip), %al
	cmpl	$115, %esi
	ja	LBB0_25
## %bb.24:
	testb	%al, %al
	js	LBB0_30
LBB0_25:
	movzbl	%al, %edx
	andl	$-128, %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	%r14, %rdi
	callq	*%rax
LBB0_27:
	movl	$100, %edi
	callq	_msleep
	leaq	_tda8290_set_params.addr_agc_stat(%rip), %rsi
	leaq	_tda8290_set_params.agc_stat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	leaq	_tda8290_set_params.addr_pll_stat(%rip), %rsi
	leaq	_tda8290_set_params.pll_stat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	movzbl	_tda8290_set_params.agc_stat(%rip), %esi
	cmpl	$115, %esi
	ja	LBB0_29
## %bb.28:
	cmpb	$0, _tda8290_set_params.pll_stat(%rip)
	js	LBB0_30
LBB0_29:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	leaq	_tda8290_set_params.adc_head_12(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda8290_set_params.pll_bw_low(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movl	$100, %edi
	callq	_msleep
LBB0_30:
	testb	$96, (%rbx)
	je	LBB0_34
## %bb.31:
	leaq	_tda8290_set_params.addr_adc_sat(%rip), %rsi
	leaq	_tda8290_set_params.adc_sat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	leaq	_tda8290_set_params.addr_pll_stat(%rip), %rsi
	leaq	_tda8290_set_params.pll_stat(%rip), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$20, _tda8290_set_params.adc_sat(%rip)
	ja	LBB0_33
## %bb.32:
	cmpb	$0, _tda8290_set_params.pll_stat(%rip)
	js	LBB0_34
LBB0_33:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	leaq	_tda8290_set_params.agc_rst_on(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movl	$40, %edi
	callq	_msleep
	leaq	_tda8290_set_params.agc_rst_off(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
LBB0_34:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_36:
	leaq	_tda8290_set_params.if_agc_set(%rip), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_tda8290_set_params.soft_reset,2,0 ## @tda8290_set_params.soft_reset
	.section	__DATA,__data
_tda8290_set_params.expert_mode:        ## @tda8290_set_params.expert_mode
	.ascii	"\001\200"

_tda8290_set_params.agc_out_on:         ## @tda8290_set_params.agc_out_on
	.asciz	"\002"

_tda8290_set_params.gainset_off:        ## @tda8290_set_params.gainset_off
	.ascii	"(\024"

_tda8290_set_params.if_agc_spd:         ## @tda8290_set_params.if_agc_spd
	.ascii	"\017\210"

_tda8290_set_params.adc_head_6:         ## @tda8290_set_params.adc_head_6
	.ascii	"\005\004"

_tda8290_set_params.adc_head_9:         ## @tda8290_set_params.adc_head_9
	.ascii	"\005\002"

_tda8290_set_params.adc_head_12:        ## @tda8290_set_params.adc_head_12
	.ascii	"\005\001"

_tda8290_set_params.pll_bw_nom:         ## @tda8290_set_params.pll_bw_nom
	.ascii	"\rG"

_tda8290_set_params.pll_bw_low:         ## @tda8290_set_params.pll_bw_low
	.ascii	"\r'"

_tda8290_set_params.gainset_2:          ## @tda8290_set_params.gainset_2
	.ascii	"(d"

_tda8290_set_params.agc_rst_on:         ## @tda8290_set_params.agc_rst_on
	.ascii	"\016\013"

_tda8290_set_params.agc_rst_off:        ## @tda8290_set_params.agc_rst_off
	.ascii	"\016\t"

_tda8290_set_params.if_agc_set:         ## @tda8290_set_params.if_agc_set
	.ascii	"\017\201"

_tda8290_set_params.addr_adc_sat:       ## @tda8290_set_params.addr_adc_sat
	.byte	26                              ## 0x1a

_tda8290_set_params.addr_agc_stat:      ## @tda8290_set_params.addr_agc_stat
	.byte	29                              ## 0x1d

_tda8290_set_params.addr_pll_stat:      ## @tda8290_set_params.addr_pll_stat
	.byte	27                              ## 0x1b

.zerofill __DATA,__bss,_tda8290_set_params.adc_sat,1,0 ## @tda8290_set_params.adc_sat
.zerofill __DATA,__bss,_tda8290_set_params.agc_stat,1,0 ## @tda8290_set_params.agc_stat
.zerofill __DATA,__bss,_tda8290_set_params.pll_stat,1,0 ## @tda8290_set_params.pll_stat
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tda827xa config is 0x%02x\n"

	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_deemphasis_50,8,3              ## @deemphasis_50
	.comm	_fm_mode,8,3                    ## @fm_mode
L_.str.1:                               ## @.str.1
	.asciz	"tda8290 is locked, AGC: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"tda8290 not locked, no signal?\n"

L_.str.3:                               ## @.str.3
	.asciz	"adjust gain, step 1. Agc: %d, ADC stat: %d, lock: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"adjust gain, step 2. Agc: %d, lock: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"adjust gain, step 3. Agc: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"trying to resolve SECAM L deadlock\n"

	.no_dead_strip	_tda8290_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda8290_set_params
_tda8290_set_params:                    ; @tda8290_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	mov	w8, #1
	strb	w8, [sp, #30]
	ldr	w8, [x23]
	strb	w8, [sp, #31]
	bl	_set_audio
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tuner_dbg
LBB0_2:
	add	x20, x23, #4
	add	x1, sp, #30
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh2:
	adrp	x1, _tda8290_set_params.agc_out_on@PAGE
Lloh3:
	add	x1, x1, _tda8290_set_params.agc_out_on@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh4:
	adrp	x1, _tda8290_set_params.soft_reset@PAGE
Lloh5:
	add	x1, x1, _tda8290_set_params.soft_reset@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _V4L2_TUNER_RADIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	mov	w8, #275
	strh	w8, [sp, #28]
Lloh9:
	adrp	x8, _deemphasis_50@GOTPAGE
Lloh10:
	ldr	x8, [x8, _deemphasis_50@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w8, #2
	strb	w8, [sp, #29]
LBB0_5:
Lloh12:
	adrp	x22, _fm_mode@GOTPAGE
Lloh13:
	ldr	x22, [x22, _fm_mode@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x1, [x8, x24, lsl #3]
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.lt	LBB0_7
LBB0_8:
	add	x1, sp, #28
	b	LBB0_10
LBB0_9:
	ldrb	w8, [x23]
	eor	w8, w8, #0x80
Lloh14:
	adrp	x1, _tda8290_set_params.expert_mode@PAGE
Lloh15:
	add	x1, x1, _tda8290_set_params.expert_mode@PAGEOFF
	strb	w8, [x1, #1]
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh16:
	adrp	x1, _tda8290_set_params.gainset_off@PAGE
Lloh17:
	add	x1, x1, _tda8290_set_params.gainset_off@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh18:
	adrp	x1, _tda8290_set_params.if_agc_spd@PAGE
Lloh19:
	add	x1, x1, _tda8290_set_params.if_agc_spd@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	ldr	w8, [x23]
Lloh20:
	adrp	x9, _tda8290_set_params.adc_head_9@PAGE
Lloh21:
	add	x9, x9, _tda8290_set_params.adc_head_9@PAGEOFF
Lloh22:
	adrp	x10, _tda8290_set_params.adc_head_6@PAGE
Lloh23:
	add	x10, x10, _tda8290_set_params.adc_head_6@PAGEOFF
	tst	w8, #0x60
	csel	x1, x10, x9, eq
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh24:
	adrp	x1, _tda8290_set_params.pll_bw_nom@PAGE
Lloh25:
	add	x1, x1, _tda8290_set_params.pll_bw_nom@PAGEOFF
LBB0_10:
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_12:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_14:
Lloh26:
	adrp	x1, _tda8290_set_params.addr_pll_stat@PAGE
Lloh27:
	add	x1, x1, _tda8290_set_params.addr_pll_stat@PAGEOFF
Lloh28:
	adrp	x21, _tda8290_set_params.pll_stat@PAGE
Lloh29:
	add	x21, x21, _tda8290_set_params.pll_stat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x21
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrsb	w8, [x21]
Lloh30:
	adrp	x22, _tda8290_set_params.agc_stat@PAGE
Lloh31:
	add	x22, x22, _tda8290_set_params.agc_stat@PAGEOFF
	tbnz	w8, #31, LBB0_18
; %bb.15:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tuner_dbg
	mov	w0, #100
	bl	_msleep
Lloh34:
	adrp	x1, _tda8290_set_params.addr_pll_stat@PAGE
Lloh35:
	add	x1, x1, _tda8290_set_params.addr_pll_stat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x21
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrsb	w8, [x21]
	tbnz	w8, #31, LBB0_18
; %bb.16:
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tuner_dbg
	mov	w0, #100
	bl	_msleep
Lloh38:
	adrp	x1, _tda8290_set_params.addr_pll_stat@PAGE
Lloh39:
	add	x1, x1, _tda8290_set_params.addr_pll_stat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x21
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrsb	w8, [x21]
	tbnz	w8, #31, LBB0_18
; %bb.17:
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tuner_dbg
	mov	w0, #100
	bl	_msleep
	b	LBB0_19
LBB0_18:
Lloh42:
	adrp	x1, _tda8290_set_params.addr_adc_sat@PAGE
Lloh43:
	add	x1, x1, _tda8290_set_params.addr_adc_sat@PAGEOFF
Lloh44:
	adrp	x3, _tda8290_set_params.adc_sat@PAGE
Lloh45:
	add	x3, x3, _tda8290_set_params.adc_sat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
Lloh46:
	adrp	x1, _tda8290_set_params.addr_agc_stat@PAGE
Lloh47:
	add	x1, x1, _tda8290_set_params.addr_agc_stat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x22
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [x22]
	str	x8, [sp]
Lloh48:
	adrp	x0, l_.str.1@PAGE
Lloh49:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tuner_dbg
LBB0_19:
	adrp	x8, _tda8290_set_params.agc_stat@PAGE
	ldrb	w8, [x8, _tda8290_set_params.agc_stat@PAGEOFF]
	cmp	w8, #116
	b.lo	LBB0_21
; %bb.20:
Lloh50:
	adrp	x9, _tda8290_set_params.adc_sat@PAGE
	ldrb	w10, [x9, _tda8290_set_params.adc_sat@PAGEOFF]
Lloh51:
	adrp	x9, _tda8290_set_params.pll_stat@PAGE
	ldrb	w9, [x9, _tda8290_set_params.pll_stat@PAGEOFF]
	b	LBB0_23
LBB0_21:
	adrp	x9, _tda8290_set_params.pll_stat@PAGE
	ldrsb	w9, [x9, _tda8290_set_params.pll_stat@PAGEOFF]
	tbnz	w9, #31, LBB0_30
; %bb.22:
	adrp	x10, _tda8290_set_params.adc_sat@PAGE
	ldrb	w10, [x10, _tda8290_set_params.adc_sat@PAGEOFF]
	cmp	w10, #19
	b.hi	LBB0_30
LBB0_23:
	stp	x8, x10, [sp]
	and	x8, x9, #0x80
	str	x8, [sp, #16]
Lloh52:
	adrp	x0, l_.str.3@PAGE
Lloh53:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_tuner_dbg
Lloh54:
	adrp	x1, _tda8290_set_params.gainset_2@PAGE
Lloh55:
	add	x1, x1, _tda8290_set_params.gainset_2@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	w0, #100
	bl	_msleep
Lloh56:
	adrp	x1, _tda8290_set_params.addr_agc_stat@PAGE
Lloh57:
	add	x1, x1, _tda8290_set_params.addr_agc_stat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x22
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
Lloh58:
	adrp	x1, _tda8290_set_params.addr_pll_stat@PAGE
Lloh59:
	add	x1, x1, _tda8290_set_params.addr_pll_stat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x21
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [x22]
	ldrsb	w9, [x21]
	cmp	w8, #115
	b.hi	LBB0_25
; %bb.24:
	tbnz	w9, #31, LBB0_30
LBB0_25:
	and	w9, w9, #0xff
	and	w9, w9, #0x80
	stp	x8, x9, [sp]
Lloh60:
	adrp	x0, l_.str.4@PAGE
Lloh61:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_tuner_dbg
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x19
	blr	x8
LBB0_27:
	mov	w0, #100
	bl	_msleep
Lloh62:
	adrp	x1, _tda8290_set_params.addr_agc_stat@PAGE
Lloh63:
	add	x1, x1, _tda8290_set_params.addr_agc_stat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x22
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
Lloh64:
	adrp	x1, _tda8290_set_params.addr_pll_stat@PAGE
Lloh65:
	add	x1, x1, _tda8290_set_params.addr_pll_stat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x21
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [x22]
	cmp	w8, #115
	b.hi	LBB0_29
; %bb.28:
	ldrsb	w9, [x21]
	tbnz	w9, #31, LBB0_30
LBB0_29:
	str	x8, [sp]
Lloh66:
	adrp	x0, l_.str.5@PAGE
Lloh67:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_tuner_dbg
Lloh68:
	adrp	x1, _tda8290_set_params.adc_head_12@PAGE
Lloh69:
	add	x1, x1, _tda8290_set_params.adc_head_12@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh70:
	adrp	x1, _tda8290_set_params.pll_bw_low@PAGE
Lloh71:
	add	x1, x1, _tda8290_set_params.pll_bw_low@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	w0, #100
	bl	_msleep
LBB0_30:
	ldrb	w8, [x23]
	tst	w8, #0x60
	b.eq	LBB0_34
; %bb.31:
Lloh72:
	adrp	x22, _tda8290_set_params.adc_sat@PAGE
Lloh73:
	add	x22, x22, _tda8290_set_params.adc_sat@PAGEOFF
Lloh74:
	adrp	x1, _tda8290_set_params.addr_adc_sat@PAGE
Lloh75:
	add	x1, x1, _tda8290_set_params.addr_adc_sat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x22
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
Lloh76:
	adrp	x1, _tda8290_set_params.addr_pll_stat@PAGE
Lloh77:
	add	x1, x1, _tda8290_set_params.addr_pll_stat@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	mov	x3, x21
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [x22]
	cmp	w8, #20
	b.hi	LBB0_33
; %bb.32:
	ldrsb	w8, [x21]
	tbnz	w8, #31, LBB0_34
LBB0_33:
Lloh78:
	adrp	x0, l_.str.6@PAGE
Lloh79:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_tuner_dbg
Lloh80:
	adrp	x1, _tda8290_set_params.agc_rst_on@PAGE
Lloh81:
	add	x1, x1, _tda8290_set_params.agc_rst_on@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	w0, #40
	bl	_msleep
Lloh82:
	adrp	x1, _tda8290_set_params.agc_rst_off@PAGE
Lloh83:
	add	x1, x1, _tda8290_set_params.agc_rst_off@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
LBB0_34:
	ldr	x8, [x19]
	cbz	x8, LBB0_36
; %bb.35:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_36:
Lloh84:
	adrp	x1, _tda8290_set_params.if_agc_set@PAGE
Lloh85:
	add	x1, x1, _tda8290_set_params.if_agc_set@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdrp	Lloh50, Lloh51
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh84, Lloh85
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_tda8290_set_params.soft_reset,2,0 ; @tda8290_set_params.soft_reset
	.section	__DATA,__data
_tda8290_set_params.expert_mode:        ; @tda8290_set_params.expert_mode
	.ascii	"\001\200"

_tda8290_set_params.agc_out_on:         ; @tda8290_set_params.agc_out_on
	.asciz	"\002"

_tda8290_set_params.gainset_off:        ; @tda8290_set_params.gainset_off
	.ascii	"(\024"

_tda8290_set_params.if_agc_spd:         ; @tda8290_set_params.if_agc_spd
	.ascii	"\017\210"

_tda8290_set_params.adc_head_6:         ; @tda8290_set_params.adc_head_6
	.ascii	"\005\004"

_tda8290_set_params.adc_head_9:         ; @tda8290_set_params.adc_head_9
	.ascii	"\005\002"

_tda8290_set_params.adc_head_12:        ; @tda8290_set_params.adc_head_12
	.ascii	"\005\001"

_tda8290_set_params.pll_bw_nom:         ; @tda8290_set_params.pll_bw_nom
	.ascii	"\rG"

_tda8290_set_params.pll_bw_low:         ; @tda8290_set_params.pll_bw_low
	.ascii	"\r'"

_tda8290_set_params.gainset_2:          ; @tda8290_set_params.gainset_2
	.ascii	"(d"

_tda8290_set_params.agc_rst_on:         ; @tda8290_set_params.agc_rst_on
	.ascii	"\016\013"

_tda8290_set_params.agc_rst_off:        ; @tda8290_set_params.agc_rst_off
	.ascii	"\016\t"

_tda8290_set_params.if_agc_set:         ; @tda8290_set_params.if_agc_set
	.ascii	"\017\201"

_tda8290_set_params.addr_adc_sat:       ; @tda8290_set_params.addr_adc_sat
	.byte	26                              ; 0x1a

_tda8290_set_params.addr_agc_stat:      ; @tda8290_set_params.addr_agc_stat
	.byte	29                              ; 0x1d

_tda8290_set_params.addr_pll_stat:      ; @tda8290_set_params.addr_pll_stat
	.byte	27                              ; 0x1b

.zerofill __DATA,__bss,_tda8290_set_params.adc_sat,1,0 ; @tda8290_set_params.adc_sat
.zerofill __DATA,__bss,_tda8290_set_params.agc_stat,1,0 ; @tda8290_set_params.agc_stat
.zerofill __DATA,__bss,_tda8290_set_params.pll_stat,1,0 ; @tda8290_set_params.pll_stat
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tda827xa config is 0x%02x\n"

	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_deemphasis_50,8,3              ; @deemphasis_50
	.comm	_fm_mode,8,3                    ; @fm_mode
l_.str.1:                               ; @.str.1
	.asciz	"tda8290 is locked, AGC: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"tda8290 not locked, no signal?\n"

l_.str.3:                               ; @.str.3
	.asciz	"adjust gain, step 1. Agc: %d, ADC stat: %d, lock: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"adjust gain, step 2. Agc: %d, lock: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"adjust gain, step 3. Agc: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"trying to resolve SECAM L deadlock\n"

	.no_dead_strip	_tda8290_set_params
.subsections_via_symbols
