	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mb86a16_read_snr
_mb86a16_read_snr:                      ## @mb86a16_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rdi
	movl	$0, (%rsi)
	leaq	-40(%rbp), %rdx
	movl	$38, %esi
	callq	_mb86a16_read
	cmpl	$2, %eax
	jne	LBB0_8
## %bb.1:
	movq	_cnr_tab@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movl	$8, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rax
	movq	(%r15), %rdi
	cmpq	-8(%rdi,%r12), %rax
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r12
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_8:
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movl	(%rdi,%r12), %eax
	movl	%eax, (%r14)
LBB0_6:
	movl	(%r14), %r8d
	imull	$100, %r8d, %eax
	movslq	%eax, %r9
	imulq	$-1840700269, %r9, %rax         ## imm = 0x92492493
	shrq	$32, %rax
	addl	%eax, %r9d
	movl	%r9d, %eax
	shrl	$31, %eax
	sarl	$4, %r9d
	addl	%eax, %r9d
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MB86A16_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_dprintk
	addl	$65280, (%r14)                  ## imm = 0xFF00
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_MB86A16_ERROR,4,2              ## @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_cnr_tab,8,3                    ## @cnr_tab
L_.str.1:                               ## @.str.1
	.asciz	"SNR (Quality) = [%d dB], Level=%d %%"

	.no_dead_strip	_mb86a16_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mb86a16_read_snr
_mb86a16_read_snr:                      ; @mb86a16_read_snr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x0, [x0]
	str	wzr, [x1]
	add	x2, sp, #24
	mov	w1, #38
	bl	_mb86a16_read
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.1:
Lloh0:
	adrp	x20, _cnr_tab@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cnr_tab@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x0, [x20]
	ldr	x9, [x0, x21]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	add	x21, x21, #16
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _verbose@GOTPAGE
Lloh3:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _MB86A16_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MB86A16_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh10:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	add	x8, x0, x21
	ldr	w8, [x8, #8]
	str	w8, [x19]
LBB0_7:
	ldr	w8, [x19]
	mov	w9, #100
	mul	w9, w8, w9
	mov	w10, #9363
	movk	w10, #37449, lsl #16
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w9, w10, w9
	asr	w10, w9, #4
	add	w9, w10, w9, lsr #31
Lloh13:
	adrp	x10, _verbose@GOTPAGE
Lloh14:
	ldr	x10, [x10, _verbose@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x10]
Lloh16:
	adrp	x10, _MB86A16_ERROR@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MB86A16_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x10]
	stp	x8, x9, [sp]
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w0, #0
	ldr	w8, [x19]
	mov	w9, #65280
	add	w8, w8, w9
	str	w8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_MB86A16_ERROR,4,2              ; @MB86A16_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C transfer error"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_cnr_tab,8,3                    ; @cnr_tab
l_.str.1:                               ; @.str.1
	.asciz	"SNR (Quality) = [%d dB], Level=%d %%"

	.no_dead_strip	_mb86a16_read_snr
.subsections_via_symbols
