	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_scan_res_handled           ## -- Begin function p2p_scan_res_handled
	.p2align	4, 0x90
_p2p_scan_res_handled:                  ## @p2p_scan_res_handled
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_p2p_dbg
LBB0_2:
	movq	$0, 8(%rbx)
	movq	_p2p_scan_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movq	%rbx, %rdi
	callq	_p2p_run_after_scan
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movq	_P2P_SEARCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_p2p_continue_find              ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p2p_scan was not running, but scan results received"

	.comm	_p2p_scan_timeout,4,2           ## @p2p_scan_timeout
	.comm	_P2P_SEARCH,8,3                 ## @P2P_SEARCH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_scan_res_handled           ; -- Begin function p2p_scan_res_handled
	.p2align	2
_p2p_scan_res_handled:                  ; @p2p_scan_res_handled
	.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	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
LBB0_2:
	str	xzr, [x19, #8]
Lloh2:
	adrp	x8, _p2p_scan_timeout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _p2p_scan_timeout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	mov	x0, x19
	bl	_p2p_run_after_scan
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _P2P_SEARCH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _P2P_SEARCH@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_p2p_continue_find
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p2p_scan was not running, but scan results received"

	.comm	_p2p_scan_timeout,4,2           ; @p2p_scan_timeout
	.comm	_P2P_SEARCH,8,3                 ; @P2P_SEARCH
.subsections_via_symbols
