	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_get_vht_highest_n_rate
__rtl_get_vht_highest_n_rate:           ## @_rtl_get_vht_highest_n_rate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	leaq	8(%rax), %r15
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_get_rf_type
	movq	_RF_2T2R@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	%ebx, %eax
	andl	$12, %eax
	cmpl	$12, %eax
	jne	LBB0_2
LBB0_7:
	andl	$3, %ebx
	movq	_IEEE80211_VHT_MCS_SUPPORT_0_7@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_9
## %bb.8:
	movq	(%r14), %rcx
	movq	_RTL_RC_VHT_RATE_1SS_MCS7@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_IEEE80211_VHT_MCS_SUPPORT_0_8@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.11:
	movq	_RTL_RC_VHT_RATE_1SS_MCS8@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	shrl	$2, %eax
	movq	_IEEE80211_VHT_MCS_SUPPORT_0_7@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rcx
	movq	_RTL_RC_VHT_RATE_2SS_MCS7@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_RTL_RC_VHT_RATE_1SS_MCS9@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_IEEE80211_VHT_MCS_SUPPORT_0_8@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	_RTL_RC_VHT_RATE_2SS_MCS8@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_RTL_RC_VHT_RATE_2SS_MCS9@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%r14), %rcx
LBB0_13:
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movl	(%rcx,%rax,4), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_7,4,2 ## @IEEE80211_VHT_MCS_SUPPORT_0_7
	.comm	_RTL_RC_VHT_RATE_2SS_MCS7,8,3   ## @RTL_RC_VHT_RATE_2SS_MCS7
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_8,4,2 ## @IEEE80211_VHT_MCS_SUPPORT_0_8
	.comm	_RTL_RC_VHT_RATE_2SS_MCS8,8,3   ## @RTL_RC_VHT_RATE_2SS_MCS8
	.comm	_RTL_RC_VHT_RATE_2SS_MCS9,8,3   ## @RTL_RC_VHT_RATE_2SS_MCS9
	.comm	_RTL_RC_VHT_RATE_1SS_MCS7,8,3   ## @RTL_RC_VHT_RATE_1SS_MCS7
	.comm	_RTL_RC_VHT_RATE_1SS_MCS8,8,3   ## @RTL_RC_VHT_RATE_1SS_MCS8
	.comm	_RTL_RC_VHT_RATE_1SS_MCS9,8,3   ## @RTL_RC_VHT_RATE_1SS_MCS9
	.no_dead_strip	__rtl_get_vht_highest_n_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_get_vht_highest_n_rate
__rtl_get_vht_highest_n_rate:           ; @_rtl_get_vht_highest_n_rate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_rtl_priv
	mov	x19, x0
	add	x21, x0, #8
	ldr	w0, [x20]
	bl	_le16_to_cpu
	mov	x20, x0
	mov	x0, x21
	bl	_get_rf_type
Lloh0:
	adrp	x8, _RF_2T2R@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF_2T2R@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	and	w8, w20, #0xc
	ccmp	w8, #12, #4, eq
	b.ne	LBB0_4
; %bb.1:
	and	w9, w20, #0x3
Lloh3:
	adrp	x8, _IEEE80211_VHT_MCS_SUPPORT_0_7@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_VHT_MCS_SUPPORT_0_7@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _RTL_RC_VHT_RATE_1SS_MCS7@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RTL_RC_VHT_RATE_1SS_MCS7@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x8, _IEEE80211_VHT_MCS_SUPPORT_0_8@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_VHT_MCS_SUPPORT_0_8@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x8]
	ldr	x8, [x19]
Lloh11:
	adrp	x11, _RTL_RC_VHT_RATE_1SS_MCS9@GOTPAGE
Lloh12:
	ldr	x11, [x11, _RTL_RC_VHT_RATE_1SS_MCS9@GOTPAGEOFF]
Lloh13:
	adrp	x12, _RTL_RC_VHT_RATE_1SS_MCS8@GOTPAGE
Lloh14:
	ldr	x12, [x12, _RTL_RC_VHT_RATE_1SS_MCS8@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	lsr	w9, w8, #2
Lloh15:
	adrp	x8, _IEEE80211_VHT_MCS_SUPPORT_0_7@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_VHT_MCS_SUPPORT_0_7@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _RTL_RC_VHT_RATE_2SS_MCS7@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RTL_RC_VHT_RATE_2SS_MCS7@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x8, _IEEE80211_VHT_MCS_SUPPORT_0_8@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_VHT_MCS_SUPPORT_0_8@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x8]
	ldr	x8, [x19]
Lloh23:
	adrp	x11, _RTL_RC_VHT_RATE_2SS_MCS9@GOTPAGE
Lloh24:
	ldr	x11, [x11, _RTL_RC_VHT_RATE_2SS_MCS9@GOTPAGEOFF]
Lloh25:
	adrp	x12, _RTL_RC_VHT_RATE_2SS_MCS8@GOTPAGE
Lloh26:
	ldr	x12, [x12, _RTL_RC_VHT_RATE_2SS_MCS8@GOTPAGEOFF]
LBB0_7:
	cmp	w9, w10
	csel	x9, x12, x11, eq
LBB0_8:
	ldr	x8, [x8]
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_7,4,2 ; @IEEE80211_VHT_MCS_SUPPORT_0_7
	.comm	_RTL_RC_VHT_RATE_2SS_MCS7,8,3   ; @RTL_RC_VHT_RATE_2SS_MCS7
	.comm	_IEEE80211_VHT_MCS_SUPPORT_0_8,4,2 ; @IEEE80211_VHT_MCS_SUPPORT_0_8
	.comm	_RTL_RC_VHT_RATE_2SS_MCS8,8,3   ; @RTL_RC_VHT_RATE_2SS_MCS8
	.comm	_RTL_RC_VHT_RATE_2SS_MCS9,8,3   ; @RTL_RC_VHT_RATE_2SS_MCS9
	.comm	_RTL_RC_VHT_RATE_1SS_MCS7,8,3   ; @RTL_RC_VHT_RATE_1SS_MCS7
	.comm	_RTL_RC_VHT_RATE_1SS_MCS8,8,3   ; @RTL_RC_VHT_RATE_1SS_MCS8
	.comm	_RTL_RC_VHT_RATE_1SS_MCS9,8,3   ; @RTL_RC_VHT_RATE_1SS_MCS9
	.no_dead_strip	__rtl_get_vht_highest_n_rate
.subsections_via_symbols
