	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_unassign_vif_chanctx
_ieee80211_unassign_vif_chanctx:        ## @ieee80211_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_lockdep_assert_held
	decq	(%r15)
	movl	20(%rbx), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	movl	$1, 16(%rbx)
	movq	8(%rbx), %rax
	movq	_NL80211_IFTYPE_P2P_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_BSS_CHANGED_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ieee80211_bss_info_change_notify
LBB0_3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_drv_unassign_vif_chanctx
	cmpq	$0, (%r15)
	jle	LBB0_4
## %bb.5:
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_ieee80211_recalc_chanctx_chantype
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ieee80211_recalc_smps_chanctx
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_recalc_radar_chanctx ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ## @NL80211_IFTYPE_P2P_DEVICE
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
	.comm	_BSS_CHANGED_IDLE,4,2           ## @BSS_CHANGED_IDLE
	.no_dead_strip	_ieee80211_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 ieee80211_unassign_vif_chanctx
_ieee80211_unassign_vif_chanctx:        ; @ieee80211_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	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_lockdep_assert_held
	ldr	x8, [x19]
	sub	x8, x8, #1
	str	x8, [x19]
	ldr	w0, [x21, #20]
	mov	x1, #0
	bl	_rcu_assign_pointer
	mov	w8, #1
	str	w8, [x21, #16]
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _BSS_CHANGED_IDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BSS_CHANGED_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ieee80211_bss_info_change_notify
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_drv_unassign_vif_chanctx
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	x0, [x21]
	mov	x1, x19
	bl	_ieee80211_recalc_chanctx_chantype
	mov	x0, x20
	mov	x1, x19
	bl	_ieee80211_recalc_smps_chanctx
	mov	x0, x20
	mov	x1, 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	_ieee80211_recalc_radar_chanctx
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ; @NL80211_IFTYPE_P2P_DEVICE
	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
	.comm	_BSS_CHANGED_IDLE,4,2           ; @BSS_CHANGED_IDLE
	.no_dead_strip	_ieee80211_unassign_vif_chanctx
.subsections_via_symbols
