	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgs8gxx_read_snr
_lgs8gxx_read_snr:                      ## @lgs8gxx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	movl	$0, (%rsi)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_LGS8GXX_PROD_LGS8G75@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$52, %eax
	movl	$149, %esi
	cmovel	%eax, %esi
	leaq	-12(%rbp), %rdx
	callq	_lgs8gxx_read_reg
	movl	-12(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movl	-12(%rbp), %eax
	shll	$8, %eax
	movl	$65536, %esi                    ## imm = 0x10000
	subl	%eax, %esi
	movl	%esi, (%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_dprintk
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LGS8GXX_PROD_LGS8G75,8,3       ## @LGS8GXX_PROD_LGS8G75
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AVG Noise=0x%02X\n"

L_.str.1:                               ## @.str.1
	.asciz	"snr=0x%x\n"

	.no_dead_strip	_lgs8gxx_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgs8gxx_read_snr
_lgs8gxx_read_snr:                      ; @lgs8gxx_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
	ldr	x0, [x0]
	str	wzr, [x1]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _LGS8GXX_PROD_LGS8G75@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LGS8GXX_PROD_LGS8G75@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #149
	mov	w9, #52
	csel	w1, w9, w8, eq
	add	x2, sp, #12
	bl	_lgs8gxx_read_reg
	ldr	w1, [sp, #12]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w8, [sp, #12]
	mov	w9, #65536
	sub	w1, w9, w8, lsl #8
	str	w1, [x19]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LGS8GXX_PROD_LGS8G75,8,3       ; @LGS8GXX_PROD_LGS8G75
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AVG Noise=0x%02X\n"

l_.str.1:                               ; @.str.1
	.asciz	"snr=0x%x\n"

	.no_dead_strip	_lgs8gxx_read_snr
.subsections_via_symbols
