	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smooth_rssi
_smooth_rssi:                           ## @smooth_rssi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, (%rdi)
	movl	$63, %eax
	movl	$42, %ecx
	cmovel	%eax, %ecx
	movl	8(%rdi), %r8d
	imull	$100, %esi, %eax
	cltd
	idivl	%ecx
	addl	4(%rdi), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	andl	$1, %eax
	sarl	%ecx
	addl	%eax, %ecx
	movl	%ecx, 4(%rdi)
	movq	_IW_QUAL_LEVEL_UPDATED@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	_IW_QUAL_LEVEL_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r8d, %eax
	movl	%eax, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_QUAL_LEVEL_UPDATED,4,2      ## @IW_QUAL_LEVEL_UPDATED
	.comm	_IW_QUAL_LEVEL_INVALID,4,2      ## @IW_QUAL_LEVEL_INVALID
	.no_dead_strip	_smooth_rssi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smooth_rssi
_smooth_rssi:                           ; @smooth_rssi
	.cfi_startproc
; %bb.0:
	ldp	w9, w8, [x0]
	mov	w10, #42
	mov	w11, #63
	cmp	w9, #128
	csel	w9, w11, w10, eq
	mov	w10, #100
	mul	w10, w1, w10
	sdiv	w9, w10, w9
	add	w8, w9, w8
	and	w9, w8, #0x1
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w8, w9, w8, asr #1
Lloh0:
	adrp	x9, _IW_QUAL_LEVEL_UPDATED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_QUAL_LEVEL_UPDATED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x0, #8]
	orr	w9, w10, w9
Lloh3:
	adrp	x10, _IW_QUAL_LEVEL_INVALID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IW_QUAL_LEVEL_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	bic	w9, w9, w10
	stp	w8, w9, [x0, #4]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_QUAL_LEVEL_UPDATED,4,2      ; @IW_QUAL_LEVEL_UPDATED
	.comm	_IW_QUAL_LEVEL_INVALID,4,2      ; @IW_QUAL_LEVEL_INVALID
	.no_dead_strip	_smooth_rssi
.subsections_via_symbols
