	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_stop_ap_ibss
_iwl_mvm_stop_ap_ibss:                  ## @iwl_mvm_stop_ap_ibss
	.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, %r14
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_prepare_mac_removal
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	44(%rbx), %edi
	callq	_rcu_access_pointer
	cmpq	%r14, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdx
	addq	$12, %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_iwl_mvm_remove_time_event
	movl	44(%rbx), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	movl	$0, (%r15)
LBB0_2:
	movl	40(%rbx), %edi
	callq	_rcu_access_pointer
	cmpq	%r14, %rax
	jne	LBB0_4
## %bb.3:
	movl	40(%rbx), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	movq	$0, 32(%rbx)
LBB0_4:
	movl	$0, 4(%r15)
	movq	$0, 24(%rbx)
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	cmpq	$0, 8(%r14)
	jne	LBB0_7
## %bb.6:
	movq	_LOW_LATENCY_VIF_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_vif_set_low_latency
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_iwl_mvm_send_low_latency_cmd
LBB0_7:
	movq	%rbx, %rdi
	callq	_iwl_mvm_bt_coex_vif_change
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.8:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_iwl_mvm_mac_ctxt_changed
LBB0_10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_iwl_mvm_update_quotas
	movq	8(%rbx), %rdi
	movq	_IWL_UCODE_TLV_API_STA_TYPE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_fw_has_api
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_rm_mcast_sta
LBB0_12:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_send_rm_bcast_sta
	movq	8(%rbx), %rdi
	movl	(%r15), %esi
	callq	_fw_has_api
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_rm_mcast_sta
LBB0_14:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_binding_remove_vif
	movq	%rbx, %rdi
	callq	_iwl_mvm_power_update_mac
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_mac_ctxt_remove
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_LOW_LATENCY_VIF_TYPE,4,2       ## @LOW_LATENCY_VIF_TYPE
	.comm	_IWL_UCODE_TLV_API_STA_TYPE,4,2 ## @IWL_UCODE_TLV_API_STA_TYPE
	.no_dead_strip	_iwl_mvm_stop_ap_ibss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_stop_ap_ibss
_iwl_mvm_stop_ap_ibss:                  ; @iwl_mvm_stop_ap_ibss
	.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
	bl	_IWL_MAC80211_GET_MVM
	mov	x20, x0
	mov	x0, x19
	bl	_iwl_mvm_vif_from_mac80211
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_mvm_prepare_mac_removal
	mov	x0, x20
	bl	_mutex_lock
	ldr	w0, [x20, #44]
	bl	_rcu_access_pointer
	cmp	x0, x19
	b.ne	LBB0_2
; %bb.1:
	add	x2, x21, #12
	mov	x0, x20
	mov	x1, x21
	bl	_iwl_mvm_remove_time_event
	ldr	w0, [x20, #44]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	str	wzr, [x21]
LBB0_2:
	ldr	w0, [x20, #40]
	bl	_rcu_access_pointer
	cmp	x0, x19
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20, #40]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	str	xzr, [x20, #32]
LBB0_4:
	str	wzr, [x21, #4]
	str	xzr, [x20, #24]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _LOW_LATENCY_VIF_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOW_LATENCY_VIF_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_iwl_mvm_vif_set_low_latency
	ldr	w2, [x21, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_iwl_mvm_send_low_latency_cmd
LBB0_7:
	mov	x0, x20
	bl	_iwl_mvm_bt_coex_vif_change
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	w2, #0
	mov	x3, #0
	bl	_iwl_mvm_mac_ctxt_changed
LBB0_10:
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	bl	_iwl_mvm_update_quotas
	ldr	x0, [x20, #8]
Lloh6:
	adrp	x21, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IWL_UCODE_TLV_API_STA_TYPE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_fw_has_api
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_mvm_rm_mcast_sta
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_mvm_send_rm_bcast_sta
	ldr	x0, [x20, #8]
	ldr	w1, [x21]
	bl	_fw_has_api
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_mvm_rm_mcast_sta
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_mvm_binding_remove_vif
	mov	x0, x20
	bl	_iwl_mvm_power_update_mac
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_mvm_mac_ctxt_remove
	mov	x0, x20
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_LOW_LATENCY_VIF_TYPE,4,2       ; @LOW_LATENCY_VIF_TYPE
	.comm	_IWL_UCODE_TLV_API_STA_TYPE,4,2 ; @IWL_UCODE_TLV_API_STA_TYPE
	.no_dead_strip	_iwl_mvm_stop_ap_ibss
.subsections_via_symbols
