	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p2p_timeout_connect
_p2p_timeout_connect:                   ## @p2p_timeout_connect
	.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
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	*8(%rax)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rax), %ecx
	movq	_P2P_DEV_WAIT_GO_NEG_CONFIRM@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_p2p_dbg
	movq	%rbx, %rdi
	movl	$-1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_p2p_go_neg_failed              ## TAILCALL
LBB0_2:
	movq	_P2P_DEV_PEER_WAITING_RESPONSE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	cmpl	$119, 4(%rax)
	jg	LBB0_4
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_p2p_dbg
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_p2p_connect_send               ## TAILCALL
LBB0_4:
	cmpq	$0, 8(%rax)
	jle	LBB0_5
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_p2p_dbg
	movq	_P2P_CONNECT_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_p2p_set_state
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$30000, %edx                    ## imm = 0x7530
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_p2p_set_timeout                ## TAILCALL
LBB0_5:
	movq	_P2P_CONNECT_LISTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_p2p_set_state
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_p2p_listen_in_find             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_DEV_WAIT_GO_NEG_CONFIRM,4,2 ## @P2P_DEV_WAIT_GO_NEG_CONFIRM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wait for GO Negotiation Confirm timed out - assume GO Negotiation failed"

	.comm	_P2P_DEV_PEER_WAITING_RESPONSE,4,2 ## @P2P_DEV_PEER_WAITING_RESPONSE
L_.str.1:                               ## @.str.1
	.asciz	"Peer expected to wait our response - skip listen"

L_.str.2:                               ## @.str.2
	.asciz	"Skip connect-listen since GO Neg channel known (OOB)"

	.comm	_P2P_CONNECT_LISTEN,4,2         ## @P2P_CONNECT_LISTEN
	.no_dead_strip	_p2p_timeout_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p2p_timeout_connect
_p2p_timeout_connect:                   ; @p2p_timeout_connect
	.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]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	blr	x9
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _P2P_DEV_WAIT_GO_NEG_CONFIRM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _P2P_DEV_WAIT_GO_NEG_CONFIRM@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	mov	x0, x19
	mov	w1, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_p2p_go_neg_failed
LBB0_3:
Lloh5:
	adrp	x10, _P2P_DEV_PEER_WAITING_RESPONSE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _P2P_DEV_PEER_WAITING_RESPONSE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
	ldr	w9, [x8, #4]
	cmp	w9, #119
	b.gt	LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
	ldr	x1, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_p2p_connect_send
LBB0_6:
	ldr	x8, [x8, #8]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_p2p_dbg
Lloh12:
	adrp	x8, _P2P_CONNECT_LISTEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _P2P_CONNECT_LISTEN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_p2p_set_state
	mov	x0, x19
	mov	w1, #0
	mov	w2, #30000
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_p2p_set_timeout
LBB0_8:
Lloh15:
	adrp	x8, _P2P_CONNECT_LISTEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _P2P_CONNECT_LISTEN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_p2p_set_state
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_p2p_listen_in_find
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_DEV_WAIT_GO_NEG_CONFIRM,4,2 ; @P2P_DEV_WAIT_GO_NEG_CONFIRM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wait for GO Negotiation Confirm timed out - assume GO Negotiation failed"

	.comm	_P2P_DEV_PEER_WAITING_RESPONSE,4,2 ; @P2P_DEV_PEER_WAITING_RESPONSE
l_.str.1:                               ; @.str.1
	.asciz	"Peer expected to wait our response - skip listen"

l_.str.2:                               ; @.str.2
	.asciz	"Skip connect-listen since GO Neg channel known (OOB)"

	.comm	_P2P_CONNECT_LISTEN,4,2         ; @P2P_CONNECT_LISTEN
	.no_dead_strip	_p2p_timeout_connect
.subsections_via_symbols
