	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl88ee_update_hal_rate_table
_rtl88ee_update_hal_rate_table:         ## @rtl88ee_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, %r13
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	_IEEE80211_HT_CAP_SGI_40@GOTPCREL(%rip), %rdx
	movq	_IEEE80211_HT_CAP_SGI_20@GOTPCREL(%rip), %rsi
	movl	8(%r13), %ecx
	movq	(%rax), %rdi
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rbx
	movq	(%r15), %rax
	cmpq	(%rbx), %rdi
	jne	LBB0_2
## %bb.1:
	movl	4(%rax), %eax
	shll	$4, %eax
	jmp	LBB0_3
LBB0_2:
	movl	(%rax), %eax
LBB0_3:
	movq	%r14, %r12
	addq	$40, %r12
	movl	4(%r13), %r9d
	movl	8(%r15), %edi
	movl	(%rdx), %r10d
	movl	(%rsi), %r11d
	movq	16(%r13), %rdx
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	movl	$4095, %edx                     ## imm = 0xFFF
	cmovnel	%eax, %edx
	movq	16(%r15), %rax
	movl	(%rax), %ebx
	movl	4(%rax), %eax
	shll	$20, %eax
	shll	$12, %ebx
	orl	%eax, %ebx
	orl	%edx, %ebx
	leal	-128(%rcx), %eax
	cmpl	$2, %eax
	jb	LBB0_10
## %bb.4:
	movl	(%r13), %eax
	cmpl	$130, %ecx
	je	LBB0_9
## %bb.5:
	cmpl	$131, %ecx
	jne	LBB0_13
## %bb.6:
	testb	$12, %dl
	je	LBB0_8
## %bb.7:
	andl	$13, %edx
	cmpq	$0, 32(%r14)
	jne	LBB0_18
	jmp	LBB0_22
LBB0_10:
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movl	%edi, %r13d
	movl	%r9d, %r15d
	movq	%r12, %rdi
	callq	_get_rf_type
	movq	_RF_1T2R@GOTPCREL(%rip), %rcx
	movl	$1044485, %edx                  ## imm = 0xFF005
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	movq	%r12, %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_12:
	andl	%ebx, %edx
	movl	$1, %eax
	movl	%r15d, %r9d
	movl	%r13d, %edi
	movl	-48(%rbp), %r10d                ## 4-byte Reload
	movl	-44(%rbp), %r11d                ## 4-byte Reload
	cmpq	$0, 32(%r14)
	jne	LBB0_18
	jmp	LBB0_22
LBB0_9:
	andl	$4085, %edx                     ## imm = 0xFF5
	cmpq	$0, 32(%r14)
	jne	LBB0_18
	jmp	LBB0_22
LBB0_13:
	movl	(%r12), %ecx
	movq	_RF_1T2R@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_15
## %bb.14:
	andl	$1044735, %ebx                  ## imm = 0xFF0FF
	jmp	LBB0_16
LBB0_15:
	andl	$252702975, %ebx                ## imm = 0xF0FF0FF
LBB0_16:
	movl	%ebx, %edx
	cmpq	$0, 32(%r14)
	jne	LBB0_18
	jmp	LBB0_22
LBB0_8:
	andl	$15, %edx
	cmpq	$0, 32(%r14)
	je	LBB0_22
LBB0_18:
	movq	(%r14), %rcx
	movq	_BT_CSR_BC4@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_22
## %bb.19:
	cmpq	$0, 24(%r14)
	je	LBB0_22
## %bb.20:
	cmpq	$0, 16(%r14)
	je	LBB0_22
## %bb.21:
	movq	8(%r14), %rcx
	movq	_BT_SCO@GOTPCREL(%rip), %r8
	movq	_BT_BUSY@GOTPCREL(%rip), %rsi
	movl	%edx, %ebx
	andl	$268423104, %ebx                ## imm = 0xFFFCFC0
	cmpq	(%rsi), %rcx
	cmovel	%ebx, %edx
	cmpq	(%r8), %rcx
	cmovel	%ebx, %edx
LBB0_22:
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	leal	268435456(%rdx), %eax
	testl	%edi, %r11d
	movl	%edx, %ecx
	cmovnel	%eax, %ecx
	testl	%r9d, %r9d
	cmovnel	%edx, %ecx
	testl	%edi, %r10d
	cmovel	%ecx, %eax
	testl	%r9d, %r9d
	cmovel	%ecx, %eax
	movl	%eax, %edx
LBB0_24:
	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
	.cfi_endproc
                                        ## -- End function
	.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	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_RF_1T2R,4,2                    ## @RF_1T2R
	.comm	_RF_1T1R,4,2                    ## @RF_1T1R
	.comm	_BT_CSR_BC4,8,3                 ## @BT_CSR_BC4
	.comm	_BT_SCO,8,3                     ## @BT_SCO
	.comm	_BT_BUSY,8,3                    ## @BT_BUSY
	.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	_rtl88ee_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 rtl88ee_update_hal_rate_table
