	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92de_process_ui_rssi
__rtl92de_process_ui_rssi:              ## @_rtl92de_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	cmpq	$0, 8(%r15)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 24(%r15)
	je	LBB0_11
LBB0_2:
	incl	40(%rbx)
	movq	8(%rbx), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, 8(%rbx)
	movq	_PHY_RSSI_SLID_WIN_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jae	LBB0_4
## %bb.3:
	movl	32(%rbx), %edi
	movq	16(%rbx), %r8
	movq	24(%rbx), %rsi
	jmp	LBB0_5
LBB0_4:
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %r8
	movq	24(%rbx), %rsi
	movl	32(%rbx), %edi
	subl	(%r8,%rsi,4), %edi
	movq	%rax, %rcx
LBB0_5:
	movl	(%r15), %edx
	addl	%edx, %edi
	movl	%edi, 32(%rbx)
	leaq	1(%rsi), %rdi
	movq	%rdi, 24(%rbx)
	movl	%edx, (%r8,%rsi,4)
	cmpq	%rax, %rdi
	jb	LBB0_7
## %bb.6:
	movq	$0, 24(%rbx)
LBB0_7:
	movslq	32(%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:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	__rtl92de_translate_todbm
	movl	%eax, (%rbx)
	movl	%eax, 20(%r15)
LBB0_11:
	cmpl	$0, 16(%r15)
	je	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl92d_loop_over_paths         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_RSSI_SLID_WIN_MAX,8,3      ## @PHY_RSSI_SLID_WIN_MAX
	.no_dead_strip	__rtl92de_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 _rtl92de_process_ui_rssi
__rtl92de_process_ui_rssi:              ; @_rtl92de_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	x19, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x21, x0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
LBB0_2:
	ldr	w8, [x21, #40]
	add	w8, w8, #1
	str	w8, [x21, #40]
	ldr	x10, [x21, #8]
	add	x9, x10, #1
	str	x9, [x21, #8]
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, [x21, #32]
	ldp	x10, x11, [x21, #16]
	b	LBB0_5
LBB0_4:
	str	x8, [x21, #8]
	ldp	x10, x11, [x21, #16]
	ldr	w9, [x10, x11, lsl #2]
	ldr	w12, [x21, #32]
	sub	w12, w12, w9
	mov	x9, x8
LBB0_5:
	ldr	w13, [x19]
	add	w12, w12, w13
	str	w12, [x21, #32]
	add	x12, x11, #1
	str	x12, [x21, #24]
	str	w13, [x10, x11, lsl #2]
	cmp	x12, x8
	b.lo	LBB0_7
; %bb.6:
	str	xzr, [x21, #24]
LBB0_7:
	ldrsw	x8, [x21, #32]
	udiv	x1, x8, x9
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	__rtl92de_translate_todbm
	str	w0, [x21]
	str	w0, [x19, #20]
LBB0_8:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_10
LBB0_9:
	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
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	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
	b	_rtl92d_loop_over_paths
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_RSSI_SLID_WIN_MAX,8,3      ; @PHY_RSSI_SLID_WIN_MAX
	.no_dead_strip	__rtl92de_process_ui_rssi
.subsections_via_symbols
