	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0900_read_signal_strength
_stv0900_read_signal_strength:          ## @stv0900_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %rdi
	movl	(%rax), %edx
	movq	_stv0900_rf@GOTPCREL(%rip), %rsi
	callq	_stv0900_get_rf_level
	imull	$936, %eax, %eax                ## imm = 0x3A8
	addl	$93600, %eax                    ## imm = 0x16DA0
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovlel	%ecx, %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmovbl	%eax, %ecx
	movl	%ecx, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stv0900_rf,4,2                 ## @stv0900_rf
	.no_dead_strip	_stv0900_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 stv0900_read_signal_strength
_stv0900_read_signal_strength:          ; @stv0900_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
	ldr	x8, [x0]
	ldr	x0, [x8, #8]
	ldr	w2, [x8]
Lloh0:
	adrp	x1, _stv0900_rf@GOTPAGE
Lloh1:
	ldr	x1, [x1, _stv0900_rf@GOTPAGEOFF]
	bl	_stv0900_get_rf_level
	mov	w8, #936
	mov	w9, #28064
	movk	w9, #1, lsl #16
	madd	w8, w0, w8, w9
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	mov	w9, #65535
	cmp	w8, w9
	csel	w8, w8, w9, lo
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_stv0900_rf,4,2                 ; @stv0900_rf
	.no_dead_strip	_stv0900_read_signal_strength
.subsections_via_symbols
