	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_listen_cb                  ## -- Begin function p2p_listen_cb
	.p2align	4, 0x90
_p2p_listen_cb:                         ## @p2p_listen_cb
	.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	%rdi, %rbx
	cmpl	%esi, (%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movl	$0, (%rbx)
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %r14d
	movl	4(%rbx), %r8d
	cmpl	%esi, %r8d
	jne	LBB0_7
## %bb.3:
	movl	8(%rbx), %edx
	movl	12(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_p2p_dbg
	movl	$1, 16(%rbx)
	movl	%r14d, 20(%rbx)
	movl	8(%rbx), %esi
	movl	12(%rbx), %edx
	movl	%esi, %eax
	orl	%edx, %eax
	je	LBB0_5
## %bb.4:
	addl	$20000, %edx                    ## imm = 0x4E20
	movq	%rbx, %rdi
	callq	_p2p_set_timeout
LBB0_5:
	movl	$0, 4(%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movl	%edx, %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_p2p_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Client discoverability remain-awake completed"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected listen callback for freq=%u duration=%u (pending_listen_freq=%u)"

L_.str.2:                               ## @.str.2
	.asciz	"Starting Listen timeout(%u,%u) on freq=%u based on callback"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_listen_cb                  ; -- Begin function p2p_listen_cb
	.p2align	2
_p2p_listen_cb:                         ; @p2p_listen_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	str	wzr, [x19]
	b	LBB0_7
LBB0_2:
	mov	x20, x1
	ldr	w8, [x19, #4]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.3:
	ldp	w8, w9, [x19, #8]
	stp	x9, x20, [sp, #8]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	mov	w8, #1
	stp	w8, w20, [x19, #16]
	ldp	w1, w8, [x19, #8]
	orr	w9, w1, w8
	cbz	w9, LBB0_5
; %bb.4:
	mov	w9, #20000
	add	w2, w8, w9
	mov	x0, x19
	bl	_p2p_set_timeout
LBB0_5:
	str	wzr, [x19, #4]
	b	LBB0_7
LBB0_6:
	stp	x2, x8, [sp, #8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Client discoverability remain-awake completed"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected listen callback for freq=%u duration=%u (pending_listen_freq=%u)"

l_.str.2:                               ; @.str.2
	.asciz	"Starting Listen timeout(%u,%u) on freq=%u based on callback"

.subsections_via_symbols
