	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_op_remain_on_channel
_wlcore_op_remain_on_channel:           ## @wlcore_op_remain_on_channel
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rbx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_ieee80211_frequency_to_channel
	movl	%eax, %r14d
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_wl1271_debug
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_WLCORE_STATE_ON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	32(%rbx), %edi
	movq	_WL12XX_MAX_ROLES@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_find_first_bit
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
## %bb.2:
	cmpl	(%r12), %eax
	jl	LBB0_3
## %bb.4:
	movl	12(%rbx), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_wl12xx_start_dev
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	leaq	16(%rbx), %r14
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_msecs_to_jiffies
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_ieee80211_queue_delayed_work
LBB0_8:
	movl	12(%rbx), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%rbx), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_wl1271_warning
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %r12d
	movl	12(%rbx), %edi
	callq	_pm_runtime_put_noidle
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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 roc %d (%d)"

	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.comm	_WL12XX_MAX_ROLES,4,2           ## @WL12XX_MAX_ROLES
L_.str.1:                               ## @.str.1
	.asciz	"active roc on role %d"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_wlcore_op_remain_on_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_op_remain_on_channel
_wlcore_op_remain_on_channel:           ; @wlcore_op_remain_on_channel
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x25, x0
	ldr	x20, [x21]
	ldr	w0, [x24, #4]
	bl	_ieee80211_frequency_to_channel
	mov	x26, x0
Lloh0:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w3, [x25]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x26
	bl	_wl1271_debug
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w27, #0
	b	LBB0_9
LBB0_2:
	ldr	w0, [x20, #32]
Lloh8:
	adrp	x27, _WL12XX_MAX_ROLES@GOTPAGE
Lloh9:
	ldr	x27, [x27, _WL12XX_MAX_ROLES@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_find_first_bit
	ldr	x8, [x20, #24]
	ldr	w9, [x27]
	cmp	x8, #0
	ccmp	w0, w9, #8, eq
	b.ge	LBB0_4
; %bb.3:
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_warning
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_9
LBB0_4:
	ldr	w0, [x20, #12]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x25
	mov	x3, x26
	bl	_wl12xx_start_dev
	mov	x27, x0
	tbnz	w0, #31, LBB0_7
; %bb.6:
	str	x23, [x20, #24]
	add	x23, x20, #16
	mov	x0, x22
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_ieee80211_queue_delayed_work
LBB0_7:
	ldr	w0, [x20, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20, #12]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_9
LBB0_8:
	mov	x27, x0
	ldr	w0, [x20, #12]
	bl	_pm_runtime_put_noidle
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x27
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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 roc %d (%d)"

	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.comm	_WL12XX_MAX_ROLES,4,2           ; @WL12XX_MAX_ROLES
l_.str.1:                               ; @.str.1
	.asciz	"active roc on role %d"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_wlcore_op_remain_on_channel
.subsections_via_symbols
