	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts2020_read_signal_strength
_ts2020_read_signal_strength:           ## @ts2020_read_signal_strength
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	callq	_ts2020_stat_work
LBB0_2:
	movq	8(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_10
## %bb.3:
	movl	8(%rcx), %edi
	xorl	%eax, %eax
	cmpl	$-85000, %edi                   ## imm = 0xFFFEB3F8
	jl	LBB0_9
## %bb.4:
	cmpl	$-65001, %edi                   ## imm = 0xFFFF0217
	jg	LBB0_6
## %bb.5:
	leal	(%rdi,%rdi,2), %edi
	addl	$255000, %edi                   ## imm = 0x3E418
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_div64_s64
	jmp	LBB0_9
LBB0_6:
	cmpl	$-45001, %edi                   ## imm = 0xFFFF5037
	jg	LBB0_8
## %bb.7:
	leal	(%rdi,%rdi,2), %edi
	addl	$195000, %edi                   ## imm = 0x2F9B8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_div64_s64
	addl	$60, %eax
	jmp	LBB0_9
LBB0_8:
	addl	$45000, %edi                    ## imm = 0xAFC8
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$5000, %esi                     ## imm = 0x1388
	callq	_div64_s64
	addl	$90, %eax
LBB0_9:
	movl	%eax, %ecx
	shll	$16, %ecx
	subl	%eax, %ecx
	imulq	$1374389535, %rcx, %rax         ## imm = 0x51EB851F
	shrq	$37, %rax
LBB0_10:
	movl	%eax, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
	.no_dead_strip	_ts2020_read_signal_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts2020_read_signal_strength
_ts2020_read_signal_strength:           ; @ts2020_read_signal_strength
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_ts2020_stat_work
LBB0_2:
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #0
	b	LBB0_12
LBB0_4:
	ldr	w8, [x8, #8]
	mov	w9, #46072
	movk	w9, #65534, lsl #16
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	mov	w9, #-65001
	cmp	w8, w9
	b.gt	LBB0_8
; %bb.7:
	add	w8, w8, w8, lsl #1
	add	w8, w8, #62, lsl #12            ; =253952
	add	w0, w8, #1048
	mov	w1, #1000
	bl	_div64_s64
	b	LBB0_11
LBB0_8:
	mov	w9, #-45001
	cmp	w8, w9
	b.gt	LBB0_10
; %bb.9:
	add	w8, w8, w8, lsl #1
	add	w8, w8, #47, lsl #12            ; =192512
	add	w0, w8, #2488
	mov	w1, #2000
	bl	_div64_s64
	add	w0, w0, #60
	b	LBB0_11
LBB0_10:
	mov	w9, #45000
	add	w0, w8, w9
	mov	w1, #5000
	bl	_div64_s64
	add	w0, w0, #90
LBB0_11:
	lsl	w8, w0, #16
	sub	w8, w8, w0
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #37
LBB0_12:
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
	.no_dead_strip	_ts2020_read_signal_strength
.subsections_via_symbols
