	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8821ae_update_hal_rate_mask
_rtl8821ae_update_hal_rate_mask:        ## @rtl8821ae_update_hal_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %rbx
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, -88(%rbp)                   ## 4-byte Folded Spill
	andl	24(%r14), %eax
	setne	%r15b
	movq	_IEEE80211_SMPS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movq	40(%r14), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	(%rax), %r8d
	movq	_COMP_RATR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r8, -112(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	movb	%r15b, %cl
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_4:
	movl	(%r14), %ecx
	incl	%ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_6
LBB0_5:
	movl	8(%rbx), %ecx
	movl	%ecx, -88(%rbp)                 ## 4-byte Spill
LBB0_6:
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leal	-128(%rcx), %r12d
	cmpl	$6, %r12d
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	ja	LBB0_9
## %bb.7:
	movl	$81, %ecx
	btl	%r12d, %ecx
	jae	LBB0_9
## %bb.8:
	movq	8(%r14), %rcx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	shll	$4, %ecx
	jmp	LBB0_10
LBB0_9:
	movq	8(%r14), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
LBB0_10:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	$4095, %r15d                    ## imm = 0xFFF
	cmovnel	%ecx, %r15d
	movq	-112(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.11:
	movq	32(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	shll	$20, %eax
	shll	$12, %ecx
	orl	%r15d, %eax
	orl	%ecx, %eax
	movl	%eax, %r15d
	jmp	LBB0_15
LBB0_12:
	cmpl	$132, %eax
	je	LBB0_14
## %bb.13:
	movq	_WIRELESS_MODE_AC_ONLY@GOTPCREL(%rip), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_15
LBB0_14:
	movl	16(%r14), %edi
	callq	__rtl8821ae_rate_to_bitmap_2ssvht
	shll	$12, %eax
	orl	%eax, %r15d
LBB0_15:
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	__rtl8821ae_get_ra_shortgi
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	callq	__rtl8821ae_get_ra_rftype
	cmpl	$6, %r12d
	movl	%r14d, -128(%rbp)               ## 4-byte Spill
	movq	_RATR_INX_WIRELESS_NGB@GOTPCREL(%rip), %rcx
	ja	LBB0_25
## %bb.16:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%r12,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_17:
	movq	_RATR_INX_WIRELESS_NG@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %esi
	movq	_IEEE80211_SMPS_STATIC@GOTPCREL(%rip), %rcx
	movl	-124(%rbp), %edx                ## 4-byte Reload
	cmpl	(%rcx), %edx
	je	LBB0_36
## %bb.19:
	movq	_IEEE80211_SMPS_DYNAMIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	je	LBB0_36
## %bb.20:
	movq	_RF_1T1R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_47
## %bb.21:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_57
## %bb.22:
	cmpl	$2, %eax
	je	LBB0_54
## %bb.23:
	cmpl	$1, %eax
	je	LBB0_38
## %bb.68:
	andl	$1044501, %r15d                 ## imm = 0xFF015
	jmp	LBB0_75
LBB0_25:
	movl	(%rcx), %esi
	movq	_RF_1T2R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_43
## %bb.26:
	andl	$1044735, %r15d                 ## imm = 0xFF0FF
	jmp	LBB0_75
LBB0_27:
	movq	_RATR_INX_WIRELESS_GB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	je	LBB0_52
## %bb.28:
	cmpl	$1, %eax
	jne	LBB0_53
## %bb.29:
	andl	$3840, %r15d                    ## imm = 0xF00
	jmp	LBB0_75
LBB0_30:
	movq	_RATR_INX_WIRELESS_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testb	$12, %r15b
	je	LBB0_51
## %bb.31:
	andl	$13, %r15d
	jmp	LBB0_75
LBB0_32:
	movq	_RATR_INX_WIRELESS_AC_5N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_RF_1T1R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_44
## %bb.33:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	je	LBB0_63
## %bb.34:
	cmpl	$1, %eax
	jne	LBB0_64
## %bb.35:
	andl	$4161536, %r15d                 ## imm = 0x3F8000
	jmp	LBB0_75
LBB0_36:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	je	LBB0_54
## %bb.37:
	cmpl	$1, %eax
	jne	LBB0_55
LBB0_38:
	andl	$983040, %r15d                  ## imm = 0xF0000
	jmp	LBB0_75
LBB0_39:
	movq	_RATR_INX_WIRELESS_AC_24N@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	je	LBB0_56
## %bb.40:
	cmpl	$1, %eax
	jne	LBB0_75
## %bb.41:
	andl	$-62980096, %r15d               ## imm = 0xFC3F0000
	jmp	LBB0_75
LBB0_42:
	movq	_RATR_INX_WIRELESS_G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$4080, %r15d                    ## imm = 0xFF0
	jmp	LBB0_75
LBB0_43:
	andl	$261091583, %r15d               ## imm = 0xF8FF0FF
	jmp	LBB0_75
LBB0_44:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	je	LBB0_56
## %bb.45:
	cmpl	$1, %eax
	jne	LBB0_66
## %bb.46:
	andl	$-29392896, %r15d               ## imm = 0xFE3F8000
	jmp	LBB0_75
LBB0_47:
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_60
## %bb.48:
	cmpl	$2, %eax
	je	LBB0_69
## %bb.49:
	cmpl	$1, %eax
	je	LBB0_50
## %bb.70:
	andl	$268431381, %r15d               ## imm = 0xFFFF015
	jmp	LBB0_75
LBB0_56:
	andl	$-4096, %r15d                   ## imm = 0xF000
	jmp	LBB0_75
LBB0_51:
	andl	$15, %r15d
	jmp	LBB0_75
LBB0_52:
	andl	$4080, %r15d                    ## imm = 0xFF0
	jmp	LBB0_75
LBB0_53:
	andl	$4085, %r15d                    ## imm = 0xFF5
	jmp	LBB0_75
LBB0_57:
	cmpl	$2, %eax
	je	LBB0_54
## %bb.58:
	cmpl	$1, %eax
	je	LBB0_38
LBB0_55:
	andl	$1044485, %r15d                 ## imm = 0xFF005
	jmp	LBB0_75
LBB0_54:
	andl	$1044480, %r15d                 ## imm = 0xFF000
	jmp	LBB0_75
LBB0_60:
	cmpl	$2, %eax
	je	LBB0_69
## %bb.61:
	cmpl	$1, %eax
	jne	LBB0_74
LBB0_50:
	andl	$268369920, %r15d               ## imm = 0xFFF0000
	jmp	LBB0_75
LBB0_63:
	andl	$4190208, %r15d                 ## imm = 0x3FF000
	jmp	LBB0_75
LBB0_64:
	andl	$4190224, %r15d                 ## imm = 0x3FF010
	jmp	LBB0_75
LBB0_66:
	andl	$-4080, %r15d                   ## imm = 0xF010
	jmp	LBB0_75
LBB0_69:
	andl	$268431360, %r15d               ## imm = 0xFFFF000
	jmp	LBB0_75
LBB0_74:
	andl	$268431365, %r15d               ## imm = 0xFFFF005
LBB0_75:
	movq	-136(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	%r14d, %edx
	callq	_rtl_mrate_idx_to_arfr_id
	movl	%eax, %r12d
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	__rtl8821ae_set_ra_vht_ratr_bitmap
	movl	%eax, %ebx
	movq	_COMP_RATR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%eax, -80(%rbp)
	xorl	%r15d, %r15d
	cmpl	$0, -128(%rbp)                  ## 4-byte Folded Reload
	setne	%r15b
	shll	$7, %r15d
	orl	%r12d, %r15d
	movl	%r15d, -76(%rbp)
	xorl	%r12d, %r12d
	cmpl	$0, -92(%rbp)                   ## 4-byte Folded Reload
	sete	%r12b
	shll	$3, %r12d
	movq	-120(%rbp), %rax                ## 8-byte Reload
	orl	(%rax), %r12d
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	__rtl8821ae_get_vht_eni
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movl	%r14d, %ecx
	callq	__rtl8821ae_get_ra_ldpc
	movl	%eax, %r14d
	orl	%r12d, %r14d
	orl	-92(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r14d, -72(%rbp)
	movl	%ebx, %ecx
	movzbl	%cl, %r10d
	movl	%r10d, -68(%rbp)
	movzbl	%ch, %eax
	movl	%eax, -64(%rbp)
	movq	%rax, %r12
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %r11d
	movl	%r11d, -60(%rbp)
	movl	%ebx, %r9d
	shrl	$24, %ebx
	movl	%ebx, -56(%rbp)
	movq	_COMP_RATR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	leaq	L_.str.2(%rip), %rcx
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movl	-88(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r12
	pushq	%r10
	pushq	%r14
	pushq	%r15
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_RT_TRACE
	addq	$64, %rsp
	movq	_H2C_8821AE_RA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rcx
	movq	%r13, %rdi
	movl	$7, %edx
	callq	_rtl8821ae_fill_h2c_cmd
	movl	$3, %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	__rtl8821ae_set_bcn_ctrl_reg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_77
## %bb.76:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_77:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_27
	.long	L0_0_set_30
	.long	L0_0_set_32
	.long	L0_0_set_39
	.long	L0_0_set_42
	.end_data_region
                                        ## -- End function
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_SMPS_OFF,4,2         ## @IEEE80211_SMPS_OFF
	.comm	_COMP_RATR,4,2                  ## @COMP_RATR
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wireless mode = 0x%x\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_WIRELESS_MODE_AC_ONLY,4,2      ## @WIRELESS_MODE_AC_ONLY
	.comm	_RATR_INX_WIRELESS_B,4,2        ## @RATR_INX_WIRELESS_B
	.comm	_RATR_INX_WIRELESS_GB,4,2       ## @RATR_INX_WIRELESS_GB
	.comm	_RATR_INX_WIRELESS_G,4,2        ## @RATR_INX_WIRELESS_G
	.comm	_RATR_INX_WIRELESS_NGB,4,2      ## @RATR_INX_WIRELESS_NGB
	.comm	_RATR_INX_WIRELESS_NG,4,2       ## @RATR_INX_WIRELESS_NG
	.comm	_IEEE80211_SMPS_STATIC,4,2      ## @IEEE80211_SMPS_STATIC
	.comm	_IEEE80211_SMPS_DYNAMIC,4,2     ## @IEEE80211_SMPS_DYNAMIC
	.comm	_RF_1T1R,4,2                    ## @RF_1T1R
	.comm	_RATR_INX_WIRELESS_AC_24N,4,2   ## @RATR_INX_WIRELESS_AC_24N
	.comm	_RATR_INX_WIRELESS_AC_5N,4,2    ## @RATR_INX_WIRELESS_AC_5N
	.comm	_RF_1T2R,4,2                    ## @RF_1T2R
L_.str.1:                               ## @.str.1
	.asciz	"ratr_bitmap :%x\n"

	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
L_.str.2:                               ## @.str.2
	.asciz	"Rate_index:%x, ratr_val:%x, %x:%x:%x:%x:%x:%x:%x\n"

	.comm	_H2C_8821AE_RA_MASK,4,2         ## @H2C_8821AE_RA_MASK
	.no_dead_strip	_rtl8821ae_update_hal_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_update_hal_rate_mask
_rtl8821ae_update_hal_rate_mask:        ; @rtl8821ae_update_hal_rate_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x25, x2
	mov	x26, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x27, x0
	ldr	w8, [x26, #24]
Lloh3:
	adrp	x9, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w28, ne
Lloh6:
	adrp	x8, _IEEE80211_SMPS_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_SMPS_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
	ldr	x22, [x26, #40]
	ldr	w23, [x22]
Lloh9:
	adrp	x8, _COMP_RATR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COMP_RATR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x23
	bl	_RT_TRACE
	ldr	x8, [x27]
Lloh17:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh19:
	adrp	x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
Lloh23:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	str	w21, [sp, #72]                  ; 4-byte Folded Spill
	b.ne	LBB0_2
; %bb.1:
	mov	w24, #0
	ldr	w28, [x27, #8]
	b	LBB0_6
LBB0_2:
Lloh25:
	adrp	x10, _NL80211_IFTYPE_AP@GOTPAGE
Lloh26:
	ldr	x10, [x10, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x8, x10
	b.eq	LBB0_5
; %bb.3:
	ldr	x10, [x9]
	cmp	x8, x10
	b.eq	LBB0_5
; %bb.4:
	mov	w24, #0
	b	LBB0_6
LBB0_5:
	ldr	w10, [x26]
	add	w24, w10, #1
LBB0_6:
	sub	w21, w23, #128
	cmp	w21, #6
	mov	w10, #1
	lsl	w10, w10, w21
	mov	w11, #81
	and	w10, w10, w11
	ccmp	w10, #0, #4, ls
	b.eq	LBB0_8
; %bb.7:
	ldr	x10, [x26, #8]
Lloh28:
	adrp	x11, _NL80211_BAND_5GHZ@GOTPAGE
Lloh29:
	ldr	x11, [x11, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
	lsl	w10, w10, #4
	b	LBB0_9
LBB0_8:
	ldr	x10, [x26, #8]
Lloh31:
	adrp	x11, _NL80211_BAND_2GHZ@GOTPAGE
Lloh32:
	ldr	x11, [x11, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh33:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
LBB0_9:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #4095
	csel	w27, w8, w10, eq
	and	w8, w23, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x26, #32]
	ldp	w8, w9, [x8]
	orr	w9, w27, w9, lsl #20
	orr	w27, w9, w8, lsl #12
	b	LBB0_14
LBB0_11:
	cmp	w8, #132
	b.eq	LBB0_13
; %bb.12:
Lloh34:
	adrp	x8, _WIRELESS_MODE_AC_ONLY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _WIRELESS_MODE_AC_ONLY@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_14
LBB0_13:
	ldr	w0, [x26, #16]
	bl	__rtl8821ae_rate_to_bitmap_2ssvht
	orr	w27, w27, w0, lsl #12
LBB0_14:
	mov	x0, x19
	mov	x1, x26
	mov	x2, x24
	bl	__rtl8821ae_get_ra_shortgi
	mov	x26, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x27
	bl	__rtl8821ae_get_ra_rftype
Lloh37:
	adrp	x8, _RATR_INX_WIRELESS_NGB@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RATR_INX_WIRELESS_NGB@GOTPAGEOFF]
	cmp	w21, #6
	b.hi	LBB0_20
; %bb.15:
Lloh39:
	adrp	x9, lJTI0_0@PAGE
Lloh40:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_16
	ldrb	w11, [x9, x21]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_16:
Lloh41:
	adrp	x8, _RATR_INX_WIRELESS_NG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _RATR_INX_WIRELESS_NG@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _IEEE80211_SMPS_STATIC@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IEEE80211_SMPS_STATIC@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	cmp	w9, w8
Lloh46:
	adrp	x21, _DBG_LOUD@GOTPAGE
Lloh47:
	ldr	x21, [x21, _DBG_LOUD@GOTPAGEOFF]
	b.eq	LBB0_25
; %bb.18:
Lloh48:
	adrp	x8, _IEEE80211_SMPS_DYNAMIC@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IEEE80211_SMPS_DYNAMIC@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w9, w8
	b.eq	LBB0_25
; %bb.19:
Lloh51:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh52:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	and	w9, w27, #0xffff000
	mov	w10, #61445
	movk	w10, #4095, lsl #16
	and	w11, w27, w10
	and	w12, w27, #0xfff0000
	cmp	w25, #1
	csel	w11, w11, w12, ne
	cmp	w25, #2
	csel	w11, w9, w11, eq
	orr	w10, w10, #0x10
	and	w10, w27, w10
	cmp	w25, #1
	csel	w10, w10, w12, ne
	cmp	w25, #2
	csel	w9, w9, w10, eq
	cmp	w28, #0
	csel	w9, w11, w9, eq
	and	w10, w27, #0xff000
	mov	w11, #61445
	movk	w11, #15, lsl #16
	and	w12, w27, w11
	and	w13, w27, #0xf0000
	cmp	w25, #1
	csel	w12, w12, w13, ne
	cmp	w25, #2
	csel	w12, w10, w12, eq
	orr	w11, w11, #0x10
	and	w11, w27, w11
	cmp	w25, #1
	csel	w11, w11, w13, ne
	cmp	w25, #2
	csel	w10, w10, w11, eq
	cmp	w28, #0
	csel	w10, w12, w10, eq
	cmp	w0, w8
	csel	w27, w9, w10, ne
	b	LBB0_30
LBB0_20:
	ldr	w1, [x8]
Lloh54:
	adrp	x8, _RF_1T2R@GOTPAGE
Lloh55:
	ldr	x8, [x8, _RF_1T2R@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	mov	w9, #61695
	movk	w9, #3983, lsl #16
	and	w9, w27, w9
	mov	w10, #250
	mov	w11, #61445
	movk	w11, #15, lsl #16
	orr	w10, w11, w10
	and	w10, w27, w10
	b	LBB0_24
LBB0_21:
Lloh57:
	adrp	x8, _RATR_INX_WIRELESS_GB@GOTPAGE
Lloh58:
	ldr	x8, [x8, _RATR_INX_WIRELESS_GB@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	and	w8, w27, #0xff0
	mov	w9, #4085
	and	w9, w27, w9
	and	w10, w27, #0xf00
	cmp	w25, #1
	csel	w9, w9, w10, ne
	b	LBB0_27
LBB0_22:
Lloh60:
	adrp	x8, _RATR_INX_WIRELESS_B@GOTPAGE
Lloh61:
	ldr	x8, [x8, _RATR_INX_WIRELESS_B@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	tst	w27, #0xc
	and	w8, w27, #0xf
	mov	w9, #13
	and	w9, w27, w9
	csel	w27, w8, w9, eq
	b	LBB0_29
LBB0_23:
Lloh63:
	adrp	x8, _RATR_INX_WIRELESS_AC_5N@GOTPAGE
Lloh64:
	ldr	x8, [x8, _RATR_INX_WIRELESS_AC_5N@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
Lloh66:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh67:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	and	w9, w27, #0xfffff000
	mov	w10, #-4080
	and	w10, w27, w10
	and	w11, w27, #0xffff8000
	and	w11, w11, #0xfe3fffff
	cmp	w25, #1
	csel	w10, w10, w11, ne
	cmp	w25, #2
	csel	w9, w9, w10, eq
	and	w10, w27, #0x3ff000
	and	w11, w27, #0x3ffff0
	and	w11, w11, #0xfffff01f
	and	w12, w27, #0x3f8000
	cmp	w25, #1
	csel	w11, w11, w12, ne
	cmp	w25, #2
	csel	w10, w10, w11, eq
LBB0_24:
	cmp	w0, w8
	csel	w27, w9, w10, ne
	b	LBB0_29
LBB0_25:
	and	w8, w27, #0xff000
	mov	w9, #61445
	movk	w9, #15, lsl #16
	and	w9, w27, w9
	and	w10, w27, #0xf0000
	cmp	w25, #1
	csel	w9, w9, w10, ne
	cmp	w25, #2
	csel	w27, w8, w9, eq
	b	LBB0_30
LBB0_26:
Lloh69:
	adrp	x8, _RATR_INX_WIRELESS_AC_24N@GOTPAGE
Lloh70:
	ldr	x8, [x8, _RATR_INX_WIRELESS_AC_24N@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	and	w8, w27, #0xfffff000
	mov	w9, #-62980096
	and	w9, w27, w9
	cmp	w25, #1
	csel	w9, w27, w9, ne
LBB0_27:
	cmp	w25, #2
	csel	w27, w8, w9, eq
	b	LBB0_29
LBB0_28:
Lloh72:
	adrp	x8, _RATR_INX_WIRELESS_G@GOTPAGE
Lloh73:
	ldr	x8, [x8, _RATR_INX_WIRELESS_G@GOTPAGEOFF]
Lloh74:
	ldr	w1, [x8]
	and	w27, w27, #0xff0
LBB0_29:
Lloh75:
	adrp	x21, _DBG_LOUD@GOTPAGE
Lloh76:
	ldr	x21, [x21, _DBG_LOUD@GOTPAGEOFF]
LBB0_30:
	mov	x0, x19
	mov	x2, x23
	bl	_rtl_mrate_idx_to_arfr_id
	mov	x25, x0
	str	w0, [x22, #4]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x27
	bl	__rtl8821ae_set_ra_vht_ratr_bitmap
	mov	x27, x0
Lloh77:
	adrp	x28, _COMP_RATR@GOTPAGE
Lloh78:
	ldr	x28, [x28, _COMP_RATR@GOTPAGEOFF]
	ldr	w1, [x28]
	ldr	w2, [x21]
Lloh79:
	adrp	x3, l_.str.1@PAGE
Lloh80:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x4, x27
	bl	_RT_TRACE
	cmp	w26, #0
	cset	w8, ne
	orr	w21, w25, w8, lsl #7
	stp	w24, w21, [sp, #76]
	ldr	w8, [x20]
	ldr	w9, [sp, #72]                   ; 4-byte Folded Reload
	cmp	w9, #0
	cset	w9, eq
	orr	w26, w8, w9, lsl #3
	mov	x0, x23
	mov	x1, x27
	bl	__rtl8821ae_get_vht_eni
	orr	w26, w26, w0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	x3, x23
	bl	__rtl8821ae_get_ra_ldpc
	orr	w8, w26, w0
	and	w9, w27, #0xff
	stp	w8, w9, [sp, #84]
	ubfx	w10, w27, #8, #8
	ubfx	w11, w27, #16, #8
	stp	w10, w11, [sp, #92]
	lsr	w12, w27, #24
	str	w12, [sp, #100]
	ldr	w1, [x28]
Lloh81:
	adrp	x13, _DBG_DMESG@GOTPAGE
Lloh82:
	ldr	x13, [x13, _DBG_DMESG@GOTPAGEOFF]
Lloh83:
	ldr	w2, [x13]
	stp	x11, x12, [sp, #48]
	stp	x9, x10, [sp, #32]
Lloh84:
	adrp	x3, l_.str.2@PAGE
Lloh85:
	add	x3, x3, l_.str.2@PAGEOFF
	stp	x21, x8, [sp, #16]
	stp	x27, x24, [sp]
	mov	x0, x20
	mov	x4, x25
	bl	_RT_TRACE
Lloh86:
	adrp	x8, _H2C_8821AE_RA_MASK@GOTPAGE
Lloh87:
	ldr	x8, [x8, _H2C_8821AE_RA_MASK@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
	add	x3, sp, #76
	mov	x0, x19
	mov	w2, #7
	bl	_rtl8821ae_fill_h2c_cmd
	mov	w0, #3
	bl	_BIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	__rtl8821ae_set_bcn_ctrl_reg
	ldur	x8, [x29, #-88]
Lloh89:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh90:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh91:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.31:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh77, Lloh78
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_17-LBB0_16)>>2
	.byte	(LBB0_21-LBB0_16)>>2
	.byte	(LBB0_22-LBB0_16)>>2
	.byte	(LBB0_23-LBB0_16)>>2
	.byte	(LBB0_26-LBB0_16)>>2
	.byte	(LBB0_28-LBB0_16)>>2
                                        ; -- End function
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_IEEE80211_SMPS_OFF,4,2         ; @IEEE80211_SMPS_OFF
	.comm	_COMP_RATR,4,2                  ; @COMP_RATR
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wireless mode = 0x%x\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_MESH_POINT,8,3  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_WIRELESS_MODE_AC_ONLY,4,2      ; @WIRELESS_MODE_AC_ONLY
	.comm	_RATR_INX_WIRELESS_B,4,2        ; @RATR_INX_WIRELESS_B
	.comm	_RATR_INX_WIRELESS_GB,4,2       ; @RATR_INX_WIRELESS_GB
	.comm	_RATR_INX_WIRELESS_G,4,2        ; @RATR_INX_WIRELESS_G
	.comm	_RATR_INX_WIRELESS_NGB,4,2      ; @RATR_INX_WIRELESS_NGB
	.comm	_RATR_INX_WIRELESS_NG,4,2       ; @RATR_INX_WIRELESS_NG
	.comm	_IEEE80211_SMPS_STATIC,4,2      ; @IEEE80211_SMPS_STATIC
	.comm	_IEEE80211_SMPS_DYNAMIC,4,2     ; @IEEE80211_SMPS_DYNAMIC
	.comm	_RF_1T1R,4,2                    ; @RF_1T1R
	.comm	_RATR_INX_WIRELESS_AC_24N,4,2   ; @RATR_INX_WIRELESS_AC_24N
	.comm	_RATR_INX_WIRELESS_AC_5N,4,2    ; @RATR_INX_WIRELESS_AC_5N
	.comm	_RF_1T2R,4,2                    ; @RF_1T2R
l_.str.1:                               ; @.str.1
	.asciz	"ratr_bitmap :%x\n"

	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
l_.str.2:                               ; @.str.2
	.asciz	"Rate_index:%x, ratr_val:%x, %x:%x:%x:%x:%x:%x:%x\n"

	.comm	_H2C_8821AE_RA_MASK,4,2         ; @H2C_8821AE_RA_MASK
	.no_dead_strip	_rtl8821ae_update_hal_rate_mask
.subsections_via_symbols
