	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92se_update_hal_rate_mask
_rtl92se_update_hal_rate_mask:          ## @rtl92se_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	(%r12), %rdx
	movq	_IEEE80211_STA_RX_BW_40@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	setge	%bl
	movq	40(%r12), %r8
	movq	(%r13), %rdx
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	movl	8(%r13), %ecx
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_2:
	movb	%bl, %cl
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_5
## %bb.3:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_5
## %bb.4:
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_5:
	movl	8(%r12), %r13d
	incl	%r13d
LBB0_6:
	movl	(%r8), %esi
	movq	(%rax), %rdi
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rbx
	movq	16(%r12), %rax
	cmpq	(%rbx), %rdi
	jne	LBB0_8
## %bb.7:
	movl	4(%rax), %eax
	shll	$4, %eax
	jmp	LBB0_9
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rdx
	movl	$4095, %edx                     ## imm = 0xFFF
	cmovnel	%eax, %edx
	movq	32(%r12), %rdi
	movl	(%rdi), %eax
	movl	4(%rdi), %edi
	shll	$20, %edi
	shll	$12, %eax
	orl	%edi, %eax
	orl	%edx, %eax
	addl	$-128, %esi
	cmpl	$4, %esi
	ja	LBB0_19
## %bb.10:
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_11:
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rdi
	movq	_IEEE80211_SMPS_OFF@GOTPCREL(%rip), %rbx
	movl	24(%r12), %r9d
	movl	(%rdx), %r10d
	movl	(%rdi), %r11d
	movl	(%rbx), %edx
	movq	_WIRELESS_11N@GOTPCREL(%rip), %rbx
	movq	_WIRELESS_11G@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r12d
	orl	(%rbx), %r12d
	movq	_RATR_INX_WIRELESS_NGB@GOTPCREL(%rip), %rsi
	movq	_IEEE80211_SMPS_STATIC@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	jne	LBB0_28
## %bb.12:
	xorl	%edx, %edx
	cmpl	$2, %r15d
	setne	%dl
	leal	(%rdx,%rdx,4), %edx
	orl	$520192, %edx                   ## imm = 0x7F000
	cmpl	$1, %r15d
	movl	$458752, %ebx                   ## imm = 0x70000
	cmovnel	%edx, %ebx
LBB0_13:
	movq	%rsi, %rdx
LBB0_14:
	movq	_WIRELESS_11B@GOTPCREL(%rip), %rsi
LBB0_15:
	orl	(%rsi), %r12d
	movl	(%rdx), %esi
	testl	%r9d, %r11d
	setne	%dil
	testl	%r9d, %r10d
	setne	%dl
	andl	%ebx, %eax
	testl	%ecx, %ecx
	setne	%cl
	sete	%bl
	movb	$1, %r9b
	testb	%dl, %cl
	jne	LBB0_17
## %bb.16:
	andb	%dil, %bl
	je	LBB0_44
LBB0_17:
	testl	%r13d, %r13d
	je	LBB0_41
## %bb.18:
	movl	%r13d, %ecx
	cmpl	$1, %r13d
	jmp	LBB0_44
LBB0_19:
	movq	_WIRELESS_11N@GOTPCREL(%rip), %rcx
	movq	_WIRELESS_11G@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	orl	(%rcx), %r12d
	movq	_WIRELESS_11B@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	movq	_RATR_INX_WIRELESS_NGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%r14), %ecx
	movq	_RF_1T2R@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_34
## %bb.20:
	andl	$1044735, %eax                  ## imm = 0xFF0FF
	jmp	LBB0_35
LBB0_21:
	movq	_WIRELESS_11G@GOTPCREL(%rip), %rax
	movq	_WIRELESS_11B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_RATR_INX_WIRELESS_GB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$2, %r15d
	je	LBB0_27
## %bb.22:
	cmpl	$1, %r15d
	jne	LBB0_42
## %bb.23:
	andl	$3840, %edx                     ## imm = 0xF00
	jmp	LBB0_43
LBB0_24:
	movq	_WIRELESS_11B@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_RATR_INX_WIRELESS_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testb	$12, %dl
	je	LBB0_40
## %bb.25:
	andl	$13, %edx
	jmp	LBB0_43
LBB0_26:
	movq	_WIRELESS_11A@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_RATR_INX_WIRELESS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_27:
	andl	$4080, %edx                     ## imm = 0xFF0
	jmp	LBB0_43
