	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_post_channel_switch
_iwl_mvm_post_channel_switch:           ## @iwl_mvm_post_channel_switch
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	cmpl	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movl	$0, (%r13)
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.3:
	movl	$0, 4(%r13)
	movl	12(%r13), %esi
	movq	%r15, %rdi
	callq	_iwl_mvm_sta_from_staid_protected
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	8(%r15), %rdi
	movq	_IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_fw_has_capa
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_iwl_mvm_sta_modify_disable_tx
LBB0_7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_mac_ctxt_changed
	movq	8(%r15), %rdi
	movl	(%rbx), %esi
	callq	_fw_has_capa
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:
	movl	$0, 8(%r13)
	movq	%r15, %rdi
	callq	_iwl_mvm_power_update_ps
	movl	%eax, %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_iwl_mvm_enable_beacon_filter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_stop_session_protection
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD,4,2 ## @IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD
	.no_dead_strip	_iwl_mvm_post_channel_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_post_channel_switch
_iwl_mvm_post_channel_switch:           ; @iwl_mvm_post_channel_switch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x20, x0
	mov	x0, x19
	bl	_IWL_MAC80211_GET_MVM
	mov	x19, x0
	bl	_mutex_lock
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	str	wzr, [x20]
LBB0_2:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_3:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	str	wzr, [x20, #4]
	ldr	w1, [x20, #12]
	mov	x0, x19
	bl	_iwl_mvm_sta_from_staid_protected
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_2
; %bb.5:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x23, _IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD@GOTPAGE
Lloh7:
	ldr	x23, [x23, _IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_fw_has_capa
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_iwl_mvm_sta_modify_disable_tx
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_iwl_mvm_mac_ctxt_changed
	ldr	x0, [x19, #8]
	ldr	w1, [x23]
	bl	_fw_has_capa
	cbz	w0, LBB0_10
LBB0_8:
	str	wzr, [x20, #8]
	mov	x0, x19
	bl	_iwl_mvm_power_update_ps
	mov	x22, x0
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_iwl_mvm_enable_beacon_filter
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.11:
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_mvm_stop_session_protection
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD,4,2 ; @IWL_UCODE_TLV_CAPA_CHANNEL_SWITCH_CMD
	.no_dead_strip	_iwl_mvm_post_channel_switch
.subsections_via_symbols
