	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simple_set_tv_freq
_simple_set_tv_freq:                    ## @simple_set_tv_freq
	.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, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %ecx
	movq	_V4L2_STD_NTSC_M_JP@GOTPCREL(%rip), %rdx
	movl	$940, %r14d                     ## imm = 0x3AC
	movq	_TUNER_PARAM_TYPE_NTSC@GOTPCREL(%rip), %rax
	cmpl	(%rdx), %ecx
	je	LBB0_5
## %bb.1:
	movq	_V4L2_STD_MN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_4
## %bb.2:
	notl	%edx
	testl	%edx, %ecx
	je	LBB0_3
LBB0_4:
	movq	_V4L2_STD_SECAM_LC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movq	_TUNER_PARAM_TYPE_PAL@GOTPCREL(%rip), %rax
	cmoveq	_TUNER_PARAM_TYPE_SECAM@GOTPCREL(%rip), %rax
	movl	$543, %ecx                      ## imm = 0x21F
	movl	$623, %r14d                     ## imm = 0x26F
	cmovel	%ecx, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	$732, %r14d                     ## imm = 0x2DC
LBB0_5:
	movq	(%rbx), %r12
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_simple_tuner_params
	movq	%rax, %r15
	leaq	4(%r13), %rdx
	leaq	-76(%rbp), %rcx
	leaq	-72(%rbp), %r8
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_simple_config_lookup
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %ecx
	leal	(%rcx,%r14), %edi
	movq	_offset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %edi
	leal	15(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	movl	%edx, %esi
	sarl	$4, %esi
	andl	$-16, %edx
	subl	%edx, %ecx
	imull	$100, %ecx, %ecx
	leal	15(%rcx), %edx
	testw	%cx, %cx
	cmovnsl	%ecx, %edx
	movswl	%dx, %edx
	sarl	$4, %edx
	movl	%r14d, %ecx
	shrl	$4, %ecx
	andl	$15, %r14d
	imull	$100, %r14d, %r8d
	movq	%r12, %r14
	movq	%rdi, %r12
	shrl	$4, %r8d
	leal	15(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	movl	%edi, %r9d
	sarl	$4, %r9d
	andl	$-16, %edi
	subl	%edi, %eax
	imull	$100, %eax, %eax
	leal	15(%rax), %edi
	testw	%ax, %ax
	cmovnsl	%eax, %edi
	movq	%rbx, %r10
	movswl	%di, %ebx
	sarl	$4, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	pushq	%r12
	pushq	%rbx
	movq	%r10, %rbx
	callq	_tuner_dbg
	addq	$16, %rsp
	movq	%rbx, %rdi
	movq	%r13, %rsi
	leaq	-76(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_simple_std_setup
	cmpq	$0, 88(%r15)
	je	LBB0_8
## %bb.6:
	cmpl	(%r14), %r12d
	jge	LBB0_8
## %bb.7:
	movl	-76(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	-72(%rbp), %eax
	movl	%eax, -60(%rbp)
	movl	%r12d, %eax
	shrl	$8, %eax
	andl	$127, %eax
	movl	%eax, -56(%rbp)
	movzbl	%r12b, %eax
	jmp	LBB0_9
LBB0_8:
	movl	%r12d, %eax
	shrl	$8, %eax
	andl	$127, %eax
	movl	%eax, -64(%rbp)
	movzbl	%r12b, %eax
	movl	%eax, -60(%rbp)
	movl	-76(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-72(%rbp), %eax
LBB0_9:
	movl	%eax, -52(%rbp)
	movl	%r12d, (%r14)
	cmpq	$0, 80(%r15)
	je	LBB0_39
## %bb.10:
	movl	$0, -68(%rbp)
	movl	(%r13), %eax
	movq	_V4L2_STD_SECAM_L@GOTPCREL(%rip), %rcx
	movq	_V4L2_STD_SECAM_LC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	(%rcx), %edx
	orl	%edi, %edx
	testl	%eax, %edx
	setne	%cl
	notl	%edx
	testl	%edx, %eax
	sete	%dl
	movq	_TUNER_TDA9887@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -88(%rbp)
	leaq	-68(%rbp), %rsi
	movq	%rsi, -96(%rbp)
	movl	(%r15), %esi
	cmpl	%edi, %eax
	jne	LBB0_14
## %bb.11:
	xorl	%eax, %eax
	cmpl	4(%r15), %esi
	je	LBB0_13
## %bb.12:
	movq	_TDA9887_PORT1_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
LBB0_13:
	movl	8(%r15), %esi
	cmpl	12(%r15), %esi
	jne	LBB0_18
	jmp	LBB0_19
LBB0_14:
	testl	%esi, %esi
	je	LBB0_15
## %bb.16:
	movq	_TDA9887_PORT1_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	cmpl	$0, 8(%r15)
	je	LBB0_19
LBB0_18:
	movq	_TDA9887_PORT2_ACTIVE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, -68(%rbp)
LBB0_19:
	andb	%dl, %cl
	cmpq	$0, 72(%r15)
	je	LBB0_21
## %bb.20:
	movq	_TDA9887_INTERCARRIER@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, -68(%rbp)
LBB0_21:
	testb	%cl, %cl
	je	LBB0_28
## %bb.22:
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$1, %ecx
	je	LBB0_25
## %bb.23:
	testl	%ecx, %ecx
	jne	LBB0_27
## %bb.24:
	movq	64(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_35
	jmp	LBB0_27
LBB0_28:
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$1, %ecx
	je	LBB0_31
## %bb.29:
	testl	%ecx, %ecx
	jne	LBB0_33
## %bb.30:
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_35
	jmp	LBB0_33
LBB0_15:
	xorl	%eax, %eax
	cmpl	$0, 8(%r15)
	jne	LBB0_18
	jmp	LBB0_19
LBB0_25:
	movq	56(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_35
LBB0_27:
	movq	48(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_35
	jmp	LBB0_36
LBB0_31:
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_35
LBB0_33:
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_36
LBB0_35:
	callq	_TDA9887_TOP
	orl	-68(%rbp), %eax
	movl	%eax, -68(%rbp)
LBB0_36:
	cmpq	$0, 16(%r15)
	je	LBB0_38
## %bb.37:
	movq	_TDA9887_GATING_18@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -68(%rbp)
LBB0_38:
	movl	4(%r14), %edi
	movq	_TUNER_SET_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	callq	_i2c_clients_command
LBB0_39:
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %ecx
	movl	-52(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_tuner_dbg
	addq	$4, %r14
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_tuner_i2c_xfer_send
	cmpl	$4, %eax
	je	LBB0_41
## %bb.40:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_tuner_warn
LBB0_41:
	movl	-76(%rbp), %ecx
	movl	-72(%rbp), %r8d
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_simple_post_tune
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_43
## %bb.42:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_43:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_NTSC_M_JP,4,2         ## @V4L2_STD_NTSC_M_JP
	.comm	_TUNER_PARAM_TYPE_NTSC,4,2      ## @TUNER_PARAM_TYPE_NTSC
	.comm	_V4L2_STD_MN,4,2                ## @V4L2_STD_MN
	.comm	_V4L2_STD_SECAM_LC,4,2          ## @V4L2_STD_SECAM_LC
	.comm	_TUNER_PARAM_TYPE_SECAM,4,2     ## @TUNER_PARAM_TYPE_SECAM
	.comm	_TUNER_PARAM_TYPE_PAL,4,2       ## @TUNER_PARAM_TYPE_PAL
	.comm	_offset,4,2                     ## @offset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freq= %d.%02d MHz, V_IF=%d.%02d MHz, Offset=%d.%02d MHz, div=%0d\n"

	.comm	_V4L2_STD_SECAM_L,4,2           ## @V4L2_STD_SECAM_L
	.comm	_TUNER_TDA9887,4,2              ## @TUNER_TDA9887
	.comm	_TDA9887_PORT1_ACTIVE,4,2       ## @TDA9887_PORT1_ACTIVE
	.comm	_TDA9887_PORT2_ACTIVE,4,2       ## @TDA9887_PORT2_ACTIVE
	.comm	_TDA9887_INTERCARRIER,4,2       ## @TDA9887_INTERCARRIER
	.comm	_TDA9887_GATING_18,4,2          ## @TDA9887_GATING_18
	.comm	_TUNER_SET_CONFIG,4,2           ## @TUNER_SET_CONFIG
L_.str.1:                               ## @.str.1
	.asciz	"tv 0x%02x 0x%02x 0x%02x 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"i2c i/o error: rc == %d (should be 4)\n"

	.no_dead_strip	_simple_set_tv_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simple_set_tv_freq
_simple_set_tv_freq:                    ; @simple_set_tv_freq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x24, [x0]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _V4L2_STD_NTSC_M_JP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_STD_NTSC_M_JP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x25, _V4L2_STD_SECAM_LC@GOTPAGE
Lloh7:
	ldr	x25, [x25, _V4L2_STD_SECAM_LC@GOTPAGEOFF]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.1:
	mov	w26, #940
LBB0_2:
Lloh8:
	adrp	x8, _TUNER_PARAM_TYPE_NTSC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TUNER_PARAM_TYPE_NTSC@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x9, _V4L2_STD_MN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_STD_MN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w10, w9, w8
	cmp	w10, #0
	bic	w9, w8, w9
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_28
; %bb.4:
Lloh13:
	adrp	x9, _TUNER_PARAM_TYPE_PAL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TUNER_PARAM_TYPE_PAL@GOTPAGEOFF]
Lloh15:
	adrp	x10, _TUNER_PARAM_TYPE_SECAM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TUNER_PARAM_TYPE_SECAM@GOTPAGEOFF]
	ldr	w11, [x25]
	mov	w12, #623
	mov	w13, #543
	cmp	w8, w11
	csel	w26, w13, w12, eq
	csel	x8, x10, x9, eq
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_simple_tuner_params
	mov	x21, x0
	add	x2, x23, #4
	add	x3, sp, #52
	add	x4, sp, #48
	mov	x0, x19
	mov	x1, x21
	bl	_simple_config_lookup
	mov	x22, x0
	ldr	w8, [x23, #4]
Lloh17:
	adrp	x9, _offset@GOTPAGE
Lloh18:
	ldr	x9, [x9, _offset@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	add	w10, w8, w26
	add	w20, w10, w9
	add	w10, w8, #15
	cmp	w8, #0
	csel	w10, w10, w8, lt
	asr	w1, w10, #4
	and	w10, w10, #0xfffffff0
	sub	w8, w8, w10
	mov	w10, #100
	mul	w8, w8, w10
	sxth	w11, w8
	ubfx	w11, w11, #27, #4
	add	w8, w8, w11
	sbfx	w2, w8, #4, #12
	lsr	w3, w26, #4
	and	w8, w26, #0xf
	mul	w8, w8, w10
	lsr	w4, w8, #4
	add	w8, w9, #15
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w11, w8, #4
	and	w8, w8, #0xfffffff0
	sub	w8, w9, w8
	mul	w8, w8, w10
	sxth	w9, w8
	ubfx	w9, w9, #27, #4
	add	w8, w8, w9
	sxth	w8, w8
	sbfx	x8, x8, #4, #28
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	str	x11, [sp]
	stp	x8, x20, [sp, #8]
	bl	_tuner_dbg
	add	x2, sp, #52
	add	x3, sp, #48
	mov	x0, x19
	mov	x1, x23
	bl	_simple_std_setup
	ldr	x9, [x21, #88]
	ubfx	w8, w20, #8, #7
	cbz	x9, LBB0_8
; %bb.6:
	ldr	w9, [x24]
	cmp	w20, w9
	b.ge	LBB0_8
; %bb.7:
	ldp	w10, w9, [sp, #48]
	stp	w9, w10, [sp, #56]
	str	w8, [sp, #64]
	and	w8, w20, #0xff
	b	LBB0_9
LBB0_8:
	and	w9, w20, #0xff
	stp	w8, w9, [sp, #56]
	ldr	w8, [sp, #52]
	str	w8, [sp, #64]
	ldr	w8, [sp, #48]
LBB0_9:
	str	w8, [sp, #68]
	str	w20, [x24]
	ldr	x8, [x21, #80]
	cbz	x8, LBB0_37
; %bb.10:
	str	wzr, [sp, #28]
	ldr	w11, [x23]
Lloh22:
	adrp	x8, _V4L2_STD_SECAM_L@GOTPAGE
Lloh23:
	ldr	x8, [x8, _V4L2_STD_SECAM_L@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w12, [x25]
	orr	w8, w12, w8
	tst	w8, w11
	cset	w9, ne
	bics	wzr, w11, w8
	cset	w10, eq
Lloh25:
	adrp	x8, _TUNER_TDA9887@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TUNER_TDA9887@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	add	x8, sp, #28
	str	x8, [sp, #32]
	ldr	w8, [x21]
	cmp	w11, w12
	b.ne	LBB0_13
; %bb.11:
	ldr	w11, [x21, #4]
	cmp	w8, w11
	b.ne	LBB0_26
; %bb.12:
	mov	w8, #0
	b	LBB0_27
LBB0_13:
	cbz	w8, LBB0_15
; %bb.14:
Lloh28:
	adrp	x8, _TDA9887_PORT1_ACTIVE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TDA9887_PORT1_ACTIVE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [sp, #28]
LBB0_15:
	ldr	w11, [x21, #8]
	cbz	w11, LBB0_17
LBB0_16:
Lloh31:
	adrp	x11, _TDA9887_PORT2_ACTIVE@GOTPAGE
Lloh32:
	ldr	x11, [x11, _TDA9887_PORT2_ACTIVE@GOTPAGEOFF]
Lloh33:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [sp, #28]
LBB0_17:
	and	w9, w9, w10
	ldr	x10, [x21, #72]
	cbz	x10, LBB0_19
; %bb.18:
Lloh34:
	adrp	x10, _TDA9887_INTERCARRIER@GOTPAGE
Lloh35:
	ldr	x10, [x10, _TDA9887_INTERCARRIER@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [sp, #28]
LBB0_19:
	cmp	w22, #1
	cbz	w9, LBB0_23
; %bb.20:
	b.eq	LBB0_29
; %bb.21:
	cbnz	w22, LBB0_30
; %bb.22:
	ldr	x0, [x21, #64]
	cbnz	x0, LBB0_33
	b	LBB0_30
LBB0_23:
	b.eq	LBB0_31
; %bb.24:
	cbnz	w22, LBB0_32
; %bb.25:
	ldr	x0, [x21, #40]
	cbnz	x0, LBB0_33
	b	LBB0_32
LBB0_26:
Lloh37:
	adrp	x8, _TDA9887_PORT1_ACTIVE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TDA9887_PORT1_ACTIVE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [sp, #28]
LBB0_27:
	ldp	w11, w12, [x21, #8]
	cmp	w11, w12
	b.ne	LBB0_16
	b	LBB0_17
LBB0_28:
	mov	w26, #732
	b	LBB0_2
LBB0_29:
	ldr	x0, [x21, #56]
	cbnz	x0, LBB0_33
LBB0_30:
	ldr	x0, [x21, #48]
	cbnz	x0, LBB0_33
	b	LBB0_34
LBB0_31:
	ldr	x0, [x21, #32]
	cbnz	x0, LBB0_33
LBB0_32:
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_34
LBB0_33:
	bl	_TDA9887_TOP
	ldr	w8, [sp, #28]
	orr	w8, w8, w0
	str	w8, [sp, #28]
LBB0_34:
	ldr	x9, [x21, #16]
	cbz	x9, LBB0_36
; %bb.35:
Lloh40:
	adrp	x9, _TDA9887_GATING_18@GOTPAGE
Lloh41:
	ldr	x9, [x9, _TDA9887_GATING_18@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #28]
LBB0_36:
	ldr	w0, [x24, #4]
Lloh43:
	adrp	x8, _TUNER_SET_CONFIG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TUNER_SET_CONFIG@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	add	x2, sp, #32
	bl	_i2c_clients_command
LBB0_37:
	ldp	w1, w2, [sp, #56]
	ldp	w3, w4, [sp, #64]
Lloh46:
	adrp	x0, l_.str.1@PAGE
Lloh47:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tuner_dbg
	add	x0, x24, #4
	add	x1, sp, #56
	mov	w2, #4
	bl	_tuner_i2c_xfer_send
	cmp	w0, #4
	b.eq	LBB0_39
; %bb.38:
	mov	x1, x0
Lloh48:
	adrp	x0, l_.str.2@PAGE
Lloh49:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tuner_warn
LBB0_39:
	ldp	w4, w3, [sp, #48]
	add	x1, sp, #56
	mov	x0, x19
	mov	x2, x20
	bl	_simple_post_tune
	ldr	x8, [sp, #72]
Lloh50:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh51:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.40:
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_NTSC_M_JP,4,2         ; @V4L2_STD_NTSC_M_JP
	.comm	_TUNER_PARAM_TYPE_NTSC,4,2      ; @TUNER_PARAM_TYPE_NTSC
	.comm	_V4L2_STD_MN,4,2                ; @V4L2_STD_MN
	.comm	_V4L2_STD_SECAM_LC,4,2          ; @V4L2_STD_SECAM_LC
	.comm	_TUNER_PARAM_TYPE_SECAM,4,2     ; @TUNER_PARAM_TYPE_SECAM
	.comm	_TUNER_PARAM_TYPE_PAL,4,2       ; @TUNER_PARAM_TYPE_PAL
	.comm	_offset,4,2                     ; @offset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freq= %d.%02d MHz, V_IF=%d.%02d MHz, Offset=%d.%02d MHz, div=%0d\n"

	.comm	_V4L2_STD_SECAM_L,4,2           ; @V4L2_STD_SECAM_L
	.comm	_TUNER_TDA9887,4,2              ; @TUNER_TDA9887
	.comm	_TDA9887_PORT1_ACTIVE,4,2       ; @TDA9887_PORT1_ACTIVE
	.comm	_TDA9887_PORT2_ACTIVE,4,2       ; @TDA9887_PORT2_ACTIVE
	.comm	_TDA9887_INTERCARRIER,4,2       ; @TDA9887_INTERCARRIER
	.comm	_TDA9887_GATING_18,4,2          ; @TDA9887_GATING_18
	.comm	_TUNER_SET_CONFIG,4,2           ; @TUNER_SET_CONFIG
l_.str.1:                               ; @.str.1
	.asciz	"tv 0x%02x 0x%02x 0x%02x 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"i2c i/o error: rc == %d (should be 4)\n"

	.no_dead_strip	_simple_set_tv_freq
.subsections_via_symbols
