	.file	"extr_av7110.c_alps_tdlb7_tuner_set_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alps_tdlb7_tuner_set_params, @function
alps_tdlb7_tuner_set_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 64
	.cfi_def_cfa_offset 80
	mov	ecx, DWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	lea	edx, 36200000[rcx]
	mov	rbp, QWORD PTR [rax]
	lea	rax, 32[rsp]
	mov	DWORD PTR [rsp], 96
	mov	QWORD PTR 8[rsp], rax
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 211107077
	mov	DWORD PTR 40[rsp], 133
	mov	QWORD PTR 16[rsp], 16
	sar	rax, 45
	sub	eax, edx
	cmp	ecx, 782000001
	mov	edx, 64
	mov	ecx, 128
	cmovge	edx, ecx
	mov	ecx, eax
	and	eax, 255
	mov	DWORD PTR 36[rsp], eax
	sar	ecx, 8
	mov	rax, QWORD PTR [rdi]
	and	ecx, 127
	mov	DWORD PTR 44[rsp], edx
	mov	DWORD PTR 32[rsp], ecx
	test	rax, rax
	je	.L3
	mov	esi, 1
	call	rax
.L3:
	mov	rsi, rsp
	mov	edx, 1
	mov	rdi, rbp
	call	i2c_transfer@PLT
	mov	r8d, eax
	xor	eax, eax
	cmp	r8d, 1
	je	.L1
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	mov	rsi, QWORD PTR 56[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L14
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	alps_tdlb7_tuner_set_params, .-alps_tdlb7_tuner_set_params
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_av7110.c_alps_tdlb7_tuner_set_params.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alps_tdlb7_tuner_set_params, %function
alps_tdlb7_tuner_set_params:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r1]
	ldr	r7, .L14
	mov	ip, #0
	cmp	r4, r7
	movle	r7, #64
	movgt	r7, #128
	mov	r6, #96
	mov	lr, #16
	mov	r1, #133
	ldr	r5, .L14+4
	sub	sp, sp, #40
	ldr	r3, .L14+8
	ldr	r5, [r5]
	str	r5, [sp, #36]
	mov	r5,#0
	ldr	r5, .L14+12
	add	r3, r4, r3
	smull	r4, r5, r3, r5
	asr	r3, r3, #31
	rsb	r3, r3, r5, asr #13
	ldr	r8, [r0, #4]
	ldr	r4, [r0]
	asr	r2, r3, #8
	and	r3, r3, #255
	ldr	r5, [r8]
	and	r2, r2, #127
	str	r3, [sp, #24]
	cmp	r4, ip
	add	r3, sp, #20
	str	r7, [sp, #32]
	str	r2, [sp, #20]
	str	r6, [sp, #4]
	str	lr, [sp, #12]
	str	ip, [sp, #16]
	str	r1, [sp, #28]
	str	r3, [sp, #8]
	beq	.L3
	mov	r1, #1
	blx	r4
.L3:
	mov	r2, #1
	mov	r0, r5
	add	r1, sp, #4
	bl	i2c_transfer
	cmp	r0, #1
	ldrne	r3, .L14+16
	moveq	r0, #0
	ldrne	r0, [r3]
	ldr	r3, .L14+4
	rsbne	r0, r0, #0
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	782000000
	.word	.LC0
	.word	36200000
	.word	211107077
	.word	EIO
	.size	alps_tdlb7_tuner_set_params, .-alps_tdlb7_tuner_set_params
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
