	.file	"extr_budget-ci.c_dvbc_philips_tdm1316l_tuner_set_params.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dvbc_philips_tdm1316l_tuner_set_params, @function
dvbc_philips_tdm1316l_tuner_set_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	r12, QWORD PTR [rax]
	lea	rax, 32[rsp]
	mov	QWORD PTR 8[rsp], 20
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR 16[rdi]
	lea	edx, 36125000[rax]
	cmp	edx, 86999999
	jle	.L5
	mov	rbp, rdi
	cmp	edx, 129999999
	jg	.L28
	mov	ecx, 105
.L4:
	lea	edx, 36156250[rax]
	mov	DWORD PTR 40[rsp], 200
	movsx	rax, edx
	sar	edx, 31
	mov	DWORD PTR 44[rsp], ecx
	imul	rax, rax, 1125899907
	mov	DWORD PTR 48[rsp], 128
	sar	rax, 46
	sub	eax, edx
	mov	edx, eax
	and	eax, 255
	mov	DWORD PTR 36[rsp], eax
	mov	rax, QWORD PTR 0[rbp]
	sar	edx, 8
	mov	DWORD PTR 32[rsp], edx
	test	rax, rax
	je	.L6
	mov	esi, 1
	mov	rdi, rbp
	call	rax
.L6:
	mov	r13, rsp
	mov	edx, 1
	mov	rdi, r12
	mov	rsi, r13
	call	i2c_transfer@PLT
	cmp	eax, 1
	je	.L7
.L26:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L29
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	cmp	edx, 159999999
	jle	.L12
	cmp	edx, 199999999
	jle	.L13
	cmp	edx, 289999999
	jle	.L14
	cmp	edx, 419999999
	jle	.L15
	cmp	edx, 479999999
	jle	.L16
	cmp	edx, 619999999
	jle	.L17
	cmp	edx, 829999999
	jle	.L18
	mov	ecx, 236
	cmp	edx, 894999999
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, 50
	call	msleep@PLT
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L8
	mov	esi, 1
	mov	rdi, rbp
	call	rax
.L8:
	mov	edx, 1
	mov	rsi, r13
	mov	rdi, r12
	call	i2c_transfer@PLT
	cmp	eax, 1
	jne	.L26
	mov	edi, 1
	call	msleep@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, 169
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	ecx, 201
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ecx, 106
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	ecx, 170
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	ecx, 202
	jmp	.L4
.L17:
	mov	ecx, 108
	jmp	.L4
.L18:
	mov	ecx, 172
	jmp	.L4
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dvbc_philips_tdm1316l_tuner_set_params, .-dvbc_philips_tdm1316l_tuner_set_params
	.comm	EIO,4,4
	.comm	EINVAL,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_budget-ci.c_dvbc_philips_tdm1316l_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	dvbc_philips_tdm1316l_tuner_set_params, %function
dvbc_philips_tdm1316l_tuner_set_params:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	ip, #20
	mov	r0, #0
	ldr	r3, [r4, #4]
	ldr	lr, .L30
	ldr	r5, [r3]
	sub	sp, sp, #40
	ldr	r1, [r5, #4]
	ldr	r2, [r4, #8]
	ldr	r3, .L30+4
	ldr	lr, [lr]
	str	lr, [sp, #36]
	mov	lr,#0
	str	r1, [sp, #12]
	ldr	r1, .L30+8
	add	r3, r2, r3
	cmp	r3, r1
	add	r1, sp, #16
	str	ip, [sp, #4]
	str	r0, [sp, #8]
	str	r1, [sp]
	blt	.L5
	ldr	r1, .L30+12
	cmp	r3, r1
	bge	.L28
	mov	ip, #105
.L4:
	mov	r0, #200
	mov	r1, #128
	ldr	r3, .L30+16
	str	r0, [sp, #24]
	add	r3, r2, r3
	ldr	r2, .L30+20
	ldr	r6, [r4]
	smull	r0, r2, r3, r2
	asr	r3, r3, #31
	rsb	r3, r3, r2, asr #14
	asr	r2, r3, #8
	cmp	r6, #0
	and	r3, r3, #255
	str	ip, [sp, #28]
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	str	r1, [sp, #32]
	beq	.L6
	mov	r1, #1
	mov	r0, r4
	blx	r6
.L6:
	mov	r1, sp
	mov	r2, #1
	mov	r0, r5
	bl	i2c_transfer
	cmp	r0, #1
	mov	r6, r0
	beq	.L7
.L26:
	ldr	r3, .L30+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L28:
	ldr	r1, .L30+28
	cmp	r3, r1
	ble	.L12
	ldr	r1, .L30+32
	cmp	r3, r1
	ble	.L13
	ldr	r1, .L30+36
	cmp	r3, r1
	blt	.L14
	ldr	r1, .L30+40
	cmp	r3, r1
	ble	.L15
	ldr	r1, .L30+44
	cmp	r3, r1
	ble	.L16
	ldr	r1, .L30+48
	cmp	r3, r1
	ble	.L17
	ldr	r1, .L30+52
	cmp	r3, r1
	ble	.L18
	ldr	r1, .L30+56
	cmp	r3, r1
	movlt	ip, #236
	blt	.L4
.L5:
	ldr	r3, .L30+60
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L7:
	mov	r0, #50
	bl	msleep
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L8
	mov	r1, r6
	mov	r0, r4
	blx	r3
.L8:
	mov	r1, sp
	mov	r0, r5
	mov	r2, #1
	bl	i2c_transfer
	cmp	r0, #1
	bne	.L26
	bl	msleep
	mov	r0, #0
	b	.L1
.L12:
	mov	ip, #169
	b	.L4
.L13:
	mov	ip, #201
	b	.L4
.L14:
	mov	ip, #106
	b	.L4
.L15:
	mov	ip, #170
	b	.L4
.L16:
	mov	ip, #202
	b	.L4
.L17:
	mov	ip, #108
	b	.L4
.L18:
	mov	ip, #172
	b	.L4
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC0
	.word	36125000
	.word	87000000
	.word	130000000
	.word	36156250
	.word	1125899907
	.word	EIO
	.word	159999999
	.word	199999999
	.word	290000000
	.word	419999999
	.word	479999999
	.word	619999999
	.word	829999999
	.word	895000000
	.word	EINVAL
	.size	dvbc_philips_tdm1316l_tuner_set_params, .-dvbc_philips_tdm1316l_tuner_set_params
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
