	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92cu_update_hal_rate_mask
_rtl92cu_update_hal_rate_mask:          ## @rtl92cu_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	$72, %rsp
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	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), %r10
	movq	_IEEE80211_STA_RX_BW_40@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r11
	xorl	%r8d, %r8d
	cmpq	%r11, %r10
	setge	%bl
	movq	40(%r12), %r9
	movq	(%r13), %rdi
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	je	LBB0_2
## %bb.1:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	je	LBB0_2
## %bb.3:
	movb	%bl, %r8b
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	je	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_6
LBB0_5:
	movl	8(%r12), %edx
	incl	%edx
	jmp	LBB0_6
LBB0_2:
	movl	8(%r13), %r8d
	xorl	%edx, %edx
LBB0_6:
	movl	(%r9), %ebx
	movq	(%rax), %rcx
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rsi
	movq	16(%r12), %rax
	cmpq	(%rsi), %rcx
	jne	LBB0_8
## %bb.7:
	movl	4(%rax), %ecx
	shll	$4, %ecx
	jmp	LBB0_9
LBB0_8:
	movl	(%rax), %ecx
LBB0_9:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	movl	$4095, %eax                     ## imm = 0xFFF
	cmovnel	%ecx, %eax
	movq	32(%r12), %rcx
	movl	(%rcx), %r13d
	movl	4(%rcx), %ecx
	shll	$20, %ecx
	shll	$12, %r13d
	orl	%ecx, %r13d
	orl	%eax, %r13d
	addl	$-128, %ebx
	cmpl	$4, %ebx
	movl	%edx, -84(%rbp)                 ## 4-byte Spill
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	ja	LBB0_39
## %bb.10:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rsi
	addq	%rcx, %rsi
	jmpq	*%rsi
LBB0_22:
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rax
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rcx
	movq	_IEEE80211_SMPS_OFF@GOTPCREL(%rip), %rsi
	movl	24(%r12), %ebx
	movl	(%rax), %r9d
	movl	(%rcx), %eax
	movl	(%rsi), %ecx
	movq	_RATR_INX_WIRELESS_NGB@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_SMPS_STATIC@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jne	LBB0_24
## %bb.23:
	xorl	%ecx, %ecx
	cmpl	$2, %r15d
	setne	%cl
	leal	(%rcx,%rcx,4), %ecx
	orl	$520192, %ecx                   ## imm = 0x7F000
	cmpl	$1, %r15d
	movl	$458752, %edi                   ## imm = 0x70000
LBB0_32:
	cmovnel	%ecx, %edi
LBB0_33:
	movl	(%rdx), %r15d
	testl	%ebx, %eax
	setne	%sil
	testl	%ebx, %r9d
	setne	%dl
	cmpq	%r11, %r10
	setge	%bl
	andl	%edi, %r13d
	testl	%r8d, %r8d
	setne	%al
	sete	%cl
	andb	%bl, %al
	xorl	%ebx, %ebx
	testb	%dl, %al
	jne	LBB0_36
## %bb.34:
	andb	%sil, %cl
	jne	LBB0_36
## %bb.35:
	movq	%r14, %r12
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_43
LBB0_39:
	movq	_RATR_INX_WIRELESS_NGB@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %r12
	movl	8(%r14), %eax
	movq	_RF_1T2R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_41
## %bb.40:
	andl	$1044735, %r13d                 ## imm = 0xFF0FF
	jmp	LBB0_42
LBB0_15:
	movq	_RATR_INX_WIRELESS_GB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %r12
	cmpl	$2, %r15d
	je	LBB0_19
## %bb.16:
	cmpl	$1, %r15d
	jne	LBB0_20
## %bb.17:
	andl	$3840, %eax                     ## imm = 0xF00
	jmp	LBB0_18
LBB0_11:
	movq	%r14, %r12
	movq	_RATR_INX_WIRELESS_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	testb	$12, %al
	je	LBB0_14
## %bb.12:
	andl	$13, %eax
	jmp	LBB0_13
LBB0_21:
	movq	%r14, %r12
	movq	_RATR_INX_WIRELESS_A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	andl	$4080, %eax                     ## imm = 0xFF0
	jmp	LBB0_13
LBB0_24:
	movl	8(%r14), %ecx
	movq	_RF_1T2R@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	je	LBB0_26
## %bb.25:
	movq	_RF_1T1R@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	je	LBB0_26
## %bb.29:
	testl	%r8d, %r8d
	je	LBB0_31
## %bb.30:
	cmpl	$2, %r15d
	movl	$252702720, %ecx                ## imm = 0xF0FF000
	movl	$252702741, %esi                ## imm = 0xF0FF015
	cmovel	%ecx, %esi
	cmpl	$1, %r15d
	movl	$252641280, %edi                ## imm = 0xF0F0000
	cmovnel	%esi, %edi
	jmp	LBB0_33
