	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_rc_get_highest_rix
__rtl_rc_get_highest_rix:               ## @_rtl_rc_get_highest_rix
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_rtl_hal
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %rdi
	callq	_get_rf_type
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	movl	$3, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_4:
	movl	$4, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_5:
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_6:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_7:
	testq	%rbx, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.8:
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	jmp	LBB0_10
LBB0_9:
	xorl	%r15d, %r15d
LBB0_10:
	movl	(%r13), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_rtl_is_special_data
	testl	%r12d, %r12d
	jne	LBB0_16
## %bb.11:
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.13:
	movq	_WIRELESS_MODE_B@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_19
## %bb.14:
	movq	_B_MODE_MAX_RIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_16:
	xorl	%eax, %eax
LBB0_33:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_WIRELESS_MODE_A@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_21
## %bb.18:
	movq	_A_MODE_MAX_RIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_19:
	movq	_WIRELESS_MODE_G@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_23
## %bb.20:
	movq	_G_MODE_MAX_RIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_21:
	movq	_WIRELESS_MODE_N_5G@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_24
## %bb.22:
	movq	_WIRELESS_MODE_AC_5G@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_23:
	movq	_WIRELESS_MODE_N_24G@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_27
LBB0_24:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_26
## %bb.25:
	movq	_N_MODE_MCS7_RIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_26:
	movq	_N_MODE_MCS15_RIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_27:
	movq	_WIRELESS_MODE_AC_24G@GOTPCREL(%rip), %rax
LBB0_28:
	cmpq	(%rax), %r15
	movl	$0, %eax
	jne	LBB0_33
## %bb.29:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_IEEE80211_STA_RX_BW_20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.30:
	movq	_AC_MODE_MCS8_RIX@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_31:
	movq	_AC_MODE_MCS9_RIX@GOTPCREL(%rip), %rax
LBB0_32:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_ieee80211_rate_set_vht
	movl	-56(%rbp), %eax
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_BAND_ON_2_4G,8,3               ## @BAND_ON_2_4G
	.comm	_WIRELESS_MODE_B,8,3            ## @WIRELESS_MODE_B
	.comm	_B_MODE_MAX_RIX,4,2             ## @B_MODE_MAX_RIX
	.comm	_WIRELESS_MODE_G,8,3            ## @WIRELESS_MODE_G
	.comm	_G_MODE_MAX_RIX,4,2             ## @G_MODE_MAX_RIX
	.comm	_WIRELESS_MODE_N_24G,8,3        ## @WIRELESS_MODE_N_24G
	.comm	_N_MODE_MCS7_RIX,4,2            ## @N_MODE_MCS7_RIX
	.comm	_N_MODE_MCS15_RIX,4,2           ## @N_MODE_MCS15_RIX
	.comm	_WIRELESS_MODE_AC_24G,8,3       ## @WIRELESS_MODE_AC_24G
	.comm	_IEEE80211_STA_RX_BW_20,8,3     ## @IEEE80211_STA_RX_BW_20
	.comm	_AC_MODE_MCS8_RIX,4,2           ## @AC_MODE_MCS8_RIX
	.comm	_AC_MODE_MCS9_RIX,4,2           ## @AC_MODE_MCS9_RIX
	.comm	_WIRELESS_MODE_A,8,3            ## @WIRELESS_MODE_A
	.comm	_A_MODE_MAX_RIX,4,2             ## @A_MODE_MAX_RIX
	.comm	_WIRELESS_MODE_N_5G,8,3         ## @WIRELESS_MODE_N_5G
	.comm	_WIRELESS_MODE_AC_5G,8,3        ## @WIRELESS_MODE_AC_5G
	.no_dead_strip	__rtl_rc_get_highest_rix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl_rc_get_highest_rix
__rtl_rc_get_highest_rix:               ; @_rtl_rc_get_highest_rix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
	bl	_rtl_hal
	mov	x22, x0
	add	x0, x24, #4
	bl	_get_rf_type
	mov	w8, #4
	mov	w9, #2
	mov	w10, #1
	mov	w11, #3
	cmp	w0, #129
	csel	w12, w10, wzr, ne
	csel	w10, w10, w11, ne
	cmp	w0, #130
	csel	w11, wzr, w12, eq
	csel	w9, w9, w10, eq
	cmp	w0, #128
	csel	w25, wzr, w11, eq
	csel	w20, w8, w9, eq
	cbz	x19, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x26, [x8]
	b	LBB0_3
LBB0_2:
	mov	x26, #0
LBB0_3:
	ldr	w0, [x24]
	mov	x1, x23
	mov	w2, #1
	mov	w3, #0
	bl	_rtl_is_special_data
	mov	x8, x0
	mov	w0, #0
	cbnz	w21, LBB0_23
