	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_free_chanctx
_ieee80211_free_chanctx:                ## @ieee80211_free_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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$44, %rdi
	callq	_lockdep_assert_held
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_WARN_ON_ONCE
	cmpl	$0, 40(%rbx)
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_drv_remove_chanctx
	leaq	8(%r14), %rdi
	callq	_list_del_rcu
	movq	_rcu_head@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kfree_rcu
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_1:
	movq	_NL80211_CHAN_WIDTH_20_NOHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	24(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 16(%rbx)
	movl	8(%rbx), %r12d
	movl	$0, 8(%rbx)
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ieee80211_hw_config
	leaq	8(%r14), %rdi
	callq	_list_del_rcu
	movq	_rcu_head@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kfree_rcu
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	leaq	4(%rbx), %rdi
	callq	_list_empty
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
LBB0_3:
	movl	%r15d, %edi
	callq	_WARN_ON
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_ieee80211_recalc_idle
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,4,2 ## @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_rcu_head,4,2                   ## @rcu_head
	.no_dead_strip	_ieee80211_free_chanctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_free_chanctx
_ieee80211_free_chanctx:                ; @ieee80211_free_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	x20, x1
	mov	x19, x0
	add	x0, x0, #44
	bl	_lockdep_assert_held
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON_ONCE
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_drv_remove_chanctx
	add	x0, x20, #8
	bl	_list_del_rcu
Lloh0:
	adrp	x8, _rcu_head@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rcu_head@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kfree_rcu
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #24]
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	str	xzr, [x19, #16]
	ldr	w21, [x19, #8]
	str	wzr, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_ieee80211_hw_config
	add	x0, x20, #8
	bl	_list_del_rcu
Lloh6:
	adrp	x8, _rcu_head@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rcu_head@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kfree_rcu
	cbz	w21, LBB0_2
; %bb.4:
	add	x0, x19, #4
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
LBB0_5:
	bl	_WARN_ON
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_ieee80211_recalc_idle
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,4,2 ; @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_rcu_head,4,2                   ; @rcu_head
	.no_dead_strip	_ieee80211_free_chanctx
.subsections_via_symbols
