	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxt200x_read_snr
_nxt200x_read_snr:                      ## @nxt200x_read_snr
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rbx
	movl	$0, -40(%rbp)
	leaq	-40(%rbp), %r15
	movq	%rbx, %rdi
	movl	$161, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	callq	_nxt200x_writebytes
	movq	%rbx, %rdi
	movl	$166, %esi
	movq	%r15, %rdx
	movl	$2, %ecx
	callq	_nxt200x_readreg_multibyte
	movl	-40(%rbp), %eax
	shll	$8, %eax
	orl	-36(%rbp), %eax
	cmpl	$254, %eax
	jg	LBB0_2
## %bb.1:
	movl	$255, %ecx
	subl	%eax, %ecx
	imull	$6000, %ecx, %eax               ## imm = 0x1770
	cltq
	imulq	$-2139062143, %rax, %rcx        ## imm = 0x80808081
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	sarl	$7, %ecx
	shrl	$31, %eax
	addl	%ecx, %eax
	addl	$24000, %eax                    ## imm = 0x5DC0
	jmp	LBB0_7
LBB0_2:
	cmpl	$318, %eax                      ## imm = 0x13E
	ja	LBB0_4
## %bb.3:
	movl	$319, %ecx                      ## imm = 0x13F
	subl	%eax, %ecx
	imull	$6000, %ecx, %eax               ## imm = 0x1770
	shrl	$6, %eax
	addl	$18000, %eax                    ## imm = 0x4650
	jmp	LBB0_7
LBB0_4:
	cmpl	$1022, %eax                     ## imm = 0x3FE
	ja	LBB0_6
## %bb.5:
	movl	$1023, %ecx                     ## imm = 0x3FF
	subl	%eax, %ecx
	imull	$6000, %ecx, %ecx               ## imm = 0x1770
	movl	$3123612579, %eax               ## imm = 0xBA2E8BA3
	imulq	%rcx, %rax
	shrq	$41, %rax
	addl	$12000, %eax                    ## imm = 0x2EE0
	jmp	LBB0_7
LBB0_6:
	movl	$32767, %ecx                    ## imm = 0x7FFF
	subl	%eax, %ecx
	imull	$12000, %ecx, %eax              ## imm = 0x2EE0
	cltq
	imulq	$-2078209981, %rax, %rcx        ## imm = 0x84210843
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$14, %eax
	addl	%ecx, %eax
LBB0_7:
	addl	%eax, %eax
	movl	%eax, (%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nxt200x_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nxt200x_read_snr
_nxt200x_read_snr:                      ; @nxt200x_read_snr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x20, [x0]
	str	wzr, [sp]
	mov	x2, sp
	mov	x0, x20
	mov	w1, #161
	mov	w3, #1
	bl	_nxt200x_writebytes
	mov	x2, sp
	mov	x0, x20
	mov	w1, #166
	mov	w3, #2
	bl	_nxt200x_readreg_multibyte
	ldp	w8, w9, [sp]
	orr	w8, w9, w8, lsl #8
	cmp	w8, #254
	b.gt	LBB0_2
; %bb.1:
	mov	w9, #255
	sub	w8, w9, w8
	mov	w9, #6000
	mul	w8, w8, w9
	mov	w9, #32897
	movk	w9, #32896, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #7
	add	w8, w9, w8, lsr #31
	mov	w9, #24000
	add	w8, w8, w9
	b	LBB0_3
LBB0_2:
	mov	w9, #32767
	sub	w9, w9, w8
	mov	w10, #12000
	mul	w9, w9, w10
	mov	w11, #2115
	movk	w11, #33825, lsl #16
	smull	x11, w9, w11
	lsr	x11, x11, #32
	add	w9, w11, w9
	asr	w11, w9, #14
	add	w9, w11, w9, lsr #31
	mov	w11, #1023
	sub	w11, w11, w8
	mov	w12, #6000
	mul	w11, w11, w12
	mov	w13, #35747
	movk	w13, #47662, lsl #16
	umull	x11, w11, w13
	lsr	x11, x11, #41
	add	w10, w11, w10
	cmp	w8, #1022
	csel	w9, w9, w10, hi
	mov	w10, #319
	sub	w10, w10, w8
	mul	w10, w10, w12
	mov	w11, #18000
	add	w10, w11, w10, lsr #6
	cmp	w8, #318
	csel	w8, w9, w10, hi
LBB0_3:
	lsl	w8, w8, #1
	str	w8, [x19]
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nxt200x_read_snr
.subsections_via_symbols
