	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_dm_refresh_rateadaptive_mask
__rtl92s_dm_refresh_rateadaptive_mask:  ## @_rtl92s_dm_refresh_rateadaptive_mask
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_is_hal_stop
	testq	%rax, %rax
	je	LBB0_1
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 24(%r14)
	je	LBB0_20
## %bb.2:
	movq	%r14, %rdi
	callq	_hal_get_firmwareversion
	cmpl	$61, %eax
	jl	LBB0_5
## %bb.3:
	cmpl	$0, 8(%r14)
	jne	LBB0_5
## %bb.4:
	movq	_FW_CMD_CTRL_DM_BY_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rtl92s_phy_set_fw_cmd
	movl	$1, 8(%r14)
LBB0_5:
	movq	(%r15), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.6:
	movq	8(%r15), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.7:
	movl	32(%r14), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_8
## %bb.9:
	movslq	%ecx, %rsi
	leaq	l_switch.table._rtl92s_dm_refresh_rateadaptive_mask(%rip), %rcx
	movq	(%rcx,%rsi,8), %rcx
	leaq	l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.1(%rip), %rdx
	movq	(%rdx,%rsi,8), %rdx
	leaq	l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.2(%rip), %rdi
	movq	(%rdi,%rsi,8), %rsi
	jmp	LBB0_10
LBB0_8:
	movl	$44, %esi
	movl	$34, %edx
	movl	$24, %ecx
LBB0_10:
	movq	16(%r14), %r8
	cmpq	%rsi, %r8
	jle	LBB0_12
## %bb.11:
	movl	$131, 36(%r14)
	movl	$131, %r9d
	jmp	LBB0_16
LBB0_12:
	cmpq	%rdx, %r8
	jg	LBB0_13
## %bb.14:
	cmpq	%rcx, %r8
	jle	LBB0_15
LBB0_13:
	movl	$130, 36(%r14)
	movl	$130, %r9d
	jmp	LBB0_16
LBB0_15:
	movl	$128, 36(%r14)
	movl	$128, %r9d
LBB0_16:
	cmpl	%r9d, %eax
	je	LBB0_20
## %bb.17:
	movq	_COMP_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	pushq	%r9
	pushq	%rax
	callq	_RT_TRACE
	addq	$16, %rsp
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	16(%r15), %esi
	movq	%r12, %rdi
	callq	_rtl_find_sta
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	(%r14), %rcx
	movq	(%rcx), %rbx
	movl	36(%r14), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	callq	*(%rbx)
LBB0_19:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	36(%r14), %eax
	movl	%eax, 32(%r14)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_CMD_CTRL_DM_BY_DRIVER,4,2   ## @FW_CMD_CTRL_DM_BY_DRIVER
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_COMP_RATE,4,2                  ## @COMP_RATE
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSSI = %ld RSSI_LEVEL = %d PreState = %d, CurState = %d\n"

	.no_dead_strip	__rtl92s_dm_refresh_rateadaptive_mask
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table._rtl92s_dm_refresh_rateadaptive_mask
l_switch.table._rtl92s_dm_refresh_rateadaptive_mask:
	.quad	24                              ## 0x18
	.quad	20                              ## 0x14
	.quad	20                              ## 0x14
	.quad	20                              ## 0x14

	.p2align	3                               ## @switch.table._rtl92s_dm_refresh_rateadaptive_mask.1
l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.1:
	.quad	34                              ## 0x22
	.quad	30                              ## 0x1e
	.quad	34                              ## 0x22
	.quad	30                              ## 0x1e

	.p2align	3                               ## @switch.table._rtl92s_dm_refresh_rateadaptive_mask.2
l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.2:
	.quad	44                              ## 0x2c
	.quad	44                              ## 0x2c
	.quad	44                              ## 0x2c
	.quad	40                              ## 0x28

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_dm_refresh_rateadaptive_mask
__rtl92s_dm_refresh_rateadaptive_mask:  ; @_rtl92s_dm_refresh_rateadaptive_mask
	.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, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	mov	x0, x22
	bl	_is_hal_stop
	cbz	x0, LBB0_2
