	.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	$56, %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, %r12
	movq	8(%rdi), %rbx
	movw	$0, -78(%rbp)
	movb	$1, -52(%rbp)
	movb	(%rbx), %al
	movb	%al, -51(%rbp)
	movw	$-32767, -50(%rbp)              ## imm = 0x8001
	movw	$2, -76(%rbp)
	movw	$5160, -74(%rbp)                ## imm = 0x1428
	movw	$-30705, -72(%rbp)              ## imm = 0x880F
	movw	$1029, -70(%rbp)                ## imm = 0x405
	movw	$517, -68(%rbp)                 ## imm = 0x205
	movw	$261, -66(%rbp)                 ## imm = 0x105
	movw	$18189, -64(%rbp)               ## imm = 0x470D
	movw	$9997, -62(%rbp)                ## imm = 0x270D
	movw	$25640, -60(%rbp)               ## imm = 0x6428
	movw	$2830, -58(%rbp)                ## imm = 0xB0E
	movw	$2318, -56(%rbp)                ## imm = 0x90E
	movw	$-32497, -54(%rbp)              ## imm = 0x810F
	movb	$26, -48(%rbp)
	movb	$29, -47(%rbp)
	movb	$27, -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	-52(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-76(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-78(%rbp), %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, -88(%rbp)                 ## 8-byte Spill
	movw	$275, -46(%rbp)                 ## imm = 0x113
	movq	_deemphasis_50@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movb	$2, -45(%rbp)
LBB0_5:
	movq	_fm_mode@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	(%rax,%r14,8), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	incq	%r14
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jl	LBB0_7
LBB0_8:
	leaq	-46(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_9:
	movb	(%rbx), %al
	addb	$-128, %al
	movb	%al, -49(%rbp)
	leaq	-50(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-74(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	testb	$96, (%rbx)
	leaq	-70(%rbp), %rax
	leaq	-68(%rbp), %rsi
	cmoveq	%rax, %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
LBB0_10:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_tda8290_i2c_bridge
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	*%rax
LBB0_12:
	leaq	-43(%rbp), %rsi
	leaq	-41(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$0, -41(%rbp)
	js	LBB0_18
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	movl	$100, %edi
	callq	_msleep
	leaq	-43(%rbp), %rsi
	leaq	-41(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$0, -41(%rbp)
	js	LBB0_18
## %bb.14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	movl	$100, %edi
	callq	_msleep
	leaq	-43(%rbp), %rsi
	leaq	-41(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$0, -41(%rbp)
	js	LBB0_18
## %bb.15:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	movl	$100, %edi
	callq	_msleep
                                        ## implicit-def: $al
	jmp	LBB0_16
LBB0_18:
	leaq	-48(%rbp), %rsi
	leaq	-46(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	leaq	-47(%rbp), %rsi
	leaq	-42(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	movzbl	-42(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	movb	-42(%rbp), %al
	cmpb	$116, %al
	jb	LBB0_16
## %bb.19:
	movb	-46(%rbp), %dl
	movb	-41(%rbp), %cl
	jmp	LBB0_20
LBB0_16:
	movb	-41(%rbp), %cl
	testb	%cl, %cl
	js	LBB0_27
## %bb.17:
	movb	-46(%rbp), %dl
	cmpb	$19, %dl
	ja	LBB0_27
LBB0_20:
	movzbl	%al, %esi
	movzbl	%dl, %edx
	andb	$-128, %cl
	movzbl	%cl, %ecx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	leaq	-60(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movl	$100, %edi
	callq	_msleep
	leaq	-47(%rbp), %rsi
	leaq	-42(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	leaq	-43(%rbp), %rsi
	leaq	-41(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	movzbl	-42(%rbp), %esi
	movb	-41(%rbp), %al
	cmpl	$115, %esi
	ja	LBB0_22
## %bb.21:
	testb	%al, %al
	js	LBB0_27
LBB0_22:
	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_24
## %bb.23:
	movq	%r12, %rdi
	callq	*%rax
LBB0_24:
	movl	$100, %edi
	callq	_msleep
	leaq	-47(%rbp), %rsi
	leaq	-42(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	leaq	-43(%rbp), %rsi
	leaq	-41(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	movzbl	-42(%rbp), %esi
	cmpl	$115, %esi
	ja	LBB0_26
## %bb.25:
	cmpb	$0, -41(%rbp)
	js	LBB0_27
LBB0_26:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	leaq	-66(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-62(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movl	$100, %edi
	callq	_msleep
LBB0_27:
	testb	$96, (%rbx)
	je	LBB0_31
## %bb.28:
	leaq	-48(%rbp), %rsi
	leaq	-46(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	leaq	-43(%rbp), %rsi
	leaq	-41(%rbp), %rcx
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$20, -46(%rbp)
	ja	LBB0_30
## %bb.29:
	cmpb	$0, -41(%rbp)
	js	LBB0_31
LBB0_30:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	leaq	-58(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movl	$40, %edi
	callq	_msleep
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
LBB0_31:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_tda8290_i2c_bridge
	leaq	-54(%rbp), %rsi
	movq	%r13, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, [x0, #8]
	sturh	wzr, [x29, #-50]
	mov	w8, #1
	sturb	w8, [x29, #-52]
	ldr	w8, [x22]
	sturb	w8, [x29, #-51]
	mov	w8, #32769
	sturh	w8, [x29, #-54]
	mov	w8, #2
	strh	w8, [sp, #56]
	mov	w8, #5160
	strh	w8, [sp, #54]
	mov	w8, #34831
	strh	w8, [sp, #52]
	mov	w8, #1029
	strh	w8, [sp, #50]
	mov	w8, #517
	strh	w8, [sp, #48]
	mov	w8, #261
	strh	w8, [sp, #46]
	mov	w8, #18189
	strh	w8, [sp, #44]
	mov	w8, #9997
	strh	w8, [sp, #42]
	mov	w8, #25640
	strh	w8, [sp, #40]
	mov	w8, #2830
	strh	w8, [sp, #38]
	mov	w8, #2318
	strh	w8, [sp, #36]
	mov	w8, #33039
	strh	w8, [sp, #34]
	mov	w8, #26
	strb	w8, [sp, #33]
	mov	w8, #29
	strb	w8, [sp, #32]
	mov	w8, #27
	strb	w8, [sp, #31]
	bl	_set_audio
	ldr	x8, [x22, #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, x22, #4
	sub	x1, x29, #52
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x1, sp, #56
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	sub	x1, x29, #50
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _V4L2_TUNER_RADIO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	mov	w8, #275
	strh	w8, [sp, #26]
Lloh5:
	adrp	x8, _deemphasis_50@GOTPAGE
Lloh6:
	ldr	x8, [x8, _deemphasis_50@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w8, #2
	strb	w8, [sp, #27]
LBB0_5:
Lloh8:
	adrp	x23, _fm_mode@GOTPAGE
Lloh9:
	ldr	x23, [x23, _fm_mode@GOTPAGEOFF]
	ldr	x0, [x23]
	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, [x23]
	ldr	x1, [x8, x24, lsl #3]
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x24, x24, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x24, w0, sxtw
	b.lt	LBB0_7
LBB0_8:
	add	x1, sp, #26
	b	LBB0_10
LBB0_9:
	ldrb	w8, [x22]
	eor	w8, w8, #0x80
	sturb	w8, [x29, #-53]
	sub	x1, x29, #54
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x1, sp, #54
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x1, sp, #52
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	ldr	w8, [x22]
	tst	w8, #0x60
	add	x8, sp, #48
	add	x9, sp, #50
	csel	x1, x9, x8, eq
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x1, sp, #44
LBB0_10:
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	x0, x19
	mov	w1, #1
	bl	_tda8290_i2c_bridge
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_12:
	add	x1, sp, #31
	add	x3, sp, #29
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrsb	w8, [sp, #29]
	tbnz	w8, #31, LBB0_16
; %bb.13:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tuner_dbg
	mov	w0, #100
	bl	_msleep
	add	x1, sp, #31
	add	x3, sp, #29
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrsb	w8, [sp, #29]
	tbnz	w8, #31, LBB0_16
; %bb.14:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tuner_dbg
	mov	w0, #100
	bl	_msleep
	add	x1, sp, #31
	add	x3, sp, #29
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrsb	w8, [sp, #29]
	tbnz	w8, #31, LBB0_16
; %bb.15:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tuner_dbg
	mov	w0, #100
	bl	_msleep
                                        ; implicit-def: $w8
	b	LBB0_18
LBB0_16:
	add	x1, sp, #33
	add	x3, sp, #26
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	add	x1, sp, #32
	add	x3, sp, #30
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [sp, #30]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tuner_dbg
	ldrb	w8, [sp, #30]
	cmp	w8, #116
	b.lo	LBB0_18
; %bb.17:
	ldrb	w10, [sp, #26]
	ldrb	w9, [sp, #29]
	b	LBB0_20
LBB0_18:
	ldrsb	w9, [sp, #29]
	tbnz	w9, #31, LBB0_27
; %bb.19:
	ldrb	w10, [sp, #26]
	cmp	w10, #19
	b.hi	LBB0_27
LBB0_20:
	stp	x8, x10, [sp]
	and	x8, x9, #0x80
	str	x8, [sp, #16]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_tuner_dbg
	add	x1, sp, #40
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	w0, #100
	bl	_msleep
	add	x1, sp, #32
	add	x3, sp, #30
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	add	x1, sp, #31
	add	x3, sp, #29
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [sp, #30]
	ldrsb	w9, [sp, #29]
	cmp	w8, #115
	b.hi	LBB0_22
; %bb.21:
	tbnz	w9, #31, LBB0_27
LBB0_22:
	and	w9, w9, #0xff
	and	w9, w9, #0x80
	stp	x8, x9, [sp]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_tuner_dbg
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x0, x19
	blr	x8
LBB0_24:
	mov	w0, #100
	bl	_msleep
	add	x1, sp, #32
	add	x3, sp, #30
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	add	x1, sp, #31
	add	x3, sp, #29
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [sp, #30]
	cmp	w8, #115
	b.hi	LBB0_26
; %bb.25:
	ldrsb	w9, [sp, #29]
	tbnz	w9, #31, LBB0_27
LBB0_26:
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.5@PAGE
Lloh23:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_tuner_dbg
	add	x1, sp, #46
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x1, sp, #42
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	w0, #100
	bl	_msleep
LBB0_27:
	ldrb	w8, [x22]
	tst	w8, #0x60
	b.eq	LBB0_31
; %bb.28:
	add	x1, sp, #33
	add	x3, sp, #26
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	add	x1, sp, #31
	add	x3, sp, #29
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [sp, #26]
	cmp	w8, #20
	b.hi	LBB0_30
; %bb.29:
	ldrsb	w8, [sp, #29]
	tbnz	w8, #31, LBB0_31
LBB0_30:
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_tuner_dbg
	add	x1, sp, #38
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	w0, #40
	bl	_msleep
	add	x1, sp, #36
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
LBB0_31:
	mov	x0, x19
	mov	w1, #0
	bl	_tda8290_i2c_bridge
	add	x1, sp, #34
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.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
