	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_p2p_stop_radio_operations  ## -- Begin function wil_p2p_stop_radio_operations
	.p2align	4, 0x90
_wil_p2p_stop_radio_operations:         ## @wil_p2p_stop_radio_operations
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_ndev_to_vif
	movq	%rax, %r14
	movl	$1, -32(%rbp)
	leaq	28(%rbx), %rdi
	callq	_lockdep_assert_held
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_lockdep_assert_held
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_8
## %bb.1:
	cmpl	$0, 16(%r14)
	je	LBB0_2
## %bb.5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_wil_p2p_stop_discovery
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	leaq	-32(%rbp), %rsi
	callq	_cfg80211_scan_done
	movq	$0, (%r14)
	jmp	LBB0_8
LBB0_2:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:
	cmpq	%rax, (%rcx)
	jne	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_wil_abort_scan
	jmp	LBB0_8
LBB0_7:
	movq	(%rbx), %rdi
	movq	%r14, %rdx
	addq	$8, %rdx
	movl	12(%r14), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_cfg80211_remain_on_channel_expired
LBB0_8:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wil_p2p_stop_radio_operations  ; -- Begin function wil_p2p_stop_radio_operations
	.p2align	2
_wil_p2p_stop_radio_operations:         ; @wil_p2p_stop_radio_operations
	.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	x19, x0
	ldr	x0, [x0, #16]
	bl	_ndev_to_vif
	mov	x20, x0
	mov	w8, #1
	str	w8, [sp, #8]
	add	x0, x19, #28
	bl	_lockdep_assert_held
	add	x21, x19, #24
	mov	x0, x21
	bl	_lockdep_assert_held
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	ldr	w9, [x20, #16]
	cbz	w9, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x20
	bl	_wil_p2p_stop_discovery
	mov	x0, x21
	bl	_mutex_lock
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.3:
	add	x1, sp, #8
	bl	_cfg80211_scan_done
	str	xzr, [x20]
	b	LBB0_8
LBB0_4:
	ldr	x9, [x20]
	cbz	x9, LBB0_8
; %bb.5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x20
	mov	w1, #1
	bl	_wil_abort_scan
	b	LBB0_8
LBB0_7:
	ldr	x0, [x19]
	add	x2, x20, #8
	ldr	w1, [x20, #12]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_cfg80211_remain_on_channel_expired
LBB0_8:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	str	x8, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
