	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_signal_to_noise
_get_signal_to_noise:                   ## @get_signal_to_noise
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, (%rsi)
	cmpl	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_RCVMODE_DVBS2@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	cmpq	(%rax), %rcx
	movq	_s1_sn_lookup@GOTPCREL(%rip), %r15
	cmoveq	_s2_sn_lookup@GOTPCREL(%rip), %r15
	movq	_RSTV0910_P2_NNOSDATAT1@GOTPCREL(%rip), %rax
	cmoveq	_RSTV0910_P2_NNOSPLHT1@GOTPCREL(%rip), %rax
	movq	_RSTV0910_P2_NNOSDATAT0@GOTPCREL(%rip), %r12
	cmoveq	_RSTV0910_P2_NNOSPLHT0@GOTPCREL(%rip), %r12
	movq	8(%rdi), %rsi
	addq	(%rax), %rsi
	leaq	-40(%rbp), %rdx
	callq	_read_reg
	movq	8(%rbx), %rsi
	addq	(%r12), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_read_reg
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	movq	(%r15), %rdi
	movl	-40(%rbp), %edx
	shll	$8, %edx
	orl	-48(%rbp), %edx
	movl	%eax, %esi
	callq	_table_lookup
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RCVMODE_DVBS2,8,3              ## @RCVMODE_DVBS2
	.comm	_RSTV0910_P2_NNOSPLHT1,8,3      ## @RSTV0910_P2_NNOSPLHT1
	.comm	_RSTV0910_P2_NNOSPLHT0,8,3      ## @RSTV0910_P2_NNOSPLHT0
	.comm	_s2_sn_lookup,8,3               ## @s2_sn_lookup
	.comm	_RSTV0910_P2_NNOSDATAT1,8,3     ## @RSTV0910_P2_NNOSDATAT1
	.comm	_RSTV0910_P2_NNOSDATAT0,8,3     ## @RSTV0910_P2_NNOSDATAT0
	.comm	_s1_sn_lookup,8,3               ## @s1_sn_lookup
	.no_dead_strip	_get_signal_to_noise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_signal_to_noise
_get_signal_to_noise:                   ; @get_signal_to_noise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	str	wzr, [x1]
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _RCVMODE_DVBS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCVMODE_DVBS2@GOTPAGEOFF]
Lloh2:
	adrp	x9, _s1_sn_lookup@GOTPAGE
Lloh3:
	ldr	x9, [x9, _s1_sn_lookup@GOTPAGEOFF]
Lloh4:
	adrp	x10, _s2_sn_lookup@GOTPAGE
Lloh5:
	ldr	x10, [x10, _s2_sn_lookup@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x11, _RSTV0910_P2_NNOSPLHT1@GOTPAGE
Lloh8:
	ldr	x11, [x11, _RSTV0910_P2_NNOSPLHT1@GOTPAGEOFF]
	ldp	x12, x13, [x0]
	cmp	x12, x8
	csel	x21, x10, x9, eq
Lloh9:
	adrp	x8, _RSTV0910_P2_NNOSDATAT1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSTV0910_P2_NNOSDATAT1@GOTPAGEOFF]
	csel	x8, x11, x8, eq
	ldr	x8, [x8]
	add	x1, x13, x8
Lloh11:
	adrp	x8, _RSTV0910_P2_NNOSPLHT0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RSTV0910_P2_NNOSPLHT0@GOTPAGEOFF]
Lloh13:
	adrp	x9, _RSTV0910_P2_NNOSDATAT0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RSTV0910_P2_NNOSDATAT0@GOTPAGEOFF]
	csel	x22, x8, x9, eq
	mov	x2, sp
	bl	_read_reg
	ldr	x8, [x22]
	ldr	x9, [x20, #8]
	add	x1, x9, x8
	add	x2, sp, #8
	mov	x0, x20
	bl	_read_reg
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x0, [x21]
	ldr	w8, [sp]
	ldr	w9, [sp, #8]
	orr	w2, w9, w8, lsl #8
	bl	_table_lookup
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RCVMODE_DVBS2,8,3              ; @RCVMODE_DVBS2
	.comm	_RSTV0910_P2_NNOSPLHT1,8,3      ; @RSTV0910_P2_NNOSPLHT1
	.comm	_RSTV0910_P2_NNOSPLHT0,8,3      ; @RSTV0910_P2_NNOSPLHT0
	.comm	_s2_sn_lookup,8,3               ; @s2_sn_lookup
	.comm	_RSTV0910_P2_NNOSDATAT1,8,3     ; @RSTV0910_P2_NNOSDATAT1
	.comm	_RSTV0910_P2_NNOSDATAT0,8,3     ; @RSTV0910_P2_NNOSDATAT0
	.comm	_s1_sn_lookup,8,3               ; @s1_sn_lookup
	.no_dead_strip	_get_signal_to_noise
.subsections_via_symbols
