	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_op_unassign_vif_chanctx
_wlcore_op_unassign_vif_chanctx:        ## @wlcore_op_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	%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	%rdx, %rbx
	movq	(%rdi), %r12
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rax), %r13d
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_ieee80211_frequency_to_channel
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_cfg80211_get_chandef_type
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_wl1271_debug
	movq	%r12, %rdi
	callq	_wl1271_tx_flush
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_WLVIF_FLAG_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	12(%r12), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wl1271_debug
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_wlcore_hw_set_cac
	movl	$0, (%rbx)
LBB0_6:
	movl	12(%r12), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%r12), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_7
LBB0_3:
	movl	12(%r12), %edi
	callq	_pm_runtime_put_noidle
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 unassign chanctx (role %d) %d (type %d)"

	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.comm	_WLVIF_FLAG_INITIALIZED,4,2     ## @WLVIF_FLAG_INITIALIZED
L_.str.1:                               ## @.str.1
	.asciz	"Stop radar detection"

	.no_dead_strip	_wlcore_op_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 wlcore_op_unassign_vif_chanctx
_wlcore_op_unassign_vif_chanctx:        ; @wlcore_op_unassign_vif_chanctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	ldr	x19, [x0]
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x20, x0
Lloh0:
	adrp	x24, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DEBUG_MAC80211@GOTPAGEOFF]
	ldr	w22, [x24]
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	w25, [x20, #8]
	bl	_ieee80211_frequency_to_channel
	mov	x23, x0
	mov	x0, x21
	bl	_cfg80211_get_chandef_type
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #8]
	str	x25, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_wl1271_debug
	mov	x0, x19
	bl	_wl1271_tx_flush
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.1:
Lloh7:
	adrp	x8, _WLVIF_FLAG_INITIALIZED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WLVIF_FLAG_INITIALIZED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, x20, #4
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w0, [x24]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wl1271_debug
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_wlcore_hw_set_cac
	str	wzr, [x20]
LBB0_5:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #12]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_put_noidle
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 unassign chanctx (role %d) %d (type %d)"

	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.comm	_WLVIF_FLAG_INITIALIZED,4,2     ; @WLVIF_FLAG_INITIALIZED
l_.str.1:                               ; @.str.1
	.asciz	"Stop radar detection"

	.no_dead_strip	_wlcore_op_unassign_vif_chanctx
.subsections_via_symbols
