	.file	"extr_dib7000p.c_dib7000p_read_snr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dib7000p_read_snr, @function
dib7000p_read_snr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR [rdi]
	mov	rbx, rsi
	mov	esi, 479
	mov	rdi, r12
	call	dib7000p_read_word@PLT
	mov	rdi, r12
	mov	esi, 480
	mov	r13d, eax
	lea	ebp, 0[0+rax*4]
	call	dib7000p_read_word@PLT
	and	ebp, 60
	sar	r13d, 4
	mov	r12d, eax
	mov	r14d, eax
	mov	ecx, eax
	movzx	r13d, r13b
	sar	r12d, 14
	and	r12d, 3
	or	r12d, ebp
	and	ebp, 32
	lea	edx, -64[r12]
	cmovne	r12d, edx
	mov	edx, eax
	and	r14d, 63
	or	ecx, -64
	sar	edx, 6
	test	al, 32
	cmovne	r14d, ecx
	and	edx, 255
	je	.L4
	mov	edi, 2
	mov	ebp, edx
	call	intlog10@PLT
	mov	edi, ebp
	imul	r14d, eax
	call	intlog10@PLT
	mov	edi, 2
	add	r14d, eax
	lea	edx, [r14+r14*4]
	lea	ebp, [rdx+rdx]
	test	r13d, r13d
	je	.L6
.L14:
	call	intlog10@PLT
	mov	edi, r13d
	imul	r12d, eax
	call	intlog10@PLT
	mov	edx, ebp
	add	r12d, eax
	lea	eax, [r12+r12*4]
	add	eax, eax
	sub	edx, eax
.L7:
	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 [rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, 2
	call	intlog10@PLT
	mov	edi, 2
	imul	r14d, eax
	lea	eax, [r14+r14*4]
	lea	ebp, -100[rax+rax]
	test	r13d, r13d
	jne	.L14
.L6:
	call	intlog10@PLT
	mov	edx, ebp
	imul	r12d, eax
	lea	eax, [r12+r12*4]
	lea	eax, -100[rax+rax]
	sub	edx, eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	dib7000p_read_snr, .-dib7000p_read_snr
	.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_dib7000p.c_dib7000p_read_snr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dib7000p_read_snr, %function
dib7000p_read_snr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [r0]
	mov	r5, r1
	mov	r0, r6
	ldr	r1, .L17
	bl	dib7000p_read_word
	mov	r1, #480
	mov	r4, r0
	mov	r0, r6
	bl	dib7000p_read_word
	asr	r7, r4, #4
	lsl	r4, r4, #2
	and	r4, r4, #60
	lsl	r8, r0, #16
	tst	r4, #32
	orr	r8, r4, r8, lsr #30
	asr	r9, r0, #6
	and	r4, r0, #63
	subne	r8, r8, #64
	and	r9, r9, #255
	tst	r0, #32
	subne	r4, r4, #64
	cmp	r9, #0
	mov	r0, #2
	and	r7, r7, #255
	beq	.L4
	bl	intlog10
	mov	r6, r0
	mov	r0, r9
	bl	intlog10
	mul	r4, r6, r4
	add	r0, r0, r4
	add	r0, r0, r0, lsl #2
	cmp	r7, #0
	lsl	r6, r0, #1
	mov	r0, #2
	beq	.L6
.L16:
	bl	intlog10
	mov	r4, r0
	mov	r0, r7
	bl	intlog10
	mul	r4, r8, r4
	add	r0, r0, r4
	add	r0, r0, r0, lsl #2
	sub	r0, r6, r0, lsl #1
.L7:
	ldr	r3, .L17+4
	asr	r2, r0, #31
	smull	r1, r3, r0, r3
	add	r3, r3, r0
	rsb	r3, r2, r3, asr #20
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	bl	intlog10
	mul	r0, r4, r0
	add	r0, r0, r0, lsl #2
	lsl	r0, r0, #1
	cmp	r7, #0
	sub	r6, r0, #100
	mov	r0, #2
	bne	.L16
.L6:
	bl	intlog10
	mul	r0, r8, r0
	add	r0, r0, r0, lsl #2
	lsl	r0, r0, #1
	sub	r3, r0, #100
	sub	r0, r6, r3
	b	.L7
.L18:
	.align	2
.L17:
	.word	479
	.word	-1610611775
	.size	dib7000p_read_snr, .-dib7000p_read_snr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