LBB0_28:
	movl	8(%r14), %edx
	movq	_RF_1T2R@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	je	LBB0_36
## %bb.29:
	movq	_RF_1T1R@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %edx
	je	LBB0_36
## %bb.30:
	cmpl	$1, %r15d
	je	LBB0_64
## %bb.31:
	cmpl	$5, %r15d
	movq	%rsi, %rdx
	je	LBB0_65
## %bb.32:
	cmpl	$3, %r15d
	movq	_WIRELESS_11B@GOTPCREL(%rip), %rsi
	jne	LBB0_66
## %bb.33:
	movl	$261079040, %ebx                ## imm = 0xF8FC000
	jmp	LBB0_15
LBB0_34:
	andl	$261091583, %eax                ## imm = 0xF8FF0FF
LBB0_35:
	movb	$1, %r9b
	jmp	LBB0_44
LBB0_36:
	cmpl	$1, %r15d
	je	LBB0_67
## %bb.37:
	cmpl	$5, %r15d
	movq	%rsi, %rdx
	je	LBB0_68
## %bb.38:
	cmpl	$3, %r15d
	movq	_WIRELESS_11B@GOTPCREL(%rip), %rsi
	jne	LBB0_69
## %bb.39:
	movl	$1032192, %ebx                  ## imm = 0xFC000
	jmp	LBB0_15
LBB0_40:
	andl	$15, %edx
	jmp	LBB0_43
LBB0_41:
	xorl	%r9d, %r9d
	jmp	LBB0_44
LBB0_42:
	andl	$4085, %edx                     ## imm = 0xFF5
LBB0_43:
	movb	$1, %r9b
	movl	%edx, %eax
LBB0_44:
	movl	%esi, 4(%r8)
	movq	(%r14), %rcx
	movq	_VERSION_8192S_BCUT@GOTPCREL(%rip), %rdx
	movq	_VERSION_8192S_ACUT@GOTPCREL(%rip), %rdi
	movl	%eax, %ebx
	andl	$268435440, %ebx                ## imm = 0xFFFFFF0
	cmpq	(%rdi), %rcx
	cmovnel	%eax, %ebx
	cmpq	(%rdx), %rcx
	cmovgel	%eax, %ebx
	testb	%r9b, %r9b
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	jne	LBB0_61
## %bb.45:
	movl	$15, %eax
	testl	$134217728, %ebx                ## imm = 0x8000000
	jne	LBB0_60
## %bb.46:
	movl	$14, %eax
	testl	$67108864, %ebx                 ## imm = 0x4000000
	jne	LBB0_60
## %bb.47:
	movl	$13, %eax
	testl	$33554432, %ebx                 ## imm = 0x2000000
	jne	LBB0_60
## %bb.48:
	movl	$12, %eax
	testl	$16777216, %ebx                 ## imm = 0x1000000
	jne	LBB0_60
## %bb.49:
	movl	$11, %eax
	testl	$8388608, %ebx                  ## imm = 0x800000
	jne	LBB0_60
## %bb.50:
	movl	$10, %eax
	testl	$4194304, %ebx                  ## imm = 0x400000
	jne	LBB0_60
## %bb.51:
	movl	$9, %eax
	testl	$2097152, %ebx                  ## imm = 0x200000
	jne	LBB0_60
## %bb.52:
	movl	$8, %eax
	testl	$1048576, %ebx                  ## imm = 0x100000
	jne	LBB0_60
## %bb.53:
	movl	$7, %eax
	testl	$524288, %ebx                   ## imm = 0x80000
	jne	LBB0_60
## %bb.54:
	movl	$6, %eax
	testl	$262144, %ebx                   ## imm = 0x40000
	jne	LBB0_60
## %bb.55:
	movl	$5, %eax
	testl	$131072, %ebx                   ## imm = 0x20000
	jne	LBB0_60
## %bb.56:
	movl	$4, %eax
	testl	$65536, %ebx                    ## imm = 0x10000
	jne	LBB0_60
## %bb.57:
	movl	$3, %eax
	testl	$32768, %ebx                    ## imm = 0x8000
	jne	LBB0_60
## %bb.58:
	movl	$2, %eax
	testl	$16384, %ebx                    ## imm = 0x4000
	jne	LBB0_60
