	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92de_update_hal_rate_table
_rtl92de_update_hal_rate_table:         ## @rtl92de_update_hal_rate_table
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_mac
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rsi
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rdi
	movl	8(%r12), %ecx
	movq	(%rax), %rdx
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rbx
	movq	(%r15), %rax
	cmpq	(%rbx), %rdx
	jne	LBB0_2
## %bb.1:
	movl	4(%rax), %edx
	shll	$4, %edx
	jmp	LBB0_3
LBB0_2:
	movl	(%rax), %edx
LBB0_3:
	movl	(%r12), %eax
	movl	4(%r12), %r12d
	movl	8(%r15), %r13d
	movl	(%rsi), %r8d
	movl	(%rdi), %r9d
	movq	16(%r15), %rsi
	movl	(%rsi), %edi
	movl	4(%rsi), %ebx
	shll	$20, %ebx
	shll	$12, %edi
	orl	%edx, %ebx
	orl	%edi, %ebx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_15
## %bb.4:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	_IEEE80211_SMPS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IEEE80211_SMPS_STATIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	andl	$520197, %ebx                   ## imm = 0x7F005
	movl	%ebx, %edx
	jmp	LBB0_20
LBB0_15:
	movl	(%r14), %ecx
	movq	_RF_1T2R@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_17
## %bb.16:
	andl	$1044735, %ebx                  ## imm = 0xFF0FF
	jmp	LBB0_18
LBB0_9:
	andl	$4085, %edx                     ## imm = 0xFF5
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_21
LBB0_6:
	testb	$12, %dl
	je	LBB0_8
## %bb.7:
	andl	$13, %edx
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_21
LBB0_5:
	andl	$4080, %edx                     ## imm = 0xFF0
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_21
LBB0_12:
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movq	%r14, %rdi
	callq	_get_rf_type
	movq	_RF_1T2R@GOTPCREL(%rip), %rcx
	movl	$1044485, %edx                  ## imm = 0xFF005
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_get_rf_type
	movq	_RF_1T1R@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$1044485, %eax                  ## imm = 0xFF005
	movl	$252702725, %edx                ## imm = 0xF0FF005
	cmovel	%eax, %edx
LBB0_14:
	andl	%ebx, %edx
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	jmp	LBB0_20
LBB0_17:
	andl	$252702975, %ebx                ## imm = 0xF0FF0FF
LBB0_18:
	movl	%ebx, %edx
	testl	%eax, %eax
	je	LBB0_21
LBB0_20:
	leal	268435456(%rdx), %eax
	testl	%r13d, %r9d
	movl	%edx, %ecx
	cmovnel	%eax, %ecx
	testl	%r12d, %r12d
	cmovnel	%edx, %ecx
	testl	%r13d, %r8d
	cmovel	%ecx, %eax
	testl	%r12d, %r12d
	cmovel	%ecx, %eax
	movl	%eax, %edx
LBB0_21:
	movq	_REG_ARFR0@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_rtl_write_dword
	movq	_COMP_RATR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	_rtl_read_dword
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_8:
	andl	$15, %edx
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_IEEE80211_SMPS_OFF,4,2         ## @IEEE80211_SMPS_OFF
	.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	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.comm	_IEEE80211_SMPS_STATIC,4,2      ## @IEEE80211_SMPS_STATIC
	.comm	_RF_1T2R,4,2                    ## @RF_1T2R
	.comm	_RF_1T1R,4,2                    ## @RF_1T1R
	.comm	_REG_ARFR0,8,3                  ## @REG_ARFR0
	.comm	_COMP_RATR,4,2                  ## @COMP_RATR
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x\n"

	.no_dead_strip	_rtl92de_update_hal_rate_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl92de_update_hal_rate_table
_rtl92de_update_hal_rate_table:         ; @rtl92de_update_hal_rate_table
	.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, x1
	mov	x22, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x22
	bl	_rtl_priv
	bl	_rtl_mac
	mov	x21, x0
	mov	x0, x22
	bl	_rtl_priv
	bl	_rtl_hal
Lloh0:
	adrp	x8, _IEEE80211_HT_CAP_SGI_40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_HT_CAP_SGI_40@GOTPAGEOFF]
