	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_op_switch_vif_chanctx
_wlcore_op_switch_vif_chanctx:          ## @wlcore_op_switch_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	(%rdi), %r14
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	4(%r14), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.2:
	movl	%r15d, %r15d
	decq	%r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12,%rbx,8), %edi
	callq	_wl12xx_vif_to_data
	movl	(%r12,%rbx,8), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	___wlcore_switch_vif_chan
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rbx), %rax
	cmpq	%rbx, %r15
	movq	%rax, %rbx
	jne	LBB0_3
LBB0_5:
	movl	4(%r14), %edi
	callq	_pm_runtime_mark_last_busy
	movl	4(%r14), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_6
LBB0_7:
	movl	4(%r14), %edi
	callq	_pm_runtime_put_noidle
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_MAC80211,4,2             ## @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac80211 switch chanctx n_vifs %d mode %d"

	.no_dead_strip	_wlcore_op_switch_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_switch_vif_chanctx
_wlcore_op_switch_vif_chanctx:          ; @wlcore_op_switch_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	x21, x2
	mov	x20, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x19, #4]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w8, w21
	sub	x21, x8, #1
	add	x20, x20, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_wl12xx_vif_to_data
	mov	x1, x0
	ldur	w2, [x20, #-4]
	mov	x0, x19
	bl	___wlcore_switch_vif_chan
	cmp	w0, #0
	ccmp	x21, #0, #4, eq
	sub	x21, x21, #1
	add	x20, x20, #8
	b.ne	LBB0_3
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_pm_runtime_put_noidle
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 switch chanctx n_vifs %d mode %d"

	.no_dead_strip	_wlcore_op_switch_vif_chanctx
.subsections_via_symbols