LBB0_36:
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	movq	%r14, %r12
	je	LBB0_37
## %bb.38:
	cmpl	$1, %eax
	jmp	LBB0_43
LBB0_41:
	andl	$252702975, %r13d               ## imm = 0xF0FF0FF
LBB0_42:
	xorl	%ebx, %ebx
	jmp	LBB0_43
LBB0_26:
	testl	%r8d, %r8d
	je	LBB0_28
## %bb.27:
	cmpl	$2, %r15d
	movl	$1044480, %ecx                  ## imm = 0xFF000
	movl	$1044501, %esi                  ## imm = 0xFF015
	cmovel	%ecx, %esi
	cmpl	$1, %r15d
	movl	$983040, %edi                   ## imm = 0xF0000
	cmovnel	%esi, %edi
	jmp	LBB0_33
LBB0_14:
	andl	$15, %eax
LBB0_13:
	xorl	%ebx, %ebx
	movl	%eax, %r13d
	jmp	LBB0_43
LBB0_19:
	andl	$4080, %eax                     ## imm = 0xFF0
	jmp	LBB0_18
LBB0_20:
	andl	$4085, %eax                     ## imm = 0xFF5
LBB0_18:
	xorl	%ebx, %ebx
	movl	%eax, %r13d
	movl	%ecx, %r15d
	jmp	LBB0_43
LBB0_37:
	movl	$32, %ebx
LBB0_43:
	movl	%r15d, 4(%r9)
	movq	_COMP_RATR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	%r15d, %eax
	shll	$28, %eax
	orl	%r13d, %eax
	movl	%eax, -80(%rbp)
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	orl	%r14d, %ebx
	orl	$128, %ebx
	movl	%ebx, -64(%rbp)
	movq	_COMP_RATR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rbx
	movq	%rbx, (%rsp)
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	4(%r12), %edi
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_schedule_work
	testl	%r14d, %r14d
	je	LBB0_45
## %bb.44:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, 4(%rax)
LBB0_45:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_47
## %bb.46:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	xorl	%ecx, %ecx
	cmpl	$2, %r15d
	setne	%cl
	leal	(%rcx,%rcx,4), %ecx
	orl	$252702720, %ecx                ## imm = 0xF0FF000
	cmpl	$1, %r15d
	movl	$252641280, %edi                ## imm = 0xF0F0000
	jmp	LBB0_32
LBB0_28:
	xorl	%ecx, %ecx
	cmpl	$2, %r15d
	setne	%cl
	leal	(%rcx,%rcx,4), %ecx
	orl	$1044480, %ecx                  ## imm = 0xFF000
	cmpl	$1, %r15d
	movl	$983040, %edi                   ## imm = 0xF0000
	jmp	LBB0_32
LBB0_47:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
LJTI0_0:
	.long	L0_0_set_22
	.long	L0_0_set_22
	.long	L0_0_set_15
	.long	L0_0_set_11
	.long	L0_0_set_21
	.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_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	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.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_A,4,2        ## @RATR_INX_WIRELESS_A
	.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	_COMP_RATR,4,2                  ## @COMP_RATR
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ratr_bitmap :%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Rate_index:%x, ratr_val:%x, %5phC\n"

	.no_dead_strip	_rtl92cu_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 rtl92cu_update_hal_rate_mask
