	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg2161_read_snr
_lg2161_read_snr:                       ## @lg2161_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movl	$0, (%rsi)
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$770, %esi                      ## imm = 0x302
	callq	_lg216x_read_reg
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$771, %esi                      ## imm = 0x303
	callq	_lg216x_read_reg
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_lg_fail
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movl	-32(%rbp), %ecx
	xorl	%edx, %edx
	cmpl	$186, %ecx
	je	LBB0_5
## %bb.3:
	movl	-28(%rbp), %eax
	cmpl	$253, %eax
	je	LBB0_5
## %bb.4:
	movl	%ecx, %edx
	sarl	$4, %edx
	imull	$100, %edx, %edx
	andl	$15, %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rdx,%rcx,2), %ecx
	andl	$15, %eax
	addl	%ecx, %eax
	movl	%eax, %edx
LBB0_5:
	movl	%edx, (%r14)
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lg2161_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg2161_read_snr
_lg2161_read_snr:                       ; @lg2161_read_snr
	.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
	mov	x19, x1
	ldr	x21, [x0]
	str	wzr, [x1]
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #770
	bl	_lg216x_read_reg
	mov	x20, x0
	bl	_lg_fail
	cbnz	x0, LBB0_6
; %bb.1:
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #771
	bl	_lg216x_read_reg
	mov	x20, x0
	bl	_lg_fail
	cbnz	x0, LBB0_6
; %bb.2:
	mov	w8, #0
	ldr	w9, [sp, #12]
	cmp	w9, #186
	b.eq	LBB0_5
; %bb.3:
	ldr	w10, [sp, #8]
	cmp	w10, #253
	b.eq	LBB0_5
; %bb.4:
	asr	w8, w9, #4
	mov	w11, #100
	and	w9, w9, #0xf
	mov	w12, #10
	mul	w9, w9, w12
	madd	w8, w8, w11, w9
	and	w9, w10, #0xf
	add	w8, w8, w9
LBB0_5:
	str	w8, [x19]
LBB0_6:
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lg2161_read_snr
.subsections_via_symbols
