	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function va1j5jf8007s_read_snr
_va1j5jf8007s_read_snr:                 ## @va1j5jf8007s_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	8(%r15), %rax
	movl	(%rax), %ebx
	movl	$188, -104(%rbp)
	movl	%ebx, -96(%rbp)
	movq	$0, -80(%rbp)
	movl	$4, -92(%rbp)
	leaq	-104(%rbp), %r12
	movq	%r12, -88(%rbp)
	movl	%ebx, -72(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -56(%rbp)
	movl	$4, -68(%rbp)
	leaq	-100(%rbp), %r13
	movq	%r13, -64(%rbp)
	movl	(%r15), %edi
	leaq	-96(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rax
	movl	-100(%rbp), %r12d
	movl	$189, -104(%rbp)
	movl	%ebx, -96(%rbp)
	movq	$0, -80(%rbp)
	movl	$4, -92(%rbp)
	movq	%rax, -88(%rbp)
	movl	%ebx, -72(%rbp)
	movq	(%r14), %rax
	movq	%rax, -56(%rbp)
	movl	$4, -68(%rbp)
	movq	%r13, -64(%rbp)
	movl	(%r15), %edi
	leaq	-96(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.3:
	shll	$8, %r12d
	orl	-100(%rbp), %r12d
	cmpl	$3001, %r12d                    ## imm = 0xBB9
	movl	$3000, %edi                     ## imm = 0xBB8
	cmovgel	%r12d, %edi
	shll	$16, %edi
	addl	$-196608000, %edi               ## imm = 0xF4480000
	callq	_int_sqrt
	shll	$15, %eax
	cltq
	movabsq	$6010605404, %rcx               ## imm = 0x166428F5C
	imulq	%rax, %rcx
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	andq	%rcx, %rax
	movabsq	$2120546905904644096, %rcx      ## imm = 0x1D6DB22D00000000
	subq	%rax, %rcx
	movq	%rcx, %rdx
	sarq	$47, %rdx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmovsl	%eax, %edx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	%edx, (%rcx)
	jmp	LBB0_4
LBB0_1:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_va1j5jf8007s_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function va1j5jf8007s_read_snr
_va1j5jf8007s_read_snr:                 ; @va1j5jf8007s_read_snr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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, #56]
	ldr	x20, [x0]
	ldr	x8, [x20, #8]
	ldr	w21, [x8]
	mov	w8, #188
	stp	w8, w21, [sp, #4]
	mov	w22, #4
	str	w22, [sp, #12]
	add	x23, sp, #4
	stp	x23, xzr, [sp, #16]
Lloh3:
	adrp	x24, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x24, [x24, _I2C_M_RD@GOTPAGEOFF]
	ldr	x8, [x24]
	stp	w21, w22, [sp, #32]
	mov	x25, sp
	stp	x25, x8, [sp, #40]
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
	ldr	w26, [sp]
	mov	w8, #189
	stp	w8, w21, [sp, #4]
	str	w22, [sp, #12]
	stp	x23, xzr, [sp, #16]
	ldr	x8, [x24]
	stp	w21, w22, [sp, #32]
	stp	x25, x8, [sp, #40]
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [sp]
	orr	w8, w8, w26, lsl #8
	mov	w9, #3000
	cmp	w8, #3000
	csel	w8, w8, w9, gt
	mov	w9, #-196608000
	add	w0, w9, w8, lsl #16
	bl	_int_sqrt
	mov	x8, x0
	mov	w0, #0
	lsl	w8, w8, #15
	sxtw	x8, w8
	mov	x9, #36700
	movk	x9, #26178, lsl #16
	movk	x9, #1, lsl #32
	mul	x8, x8, x9
	and	x8, x8, #0xffffffff00000000
	mov	x9, #195906343272448
	movk	x9, #7533, lsl #48
	sub	x8, x9, x8
	asr	x9, x8, #47
	cmp	x8, #0
	csel	w8, wzr, w9, lt
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldr	x8, [sp, #56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_va1j5jf8007s_read_snr
.subsections_via_symbols
