	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_process_ui_rssi
_rtl_process_ui_rssi:                   ## @rtl_process_ui_rssi
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %rbx
	cmpl	$0, 76(%r14)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 72(%r14)
	je	LBB0_16
LBB0_2:
	movl	64(%r14), %eax
	addl	%eax, 84(%rbx)
	incl	80(%rbx)
	movq	48(%rbx), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, 48(%rbx)
	movq	_PHY_RSSI_SLID_WIN_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jae	LBB0_4
## %bb.3:
	movl	72(%rbx), %edi
	movq	56(%rbx), %r8
	movq	64(%rbx), %rsi
	jmp	LBB0_5
LBB0_4:
	movq	%rax, 48(%rbx)
	movq	56(%rbx), %r8
	movq	64(%rbx), %rsi
	movl	72(%rbx), %edi
	subl	(%r8,%rsi,4), %edi
	movq	%rax, %rcx
LBB0_5:
	movl	(%r14), %edx
	addl	%edx, %edi
	movl	%edi, 72(%rbx)
	leaq	1(%rsi), %rdi
	movq	%rdi, 64(%rbx)
	movl	%edx, (%r8,%rsi,4)
	cmpq	%rax, %rdi
	jb	LBB0_7
## %bb.6:
	movq	$0, 64(%rbx)
LBB0_7:
	movslq	72(%rbx), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.9:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_10
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	movslq	%eax, %rsi
	movq	%r15, %rdi
	callq	_rtl_translate_todbm
	movl	%eax, 40(%rbx)
	movl	%eax, 56(%r14)
	cmpq	$0, 48(%r14)
	jne	LBB0_16
## %bb.11:
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	88(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %rax
	jae	LBB0_16
## %bb.12:
	leaq	(,%rax,4), %rsi
	movq	8(%r14), %rdi
	addq	%rsi, %rdi
	movq	40(%r14), %rcx
	addq	%rsi, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %rcx
	addq	%rsi, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %r11
	addq	%rsi, %r11
	movq	24(%rbx), %r15
	addq	%rsi, %r15
	movq	24(%r14), %r12
	addq	%rsi, %r12
	movq	16(%rbx), %r13
	addq	%rsi, %r13
	movq	16(%r14), %r14
	addq	%rsi, %r14
	movq	8(%rbx), %rcx
	addq	%rsi, %rcx
	subq	%rax, -48(%rbp)                 ## 8-byte Folded Spill
	addq	(%rbx), %rsi
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rdi,%rbx,4), %r8d
	xorl	%r9d, %r9d
	cmpl	%edx, %r8d
	setg	%r9b
	movq	_RX_SMOOTH_FACTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	leal	-1(%r10), %eax
	imull	%edx, %eax
	addl	%r8d, %eax
	cltd
	idivl	%r10d
	addl	%eax, %r9d
	movl	%r9d, (%rsi,%rbx,4)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rbx,4)
	movl	(%r11,%rbx,4), %eax
	movl	%eax, (%r15,%rbx,4)
	movl	(%r12,%rbx,4), %eax
	movl	%eax, (%r13,%rbx,4)
	movl	(%r14,%rbx,4), %eax
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rbx,4), %edx
	testl	%edx, %edx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rdi,%rbx,4), %edx
	movl	%edx, (%rsi,%rbx,4)
	jmp	LBB0_15
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_RSSI_SLID_WIN_MAX,8,3      ## @PHY_RSSI_SLID_WIN_MAX
	.comm	_RF90_PATH_A,8,3                ## @RF90_PATH_A
	.comm	_RX_SMOOTH_FACTOR,4,2           ## @RX_SMOOTH_FACTOR
	.no_dead_strip	_rtl_process_ui_rssi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_process_ui_rssi
_rtl_process_ui_rssi:                   ; @rtl_process_ui_rssi
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x21, x0
	bl	_rtl_priv
	mov	x19, x0
	ldr	w8, [x20, #76]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x20, #72]
	cbz	w8, LBB0_13
LBB0_2:
	ldr	w8, [x20, #64]
	ldp	w10, w9, [x19, #80]
	add	w8, w9, w8
	add	w9, w10, #1
	stp	w9, w8, [x19, #80]
	ldr	x10, [x19, #48]
	add	x9, x10, #1
	str	x9, [x19, #48]
Lloh0:
	adrp	x8, _PHY_RSSI_SLID_WIN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_RSSI_SLID_WIN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x10, x8
	b.hs	LBB0_4
; %bb.3:
	ldr	w12, [x19, #72]
	ldp	x10, x11, [x19, #56]
	b	LBB0_5
LBB0_4:
	str	x8, [x19, #48]
	ldp	x10, x11, [x19, #56]
	ldr	w9, [x10, x11, lsl #2]
	ldr	w12, [x19, #72]
	sub	w12, w12, w9
	mov	x9, x8
LBB0_5:
	ldr	w13, [x20]
	add	w12, w12, w13
	str	w12, [x19, #72]
	add	x12, x11, #1
	str	x12, [x19, #64]
	str	w13, [x10, x11, lsl #2]
	cmp	x12, x8
	b.lo	LBB0_7
; %bb.6:
	str	xzr, [x19, #64]
LBB0_7:
	ldrsw	x8, [x19, #72]
	udiv	x8, x8, x9
	sxtw	x1, w8
	mov	x0, x21
	bl	_rtl_translate_todbm
	str	w0, [x19, #40]
	str	w0, [x20, #56]
	ldr	x8, [x20, #48]
	cbnz	x8, LBB0_13
; %bb.8:
Lloh3:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	ldr	x10, [x19, #88]
	cmp	x9, x10
	b.hs	LBB0_13
; %bb.9:
	mov	x8, #0
	ldp	x13, x11, [x20, #32]
	ldp	x14, x12, [x19, #24]
	ldp	x0, x15, [x20, #16]
	ldp	x3, x16, [x19, #8]
	ldr	x17, [x20, #8]
	lsl	x1, x9, #2
	sub	x9, x10, x9
	ldr	x2, [x19]
	add	x10, x17, x1
	add	x11, x11, x1
	add	x12, x12, x1
	add	x13, x13, x1
	add	x14, x14, x1
	add	x15, x15, x1
	add	x16, x16, x1
	add	x17, x0, x1
	add	x0, x3, x1
	add	x1, x2, x1
Lloh6:
	adrp	x2, _RX_SMOOTH_FACTOR@GOTPAGE
Lloh7:
	ldr	x2, [x2, _RX_SMOOTH_FACTOR@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w5, [x10, x3]
	ldr	w6, [x2]
	sub	w7, w6, #1
	cmp	w5, w4
	madd	w4, w7, w4, w5
	sdiv	w4, w4, w6
	cinc	w4, w4, gt
	str	w4, [x1, x3]
	ldr	w4, [x11, x3]
	str	w4, [x12, x3]
	ldr	w4, [x13, x3]
	str	w4, [x14, x3]
	ldr	w4, [x15, x3]
	str	w4, [x16, x3]
	ldr	w4, [x17, x3]
	str	w4, [x0, x3]
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x1, x8, lsl #2]
	lsl	x3, x8, #2
	cbnz	w4, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w4, [x10, x3]
	str	w4, [x1, x3]
	b	LBB0_10
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_RSSI_SLID_WIN_MAX,8,3      ; @PHY_RSSI_SLID_WIN_MAX
	.comm	_RF90_PATH_A,8,3                ; @RF90_PATH_A
	.comm	_RX_SMOOTH_FACTOR,4,2           ; @RX_SMOOTH_FACTOR
	.no_dead_strip	_rtl_process_ui_rssi
.subsections_via_symbols
