	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_vht_handle_opmode    ## -- Begin function ieee80211_vht_handle_opmode
	.p2align	4, 0x90
_ieee80211_vht_handle_opmode:           ## @ieee80211_vht_handle_opmode
	.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	_IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_1
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %r15
	movq	_IEEE80211_OPMODE_NOTIF_RX_NSS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	movq	_IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	incl	%eax
	xorl	%r12d, %r12d
	cmpl	%eax, (%rsi)
	je	LBB0_3
## %bb.2:
	movl	%eax, (%rbx)
	movq	_IEEE80211_RC_NSS_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_3:
	testl	%r8d, %r8d
	jne	LBB0_8
## %bb.4:
	movq	_IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_6
## %bb.5:
	movslq	%edx, %rax
	leaq	l_switch.table.ieee80211_vht_handle_opmode(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_ieee80211_sta_cur_vht_bw
	cmpl	4(%rbx), %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, 4(%rbx)
	movq	_IEEE80211_RC_NSS_CHANGED@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_8:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rate_control_rate_update       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF,4,2 ## @IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF
	.comm	_IEEE80211_OPMODE_NOTIF_RX_NSS_MASK,4,2 ## @IEEE80211_OPMODE_NOTIF_RX_NSS_MASK
	.comm	_IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT,4,2 ## @IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT
	.comm	_IEEE80211_RC_NSS_CHANGED,4,2   ## @IEEE80211_RC_NSS_CHANGED
	.comm	_IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK,4,2 ## @IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK
	.comm	_IEEE80211_STA_RX_BW_20,4,2     ## @IEEE80211_STA_RX_BW_20
	.comm	_IEEE80211_STA_RX_BW_40,4,2     ## @IEEE80211_STA_RX_BW_40
	.comm	_IEEE80211_STA_RX_BW_80,4,2     ## @IEEE80211_STA_RX_BW_80
	.comm	_IEEE80211_STA_RX_BW_160,4,2    ## @IEEE80211_STA_RX_BW_160
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ieee80211_vht_handle_opmode
l_switch.table.ieee80211_vht_handle_opmode:
	.quad	_IEEE80211_STA_RX_BW_80
	.quad	_IEEE80211_STA_RX_BW_40
	.quad	_IEEE80211_STA_RX_BW_20
	.quad	_IEEE80211_STA_RX_BW_160

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_vht_handle_opmode    ; -- Begin function ieee80211_vht_handle_opmode
	.p2align	2
_ieee80211_vht_handle_opmode:           ; @ieee80211_vht_handle_opmode
	.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
Lloh0:
	adrp	x8, _IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
LBB0_1:
	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_2:
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x21, [x8, w3, uxtw #3]
Lloh3:
	adrp	x8, _IEEE80211_OPMODE_NOTIF_RX_NSS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_OPMODE_NOTIF_RX_NSS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT@GOTPAGEOFF]
	and	w8, w8, w2
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	add	w8, w8, #1
	ldr	w9, [x1]
	cmp	w9, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w22, #0
	cbnz	w4, LBB0_9
	b	LBB0_5
LBB0_4:
	str	w8, [x19]
Lloh9:
	adrp	x8, _IEEE80211_RC_NSS_CHANGED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_RC_NSS_CHANGED@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	cbnz	w4, LBB0_9
LBB0_5:
Lloh12:
	adrp	x8, _IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w2
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.6:
Lloh15:
	adrp	x9, l_switch.table.ieee80211_vht_handle_opmode@PAGE
Lloh16:
	add	x9, x9, l_switch.table.ieee80211_vht_handle_opmode@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_7:
	mov	x0, x19
	bl	_ieee80211_sta_cur_vht_bw
	ldr	w8, [x19, #4]
	cmp	w0, w8
	b.eq	LBB0_9
; %bb.8:
	str	w0, [x19, #4]
Lloh17:
	adrp	x8, _IEEE80211_RC_NSS_CHANGED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_RC_NSS_CHANGED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_9:
	cbz	w22, LBB0_1
; %bb.10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x22
	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
	b	_rate_control_rate_update
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF,4,2 ; @IEEE80211_OPMODE_NOTIF_RX_NSS_TYPE_BF
	.comm	_IEEE80211_OPMODE_NOTIF_RX_NSS_MASK,4,2 ; @IEEE80211_OPMODE_NOTIF_RX_NSS_MASK
	.comm	_IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT,4,2 ; @IEEE80211_OPMODE_NOTIF_RX_NSS_SHIFT
	.comm	_IEEE80211_RC_NSS_CHANGED,4,2   ; @IEEE80211_RC_NSS_CHANGED
	.comm	_IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK,4,2 ; @IEEE80211_OPMODE_NOTIF_CHANWIDTH_MASK
	.comm	_IEEE80211_STA_RX_BW_20,4,2     ; @IEEE80211_STA_RX_BW_20
	.comm	_IEEE80211_STA_RX_BW_40,4,2     ; @IEEE80211_STA_RX_BW_40
	.comm	_IEEE80211_STA_RX_BW_80,4,2     ; @IEEE80211_STA_RX_BW_80
	.comm	_IEEE80211_STA_RX_BW_160,4,2    ; @IEEE80211_STA_RX_BW_160
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ieee80211_vht_handle_opmode
l_switch.table.ieee80211_vht_handle_opmode:
	.quad	_IEEE80211_STA_RX_BW_80
	.quad	_IEEE80211_STA_RX_BW_40
	.quad	_IEEE80211_STA_RX_BW_20
	.quad	_IEEE80211_STA_RX_BW_160

.subsections_via_symbols