LBB0_1:
	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_2:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_1
; %bb.3:
	mov	x0, x19
	bl	_hal_get_firmwareversion
	cmp	w0, #61
	b.lt	LBB0_6
; %bb.4:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _FW_CMD_CTRL_DM_BY_DRIVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_CMD_CTRL_DM_BY_DRIVER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rtl92s_phy_set_fw_cmd
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_6:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.7:
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.8:
	ldr	w6, [x19, #32]
	sub	w8, w6, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.9:
	sbfiz	x10, x8, #3, #32
Lloh9:
	adrp	x8, l_switch.table._rtl92s_dm_refresh_rateadaptive_mask@PAGE
Lloh10:
	add	x8, x8, l_switch.table._rtl92s_dm_refresh_rateadaptive_mask@PAGEOFF
	ldr	x8, [x8, x10]
Lloh11:
	adrp	x9, l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.1@PAGE
Lloh12:
	add	x9, x9, l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.1@PAGEOFF
	ldr	x9, [x9, x10]
Lloh13:
	adrp	x11, l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.2@PAGE
Lloh14:
	add	x11, x11, l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.2@PAGEOFF
	ldr	x10, [x11, x10]
	b	LBB0_11
LBB0_10:
	mov	w10, #44
	mov	w9, #34
	mov	w8, #24
LBB0_11:
	ldr	x4, [x19, #16]
	cmp	x4, x10
	b.le	LBB0_13
; %bb.12:
	mov	w5, #131
	b	LBB0_17
LBB0_13:
	cmp	x4, x9
	b.gt	LBB0_15
; %bb.14:
	cmp	x4, x8
	b.le	LBB0_16
LBB0_15:
	mov	w5, #130
	b	LBB0_17
LBB0_16:
	mov	w5, #128
LBB0_17:
	str	w5, [x19, #36]
	cmp	w6, w5
	b.eq	LBB0_1
; %bb.18:
Lloh15:
	adrp	x8, _COMP_RATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _COMP_RATE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x7, x5
	bl	_RT_TRACE
	bl	_rcu_read_lock
	ldr	w1, [x21, #16]
	mov	x0, x20
	bl	_rtl_find_sta
	cbz	x0, LBB0_20
; %bb.19:
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x19, #36]
	mov	x0, x20
	mov	w3, #1
	blr	x8
LBB0_20:
	bl	_rcu_read_unlock
	ldr	w8, [x19, #36]
	str	w8, [x19, #32]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_CMD_CTRL_DM_BY_DRIVER,4,2   ; @FW_CMD_CTRL_DM_BY_DRIVER
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_COMP_RATE,4,2                  ; @COMP_RATE
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSSI = %ld RSSI_LEVEL = %d PreState = %d, CurState = %d\n"

	.no_dead_strip	__rtl92s_dm_refresh_rateadaptive_mask
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table._rtl92s_dm_refresh_rateadaptive_mask
l_switch.table._rtl92s_dm_refresh_rateadaptive_mask:
	.quad	24                              ; 0x18
	.quad	20                              ; 0x14
	.quad	20                              ; 0x14
	.quad	20                              ; 0x14

	.p2align	3                               ; @switch.table._rtl92s_dm_refresh_rateadaptive_mask.1
l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.1:
	.quad	34                              ; 0x22
	.quad	30                              ; 0x1e
	.quad	34                              ; 0x22
	.quad	30                              ; 0x1e

	.p2align	3                               ; @switch.table._rtl92s_dm_refresh_rateadaptive_mask.2
l_switch.table._rtl92s_dm_refresh_rateadaptive_mask.2:
	.quad	44                              ; 0x2c
	.quad	44                              ; 0x2c
	.quad	44                              ; 0x2c
	.quad	40                              ; 0x28

.subsections_via_symbols
