	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8821ae_dm_refresh_rate_adaptive_mask
_rtl8821ae_dm_refresh_rate_adaptive_mask: ## @rtl8821ae_dm_refresh_rate_adaptive_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	32(%rbx), %r14
	movq	40(%rbx), %r15
	movq	%r13, %rdi
	callq	_is_hal_stop
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_COMP_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
LBB0_2:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_3:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpl	$0, 16(%rbx)
	je	LBB0_4
## %bb.5:
	movq	(%r13), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.6:
	movq	%r13, %rdx
	movq	8(%r13), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.7:
	movl	24(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.9:
	addq	$5, %r14
	jmp	LBB0_11
LBB0_4:
	movq	_COMP_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_2
LBB0_10:
	addq	$5, %r14
	addq	$5, %r15
LBB0_11:
	movq	8(%rbx), %r8
	cmpq	%r14, %r8
	jle	LBB0_13
## %bb.12:
	movq	_DM_RATR_STA_HIGH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	jmp	LBB0_16
LBB0_13:
	cmpq	%r15, %r8
	jle	LBB0_15
## %bb.14:
	movl	$128, 28(%rbx)
	movl	$128, %ecx
	jmp	LBB0_16
LBB0_15:
	movl	$129, 28(%rbx)
	movl	$129, %ecx
LBB0_16:
	cmpl	%ecx, %eax
	je	LBB0_20
## %bb.17:
	movq	_COMP_RATE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	movq	%rdx, %r13
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r15), %esi
	movl	(%r14), %edx
	movl	28(%rbx), %r8d
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r15), %esi
	movl	(%r14), %edx
	movl	24(%rbx), %r8d
	movl	28(%rbx), %r9d
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	16(%r13), %esi
	movq	%r12, %rdi
	callq	_rtl_find_sta
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	(%rbx), %rcx
	movq	(%rcx), %r8
	movl	28(%rbx), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$1, %ecx
	callq	*(%r8)
LBB0_19:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movl	28(%rbx), %eax
	movl	%eax, 24(%rbx)
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_RATE,4,2                  ## @COMP_RATE
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver is going to unload\n"

L_.str.1:                               ## @.str.1
	.asciz	"driver does not control rate adaptive mask\n"

	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_DM_RATR_STA_HIGH,4,2           ## @DM_RATR_STA_HIGH
L_.str.2:                               ## @.str.2
	.asciz	"RSSI = %ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"RSSI_LEVEL = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"PreState = %d, CurState = %d\n"

	.no_dead_strip	_rtl8821ae_dm_refresh_rate_adaptive_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8821ae_dm_refresh_rate_adaptive_mask
_rtl8821ae_dm_refresh_rate_adaptive_mask: ; @rtl8821ae_dm_refresh_rate_adaptive_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	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
	ldp	x24, x23, [x19, #32]
	mov	x0, x22
	bl	_is_hal_stop
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _COMP_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_RT_TRACE
LBB0_3:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.5:
	ldr	x8, [x21, #8]
Lloh11:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.6:
	ldr	w9, [x19, #24]
	add	x8, x24, #5
	add	x10, x23, #5
	cmp	w9, #128
	csel	x11, x24, x8, ne
	cmp	w9, #129
	csel	x11, x8, x11, eq
	csel	x10, x10, x23, eq
	ldr	x8, [x19, #8]
	cmp	x8, x11
	b.le	LBB0_9
; %bb.7:
Lloh14:
	adrp	x10, _DM_RATR_STA_HIGH@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DM_RATR_STA_HIGH@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	b	LBB0_12
LBB0_8:
Lloh17:
	adrp	x8, _COMP_RATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _COMP_RATE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x3, l_.str.1@PAGE
Lloh24:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_9:
	cmp	x8, x10
	b.le	LBB0_11
; %bb.10:
	mov	w10, #128
	b	LBB0_12
LBB0_11:
	mov	w10, #129
LBB0_12:
	str	w10, [x19, #28]
	cmp	w9, w10
	b.eq	LBB0_16
; %bb.13:
Lloh25:
	adrp	x22, _COMP_RATE@GOTPAGE
Lloh26:
	ldr	x22, [x22, _COMP_RATE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh27:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh28:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
	str	x8, [sp]
Lloh29:
	adrp	x3, l_.str.2@PAGE
Lloh30:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	w8, [x19, #28]
	str	x8, [sp]
Lloh31:
	adrp	x3, l_.str.3@PAGE
Lloh32:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldp	w8, w9, [x19, #24]
	stp	x8, x9, [sp]
Lloh33:
	adrp	x3, l_.str.4@PAGE
Lloh34:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	bl	_rcu_read_lock
	ldr	w1, [x21, #16]
	mov	x0, x20
	bl	_rtl_find_sta
	cbz	x0, LBB0_15
; %bb.14:
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w2, [x19, #28]
	mov	x0, x20
	mov	w3, #1
	blr	x8
LBB0_15:
	bl	_rcu_read_unlock
	ldr	w8, [x19, #28]
	str	w8, [x19, #24]
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_RATE,4,2                  ; @COMP_RATE
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver is going to unload\n"

l_.str.1:                               ; @.str.1
	.asciz	"driver does not control rate adaptive mask\n"

	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_DM_RATR_STA_HIGH,4,2           ; @DM_RATR_STA_HIGH
l_.str.2:                               ; @.str.2
	.asciz	"RSSI = %ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"RSSI_LEVEL = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"PreState = %d, CurState = %d\n"

	.no_dead_strip	_rtl8821ae_dm_refresh_rate_adaptive_mask
.subsections_via_symbols