## %bb.59:
	movl	%ebx, %eax
	shrl	$13, %eax
	andl	$1, %eax
LBB0_60:
	orl	$268435456, %ebx                ## imm = 0x10000000
	movl	%eax, %ecx
	shll	$12, %ecx
	movl	%eax, %edx
	shll	$8, %edx
	orl	%eax, %edx
	shll	$4, %eax
	orl	%ecx, %edx
	orl	%eax, %edx
	movq	_SG_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtl_write_byte
LBB0_61:
	movl	%r13d, %eax
	andl	$31, %eax
	shll	$4, %eax
	andl	$15, %r12d
	orl	%eax, %r12d
	movq	_COMP_RATR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_RT_TRACE
	movq	%r14, %rdi
	movl	$708, %esi                      ## imm = 0x2C4
	movl	%ebx, %edx
	callq	_rtl_write_dword
	movq	_WFM5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FW_RA_UPDATE_MASK@GOTPCREL(%rip), %rax
	shll	$8, %r12d
	orl	(%rax), %r12d
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_rtl_write_dword
	testl	%r13d, %r13d
	je	LBB0_63
## %bb.62:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r15)
LBB0_63:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_64:
	movl	$261029888, %ebx                ## imm = 0xF8F0000
	jmp	LBB0_13
LBB0_65:
	movl	$261091328, %ebx                ## imm = 0xF8FF000
	jmp	LBB0_14
LBB0_66:
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	setne	%bl
	shll	$4, %ebx
	orl	$261091333, %ebx                ## imm = 0xF8FF005
	jmp	LBB0_15
LBB0_67:
	movl	$983040, %ebx                   ## imm = 0xF0000
	jmp	LBB0_13
LBB0_68:
	movl	$1044480, %ebx                  ## imm = 0xFF000
	jmp	LBB0_14
LBB0_69:
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	setne	%bl
	shll	$4, %ebx
	orl	$1044485, %ebx                  ## imm = 0xFF005
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_11
	.long	L0_0_set_21
	.long	L0_0_set_24
	.long	L0_0_set_26
	.end_data_region
                                        ## -- End function
	.comm	_IEEE80211_STA_RX_BW_40,8,3     ## @IEEE80211_STA_RX_BW_40
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ## @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ## @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_SMPS_OFF,4,2         ## @IEEE80211_SMPS_OFF
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.comm	_WIRELESS_11B,4,2               ## @WIRELESS_11B
	.comm	_RATR_INX_WIRELESS_B,4,2        ## @RATR_INX_WIRELESS_B
	.comm	_WIRELESS_11G,4,2               ## @WIRELESS_11G
	.comm	_RATR_INX_WIRELESS_GB,4,2       ## @RATR_INX_WIRELESS_GB
	.comm	_WIRELESS_11A,4,2               ## @WIRELESS_11A
	.comm	_RATR_INX_WIRELESS_A,4,2        ## @RATR_INX_WIRELESS_A
	.comm	_WIRELESS_11N,4,2               ## @WIRELESS_11N
	.comm	_RATR_INX_WIRELESS_NGB,4,2      ## @RATR_INX_WIRELESS_NGB
	.comm	_IEEE80211_SMPS_STATIC,4,2      ## @IEEE80211_SMPS_STATIC
	.comm	_RF_1T2R,4,2                    ## @RF_1T2R
	.comm	_RF_1T1R,4,2                    ## @RF_1T1R
	.comm	_VERSION_8192S_BCUT,8,3         ## @VERSION_8192S_BCUT
	.comm	_VERSION_8192S_ACUT,8,3         ## @VERSION_8192S_ACUT
	.comm	_SG_RATE,4,2                    ## @SG_RATE
	.comm	_COMP_RATR,4,2                  ## @COMP_RATR
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mask = %x, bitmap = %x\n"

	.comm	_WFM5,4,2                       ## @WFM5
	.comm	_FW_RA_UPDATE_MASK,4,2          ## @FW_RA_UPDATE_MASK
	.no_dead_strip	_rtl92se_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 rtl92se_update_hal_rate_mask
_rtl92se_update_hal_rate_mask:          ; @rtl92se_update_hal_rate_mask
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x23
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x22, x0
	mov	x0, x23
	bl	_rtl_priv
	bl	_rtl_hal
