	.file	"extr_stv0910.c_get_signal_to_noise.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_signal_to_noise, @function
get_signal_to_noise:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rsi], 0
	mov	eax, DWORD PTR 16[rdi]
	test	eax, eax
	je	.L9
	mov	rbx, rsi
	mov	rax, QWORD PTR RCVMODE_DVBS2[rip]
	mov	rsi, QWORD PTR 8[rdi]
	mov	rbp, rdi
	lea	rdx, 16[rsp]
	cmp	QWORD PTR [rdi], rax
	je	.L10
	add	rsi, QWORD PTR RSTV0910_P2_NNOSDATAT1[rip]
	call	read_reg@PLT
	mov	rsi, QWORD PTR RSTV0910_P2_NNOSDATAT0[rip]
	lea	rdx, 8[rsp]
	mov	rdi, rbp
	add	rsi, QWORD PTR 8[rbp]
	call	read_reg@PLT
	mov	rdi, QWORD PTR s1_sn_lookup[rip]
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR s1_sn_lookup[rip]
	mov	esi, eax
.L5:
	mov	edx, DWORD PTR 16[rsp]
	sal	edx, 8
	or	edx, DWORD PTR 8[rsp]
	call	table_lookup@PLT
	mov	DWORD PTR [rbx], eax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	add	rsi, QWORD PTR RSTV0910_P2_NNOSPLHT1[rip]
	call	read_reg@PLT
	mov	rsi, QWORD PTR RSTV0910_P2_NNOSPLHT0[rip]
	lea	rdx, 8[rsp]
	mov	rdi, rbp
	add	rsi, QWORD PTR 8[rbp]
	call	read_reg@PLT
	mov	rdi, QWORD PTR s2_sn_lookup[rip]
	call	ARRAY_SIZE@PLT
	mov	rdi, QWORD PTR s2_sn_lookup[rip]
	mov	esi, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_signal_to_noise, .-get_signal_to_noise
	.comm	s2_sn_lookup,8,8
	.comm	s1_sn_lookup,8,8
	.comm	RSTV0910_P2_NNOSPLHT1,8,8
	.comm	RSTV0910_P2_NNOSPLHT0,8,8
	.comm	RSTV0910_P2_NNOSDATAT1,8,8
	.comm	RSTV0910_P2_NNOSDATAT0,8,8
	.comm	RCVMODE_DVBS2,8,8
	.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_stv0910.c_get_signal_to_noise.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_signal_to_noise, %function
get_signal_to_noise:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	ldr	r2, .L13
	sub	sp, sp, #16
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [r1]
	ldr	r3, [r0, #8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L13+4
	ldr	r2, [r0]
	ldr	r3, [r3]
	mov	r5, r1
	cmp	r2, r3
	mov	r4, r0
	ldr	r1, [r0, #4]
	beq	.L11
	ldr	r3, .L13+8
	add	r2, sp, #8
	ldr	r3, [r3]
	ldr	r6, .L13+12
	add	r1, r1, r3
	bl	read_reg
	ldr	r3, .L13+16
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
.L8:
	add	r1, r1, r3
	add	r2, sp, #4
	mov	r0, r4
	bl	read_reg
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #8]
	mov	r1, r0
	orr	r2, r3, r2, lsl #8
	ldr	r0, [r6]
	bl	table_lookup
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L13+20
	add	r2, sp, #8
	ldr	r3, [r3]
	ldr	r6, .L13+24
	add	r1, r1, r3
	bl	read_reg
	ldr	r3, .L13+28
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	b	.L8
.L10:
	ldr	r3, .L13+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	RCVMODE_DVBS2
	.word	RSTV0910_P2_NNOSDATAT1
	.word	s1_sn_lookup
	.word	RSTV0910_P2_NNOSDATAT0
	.word	RSTV0910_P2_NNOSPLHT1
	.word	s2_sn_lookup
	.word	RSTV0910_P2_NNOSPLHT0
	.word	EINVAL
	.size	get_signal_to_noise, .-get_signal_to_noise
	.comm	s2_sn_lookup,4,4
	.comm	s1_sn_lookup,4,4
	.comm	RSTV0910_P2_NNOSPLHT1,4,4
	.comm	RSTV0910_P2_NNOSPLHT0,4,4
	.comm	RSTV0910_P2_NNOSDATAT1,4,4
	.comm	RSTV0910_P2_NNOSDATAT0,4,4
	.comm	RCVMODE_DVBS2,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
