	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_stop_find_for_freq         ## -- Begin function p2p_stop_find_for_freq
	.p2align	4, 0x90
_p2p_stop_find_for_freq:                ## @p2p_stop_find_for_freq
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_p2p_dbg
	movq	_p2p_find_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movq	%rbx, %rdi
	callq	_p2p_clear_timeout
	movq	(%rbx), %rax
	movq	_P2P_SEARCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_P2P_SD_DURING_FIND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	56(%rbx), %rax
	movl	(%rax), %edi
	callq	*8(%rax)
LBB0_3:
	movq	$0, 48(%rbx)
	movq	_P2P_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_p2p_set_state
	movq	%rbx, %rdi
	callq	_p2p_free_req_dev_types
	movq	_P2P_AFTER_SCAN_NOTHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_P2P_DEV_PEER_WAITING_RESPONSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rax)
LBB0_5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	$0, 32(%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_p2p_stop_listen_for_freq
	movq	$0, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stopping find"

	.comm	_p2p_find_timeout,4,2           ## @p2p_find_timeout
	.comm	_P2P_SEARCH,8,3                 ## @P2P_SEARCH
	.comm	_P2P_SD_DURING_FIND,8,3         ## @P2P_SD_DURING_FIND
	.comm	_P2P_IDLE,4,2                   ## @P2P_IDLE
	.comm	_P2P_AFTER_SCAN_NOTHING,4,2     ## @P2P_AFTER_SCAN_NOTHING
	.comm	_P2P_DEV_PEER_WAITING_RESPONSE,4,2 ## @P2P_DEV_PEER_WAITING_RESPONSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_stop_find_for_freq         ; -- Begin function p2p_stop_find_for_freq
	.p2align	2
_p2p_stop_find_for_freq:                ; @p2p_stop_find_for_freq
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_p2p_dbg
Lloh2:
	adrp	x8, _p2p_find_timeout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _p2p_find_timeout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	mov	x0, x19
	bl	_p2p_clear_timeout
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _P2P_SEARCH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _P2P_SEARCH@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _P2P_SD_DURING_FIND@GOTPAGE
Lloh9:
	ldr	x10, [x10, _P2P_SD_DURING_FIND@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #56]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	blr	x9
LBB0_2:
	str	xzr, [x19, #48]
Lloh11:
	adrp	x8, _P2P_IDLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _P2P_IDLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_p2p_set_state
	mov	x0, x19
	bl	_p2p_free_req_dev_types
Lloh14:
	adrp	x8, _P2P_AFTER_SCAN_NOTHING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _P2P_AFTER_SCAN_NOTHING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.3:
Lloh17:
	adrp	x9, _P2P_DEV_PEER_WAITING_RESPONSE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _P2P_DEV_PEER_WAITING_RESPONSE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [x8]
	bic	w9, w10, w9
	str	w9, [x8]
LBB0_4:
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_p2p_stop_listen_for_freq
	str	xzr, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stopping find"

	.comm	_p2p_find_timeout,4,2           ; @p2p_find_timeout
	.comm	_P2P_SEARCH,8,3                 ; @P2P_SEARCH
	.comm	_P2P_SD_DURING_FIND,8,3         ; @P2P_SD_DURING_FIND
	.comm	_P2P_IDLE,4,2                   ; @P2P_IDLE
	.comm	_P2P_AFTER_SCAN_NOTHING,4,2     ; @P2P_AFTER_SCAN_NOTHING
	.comm	_P2P_DEV_PEER_WAITING_RESPONSE,4,2 ; @P2P_DEV_PEER_WAITING_RESPONSE
.subsections_via_symbols
