	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sta_set_rate_info_rx           ## -- Begin function sta_set_rate_info_rx
	.p2align	4, 0x90
_sta_set_rate_info_rx:                  ## @sta_set_rate_info_rx
	.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
	movq	%rdi, %r14
	movl	$0, 8(%rsi)
	movl	(%rdi), %eax
	movq	_RX_FLAG_HT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_RATE_INFO_FLAGS_MCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	jmp	LBB0_2
LBB0_3:
	movq	_RX_FLAG_VHT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_RATE_INFO_FLAGS_VHT_MCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movl	32(%r14), %ecx
	movl	%ecx, 16(%rbx)
LBB0_2:
	movq	8(%r14), %rcx
	movq	%rcx, (%rbx)
LBB0_6:
	movq	_RX_FLAG_40MHZ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_RATE_INFO_FLAGS_40_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
LBB0_8:
	movq	_RX_FLAG_SHORT_GI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_RATE_INFO_FLAGS_SHORT_GI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
LBB0_10:
	movq	_RX_FLAG_80MHZ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
LBB0_12:
	movq	_RX_FLAG_80P80MHZ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movq	_RATE_INFO_FLAGS_80P80_MHZ_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%rbx)
LBB0_14:
	movq	_RX_FLAG_160MHZ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	_RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movl	16(%r14), %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)
	movl	(%r14), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_FLAG_HT,4,2                 ## @RX_FLAG_HT
	.comm	_RATE_INFO_FLAGS_MCS,4,2        ## @RATE_INFO_FLAGS_MCS
	.comm	_RX_FLAG_VHT,4,2                ## @RX_FLAG_VHT
	.comm	_RATE_INFO_FLAGS_VHT_MCS,4,2    ## @RATE_INFO_FLAGS_VHT_MCS
	.comm	_RX_FLAG_40MHZ,4,2              ## @RX_FLAG_40MHZ
	.comm	_RATE_INFO_FLAGS_40_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_40_MHZ_WIDTH
	.comm	_RX_FLAG_SHORT_GI,4,2           ## @RX_FLAG_SHORT_GI
	.comm	_RATE_INFO_FLAGS_SHORT_GI,4,2   ## @RATE_INFO_FLAGS_SHORT_GI
	.comm	_RX_FLAG_80MHZ,4,2              ## @RX_FLAG_80MHZ
	.comm	_RATE_INFO_FLAGS_80_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_80_MHZ_WIDTH
	.comm	_RX_FLAG_80P80MHZ,4,2           ## @RX_FLAG_80P80MHZ
	.comm	_RATE_INFO_FLAGS_80P80_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_80P80_MHZ_WIDTH
	.comm	_RX_FLAG_160MHZ,4,2             ## @RX_FLAG_160MHZ
	.comm	_RATE_INFO_FLAGS_160_MHZ_WIDTH,4,2 ## @RATE_INFO_FLAGS_160_MHZ_WIDTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sta_set_rate_info_rx           ; -- Begin function sta_set_rate_info_rx
	.p2align	2
_sta_set_rate_info_rx:                  ; @sta_set_rate_info_rx
	.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, x1
	mov	x20, x0
	str	wzr, [x1, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RX_FLAG_HT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RX_FLAG_HT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _RATE_INFO_FLAGS_MCS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RATE_INFO_FLAGS_MCS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x9, _RX_FLAG_VHT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RX_FLAG_VHT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.3:
Lloh9:
	adrp	x9, _RATE_INFO_FLAGS_VHT_MCS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RATE_INFO_FLAGS_VHT_MCS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x19, #8]
	ldr	w9, [x20, #32]
	str	w9, [x19, #16]
LBB0_4:
	ldr	x9, [x20, #8]
	str	x9, [x19]
LBB0_5:
Lloh12:
	adrp	x9, _RX_FLAG_40MHZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RX_FLAG_40MHZ@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, _RX_FLAG_SHORT_GI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RX_FLAG_SHORT_GI@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh21:
	adrp	x9, _RATE_INFO_FLAGS_SHORT_GI@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RATE_INFO_FLAGS_SHORT_GI@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_9:
Lloh24:
	adrp	x9, _RX_FLAG_80MHZ@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RX_FLAG_80MHZ@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh27:
	adrp	x9, _RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPAGE
Lloh28:
	ldr	x9, [x9, _RATE_INFO_FLAGS_80_MHZ_WIDTH@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_11:
Lloh30:
	adrp	x9, _RX_FLAG_80P80MHZ@GOTPAGE
Lloh31:
	ldr	x9, [x9, _RX_FLAG_80P80MHZ@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh33:
	adrp	x9, _RATE_INFO_FLAGS_80P80_MHZ_WIDTH@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RATE_INFO_FLAGS_80P80_MHZ_WIDTH@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_13:
Lloh36:
	adrp	x9, _RX_FLAG_160MHZ@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RX_FLAG_160MHZ@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh39:
	adrp	x8, _RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RATE_INFO_FLAGS_160_MHZ_WIDTH@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_15:
	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
LBB0_16:
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	x21, [x8]
	ldr	w0, [x20, #16]
	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]
	ldr	w8, [x20]
	b	LBB0_5
	.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
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_FLAG_HT,4,2                 ; @RX_FLAG_HT
	.comm	_RATE_INFO_FLAGS_MCS,4,2        ; @RATE_INFO_FLAGS_MCS
	.comm	_RX_FLAG_VHT,4,2                ; @RX_FLAG_VHT
	.comm	_RATE_INFO_FLAGS_VHT_MCS,4,2    ; @RATE_INFO_FLAGS_VHT_MCS
	.comm	_RX_FLAG_40MHZ,4,2              ; @RX_FLAG_40MHZ
	.comm	_RATE_INFO_FLAGS_40_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_40_MHZ_WIDTH
	.comm	_RX_FLAG_SHORT_GI,4,2           ; @RX_FLAG_SHORT_GI
	.comm	_RATE_INFO_FLAGS_SHORT_GI,4,2   ; @RATE_INFO_FLAGS_SHORT_GI
	.comm	_RX_FLAG_80MHZ,4,2              ; @RX_FLAG_80MHZ
	.comm	_RATE_INFO_FLAGS_80_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_80_MHZ_WIDTH
	.comm	_RX_FLAG_80P80MHZ,4,2           ; @RX_FLAG_80P80MHZ
	.comm	_RATE_INFO_FLAGS_80P80_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_80P80_MHZ_WIDTH
	.comm	_RX_FLAG_160MHZ,4,2             ; @RX_FLAG_160MHZ
	.comm	_RATE_INFO_FLAGS_160_MHZ_WIDTH,4,2 ; @RATE_INFO_FLAGS_160_MHZ_WIDTH
.subsections_via_symbols
