	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __iwl_mvm_unassign_vif_chanctx
___iwl_mvm_unassign_vif_chanctx:        ## @__iwl_mvm_unassign_vif_chanctx
	.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
	movl	%ecx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r15
	leaq	12(%rbx), %rdi
	callq	_lockdep_assert_held
	leaq	24(%r15), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_iwl_mvm_remove_time_event
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.3:
	movq	(%rbx), %rdi
	movq	_IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	movq	%r14, %rdx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_mac_ctxt_changed
	movq	%r14, %rdx
	jmp	LBB0_11
LBB0_6:
	movq	$0, (%r15)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_rm_snif_sta
	jmp	LBB0_10
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.8:
	cmpl	$0, 8(%r15)
	je	LBB0_12
## %bb.9:
	movl	$0, 12(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_iwl_mvm_modify_all_sta_disable_tx
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_rcu_assign_pointer
	movl	$0, 8(%r15)
LBB0_10:
	xorl	%edx, %edx
LBB0_11:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_update_quotas
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_binding_remove_vif
LBB0_12:
	movq	$0, 16(%r15)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_power_update_mac       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD,4,2 ## @IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD
	.no_dead_strip	___iwl_mvm_unassign_vif_chanctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __iwl_mvm_unassign_vif_chanctx
___iwl_mvm_unassign_vif_chanctx:        ; @__iwl_mvm_unassign_vif_chanctx
	.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	x22, x3
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x21, x0
	add	x0, x19, #12
	bl	_lockdep_assert_held
	add	x2, x21, #24
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_mvm_remove_time_event
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cbz	w22, LBB0_6
; %bb.3:
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_fw_has_capa
	mov	x2, x20
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, #0
	bl	_iwl_mvm_mac_ctxt_changed
	mov	x2, x20
	b	LBB0_7
LBB0_5:
	str	xzr, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_rm_snif_sta
LBB0_6:
	mov	x2, #0
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_iwl_mvm_update_quotas
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_mvm_binding_remove_vif
LBB0_8:
	str	xzr, [x21, #16]
	mov	x0, x19
	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	_iwl_mvm_power_update_mac
LBB0_9:
	cbz	w22, LBB0_8
; %bb.10:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_8
; %bb.11:
	str	wzr, [x21, #12]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_iwl_mvm_modify_all_sta_disable_tx
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_rcu_assign_pointer
	mov	x2, #0
	str	wzr, [x21, #8]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD,4,2 ; @IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD
	.no_dead_strip	___iwl_mvm_unassign_vif_chanctx
.subsections_via_symbols
