	.file	"extr_va1j5jf8007s.c_va1j5jf8007s_read_snr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	va1j5jf8007s_read_snr, @function
va1j5jf8007s_read_snr:
.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
	mov	r12d, 188
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	r13, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rsi
	lea	r14, 24[rsp]
	lea	rbx, 32[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[r13]
	mov	r15d, DWORD PTR [rax]
	lea	rax, 28[rsp]
	mov	QWORD PTR [rsp], rax
.L4:
	mov	rax, QWORD PTR I2C_M_RD[rip]
	mov	edi, DWORD PTR 0[r13]
	mov	edx, 2
	mov	rsi, rbx
	mov	DWORD PTR 24[rsp], r12d
	mov	QWORD PTR 72[rsp], rax
	mov	rax, QWORD PTR [rsp]
	mov	DWORD PTR 32[rsp], r15d
	mov	QWORD PTR 48[rsp], 0
	mov	DWORD PTR 36[rsp], 4
	mov	QWORD PTR 40[rsp], r14
	mov	DWORD PTR 56[rsp], r15d
	mov	DWORD PTR 60[rsp], 4
	mov	QWORD PTR 64[rsp], rax
	call	i2c_transfer@PLT
	cmp	eax, 2
	jne	.L11
	sal	ebp, 8
	or	ebp, DWORD PTR 28[rsp]
	cmp	r12d, 189
	jne	.L7
	mov	edi, ebp
	xor	r12d, r12d
	sub	edi, 3000
	cmovs	edi, r12d
	sal	edi, 16
	call	int_sqrt@PLT
	mov	edx, 493728301
	sal	eax, 15
	mov	esi, eax
	movsx	rcx, eax
	imul	esi, eax
	imul	rcx, rcx, 1502651351
	sar	esi, 31
	imul	eax, esi
	sar	rcx, 30
	sub	edx, ecx
	mov	ecx, edx
	movsx	rdx, esi
	sar	eax, 31
	imul	rdx, rdx, 1492786348
	cdqe
	imul	rax, rax, 1686412197
	sar	rdx, 28
	add	edx, ecx
	sar	rax, 27
	sub	edx, eax
	mov	eax, edx
	sar	edx, 15
	test	eax, eax
	mov	rax, QWORD PTR 8[rsp]
	cmovns	r12d, edx
	mov	DWORD PTR [rax], r12d
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 88[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L7:
	.cfi_restore_state
	mov	r12d, 189
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR EREMOTEIO[rip]
	neg	eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	va1j5jf8007s_read_snr, .-va1j5jf8007s_read_snr
	.comm	I2C_M_RD,8,8
	.comm	EREMOTEIO,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_va1j5jf8007s.c_va1j5jf8007s_read_snr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	va1j5jf8007s_read_snr, %function
va1j5jf8007s_read_snr:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	sub	sp, sp, #60
	ldr	r2, .L13
	str	r1, [sp, #4]
	ldr	r2, [r2]
	str	r2, [sp, #52]
	mov	r2,#0
	mov	fp, r4
	mov	r5, #188
	mov	r6, #4
	ldr	r8, [r0]
	ldr	r9, .L13+4
	ldr	r3, [r8, #4]
	add	r10, sp, #12
	ldr	r7, [r3]
.L4:
	ldr	r3, [r9]
	ldr	r0, [r8]
	add	ip, sp, #16
	mov	r2, #2
	add	r1, sp, #20
	str	r5, [sp, #12]
	str	r7, [sp, #20]
	str	fp, [sp, #32]
	str	r6, [sp, #24]
	str	r10, [sp, #28]
	str	r7, [sp, #36]
	str	r6, [sp, #40]
	str	ip, [sp, #44]
	str	r3, [sp, #48]
	bl	i2c_transfer
	cmp	r0, #2
	bne	.L11
	ldr	r3, [sp, #16]
	cmp	r5, #189
	orr	r4, r3, r4, lsl #8
	bne	.L7
	sub	r4, r4, #2992
	sub	r4, r4, #8
	bic	r4, r4, r4, asr #31
	lsl	r0, r4, #16
	bl	int_sqrt
	lsl	r0, r0, #15
	mul	r3, r0, r0
	asr	r3, r3, #31
	mul	r2, r3, r0
	ldr	r1, .L13+8
	ldr	ip, .L13+12
	smull	r4, r5, r0, r1
	sub	r1, r1, #9830400
	sub	r1, r1, #34560
	sub	r1, r1, #43
	asr	r2, r2, #31
	smull	r6, r7, r3, r1
	smull	r0, r1, r2, ip
	ldr	r3, .L13+16
	lsr	r2, r0, #27
	lsr	r0, r4, #30
	orr	r2, r2, r1, lsl #5
	orr	r0, r0, r5, lsl #2
	lsr	r1, r6, #28
	sub	r3, r3, r0
	orr	r1, r1, r7, lsl #4
	add	r3, r3, r1
	subs	r3, r3, r2
	movmi	r3, #0
	mov	r0, #0
	ldr	r2, [sp, #4]
	asrpl	r3, r3, #15
	str	r3, [r2]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r5, #189
	b	.L4
.L11:
	ldr	r3, .L13+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	I2C_M_RD
	.word	1502651351
	.word	1686412197
	.word	493728301
	.word	EREMOTEIO
	.size	va1j5jf8007s_read_snr, .-va1j5jf8007s_read_snr
	.comm	I2C_M_RD,4,4
	.comm	EREMOTEIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
