	.file	"extr_dib9000.c_dib9000_read_snr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"could not get the lock\n"
	.text
	.p2align 4
	.type	dib9000_read_snr, @function
dib9000_read_snr:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR [rdi]
	mov	rdi, r13
	call	mutex_lock_interruptible@PLT
	test	rax, rax
	js	.L13
	mov	rdi, rbp
	mov	ebx, 1
	call	dib9000_get_snr@PLT
	cmp	QWORD PTR MAX_NUMBER_OF_FRONTENDS[rip], 1
	mov	ebp, eax
	ja	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	call	dib9000_get_snr@PLT
	add	rbx, 1
	add	ebp, eax
	cmp	QWORD PTR MAX_NUMBER_OF_FRONTENDS[rip], rbx
	jbe	.L5
.L4:
	mov	rax, QWORD PTR 8[r13]
	mov	rdi, QWORD PTR [rax+rbx*8]
	test	rdi, rdi
	jne	.L6
.L5:
	sar	ebp, 16
	jne	.L14
	mov	DWORD PTR [r12], 0
.L8:
	mov	rdi, r13
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.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
.L14:
	.cfi_restore_state
	mov	edi, ebp
	call	intlog10@PLT
	lea	edx, [rax+rax*4]
	add	edx, edx
	movsx	rax, edx
	imul	rax, rax, -1610611775
	shr	rax, 32
	add	eax, edx
	sar	edx, 31
	sar	eax, 20
	sub	eax, edx
	mov	DWORD PTR [r12], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC0[rip]
	call	dprintk@PLT
	mov	eax, DWORD PTR EINTR[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dib9000_read_snr, .-dib9000_read_snr
	.comm	MAX_NUMBER_OF_FRONTENDS,8,8
	.comm	EINTR,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_dib9000.c_dib9000_read_snr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not get the lock\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dib9000_read_snr, %function
dib9000_read_snr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	mov	r4, r0
	mov	r0, r7
	mov	r6, r1
	bl	mutex_lock_interruptible
	cmp	r0, #0
	blt	.L12
	mov	r0, r4
	bl	dib9000_get_snr
	ldr	r8, .L14
	mov	r5, r0
	ldr	r3, [r8]
	cmp	r3, #1
	movhi	r4, #1
	bhi	.L4
	b	.L5
.L6:
	bl	dib9000_get_snr
	ldr	r3, [r8]
	add	r5, r5, r0
	cmp	r3, r4
	bls	.L5
.L4:
	ldr	r3, [r7, #4]
	ldr	r0, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r0, #0
	bne	.L6
.L5:
	asrs	r0, r5, #16
	streq	r0, [r6]
	bne	.L13
.L8:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	bl	intlog10
	ldr	r2, .L14+4
	add	r0, r0, r0, lsl #2
	lsl	r3, r0, #1
	smull	r1, r2, r3, r2
	asr	r1, r3, #31
	add	r3, r2, r3
	rsb	r3, r1, r3, asr #20
	str	r3, [r6]
	b	.L8
.L12:
	ldr	r0, .L14+8
	bl	dprintk
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	MAX_NUMBER_OF_FRONTENDS
	.word	-1610611775
	.word	.LC0
	.word	EINTR
	.size	dib9000_read_snr, .-dib9000_read_snr
	.comm	MAX_NUMBER_OF_FRONTENDS,4,4
	.comm	EINTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