; %bb.4:
	cbnz	x8, LBB0_23
; %bb.5:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _BAND_ON_2_4G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BAND_ON_2_4G@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh3:
	adrp	x8, _WIRELESS_MODE_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIRELESS_MODE_B@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_10
; %bb.7:
Lloh6:
	adrp	x8, _B_MODE_MAX_RIX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B_MODE_MAX_RIX@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_8:
Lloh9:
	adrp	x8, _WIRELESS_MODE_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WIRELESS_MODE_A@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_12
; %bb.9:
Lloh12:
	adrp	x8, _A_MODE_MAX_RIX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _A_MODE_MAX_RIX@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_10:
Lloh15:
	adrp	x8, _WIRELESS_MODE_G@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WIRELESS_MODE_G@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_15
; %bb.11:
Lloh18:
	adrp	x8, _G_MODE_MAX_RIX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _G_MODE_MAX_RIX@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_12:
Lloh21:
	adrp	x8, _WIRELESS_MODE_N_5G@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WIRELESS_MODE_N_5G@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_18
; %bb.13:
	cbz	w25, LBB0_17
LBB0_14:
Lloh24:
	adrp	x8, _N_MODE_MCS7_RIX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _N_MODE_MCS7_RIX@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_15:
Lloh27:
	adrp	x8, _WIRELESS_MODE_N_24G@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WIRELESS_MODE_N_24G@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_19
; %bb.16:
	cbnz	w25, LBB0_14
LBB0_17:
Lloh30:
	adrp	x8, _N_MODE_MCS15_RIX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _N_MODE_MCS15_RIX@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	b	LBB0_23
LBB0_18:
Lloh33:
	adrp	x8, _WIRELESS_MODE_AC_5G@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WIRELESS_MODE_AC_5G@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh35:
	adrp	x8, _WIRELESS_MODE_AC_24G@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WIRELESS_MODE_AC_24G@GOTPAGEOFF]
LBB0_20:
	ldr	x8, [x8]
	cmp	x26, x8
	b.ne	LBB0_22
; %bb.21:
	ldr	x8, [x19]
Lloh37:
	adrp	x9, _IEEE80211_STA_RX_BW_20@GOTPAGE
Lloh38:
	ldr	x9, [x9, _IEEE80211_STA_RX_BW_20@GOTPAGEOFF]
Lloh39:
	adrp	x10, _AC_MODE_MCS8_RIX@GOTPAGE
Lloh40:
	ldr	x10, [x10, _AC_MODE_MCS8_RIX@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
Lloh42:
	adrp	x11, _AC_MODE_MCS9_RIX@GOTPAGE
Lloh43:
	ldr	x11, [x11, _AC_MODE_MCS9_RIX@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_ieee80211_rate_set_vht
	ldr	w0, [sp, #8]
	b	LBB0_23
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_BAND_ON_2_4G,8,3               ; @BAND_ON_2_4G
	.comm	_WIRELESS_MODE_B,8,3            ; @WIRELESS_MODE_B
	.comm	_B_MODE_MAX_RIX,4,2             ; @B_MODE_MAX_RIX
	.comm	_WIRELESS_MODE_G,8,3            ; @WIRELESS_MODE_G
	.comm	_G_MODE_MAX_RIX,4,2             ; @G_MODE_MAX_RIX
	.comm	_WIRELESS_MODE_N_24G,8,3        ; @WIRELESS_MODE_N_24G
	.comm	_N_MODE_MCS7_RIX,4,2            ; @N_MODE_MCS7_RIX
	.comm	_N_MODE_MCS15_RIX,4,2           ; @N_MODE_MCS15_RIX
	.comm	_WIRELESS_MODE_AC_24G,8,3       ; @WIRELESS_MODE_AC_24G
	.comm	_IEEE80211_STA_RX_BW_20,8,3     ; @IEEE80211_STA_RX_BW_20
	.comm	_AC_MODE_MCS8_RIX,4,2           ; @AC_MODE_MCS8_RIX
	.comm	_AC_MODE_MCS9_RIX,4,2           ; @AC_MODE_MCS9_RIX
	.comm	_WIRELESS_MODE_A,8,3            ; @WIRELESS_MODE_A
	.comm	_A_MODE_MAX_RIX,4,2             ; @A_MODE_MAX_RIX
	.comm	_WIRELESS_MODE_N_5G,8,3         ; @WIRELESS_MODE_N_5G
	.comm	_WIRELESS_MODE_AC_5G,8,3        ; @WIRELESS_MODE_AC_5G
	.no_dead_strip	__rtl_rc_get_highest_rix
.subsections_via_symbols
