	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_del_virtual_monitor  ## -- Begin function ieee80211_del_virtual_monitor
	.p2align	4, 0x90
_ieee80211_del_virtual_monitor:         ## @ieee80211_del_virtual_monitor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_IEEE80211_HW_WANT_MONITOR_VIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	4(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_lockdep_is_held
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	movl	4(%rbx), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	callq	_synchronize_net
	movq	%r14, %rdi
	callq	_ieee80211_vif_release_channel
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drv_remove_interface
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HW_WANT_MONITOR_VIF,4,2 ## @IEEE80211_HW_WANT_MONITOR_VIF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_del_virtual_monitor  ; -- Begin function ieee80211_del_virtual_monitor
	.p2align	2
_ieee80211_del_virtual_monitor:         ; @ieee80211_del_virtual_monitor
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _IEEE80211_HW_WANT_MONITOR_VIF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HW_WANT_MONITOR_VIF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_ASSERT_RTNL
	mov	x0, x19
	bl	_mutex_lock
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x20
	bl	_rcu_dereference_protected
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w0, [x19, #4]
	mov	x1, #0
	bl	_rcu_assign_pointer
	mov	x0, x19
	bl	_mutex_unlock
	bl	_synchronize_net
	mov	x0, x20
	bl	_ieee80211_vif_release_channel
	mov	x0, x19
	mov	x1, x20
	bl	_drv_remove_interface
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HW_WANT_MONITOR_VIF,4,2 ; @IEEE80211_HW_WANT_MONITOR_VIF
.subsections_via_symbols
