	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl_get_tx_hw_rate
__rtl_get_tx_hw_rate:                   ## @_rtl_get_tx_hw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %r14
	movq	(%r15), %rbx
	movl	(%rbx), %eax
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_RTL_RC_HT_RATEMCS15@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	4(%rbx), %ecx
	addl	%ecx, %eax
	addl	$-15, %eax
	jmp	LBB0_10
LBB0_2:
	movq	_IEEE80211_TX_RC_VHT_MCS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_ieee80211_rate_get_vht_nss
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.5:
	movq	_RTL_RC_VHT_RATE_2SS_MCS9@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ieee80211_get_tx_rate
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_4:
	movq	_RTL_RC_VHT_RATE_1SS_MCS9@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movl	(%rcx,%rax,4), %r15d
	movq	%rbx, %rdi
	callq	_ieee80211_rate_get_vht_mcs
                                        ## kill: def $eax killed $eax def $rax
	addl	%r15d, %eax
	addl	$-9, %eax
LBB0_10:
	movq	8(%r14), %rcx
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.11:
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	_RTL_RC_OFDM_RATE6M@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_RTL_RC_HT_RATEMCS15,8,3        ## @RTL_RC_HT_RATEMCS15
	.comm	_IEEE80211_TX_RC_VHT_MCS,4,2    ## @IEEE80211_TX_RC_VHT_MCS
	.comm	_RTL_RC_VHT_RATE_2SS_MCS9,8,3   ## @RTL_RC_VHT_RATE_2SS_MCS9
	.comm	_RTL_RC_VHT_RATE_1SS_MCS9,8,3   ## @RTL_RC_VHT_RATE_1SS_MCS9
	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.comm	_RTL_RC_OFDM_RATE6M,8,3         ## @RTL_RC_OFDM_RATE6M
	.no_dead_strip	__rtl_get_tx_hw_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_tx_hw_rate
__rtl_get_tx_hw_rate:                   ; @_rtl_get_tx_hw_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	x21, x1
	mov	x22, x0
	bl	_rtl_priv
	mov	x19, x0
	ldr	x20, [x21]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RTL_RC_HT_RATEMCS15@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTL_RC_HT_RATEMCS15@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x20, #4]
	add	w8, w8, w9
	sub	w0, w8, #15
	b	LBB0_6
LBB0_2:
Lloh6:
	adrp	x9, _IEEE80211_TX_RC_VHT_MCS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_TX_RC_VHT_MCS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_ieee80211_rate_get_vht_nss
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _RTL_RC_VHT_RATE_2SS_MCS9@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RTL_RC_VHT_RATE_2SS_MCS9@GOTPAGEOFF]
Lloh11:
	adrp	x10, _RTL_RC_VHT_RATE_1SS_MCS9@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RTL_RC_VHT_RATE_1SS_MCS9@GOTPAGEOFF]
	ldr	x8, [x8]
	cmp	w0, #2
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	ldr	w21, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_ieee80211_rate_get_vht_mcs
	add	w8, w21, w0
	sub	w0, w8, #9
	b	LBB0_6
LBB0_4:
	mov	x0, x22
	mov	x1, x21
	bl	_ieee80211_get_tx_rate
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x0]
LBB0_6:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _BAND_ON_5G@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BAND_ON_5G@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _RTL_RC_OFDM_RATE6M@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RTL_RC_OFDM_RATE6M@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w0, w8
	csel	w0, w0, w8, gt
LBB0_8:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_RTL_RC_HT_RATEMCS15,8,3        ; @RTL_RC_HT_RATEMCS15
	.comm	_IEEE80211_TX_RC_VHT_MCS,4,2    ; @IEEE80211_TX_RC_VHT_MCS
	.comm	_RTL_RC_VHT_RATE_2SS_MCS9,8,3   ; @RTL_RC_VHT_RATE_2SS_MCS9
	.comm	_RTL_RC_VHT_RATE_1SS_MCS9,8,3   ; @RTL_RC_VHT_RATE_1SS_MCS9
	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.comm	_RTL_RC_OFDM_RATE6M,8,3         ; @RTL_RC_OFDM_RATE6M
	.no_dead_strip	__rtl_get_tx_hw_rate
.subsections_via_symbols
