	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_ext_listen_timeout
_p2p_ext_listen_timeout:                ## @p2p_ext_listen_timeout
	.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, 48(%rdi)
	je	LBB0_2
## %bb.1:
	movl	40(%rbx), %esi
	movl	44(%rbx), %edi
	leaq	_p2p_ext_listen_timeout(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
LBB0_2:
	movq	32(%rbx), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rcx), %edi
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_6
LBB0_4:
	movq	(%rbx), %rax
	movq	_P2P_PENDING_PD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	cmpq	$0, 8(%rbx)
	jle	LBB0_7
LBB0_6:
	movq	16(%rbx), %rdi
	callq	_p2p_state_txt
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_7:
	movq	16(%rbx), %rdi
	movq	_P2P_LISTEN_ONLY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_10
## %bb.8:
	cmpl	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movl	$0, 24(%rbx)
	movq	_P2P_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_p2p_set_state
	movq	16(%rbx), %rdi
LBB0_10:
	movq	_P2P_IDLE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_11
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movl	$1, 24(%rbx)
	movl	28(%rbx), %esi
	movq	%rbx, %rdi
	callq	_p2p_listen
	testq	%rax, %rax
	jns	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_p2p_dbg
	movl	$0, 24(%rbx)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	callq	_p2p_state_txt
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_p2p_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_PENDING_PD,8,3             ## @P2P_PENDING_PD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Operation in progress - skip Extended Listen timeout (%s)"

	.comm	_P2P_LISTEN_ONLY,8,3            ## @P2P_LISTEN_ONLY
L_.str.1:                               ## @.str.1
	.asciz	"Previous Extended Listen operation had not been completed - try again"

	.comm	_P2P_IDLE,8,3                   ## @P2P_IDLE
L_.str.2:                               ## @.str.2
	.asciz	"Skip Extended Listen timeout in active state (%s)"

L_.str.3:                               ## @.str.3
	.asciz	"Extended Listen timeout"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to start Listen state for Extended Listen Timing"

	.no_dead_strip	_p2p_ext_listen_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_ext_listen_timeout
_p2p_ext_listen_timeout:                ; @p2p_ext_listen_timeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #40]
Lloh0:
	adrp	x2, _p2p_ext_listen_timeout@PAGE
Lloh1:
	add	x2, x2, _p2p_ext_listen_timeout@PAGEOFF
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
LBB0_2:
	ldr	x9, [x19, #32]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x9]
	blr	x8
	cbnz	x0, LBB0_6
LBB0_4:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _P2P_PENDING_PD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _P2P_PENDING_PD@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_7
LBB0_6:
	ldr	x0, [x19, #16]
	bl	_p2p_state_txt
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_7:
	ldr	x0, [x19, #16]
Lloh7:
	adrp	x8, _P2P_LISTEN_ONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _P2P_LISTEN_ONLY@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x20, _P2P_IDLE@GOTPAGE
Lloh11:
	ldr	x20, [x20, _P2P_IDLE@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.8:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_10
; %bb.9:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	str	wzr, [x19, #24]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_p2p_set_state
	ldr	x0, [x19, #16]
LBB0_10:
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.11:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	mov	w8, #1
	str	w8, [x19, #24]
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_p2p_listen
	tbz	x0, #63, LBB0_15
; %bb.12:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	str	wzr, [x19, #24]
	b	LBB0_15
LBB0_13:
	bl	_p2p_state_txt
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_p2p_dbg
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_PENDING_PD,8,3             ; @P2P_PENDING_PD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Operation in progress - skip Extended Listen timeout (%s)"

	.comm	_P2P_LISTEN_ONLY,8,3            ; @P2P_LISTEN_ONLY
l_.str.1:                               ; @.str.1
	.asciz	"Previous Extended Listen operation had not been completed - try again"

	.comm	_P2P_IDLE,8,3                   ; @P2P_IDLE
l_.str.2:                               ; @.str.2
	.asciz	"Skip Extended Listen timeout in active state (%s)"

l_.str.3:                               ; @.str.3
	.asciz	"Extended Listen timeout"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to start Listen state for Extended Listen Timing"

	.no_dead_strip	_p2p_ext_listen_timeout
.subsections_via_symbols
