	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sta_set_rate_info_tx           ## -- Begin function sta_set_rate_info_tx
	.p2align	4, 0x90
_sta_set_rate_info_tx:                  ## @sta_set_rate_info_tx
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movl	$0, 8(%rdx)
	movl	(%rsi), %eax
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_RATE_INFO_FLAGS_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	8(%r14), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_2:
	movq	_IEEE80211_TX_RC_VHT_MCS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_RATE_INFO_FLAGS_VHT_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_ieee80211_rate_get_vht_mcs
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	callq	_ieee80211_rate_get_vht_nss
	movl	%eax, 16(%rbx)
	jmp	LBB0_5
LBB0_4:
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movl	(%rdi), %edi
	callq	_ieee80211_get_sdata_band
	movq	(%r15,%rax,8), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 12(%rbx)
LBB0_5:
	movl	(%r14), %eax
	movq	_IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
LBB0_7:
	movq	_IEEE80211_TX_RC_80_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
LBB0_9:
	movq	_IEEE80211_TX_RC_160_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
LBB0_11:
	movq	_IEEE80211_TX_RC_SHORT_GI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_RATE_INFO_FLAGS_SHORT_GI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_RATE_INFO_FLAGS_MCS,4,2        ## @RATE_INFO_FLAGS_MCS
	.comm	_IEEE80211_TX_RC_VHT_MCS,4,2    ## @IEEE80211_TX_RC_VHT_MCS
	.comm	_RATE_INFO_FLAGS_VHT_MCS,4,2    ## @RATE_INFO_FLAGS_VHT_MCS
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_40_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_40_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_80_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_80_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_80_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_80_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_160_MHZ_WIDTH,4,2 ## @IEEE80211_TX_RC_160_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_160_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_160_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ## @IEEE80211_TX_RC_SHORT_GI
	.comm	_RATE_INFO_FLAGS_SHORT_GI,4,2   ## @RATE_INFO_FLAGS_SHORT_GI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sta_set_rate_info_tx           ; -- Begin function sta_set_rate_info_tx
	.p2align	2
_sta_set_rate_info_tx:                  ; @sta_set_rate_info_tx
	.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	x19, x2
	mov	x20, x1
	str	wzr, [x2, #8]
	ldr	w8, [x1]
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:
Lloh3:
	adrp	x8, _RATE_INFO_FLAGS_MCS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RATE_INFO_FLAGS_MCS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x8, [x20, #8]
	str	x8, [x19]
	b	LBB0_5
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:
Lloh9:
	adrp	x8, _RATE_INFO_FLAGS_VHT_MCS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RATE_INFO_FLAGS_VHT_MCS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_ieee80211_rate_get_vht_mcs
	str	x0, [x19]
	mov	x0, x20
	bl	_ieee80211_rate_get_vht_nss
	str	w0, [x19, #16]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x21, [x8]
	ldr	w0, [x0]
	bl	_ieee80211_get_sdata_band
	ldr	x8, [x21, x0, lsl #3]
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #12]
LBB0_5:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_TX_RC_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh15:
	adrp	x9, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_7:
Lloh18:
	adrp	x9, _IEEE80211_TX_RC_80_MHZ_WIDTH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IEEE80211_TX_RC_80_MHZ_WIDTH@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh21:
	adrp	x9, _RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_9:
Lloh24:
	adrp	x9, _IEEE80211_TX_RC_160_MHZ_WIDTH@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IEEE80211_TX_RC_160_MHZ_WIDTH@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh27:
	adrp	x9, _RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_11:
Lloh30:
	adrp	x9, _IEEE80211_TX_RC_SHORT_GI@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IEEE80211_TX_RC_SHORT_GI@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh33:
	adrp	x8, _RATE_INFO_FLAGS_SHORT_GI@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RATE_INFO_FLAGS_SHORT_GI@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_13:
	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 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 AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_RATE_INFO_FLAGS_MCS,4,2        ; @RATE_INFO_FLAGS_MCS
	.comm	_IEEE80211_TX_RC_VHT_MCS,4,2    ; @IEEE80211_TX_RC_VHT_MCS
	.comm	_RATE_INFO_FLAGS_VHT_MCS,4,2    ; @RATE_INFO_FLAGS_VHT_MCS
	.comm	_IEEE80211_TX_RC_40_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_40_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_40_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_40_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_80_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_80_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_80_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_80_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_160_MHZ_WIDTH,4,2 ; @IEEE80211_TX_RC_160_MHZ_WIDTH
	.comm	_RATE_INFO_FLAGS_160_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_160_MHZ_WIDTH
	.comm	_IEEE80211_TX_RC_SHORT_GI,4,2   ; @IEEE80211_TX_RC_SHORT_GI
	.comm	_RATE_INFO_FLAGS_SHORT_GI,4,2   ; @RATE_INFO_FLAGS_SHORT_GI
.subsections_via_symbols