Lloh2:
	adrp	x11, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh3:
	ldr	x11, [x11, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
	ldr	w10, [x21, #8]
	ldr	x12, [x0]
Lloh4:
	adrp	x9, _BAND_ON_5G@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BAND_ON_5G@GOTPAGEOFF]
Lloh6:
	ldr	x13, [x9]
	ldr	x9, [x20]
	cmp	x12, x13
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x9, #4]
	lsl	w9, w9, #4
	b	LBB0_3
LBB0_2:
	ldr	w9, [x9]
LBB0_3:
	ldr	w22, [x20, #8]
	ldr	w23, [x8]
	ldr	w24, [x11]
	ldp	w8, w21, [x21]
	ldr	x11, [x20, #16]
	ldp	w11, w12, [x11]
	orr	w12, w9, w12, lsl #20
	orr	w20, w12, w11, lsl #12
	sub	w10, w10, #128
	cmp	w10, #4
	b.hi	LBB0_13
; %bb.4:
Lloh7:
	adrp	x11, lJTI0_0@PAGE
Lloh8:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_5
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_5:
Lloh9:
	adrp	x8, _IEEE80211_SMPS_OFF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_SMPS_OFF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w25, #61445
	movk	w25, #15, lsl #16
Lloh12:
	adrp	x9, _IEEE80211_SMPS_STATIC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_SMPS_STATIC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.6:
	sub	w8, w25, #128, lsl #12          ; =524288
	and	w2, w20, w8
	b	LBB0_14
LBB0_7:
	mov	w10, #4085
	and	w2, w9, w10
	cbnz	w8, LBB0_14
	b	LBB0_15
LBB0_8:
	tst	w9, #0xc
	and	w10, w9, #0xf
	mov	w11, #13
	and	w9, w9, w11
	csel	w2, w10, w9, eq
	cbnz	w8, LBB0_14
	b	LBB0_15
LBB0_9:
	and	w2, w9, #0xff0
	cbnz	w8, LBB0_14
	b	LBB0_15
LBB0_10:
	mov	x0, x19
	bl	_get_rf_type
Lloh15:
	adrp	x8, _RF_1T2R@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RF_1T2R@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_get_rf_type
Lloh18:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	mov	w9, #61445
	movk	w9, #3855, lsl #16
	cmp	w0, w8
	csel	w25, w25, w9, eq
LBB0_12:
	and	w2, w25, w20
	b	LBB0_14
LBB0_13:
	ldr	w9, [x19]
Lloh21:
	adrp	x10, _RF_1T2R@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RF_1T2R@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	mov	w11, #250
	mov	w12, #61445
	movk	w12, #3855, lsl #16
	orr	w11, w12, w11
	and	w11, w20, w11
	and	w12, w20, #0xfffff
	and	w12, w12, #0xfffff0ff
	cmp	w9, w10
	csel	w2, w11, w12, ne
	cbz	w8, LBB0_15
LBB0_14:
	and	w8, w23, w22
	and	w9, w24, w22
	cmp	w9, #0
	cset	w9, ne
	cmp	w8, #0
	cset	w8, ne
	cmp	w21, #0
	cset	w10, ne
	and	w8, w10, w8
	cset	w10, eq
	and	w9, w10, w9
	orr	w8, w8, w9
	orr	w9, w2, #0x10000000
	cmp	w8, #0
	csel	w2, w9, w2, ne
LBB0_15:
Lloh24:
	adrp	x22, _REG_ARFR0@GOTPAGE
Lloh25:
	ldr	x22, [x22, _REG_ARFR0@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x19
	bl	_rtl_write_dword
Lloh26:
	adrp	x8, _COMP_RATR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _COMP_RATR@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
Lloh29:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
	ldr	x1, [x22]
	mov	x0, x19
	bl	_rtl_read_dword
Lloh32:
	adrp	x3, l_.str@PAGE
Lloh33:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	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
	b	_RT_TRACE
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
                                        ; -- End function
	.comm	_IEEE80211_SMPS_OFF,4,2         ; @IEEE80211_SMPS_OFF
	.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	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.comm	_IEEE80211_SMPS_STATIC,4,2      ; @IEEE80211_SMPS_STATIC
	.comm	_RF_1T2R,4,2                    ; @RF_1T2R
	.comm	_RF_1T1R,4,2                    ; @RF_1T1R
	.comm	_REG_ARFR0,8,3                  ; @REG_ARFR0
	.comm	_COMP_RATR,4,2                  ; @COMP_RATR
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x\n"

	.no_dead_strip	_rtl92de_update_hal_rate_table
.subsections_via_symbols
