	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8821ae_dm_refresh_basic_rate_mask
_rtl8821ae_dm_refresh_basic_rate_mask:  ## @rtl8821ae_dm_refresh_basic_rate_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	8(%rax), %rdx
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	movl	$0, %ebx
	cmpq	(%rsi), %rdx
	jl	LBB0_3
## %bb.1:
	movl	24(%rax), %edx
	cmpl	$25, %edx
	jge	LBB0_2
## %bb.6:
	movl	$1, %ebx
	cmpl	$1, _rtl8821ae_dm_refresh_basic_rate_mask.stage(%rip)
	je	LBB0_8
## %bb.7:
	movq	_RRSR_1M@GOTPCREL(%rip), %rcx
	movq	_RRSR_2M@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_RRSR_5_5M@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_RRSR_11M@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_RRSR_6M@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	xorl	%ecx, %ecx
	cmpl	16(%rax), %edx
	sete	%cl
	andl	%edx, %ecx
	movl	%ecx, -20(%rbp)
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_HW_VAR_BASIC_RATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%rax)
	jmp	LBB0_8
LBB0_2:
	xorl	%ecx, %ecx
	cmpl	$31, %edx
	setae	%cl
	movl	%ecx, %ebx
	orl	$2, %ebx
LBB0_3:
	movl	_rtl8821ae_dm_refresh_basic_rate_mask.stage(%rip), %edx
	cmpl	%edx, %ebx
	je	LBB0_8
## %bb.4:
	decl	%edx
	cmpl	$2, %edx
	setb	%dl
	andb	%dl, %cl
	cmpb	$1, %cl
	jne	LBB0_8
## %bb.5:
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	movq	_HW_VAR_BASIC_RATE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	addq	$16, %rax
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	*(%rcx)
LBB0_8:
	movl	%ebx, _rtl8821ae_dm_refresh_basic_rate_mask.stage(%rip)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_rtl8821ae_dm_refresh_basic_rate_mask.stage,4,2 ## @rtl8821ae_dm_refresh_basic_rate_mask.stage
	.comm	_RRSR_1M,4,2                    ## @RRSR_1M
	.comm	_RRSR_2M,4,2                    ## @RRSR_2M
	.comm	_RRSR_5_5M,4,2                  ## @RRSR_5_5M
	.comm	_RRSR_11M,4,2                   ## @RRSR_11M
	.comm	_RRSR_6M,4,2                    ## @RRSR_6M
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_HW_VAR_BASIC_RATE,4,2          ## @HW_VAR_BASIC_RATE
	.no_dead_strip	_rtl8821ae_dm_refresh_basic_rate_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_basic_rate_mask
_rtl8821ae_dm_refresh_basic_rate_mask:  ; @rtl8821ae_dm_refresh_basic_rate_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_rtl_priv
	mov	x2, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	adrp	x20, _rtl8821ae_dm_refresh_basic_rate_mask.stage@PAGE
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #0
	mov	w21, #0
	b	LBB0_7
LBB0_2:
	ldr	w8, [x2, #24]
	cmp	w8, #25
	b.ge	LBB0_6
; %bb.3:
	ldr	w8, [x20, _rtl8821ae_dm_refresh_basic_rate_mask.stage@PAGEOFF]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _RRSR_1M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RRSR_1M@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RRSR_2M@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RRSR_2M@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _RRSR_5_5M@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RRSR_5_5M@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _RRSR_11M@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RRSR_11M@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _RRSR_6M@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RRSR_6M@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x2, #16]
	cmp	w8, w9
	cset	w9, eq
	and	w8, w8, w9
	str	w8, [sp, #12]
	ldr	x8, [x2]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _HW_VAR_BASIC_RATE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HW_VAR_BASIC_RATE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
LBB0_5:
	mov	w21, #1
	b	LBB0_10
LBB0_6:
	cmp	w8, #30
	cset	w8, hi
	mov	w9, #2
	cinc	w21, w9, hi
LBB0_7:
	ldr	w9, [x20, _rtl8821ae_dm_refresh_basic_rate_mask.stage@PAGEOFF]
	cmp	w21, w9
	b.eq	LBB0_10
; %bb.8:
	sub	w9, w9, #1
	cmp	w9, #2
	cset	w9, lo
	and	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x2], #16
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _HW_VAR_BASIC_RATE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HW_VAR_BASIC_RATE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
LBB0_10:
	str	w21, [x20, _rtl8821ae_dm_refresh_basic_rate_mask.stage@PAGEOFF]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_rtl8821ae_dm_refresh_basic_rate_mask.stage,4,2 ; @rtl8821ae_dm_refresh_basic_rate_mask.stage
	.comm	_RRSR_1M,4,2                    ; @RRSR_1M
	.comm	_RRSR_2M,4,2                    ; @RRSR_2M
	.comm	_RRSR_5_5M,4,2                  ; @RRSR_5_5M
	.comm	_RRSR_11M,4,2                   ; @RRSR_11M
	.comm	_RRSR_6M,4,2                    ; @RRSR_6M
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_HW_VAR_BASIC_RATE,4,2          ; @HW_VAR_BASIC_RATE
	.no_dead_strip	_rtl8821ae_dm_refresh_basic_rate_mask
.subsections_via_symbols
