	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function timed_connect
_timed_connect:                         ## @timed_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_PFUNC
	movl	%r14d, -56(%rbp)
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_F_SETFL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_fcntl
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_true_connect
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_PDEBUG
	cmpl	$-1, %ebx
	jne	LBB0_4
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_tcp_connect_time_out@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movl	$1, %esi
	callq	_poll_retry
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_PDEBUG
	movl	$-1, %r15d
	cmpl	$1, %ebx
	jne	LBB0_6
## %bb.3:
	movl	$4, -64(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-60(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movl	%r14d, %edi
	callq	_getsockopt
	movl	-60(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_PDEBUG
	xorl	%r15d, %r15d
	cmpl	-60(%rbp), %r15d
	jmp	LBB0_5
LBB0_4:
	negl	%ebx
LBB0_5:
	sbbl	%r15d, %r15d
LBB0_6:
	movl	(%r13), %esi
	xorl	%edx, %edx
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	sete	%dl
	movl	%r14d, %edi
	callq	_fcntl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nconnect ret=%d\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_tcp_connect_time_out,4,2       ## @tcp_connect_time_out
L_.str.1:                               ## @.str.1
	.asciz	"\npoll ret=%d\n"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"\nvalue=%d\n"

	.no_dead_strip	_timed_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function timed_connect
_timed_connect:                         ; @timed_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_PFUNC
Lloh3:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w19, w8, [sp, #16]
Lloh6:
	adrp	x22, _F_SETFL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _F_SETFL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh8:
	adrp	x23, _O_NONBLOCK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _O_NONBLOCK@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_fcntl
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_true_connect
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_PDEBUG
	cmn	w20, #1
	b.ne	LBB0_4
; %bb.1:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh18:
	adrp	x8, _tcp_connect_time_out@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tcp_connect_time_out@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	w1, #1
	bl	_poll_retry
	mov	x20, x0
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_PDEBUG
	cmp	w20, #1
	b.ne	LBB0_8
; %bb.3:
	mov	w8, #4
	str	w8, [sp, #8]
Lloh23:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _SO_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SO_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x19
	bl	_getsockopt
	ldr	w1, [sp, #12]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_PDEBUG
	ldr	w8, [sp, #12]
	cmp	w8, #0
	b	LBB0_5
LBB0_4:
	cmp	w20, #0
LBB0_5:
	csetm	w20, ne
LBB0_6:
	ldr	w1, [x22]
	ldr	w8, [x23]
	cmp	w8, #0
	cset	w2, eq
	mov	x0, x19
	bl	_fcntl
	ldr	x8, [sp, #24]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
	mov	w20, #-1
	b	LBB0_6
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nconnect ret=%d\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_tcp_connect_time_out,4,2       ; @tcp_connect_time_out
l_.str.1:                               ; @.str.1
	.asciz	"\npoll ret=%d\n"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"\nvalue=%d\n"

	.no_dead_strip	_timed_connect
.subsections_via_symbols
