	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_stop_p2p_device       ## -- Begin function cfg80211_stop_p2p_device
	.p2align	4, 0x90
_cfg80211_stop_p2p_device:              ## @cfg80211_stop_p2p_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$20, %rdi
	callq	_lockdep_assert_held
	leaq	16(%rbx), %rdi
	callq	_lockdep_assert_held
	movq	(%r14), %rax
	movq	_NL80211_IFTYPE_P2P_DEVICE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 8(%r14)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rdev_stop_p2p_device
	movl	$0, 8(%r14)
	decl	12(%rbx)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	%r14, 8(%rax)
	jne	LBB0_4
## %bb.5:
	leaq	8(%rbx), %rdi
	callq	_work_busy
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	movl	%r14d, %edi
	callq	_WARN_ON
	movq	(%rbx), %rax
	movl	$1, (%rax)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	____cfg80211_scan_done          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ## @NL80211_IFTYPE_P2P_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cfg80211_stop_p2p_device       ; -- Begin function cfg80211_stop_p2p_device
	.p2align	2
_cfg80211_stop_p2p_device:              ; @cfg80211_stop_p2p_device
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #20
	bl	_lockdep_assert_held
	add	x0, x19, #16
	bl	_lockdep_assert_held
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_1
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_rdev_stop_p2p_device
	str	wzr, [x20, #8]
	ldr	w8, [x19, #12]
	sub	w8, w8, #1
	str	w8, [x19, #12]
	ldr	x8, [x19]
	cbz	x8, LBB0_1
; %bb.4:
	ldr	x8, [x8, #8]
	cmp	x8, x20
	b.ne	LBB0_1
; %bb.5:
	add	x0, x19, #8
	bl	_work_busy
	cmp	w0, #0
	cset	w20, eq
	mov	x0, x20
	bl	_WARN_ON
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	____cfg80211_scan_done
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ; @NL80211_IFTYPE_P2P_DEVICE
.subsections_via_symbols