_rtl88ee_update_hal_rate_table:         ; @rtl88ee_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	x10, _IEEE80211_HT_CAP_SGI_20@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IEEE80211_HT_CAP_SGI_20@GOTPAGEOFF]
	ldr	w9, [x21, #8]
	ldr	x12, [x0]
Lloh4:
	adrp	x11, _BAND_ON_5G@GOTPAGE
Lloh5:
	ldr	x11, [x11, _BAND_ON_5G@GOTPAGEOFF]
Lloh6:
	ldr	x13, [x11]
	ldr	x11, [x20]
	cmp	x12, x13
	b.ne	LBB0_2
; %bb.1:
	ldr	w11, [x11, #4]
	lsl	w11, w11, #4
	b	LBB0_3
LBB0_2:
	ldr	w11, [x11]
LBB0_3:
	ldr	w24, [x20, #8]
	ldr	w25, [x8]
	ldr	w26, [x10]
	add	x22, x19, #40
	ldr	w23, [x21, #4]
Lloh7:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	ldr	x10, [x21, #16]
Lloh9:
	ldr	x8, [x8]
	cmp	x10, x8
	mov	w8, #4095
	csel	w10, w8, w11, eq
	ldr	x8, [x20, #16]
	ldp	w8, w11, [x8]
	orr	w11, w10, w11, lsl #20
	orr	w20, w11, w8, lsl #12
	sub	w8, w9, #128
	cmp	w8, #2
	b.lo	LBB0_7
; %bb.4:
	ldr	w8, [x21]
	cmp	w9, #130
	b.eq	LBB0_10
; %bb.5:
	cmp	w9, #131
	b.ne	LBB0_11
; %bb.6:
	tst	w10, #0xc
	and	w9, w10, #0xf
	mov	w11, #13
	and	w10, w10, w11
	csel	w9, w9, w10, eq
	b	LBB0_12
LBB0_7:
	mov	w21, #61445
	movk	w21, #15, lsl #16
	mov	x0, x22
	bl	_get_rf_type
Lloh10:
	adrp	x8, _RF_1T2R@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RF_1T2R@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_get_rf_type
Lloh13:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	w9, #61445
	movk	w9, #3855, lsl #16
	cmp	w0, w8
	csel	w21, w21, w9, eq
LBB0_9:
	and	w9, w21, w20
	mov	w8, #1
	b	LBB0_12
LBB0_10:
	mov	w9, #4085
	and	w9, w10, w9
	b	LBB0_12
LBB0_11:
	ldr	w9, [x22]
Lloh16:
	adrp	x10, _RF_1T2R@GOTPAGE
Lloh17:
	ldr	x10, [x10, _RF_1T2R@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	mov	w11, #250
	mov	w12, #61445
	movk	w12, #3855, lsl #16
	orr	w12, w12, w11
	and	w12, w20, w12
	mov	w13, #61445
	movk	w13, #15, lsl #16
	orr	w11, w13, w11
	and	w11, w20, w11
	cmp	w9, w10
	csel	w9, w12, w11, ne
LBB0_12:
	and	w10, w25, w24
	and	w11, w26, w24
	ldr	x12, [x19, #32]
	cbz	x12, LBB0_17
; %bb.13:
	ldr	x12, [x19]
Lloh19:
	adrp	x13, _BT_CSR_BC4@GOTPAGE
Lloh20:
	ldr	x13, [x13, _BT_CSR_BC4@GOTPAGEOFF]
Lloh21:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_17
; %bb.14:
	ldr	x12, [x19, #24]
	cbz	x12, LBB0_17
; %bb.15:
	ldr	x12, [x19, #16]
	cbz	x12, LBB0_17
; %bb.16:
	ldr	x12, [x19, #8]
Lloh22:
	adrp	x13, _BT_SCO@GOTPAGE
Lloh23:
	ldr	x13, [x13, _BT_SCO@GOTPAGEOFF]
Lloh24:
	ldr	x13, [x13]
Lloh25:
	adrp	x14, _BT_BUSY@GOTPAGE
Lloh26:
	ldr	x14, [x14, _BT_BUSY@GOTPAGEOFF]
Lloh27:
	ldr	x14, [x14]
	cmp	x12, x14
	ccmp	x12, x13, #4, ne
	and	w12, w9, #0xfffffc0
	and	w12, w12, #0xffffcfff
	csel	w9, w12, w9, eq
LBB0_17:
	cmp	w11, #0
	cset	w11, ne
	cmp	w10, #0
	cset	w10, ne
	cmp	w23, #0
	cset	w12, ne
	and	w10, w12, w10
	cset	w12, eq
	and	w11, w12, w11
	orr	w10, w10, w11
	orr	w11, w9, #0x10000000
	cmp	w10, #0
	csel	w10, w11, w9, ne
	cmp	w8, #0
	csel	w2, w9, w10, eq
Lloh28:
	adrp	x22, _REG_ARFR0@GOTPAGE
Lloh29:
	ldr	x22, [x22, _REG_ARFR0@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x19
	bl	_rtl_write_dword
Lloh30:
	adrp	x8, _COMP_RATR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _COMP_RATR@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
Lloh33:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh35:
	ldr	w21, [x8]
	ldr	x1, [x22]
	mov	x0, x19
	bl	_rtl_read_dword
Lloh36:
	adrp	x3, l_.str@PAGE
Lloh37:
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.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	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_RF_1T2R,4,2                    ; @RF_1T2R
	.comm	_RF_1T1R,4,2                    ; @RF_1T1R
	.comm	_BT_CSR_BC4,8,3                 ; @BT_CSR_BC4
	.comm	_BT_SCO,8,3                     ; @BT_SCO
	.comm	_BT_BUSY,8,3                    ; @BT_BUSY
	.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	_rtl88ee_update_hal_rate_table
.subsections_via_symbols
