	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_op_channel_switch_beacon
_wlcore_op_channel_switch_beacon:       ## @wlcore_op_channel_switch_beacon
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	(%rdi), %r12
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, %r14
	movq	$1, -48(%rbp)
	leaq	-44(%rbp), %r15
	movl	(%rbx), %eax
	movl	%eax, -40(%rbp)
	movq	_DEBUG_MAC80211@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_wlcore_get_csa_count
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	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_8
## %bb.3:
	movl	12(%r12), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	16(%r12), %rax
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_WLVIF_FLAG_CS_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
LBB0_7:
	movl	12(%r12), %edi
	callq	_pm_runtime_mark_last_busy
	movl	12(%r12), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_error
	jmp	LBB0_9
LBB0_4:
	movl	12(%r12), %edi
	callq	_pm_runtime_put_noidle
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_9:
	addq	$16, %rsp
	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 channel switch beacon (role %d)"

L_.str.1:                               ## @.str.1
	.asciz	"error getting beacon (for CSA counter)"

	.comm	_WLCORE_STATE_ON,8,3            ## @WLCORE_STATE_ON
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_WLVIF_FLAG_CS_PROGRESS,4,2     ## @WLVIF_FLAG_CS_PROGRESS
	.no_dead_strip	_wlcore_op_channel_switch_beacon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wlcore_op_channel_switch_beacon
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wlcore_op_channel_switch_beacon:       ; @wlcore_op_channel_switch_beacon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0]
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x20, x0
	mov	x8, sp
	orr	x22, x8, #0x4
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp]
	ldr	w8, [x21]
	str	w8, [sp, #8]
Lloh2:
	adrp	x8, _DEBUG_MAC80211@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEBUG_MAC80211@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w2, [x20, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_wlcore_get_csa_count
	tbnz	w0, #31, LBB0_6
; %bb.1:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _WLCORE_STATE_ON@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WLCORE_STATE_ON@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_8
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbnz	w0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _WLVIF_FLAG_CS_PROGRESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WLVIF_FLAG_CS_PROGRESS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
LBB0_5:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19, #12]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_error
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #12]
	bl	_pm_runtime_put_noidle
LBB0_8:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_MAC80211,4,2             ; @DEBUG_MAC80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac80211 channel switch beacon (role %d)"

l_.str.1:                               ; @.str.1
	.asciz	"error getting beacon (for CSA counter)"

	.comm	_WLCORE_STATE_ON,8,3            ; @WLCORE_STATE_ON
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_WLVIF_FLAG_CS_PROGRESS,4,2     ; @WLVIF_FLAG_CS_PROGRESS
	.no_dead_strip	_wlcore_op_channel_switch_beacon
.subsections_via_symbols
