	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rs_bw_from_sta_bw
_rs_bw_from_sta_bw:                     ## @rs_bw_from_sta_bw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	movl	%eax, -16(%rbp)
	movl	12(%rdi), %edi
	callq	_cpu_to_le32
	movl	%eax, -12(%rbp)
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_7
## %bb.3:
	movq	_IEEE80211_VHT_CHANWIDTH_160MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_ieee80211_get_vht_max_nss
	cmpl	4(%rbx), %eax
	jge	LBB0_8
LBB0_5:
	movq	_RATE_MCS_CHAN_WIDTH_80@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_RATE_MCS_CHAN_WIDTH_40@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_RATE_MCS_CHAN_WIDTH_20@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_RATE_MCS_CHAN_WIDTH_160@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_VHT_CHANWIDTH_160MHZ,4,2 ## @IEEE80211_VHT_CHANWIDTH_160MHZ
	.comm	_RATE_MCS_CHAN_WIDTH_80,4,2     ## @RATE_MCS_CHAN_WIDTH_80
	.comm	_RATE_MCS_CHAN_WIDTH_160,4,2    ## @RATE_MCS_CHAN_WIDTH_160
	.comm	_RATE_MCS_CHAN_WIDTH_40,4,2     ## @RATE_MCS_CHAN_WIDTH_40
	.comm	_RATE_MCS_CHAN_WIDTH_20,4,2     ## @RATE_MCS_CHAN_WIDTH_20
	.no_dead_strip	_rs_bw_from_sta_bw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rs_bw_from_sta_bw
_rs_bw_from_sta_bw:                     ; @rs_bw_from_sta_bw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldp	w8, w0, [x0, #8]
	str	w8, [sp, #8]
	bl	_cpu_to_le32
	str	w0, [sp, #12]
	ldr	w8, [x19]
Lloh0:
	adrp	x20, _RATE_MCS_CHAN_WIDTH_80@GOTPAGE
Lloh1:
	ldr	x20, [x20, _RATE_MCS_CHAN_WIDTH_80@GOTPAGEOFF]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _IEEE80211_VHT_CHANWIDTH_160MHZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_VHT_CHANWIDTH_160MHZ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	mov	w3, #1
	bl	_ieee80211_get_vht_max_nss
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _RATE_MCS_CHAN_WIDTH_160@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RATE_MCS_CHAN_WIDTH_160@GOTPAGEOFF]
	cmp	w0, w8
	csel	x20, x20, x9, lt
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x20, _RATE_MCS_CHAN_WIDTH_40@GOTPAGE
Lloh8:
	ldr	x20, [x20, _RATE_MCS_CHAN_WIDTH_40@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x20, _RATE_MCS_CHAN_WIDTH_20@GOTPAGE
Lloh10:
	ldr	x20, [x20, _RATE_MCS_CHAN_WIDTH_20@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_VHT_CHANWIDTH_160MHZ,4,2 ; @IEEE80211_VHT_CHANWIDTH_160MHZ
	.comm	_RATE_MCS_CHAN_WIDTH_80,4,2     ; @RATE_MCS_CHAN_WIDTH_80
	.comm	_RATE_MCS_CHAN_WIDTH_160,4,2    ; @RATE_MCS_CHAN_WIDTH_160
	.comm	_RATE_MCS_CHAN_WIDTH_40,4,2     ; @RATE_MCS_CHAN_WIDTH_40
	.comm	_RATE_MCS_CHAN_WIDTH_20,4,2     ; @RATE_MCS_CHAN_WIDTH_20
	.no_dead_strip	_rs_bw_from_sta_bw
.subsections_via_symbols