_rtl92cu_update_hal_rate_mask:          ; @rtl92cu_update_hal_rate_mask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	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
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _IEEE80211_STA_RX_BW_40@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_STA_RX_BW_40@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w10, ge
	ldr	x23, [x20, #40]
	ldr	x11, [x22]
Lloh6:
	adrp	x12, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh7:
	ldr	x12, [x12, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh8:
	adrp	x13, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh9:
	ldr	x13, [x13, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
Lloh11:
	ldr	x13, [x13]
	cmp	x11, x12
	ccmp	x11, x13, #4, ne
Lloh12:
	adrp	x12, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh13:
	ldr	x12, [x12, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	mov	w24, #0
	ldr	w10, [x22, #8]
	b	LBB0_6
LBB0_2:
Lloh14:
	adrp	x13, _NL80211_IFTYPE_AP@GOTPAGE
Lloh15:
	ldr	x13, [x13, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh16:
	ldr	x13, [x13]
	cmp	x11, x13
	b.eq	LBB0_5
; %bb.3:
	ldr	x13, [x12]
	cmp	x11, x13
	b.eq	LBB0_5
; %bb.4:
	mov	w24, #0
	b	LBB0_6
LBB0_5:
	ldr	w13, [x20, #8]
	add	w24, w13, #1
LBB0_6:
	ldr	w13, [x23]
	ldr	x15, [x0]
Lloh17:
	adrp	x14, _BAND_ON_5G@GOTPAGE
Lloh18:
	ldr	x14, [x14, _BAND_ON_5G@GOTPAGEOFF]
Lloh19:
	ldr	x16, [x14]
	ldr	x14, [x20, #16]
	cmp	x15, x16
	b.ne	LBB0_8
; %bb.7:
	ldr	w14, [x14, #4]
	lsl	w14, w14, #4
	b	LBB0_9
LBB0_8:
	ldr	w14, [x14]
LBB0_9:
	ldr	x12, [x12]
	cmp	x11, x12
	mov	w11, #4095
	csel	w12, w11, w14, eq
	ldr	x11, [x20, #32]
	ldp	w11, w14, [x11]
	orr	w14, w12, w14, lsl #20
	orr	w11, w14, w11, lsl #12
	sub	w13, w13, #128
	cmp	w13, #4
	b.hi	LBB0_13
; %bb.10:
Lloh20:
	adrp	x14, lJTI0_0@PAGE
Lloh21:
	add	x14, x14, lJTI0_0@PAGEOFF
	adr	x15, LBB0_11
	ldrb	w16, [x14, x13]
	add	x15, x15, x16, lsl #2
	br	x15
LBB0_11:
Lloh22:
	adrp	x12, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh23:
	ldr	x12, [x12, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh24:
	adrp	x13, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh25:
	ldr	x13, [x13, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
	ldr	w14, [x20, #24]
Lloh26:
	ldr	w12, [x12]
Lloh27:
	ldr	w13, [x13]
Lloh28:
	adrp	x15, _IEEE80211_SMPS_OFF@GOTPAGE
Lloh29:
	ldr	x15, [x15, _IEEE80211_SMPS_OFF@GOTPAGEOFF]
	and	w12, w12, w14
	and	w13, w13, w14
Lloh30:
	adrp	x14, _RATR_INX_WIRELESS_NGB@GOTPAGE
Lloh31:
	ldr	x14, [x14, _RATR_INX_WIRELESS_NGB@GOTPAGEOFF]
Lloh32:
	ldr	w15, [x15]
Lloh33:
	ldr	w20, [x14]
Lloh34:
	adrp	x14, _IEEE80211_SMPS_STATIC@GOTPAGE
Lloh35:
	ldr	x14, [x14, _IEEE80211_SMPS_STATIC@GOTPAGEOFF]
Lloh36:
	ldr	w14, [x14]
	cmp	w15, w14
	b.ne	LBB0_17
; %bb.12:
	mov	w14, #61445
	movk	w14, #7, lsl #16
	mov	w15, #520192
	cmp	w21, #2
	csel	w14, w15, w14, eq
	mov	w15, #458752
	b	LBB0_27
LBB0_13:
Lloh37:
	adrp	x8, _RATR_INX_WIRELESS_NGB@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RATR_INX_WIRELESS_NGB@GOTPAGEOFF]
Lloh39:
	ldr	w20, [x8]
	ldr	w8, [x19, #8]
	mov	w9, #234
	mov	w10, #61461
	movk	w10, #15, lsl #16
	orr	w9, w10, w9
	mov	w10, #61440
	movk	w10, #3855, lsl #16
	orr	w10, w10, #0xff
	and	w10, w11, w10
	and	w9, w11, w9
Lloh40:
	adrp	x11, _RF_1T2R@GOTPAGE
Lloh41:
	ldr	x11, [x11, _RF_1T2R@GOTPAGEOFF]
Lloh42:
	ldr	w11, [x11]
	cmp	w8, w11
	csel	w21, w10, w9, ne
	csel	w22, wzr, wzr, ne
	b	LBB0_31
LBB0_14:
Lloh43:
	adrp	x8, _RATR_INX_WIRELESS_GB@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RATR_INX_WIRELESS_GB@GOTPAGEOFF]
Lloh45:
	ldr	w20, [x8]
	and	w8, w12, #0xff0
	mov	w9, #4085
	and	w9, w12, w9
	and	w10, w12, #0xf00
	cmp	w21, #1
	csel	w9, w9, w10, ne
	csel	w10, wzr, wzr, ne
	cmp	w21, #2
	csel	w21, w8, w9, eq
	csel	w22, wzr, w10, eq
	b	LBB0_31
LBB0_15:
Lloh46:
	adrp	x8, _RATR_INX_WIRELESS_B@GOTPAGE
Lloh47:
	ldr	x8, [x8, _RATR_INX_WIRELESS_B@GOTPAGEOFF]
Lloh48:
	ldr	w20, [x8]
	tst	w12, #0xc
	and	w8, w12, #0xf
	mov	w9, #13
	and	w9, w12, w9
	csel	w21, w8, w9, eq
	csel	w22, wzr, wzr, eq
	b	LBB0_31
LBB0_16:
	mov	w22, #0
Lloh49:
	adrp	x8, _RATR_INX_WIRELESS_A@GOTPAGE
Lloh50:
	ldr	x8, [x8, _RATR_INX_WIRELESS_A@GOTPAGEOFF]
Lloh51:
	ldr	w20, [x8]
	and	w21, w12, #0xff0
	b	LBB0_31
LBB0_17:
	ldr	w14, [x19, #8]
Lloh52:
	adrp	x15, _RF_1T2R@GOTPAGE
Lloh53:
	ldr	x15, [x15, _RF_1T2R@GOTPAGEOFF]
Lloh54:
	ldr	w15, [x15]
	cmp	w14, w15
	b.eq	LBB0_21
; %bb.18:
Lloh55:
	adrp	x15, _RF_1T1R@GOTPAGE
Lloh56:
	ldr	x15, [x15, _RF_1T1R@GOTPAGEOFF]
Lloh57:
	ldr	w15, [x15]
	cmp	w14, w15
	b.eq	LBB0_21
; %bb.19:
	mov	w14, #61440
	movk	w14, #3855, lsl #16
	cbz	w10, LBB0_23
; %bb.20:
	add	w15, w14, #21
	b	LBB0_24
LBB0_21:
	cbz	w10, LBB0_25
; %bb.22:
	mov	w14, #61461
	movk	w14, #15, lsl #16
	b	LBB0_26
LBB0_23:
	add	w15, w14, #5
LBB0_24:
	cmp	w21, #2
	csel	w14, w14, w15, eq
	mov	w15, #252641280
	b	LBB0_27
LBB0_25:
	mov	w14, #61445
	movk	w14, #7, lsl #16
	orr	w14, w14, #0x80000
LBB0_26:
	mov	w15, #1044480
	cmp	w21, #2
	csel	w14, w15, w14, eq
	mov	w15, #983040
LBB0_27:
	cmp	w21, #1
	csel	w14, w15, w14, eq
	cmp	w10, #0
	ccmp	w13, #0, #4, eq
	cset	w13, ne
	cmp	w12, #0
	ccmp	x8, x9, #8, ne
	and	w21, w11, w14
	ccmp	w10, #0, #4, ge
	b.ne	LBB0_30
; %bb.28:
	cbnz	w13, LBB0_30
; %bb.29:
	mov	w22, #0
	b	LBB0_31
LBB0_30:
	mov	w8, #32
	cmp	w24, #1
	csel	w9, wzr, wzr, ne
	cmp	w24, #0
	csel	w22, w8, w9, eq
LBB0_31:
	str	w20, [x23, #4]
Lloh58:
	adrp	x25, _COMP_RATR@GOTPAGE
Lloh59:
	ldr	x25, [x25, _COMP_RATR@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh60:
	adrp	x26, _DBG_DMESG@GOTPAGE
Lloh61:
	ldr	x26, [x26, _DBG_DMESG@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh62:
	adrp	x3, l_.str@PAGE
Lloh63:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x21
	bl	_RT_TRACE
	orr	w8, w21, w20, lsl #28
	orr	w9, w24, w22
	orr	w9, w9, #0x80
	str	w8, [sp, #20]
	str	w9, [sp, #36]
	ldr	w1, [x25]
	ldr	w2, [x26]
	add	x8, sp, #20
Lloh64:
	adrp	x3, l_.str.1@PAGE
Lloh65:
	add	x3, x3, l_.str.1@PAGEOFF
	stp	x21, x8, [sp]
	mov	x0, x19
	mov	x4, x20
	bl	_RT_TRACE
	ldr	w0, [x19, #4]
	add	x1, sp, #20
	mov	w2, #5
	bl	_memcpy
	mov	x0, x19
	bl	_schedule_work
	cbz	w24, LBB0_33
; %bb.32:
	str	w20, [x23, #4]
LBB0_33:
	ldr	x8, [sp, #40]
Lloh66:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh67:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.34:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>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_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	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.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_A,4,2        ; @RATR_INX_WIRELESS_A
	.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	_COMP_RATR,4,2                  ; @COMP_RATR
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ratr_bitmap :%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Rate_index:%x, ratr_val:%x, %5phC\n"

	.no_dead_strip	_rtl92cu_update_hal_rate_mask
.subsections_via_symbols
