	.file	"extr_pd-dvb.c_poseidon_set_fe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"error line"
	.text
	.p2align 4
	.type	poseidon_set_fe, @function
poseidon_set_fe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	mov	rdi, rbp
	call	in_hibernation@PLT
	test	rax, rax
	je	.L2
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	rdx, QWORD PTR dvb_bandwidth_length[rip]
	test	rdx, rdx
	je	.L12
	mov	rax, QWORD PTR dvb_bandwidth[rip]
	mov	rsi, QWORD PTR 8[rbx]
	mov	r13, -1
	lea	rcx, [rax+rdx*8]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR [rax]
	cmp	rsi, QWORD PTR 8[rdx]
	jne	.L5
	mov	r13, QWORD PTR [rdx]
.L5:
	add	rax, 8
	cmp	rax, rcx
	jne	.L6
.L4:
	mov	edi, DWORD PTR [rbx]
	lea	rdx, 8[rbp]
	mov	rsi, r13
	xor	r12d, r12d
	call	check_scan_ok@PLT
	test	rax, rax
	jne	.L20
.L7:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	movsx	rdx, DWORD PTR [rbx]
	mov	esi, DWORD PTR TUNE_FREQ_SELECT[rip]
	mov	r14, rsp
	mov	rdi, rbp
	mov	rcx, r14
	mov	rax, rdx
	imul	rdx, rdx, 274877907
	sar	eax, 31
	sar	rdx, 38
	sub	edx, eax
	movsx	rdx, edx
	call	send_set_req@PLT
	mov	r15, rax
	or	rax, QWORD PTR [rsp]
	jne	.L17
	mov	esi, DWORD PTR DVBT_BANDW_SEL[rip]
	mov	rcx, r14
	mov	rdx, r13
	mov	rdi, rbp
	call	send_set_req@PLT
	mov	r15, rax
	or	rax, QWORD PTR [rsp]
	jne	.L17
	mov	esi, DWORD PTR TAKE_REQUEST[rip]
	mov	rcx, r14
	xor	edx, edx
	mov	rdi, rbp
	call	send_set_req@PLT
	mov	r14, rax
	or	rax, QWORD PTR [rsp]
	jne	.L21
	lea	rdi, 24[rbp]
	mov	edx, 16
	mov	rsi, rbx
	call	memcpy@PLT
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 8[rbp], r13
	mov	DWORD PTR 16[rbp], eax
	mov	eax, DWORD PTR jiffies[rip]
	mov	DWORD PTR 20[rbp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rdi, .LC0[rip]
	mov	r12d, r15d
	call	log@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r13, -1
	jmp	.L4
.L21:
	lea	rdi, .LC0[rip]
	mov	r12d, r14d
	call	log@PLT
	jmp	.L7
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	poseidon_set_fe, .-poseidon_set_fe
	.comm	jiffies,4,4
	.comm	dvb_bandwidth_length,8,8
	.comm	dvb_bandwidth,8,8
	.comm	TUNE_FREQ_SELECT,4,4
	.comm	TAKE_REQUEST,4,4
	.comm	EBUSY,4,4
	.comm	DVBT_BANDW_SEL,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_pd-dvb.c_poseidon_set_fe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"error line\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	poseidon_set_fe, %function
poseidon_set_fe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r5, [r0]
	ldr	r2, .L23
	sub	sp, sp, #12
	mov	r0, r5
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r4, r1
	str	r3, [sp]
	bl	in_hibernation
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L23+4
	ldr	r7, [r3]
	rsb	r7, r7, #0
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, .L23+8
	mvn	r6, #0
	ldr	ip, [r3]
	cmp	ip, #0
	beq	.L4
	ldr	r3, .L23+12
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	add	ip, r3, ip, lsl #2
	sub	ip, ip, #4
	sub	r3, r3, #4
.L6:
	ldr	r2, [r3, #4]!
	ldr	r0, [r2, #4]
	cmp	r1, r0
	ldreq	r6, [r2]
	cmp	r3, ip
	bne	.L6
.L4:
	mov	r1, r6
	ldr	r0, [r4]
	add	r2, r5, #4
	bl	check_scan_ok
	subs	r7, r0, #0
	bne	.L21
.L7:
	mov	r0, r5
	bl	mutex_unlock
	b	.L1
.L21:
	ldr	r3, [r4]
	ldr	r2, .L23+16
	ldr	r1, .L23+20
	smull	r0, r2, r3, r2
	asr	r3, r3, #31
	rsb	r2, r3, r2, asr #6
	mov	r0, r5
	mov	r3, sp
	ldr	r1, [r1]
	bl	send_set_req
	ldr	r3, [sp]
	mov	r7, r0
	orrs	r3, r0, r3
	bne	.L18
	ldr	r2, .L23+24
	mov	r3, sp
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, r6
	bl	send_set_req
	ldr	r2, [sp]
	mov	r7, r0
	orrs	r2, r0, r2
	bne	.L18
	ldr	r1, .L23+28
	mov	r3, sp
	mov	r0, r5
	ldr	r1, [r1]
	bl	send_set_req
	ldr	r3, [sp]
	mov	r2, r0
	orrs	r7, r0, r3
	bne	.L22
	mov	r2, #8
	mov	r1, r4
	add	r0, r5, #16
	bl	memcpy
	ldr	r3, .L23+32
	ldr	r2, [r4]
	ldr	r3, [r3]
	str	r2, [r5, #8]
	str	r6, [r5, #4]
	str	r3, [r5, #12]
	b	.L7
.L18:
	ldr	r0, .L23+36
	bl	log
	b	.L7
.L22:
	ldr	r0, .L23+36
	mov	r7, r2
	bl	log
	b	.L7
.L20:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	EBUSY
	.word	dvb_bandwidth_length
	.word	dvb_bandwidth
	.word	274877907
	.word	TUNE_FREQ_SELECT
	.word	DVBT_BANDW_SEL
	.word	TAKE_REQUEST
	.word	jiffies
	.word	.LC0
	.size	poseidon_set_fe, .-poseidon_set_fe
	.comm	jiffies,4,4
	.comm	dvb_bandwidth_length,4,4
	.comm	dvb_bandwidth,4,4
	.comm	TUNE_FREQ_SELECT,4,4
	.comm	TAKE_REQUEST,4,4
	.comm	EBUSY,4,4
	.comm	DVBT_BANDW_SEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
