	.file	"extr_xc5000.c_xc5000_set_params.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Unable to load firmware and init tuner\n"
	.text
	.p2align 4
	.type	xc5000_set_params, @function
xc5000_set_params:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	esi, esi
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	call	xc_load_fw_and_init_tuner@PLT
	test	rax, rax
	jne	.L9
	mov	eax, DWORD PTR [rbx]
	cmp	eax, 129
	je	.L4
	cmp	eax, 130
	je	.L5
	xor	r8d, r8d
	cmp	eax, 128
	je	.L10
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	dprintk@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	r8d
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	xc5000_set_radio_freq@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	xc5000_tune_digital@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	xc5000_set_tv_freq@PLT
	.cfi_endproc
.LFE0:
	.size	xc5000_set_params, .-xc5000_set_params
	.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_xc5000.c_xc5000_set_params.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to load firmware and init tuner\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xc5000_set_params, %function
xc5000_set_params:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r1, #0
	mov	r4, r0
	ldr	r5, [r0]
	bl	xc_load_fw_and_init_tuner
	cmp	r0, #0
	bne	.L8
	ldr	r3, [r5]
	cmp	r3, #129
	beq	.L4
	cmp	r3, #130
	beq	.L5
	cmp	r3, #128
	popne	{r4, r5, r6, pc}
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	xc5000_set_radio_freq
.L8:
	ldr	r1, .L9
	mov	r0, #1
	bl	dprintk
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	xc5000_tune_digital
.L5:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	xc5000_set_tv_freq
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	EINVAL
	.size	xc5000_set_params, .-xc5000_set_params
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