Lloh0:
	adrp	x8, _IEEE80211_STA_RX_BW_40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_STA_RX_BW_40@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, ge
	ldr	x23, [x21, #40]
	ldr	x9, [x22]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x10]
Lloh6:
	adrp	x10, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	cmp	x9, x11
	b.ne	LBB0_2
; %bb.1:
	mov	w24, #0
	ldr	w8, [x22, #8]
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x11, _NL80211_IFTYPE_AP@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	ldr	x12, [x10]
	cmp	x9, x11
	ccmp	x9, x12, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	w11, [x21, #8]
	add	w24, w11, #1
	b	LBB0_5
LBB0_4:
	mov	w24, #0
LBB0_5:
	ldr	w11, [x23]
	ldr	x13, [x0]
Lloh11:
	adrp	x12, _BAND_ON_5G@GOTPAGE
Lloh12:
	ldr	x12, [x12, _BAND_ON_5G@GOTPAGEOFF]
Lloh13:
	ldr	x14, [x12]
	ldr	x12, [x21, #16]
	cmp	x13, x14
	b.ne	LBB0_7
; %bb.6:
	ldr	w12, [x12, #4]
	lsl	w12, w12, #4
	b	LBB0_8
LBB0_7:
	ldr	w12, [x12]
LBB0_8:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #4095
	csel	w10, w9, w12, eq
	ldr	x9, [x21, #32]
	ldp	w9, w12, [x9]
	orr	w12, w10, w12, lsl #20
	orr	w9, w12, w9, lsl #12
	sub	w11, w11, #128
	cmp	w11, #4
	b.hi	LBB0_15
; %bb.9:
Lloh14:
	adrp	x12, lJTI0_0@PAGE
Lloh15:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_10
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_10:
Lloh16:
	adrp	x10, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh17:
	ldr	x10, [x10, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh18:
	adrp	x11, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh19:
	ldr	x11, [x11, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
	ldr	w12, [x21, #24]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	ldr	w11, [x11]
Lloh22:
	adrp	x13, _IEEE80211_SMPS_OFF@GOTPAGE
Lloh23:
	ldr	x13, [x13, _IEEE80211_SMPS_OFF@GOTPAGEOFF]
	and	w10, w10, w12
	and	w11, w11, w12
Lloh24:
	ldr	w12, [x13]
Lloh25:
	adrp	x13, _WIRELESS_11N@GOTPAGE
Lloh26:
	ldr	x13, [x13, _WIRELESS_11N@GOTPAGEOFF]
Lloh27:
	ldr	w13, [x13]
Lloh28:
	adrp	x14, _WIRELESS_11G@GOTPAGE
Lloh29:
	ldr	x14, [x14, _WIRELESS_11G@GOTPAGEOFF]
Lloh30:
	ldr	w14, [x14]
	orr	w13, w14, w13
Lloh31:
	adrp	x14, _WIRELESS_11B@GOTPAGE
Lloh32:
	ldr	x14, [x14, _WIRELESS_11B@GOTPAGEOFF]
Lloh33:
	ldr	w14, [x14]
Lloh34:
	adrp	x15, _RATR_INX_WIRELESS_NGB@GOTPAGE
Lloh35:
	ldr	x15, [x15, _RATR_INX_WIRELESS_NGB@GOTPAGEOFF]
	orr	w21, w13, w14
Lloh36:
	ldr	w22, [x15]
Lloh37:
	adrp	x13, _IEEE80211_SMPS_STATIC@GOTPAGE
Lloh38:
	ldr	x13, [x13, _IEEE80211_SMPS_STATIC@GOTPAGEOFF]
Lloh39:
	ldr	w13, [x13]
	cmp	w12, w13
	b.ne	LBB0_19
; %bb.11:
	mov	w12, #61445
	movk	w12, #7, lsl #16
	mov	w13, #520192
	cmp	w20, #2
	csel	w12, w13, w12, eq
	mov	w13, #458752
	cmp	w20, #1
	csel	w12, w13, w12, eq
LBB0_12:
	cmp	w8, #0
	ccmp	w11, #0, #4, eq
	cset	w11, ne
	cmp	w10, #0
	and	w9, w9, w12
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_25
; %bb.13:
	cbnz	w11, LBB0_25
; %bb.14:
	mov	w8, #1
	b	LBB0_26
LBB0_15:
Lloh40:
	adrp	x8, _WIRELESS_11N@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WIRELESS_11N@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x10, _WIRELESS_11G@GOTPAGE
Lloh44:
	ldr	x10, [x10, _WIRELESS_11G@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh46:
	adrp	x10, _WIRELESS_11B@GOTPAGE
Lloh47:
	ldr	x10, [x10, _WIRELESS_11B@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	orr	w21, w8, w10
Lloh49:
	adrp	x8, _RATR_INX_WIRELESS_NGB@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RATR_INX_WIRELESS_NGB@GOTPAGEOFF]
Lloh51:
	ldr	w22, [x8]
	ldr	w8, [x19, #8]
Lloh52:
	adrp	x10, _RF_1T2R@GOTPAGE
Lloh53:
	ldr	x10, [x10, _RF_1T2R@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	mov	w11, #250
	mov	w12, #61445
	movk	w12, #3983, lsl #16
	orr	w11, w12, w11
	and	w11, w9, w11
	mov	w12, #234
	mov	w13, #61461
	movk	w13, #15, lsl #16
	orr	w12, w13, w12
	mov	w13, #1
	and	w9, w9, w12
	mov	w12, #1
	cmp	w8, w10
	csel	w8, w13, w12, ne
	csel	w9, w11, w9, ne
	b	LBB0_26
LBB0_16:
Lloh55:
	adrp	x8, _WIRELESS_11G@GOTPAGE
Lloh56:
	ldr	x8, [x8, _WIRELESS_11G@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
Lloh58:
	adrp	x9, _WIRELESS_11B@GOTPAGE
Lloh59:
	ldr	x9, [x9, _WIRELESS_11B@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w21, w9, w8
Lloh61:
	adrp	x8, _RATR_INX_WIRELESS_GB@GOTPAGE
Lloh62:
	ldr	x8, [x8, _RATR_INX_WIRELESS_GB@GOTPAGEOFF]
Lloh63:
	ldr	w22, [x8]
	and	w9, w10, #0xff0
	mov	w8, #1
	mov	w11, #4085
	and	w11, w10, w11
	mov	w12, #1
	and	w10, w10, #0xf00
	mov	w13, #1
	cmp	w20, #1
	csel	w12, w12, w13, ne
	csel	w10, w11, w10, ne
	cmp	w20, #2
	csel	w8, w8, w12, eq
	csel	w9, w9, w10, eq
	b	LBB0_26
LBB0_17:
Lloh64:
	adrp	x8, _WIRELESS_11B@GOTPAGE
Lloh65:
	ldr	x8, [x8, _WIRELESS_11B@GOTPAGEOFF]
Lloh66:
	ldr	w21, [x8]
Lloh67:
	adrp	x8, _RATR_INX_WIRELESS_B@GOTPAGE
Lloh68:
	ldr	x8, [x8, _RATR_INX_WIRELESS_B@GOTPAGEOFF]
Lloh69:
	ldr	w22, [x8]
	tst	w10, #0xc
	and	w9, w10, #0xf
	mov	w8, #1
	mov	w11, #13
	and	w10, w10, w11
	mov	w11, #1
	csel	w8, w8, w11, eq
	csel	w9, w9, w10, eq
	b	LBB0_26
LBB0_18:
Lloh70:
	adrp	x8, _WIRELESS_11A@GOTPAGE
Lloh71:
	ldr	x8, [x8, _WIRELESS_11A@GOTPAGEOFF]
Lloh72:
	ldr	w21, [x8]
Lloh73:
	adrp	x8, _RATR_INX_WIRELESS_A@GOTPAGE
Lloh74:
	ldr	x8, [x8, _RATR_INX_WIRELESS_A@GOTPAGEOFF]
Lloh75:
	ldr	w22, [x8]
	and	w9, w10, #0xff0
	mov	w8, #1
	b	LBB0_26
LBB0_19:
	ldr	w12, [x19, #8]
Lloh76:
	adrp	x13, _RF_1T2R@GOTPAGE
Lloh77:
	ldr	x13, [x13, _RF_1T2R@GOTPAGEOFF]
Lloh78:
	ldr	w13, [x13]
	cmp	w12, w13
	b.eq	LBB0_42
; %bb.20:
Lloh79:
	adrp	x13, _RF_1T1R@GOTPAGE
Lloh80:
	ldr	x13, [x13, _RF_1T1R@GOTPAGEOFF]
Lloh81:
	ldr	w13, [x13]
	cmp	w12, w13
	b.eq	LBB0_42
; %bb.21:
	cmp	w20, #1
	b.eq	LBB0_48
; %bb.22:
	cmp	w20, #5
	b.eq	LBB0_49
; %bb.23:
	cmp	w20, #3
	b.ne	LBB0_50
; %bb.24:
	mov	w12, #49152
	movk	w12, #3983, lsl #16
	b	LBB0_12
LBB0_25:
	mov	w8, #1
	mov	w10, #1
	cmp	w24, #1
	csel	w8, w8, w10, ne
	cmp	w24, #0
	csel	w8, wzr, w8, eq
LBB0_26:
	str	w22, [x23, #4]
	ldr	x10, [x19]
Lloh82:
	adrp	x11, _VERSION_8192S_BCUT@GOTPAGE
Lloh83:
	ldr	x11, [x11, _VERSION_8192S_BCUT@GOTPAGEOFF]
Lloh84:
	adrp	x12, _VERSION_8192S_ACUT@GOTPAGE
Lloh85:
	ldr	x12, [x12, _VERSION_8192S_ACUT@GOTPAGEOFF]
Lloh86:
	ldr	x11, [x11]
Lloh87:
	ldr	x12, [x12]
	cmp	x10, x12
	ccmp	x10, x11, #0, eq
	and	w10, w9, #0xffffff0
	csel	w20, w10, w9, lt
	tbnz	w8, #0, LBB0_64
; %bb.27:
	orr	w25, w20, #0x10000000
	tbnz	w20, #27, LBB0_40
; %bb.28:
	tbnz	w20, #26, LBB0_41
; %bb.29:
	tbnz	w20, #25, LBB0_46
; %bb.30:
	tbnz	w20, #24, LBB0_47
; %bb.31:
	tbnz	w20, #23, LBB0_55
; %bb.32:
	tbnz	w20, #22, LBB0_56
; %bb.33:
	tbnz	w20, #21, LBB0_57
; %bb.34:
	tbnz	w20, #20, LBB0_58
; %bb.35:
	tbnz	w20, #19, LBB0_59
; %bb.36:
	tbnz	w20, #18, LBB0_60
; %bb.37:
	tbnz	w20, #17, LBB0_61
; %bb.38:
	tbnz	w20, #16, LBB0_62
; %bb.39:
	mov	w8, #3
	mov	w9, #2
	ubfx	w10, w20, #13, #1
	tst	w20, #0x4000
	csel	w9, w9, w10, ne
	tst	w20, #0x8000
	csel	w8, w8, w9, ne
	b	LBB0_63
LBB0_40:
	mov	w8, #15
	b	LBB0_63
LBB0_41:
	mov	w8, #14
	b	LBB0_63
LBB0_42:
	cmp	w20, #1
	b.eq	LBB0_51
; %bb.43:
	cmp	w20, #5
	b.eq	LBB0_52
; %bb.44:
	cmp	w20, #3
	b.ne	LBB0_53
; %bb.45:
	mov	w12, #1032192
	b	LBB0_12
LBB0_46:
	mov	w8, #13
	b	LBB0_63
LBB0_47:
	mov	w8, #12
	b	LBB0_63
LBB0_48:
	mov	w12, #261029888
	b	LBB0_12
LBB0_49:
	mov	w12, #49152
	movk	w12, #3983, lsl #16
	orr	w12, w12, #0x3000
	b	LBB0_12
LBB0_50:
	mov	w12, #61445
	movk	w12, #3983, lsl #16
	orr	w13, w12, #0x10
	b	LBB0_54
LBB0_51:
	mov	w12, #983040
	b	LBB0_12
LBB0_52:
	mov	w12, #1044480
	b	LBB0_12
LBB0_53:
	mov	w12, #61445
	movk	w12, #7, lsl #16
	orr	w12, w12, #0x80000
	mov	w13, #61461
	movk	w13, #15, lsl #16
LBB0_54:
	cmp	w8, #0
	csel	w12, w12, w13, eq
	b	LBB0_12
LBB0_55:
	mov	w8, #11
	b	LBB0_63
LBB0_56:
	mov	w8, #10
	b	LBB0_63
LBB0_57:
	mov	w8, #9
	b	LBB0_63
LBB0_58:
	mov	w8, #8
	b	LBB0_63
LBB0_59:
	mov	w8, #7
	b	LBB0_63
LBB0_60:
	mov	w8, #6
	b	LBB0_63
LBB0_61:
	mov	w8, #5
	b	LBB0_63
LBB0_62:
	mov	w8, #4
LBB0_63:
	mov	x2, x8
	bfi	w2, w8, #8, #4
	bfi	w2, w8, #12, #4
	bfi	w2, w8, #4, #4
Lloh88:
	adrp	x8, _SG_RATE@GOTPAGE
Lloh89:
	ldr	x8, [x8, _SG_RATE@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_write_byte
	mov	x20, x25
LBB0_64:
	and	w21, w21, #0xf
	bfi	w21, w24, #4, #5
Lloh91:
	adrp	x8, _COMP_RATR@GOTPAGE
Lloh92:
	ldr	x8, [x8, _COMP_RATR@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
Lloh94:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh95:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh96:
	ldr	w2, [x8]
Lloh97:
	adrp	x3, l_.str@PAGE
Lloh98:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x21
	mov	x5, x20
	bl	_RT_TRACE
	mov	x0, x19
	mov	w1, #708
	mov	x2, x20
	bl	_rtl_write_dword
Lloh99:
	adrp	x8, _WFM5@GOTPAGE
Lloh100:
	ldr	x8, [x8, _WFM5@GOTPAGEOFF]
Lloh101:
	ldr	w1, [x8]
Lloh102:
	adrp	x8, _FW_RA_UPDATE_MASK@GOTPAGE
Lloh103:
	ldr	x8, [x8, _FW_RA_UPDATE_MASK@GOTPAGEOFF]
Lloh104:
	ldr	w8, [x8]
	orr	w2, w8, w21, lsl #8
	mov	x0, x19
	bl	_rtl_write_dword
	cbz	w24, LBB0_66
; %bb.65:
	str	w22, [x23, #4]
LBB0_66:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh86
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
	.byte	(LBB0_18-LBB0_10)>>2
                                        ; -- End function
	.comm	_IEEE80211_STA_RX_BW_40,8,3     ; @IEEE80211_STA_RX_BW_40
	.comm	_IEEE80211_HT_CAP_SGI_40,4,2    ; @IEEE80211_HT_CAP_SGI_40
	.comm	_IEEE80211_HT_CAP_SGI_20,4,2    ; @IEEE80211_HT_CAP_SGI_20
	.comm	_IEEE80211_SMPS_OFF,4,2         ; @IEEE80211_SMPS_OFF
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.comm	_WIRELESS_11B,4,2               ; @WIRELESS_11B
	.comm	_RATR_INX_WIRELESS_B,4,2        ; @RATR_INX_WIRELESS_B
	.comm	_WIRELESS_11G,4,2               ; @WIRELESS_11G
	.comm	_RATR_INX_WIRELESS_GB,4,2       ; @RATR_INX_WIRELESS_GB
	.comm	_WIRELESS_11A,4,2               ; @WIRELESS_11A
	.comm	_RATR_INX_WIRELESS_A,4,2        ; @RATR_INX_WIRELESS_A
	.comm	_WIRELESS_11N,4,2               ; @WIRELESS_11N
	.comm	_RATR_INX_WIRELESS_NGB,4,2      ; @RATR_INX_WIRELESS_NGB
	.comm	_IEEE80211_SMPS_STATIC,4,2      ; @IEEE80211_SMPS_STATIC
	.comm	_RF_1T2R,4,2                    ; @RF_1T2R
	.comm	_RF_1T1R,4,2                    ; @RF_1T1R
	.comm	_VERSION_8192S_BCUT,8,3         ; @VERSION_8192S_BCUT
	.comm	_VERSION_8192S_ACUT,8,3         ; @VERSION_8192S_ACUT
	.comm	_SG_RATE,4,2                    ; @SG_RATE
	.comm	_COMP_RATR,4,2                  ; @COMP_RATR
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mask = %x, bitmap = %x\n"

	.comm	_WFM5,4,2                       ; @WFM5
	.comm	_FW_RA_UPDATE_MASK,4,2          ; @FW_RA_UPDATE_MASK
	.no_dead_strip	_rtl92se_update_hal_rate_mask
.subsections_via_symbols
