	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ftp_connect                    ## -- Begin function ftp_connect
	.p2align	4, 0x90
_ftp_connect:                           ## @ftp_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_NI_MAXSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movl	%r14d, -88(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	movq	%rax, %r14
	callq	_setupsockbufsize
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rcx
	movq	_NI_NUMERICSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	subq	$8, %rsp
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdx
	movl	%r12d, %ecx
	movq	%r14, %r8
	movl	%ebx, %r9d
	pushq	%rax
	callq	_getnameinfo
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_strlcpy
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_strlcpy
LBB0_2:
	movq	_bindai@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.6:
	movq	%rax, %rbx
LBB0_7:
	movq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	movl	-88(%rbp), %edi                 ## 4-byte Reload
	callq	_bind
	cmpl	$-1, %eax
	je	LBB0_8
LBB0_11:
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %r12d
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r12d, %edx
	movl	%ebx, %edi
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.16:
	movl	%ebx, -64(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%eax, -60(%rbp)
	movq	_quit_time@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jle	LBB0_18
## %bb.17:
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movl	(%r15), %eax
	addl	%eax, -128(%rbp)
LBB0_18:
	movl	%ebx, %edi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_connect
	cmpl	$-1, %eax
	je	LBB0_19
LBB0_35:
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	%r12d, %edx
	callq	_fcntl
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	jne	LBB0_39
## %bb.36:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_37
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_37:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_38
LBB0_8:
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_errno@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movq	16(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r14, %rdx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_getnameinfo
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_strlcpy
LBB0_10:
	movl	%r15d, (%r13)
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_warn
	movl	$-1, %eax
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_14:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_15
LBB0_19:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
## %bb.20:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leaq	-136(%rbp), %r14
	leaq	-64(%rbp), %r13
	movq	_EINTR@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15)
	jle	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	leaq	-128(%rbp), %rdi
	movq	%r14, %rsi
	leaq	-120(%rbp), %rdx
	callq	_timersub
	imull	$1000, -120(%rbp), %eax         ## imm = 0x3E8
	movslq	-116(%rbp), %rcx
	imulq	$274877907, %rcx, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdx
	addl	%ecx, %edx
	addl	%eax, %edx
	testl	%edx, %edx
	movl	$0, %eax
	cmovlel	%eax, %edx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	_INFTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	$0, -56(%rbp)
	movq	%r13, %rdi
	movl	$1, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ftp_poll
	cmpl	$-1, %eax
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rbx), %ecx
	movq	_errno@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	je	LBB0_21
LBB0_29:
	testl	%eax, %eax
	je	LBB0_30
## %bb.31:
	cmpl	$-1, %eax
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_25
## %bb.32:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, -56(%rbp)
	je	LBB0_23
## %bb.33:
	movl	$4, -100(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-104(%rbp), %rcx
	leaq	-100(%rbp), %r8
	movl	%ebx, %edi
	callq	_getsockopt
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.34:
	movl	-104(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_35
LBB0_30:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_23:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_24:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_25:
	leaq	L_.str.5(%rip), %rdi
LBB0_15:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_warn
LBB0_38:
	movl	$-1, %eax
LBB0_39:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_41
## %bb.40:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.comm	_NI_MAXSERV,4,2                 ## @NI_MAXSERV
	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ## @NI_NUMERICSERV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"?"

	.comm	_bindai,8,3                     ## @bindai
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Can't bind to `%s'"

	.comm	_F_GETFL,4,2                    ## @F_GETFL
L_.str.2:                               ## @.str.2
	.asciz	"Can't %s socket flags for connect to `%s:%s'"

L_.str.3:                               ## @.str.3
	.asciz	"save"

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.4:                               ## @.str.4
	.asciz	"Can't set socket non-blocking for connect to `%s:%s'"

	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_quit_time,8,3                  ## @quit_time
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
L_.str.5:                               ## @.str.5
	.asciz	"Can't connect to `%s:%s'"

	.comm	_INFTIM,4,2                     ## @INFTIM
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ## @SO_ERROR
	.comm	_EBADF,4,2                      ## @EBADF
L_.str.6:                               ## @.str.6
	.asciz	"restore"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ftp_connect                    ; -- Begin function ftp_connect
	.p2align	2
_ftp_connect:                           ; @ftp_connect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x8, _NI_MAXSERV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NI_MAXSERV@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	mov	x9, x25
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	bl	_setupsockbufsize
Lloh13:
	adrp	x27, _NI_NUMERICHOST@GOTPAGE
Lloh14:
	ldr	x27, [x27, _NI_NUMERICHOST@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh15:
	adrp	x9, _NI_NUMERICSERV@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NI_NUMERICSERV@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w6, w9, w8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x19
	mov	x3, x22
	mov	x4, x20
	mov	x5, x25
	bl	_getnameinfo
	cbz	x0, LBB0_2
; %bb.1:
Lloh18:
	adrp	x28, l_.str@PAGE
Lloh19:
	add	x28, x28, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x28
	mov	x2, x22
	bl	_strlcpy
	mov	x0, x20
	mov	x1, x28
	mov	x2, x25
	bl	_strlcpy
LBB0_2:
Lloh20:
	adrp	x8, _bindai@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bindai@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x9, [x24]
	mov	x22, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x22]
	cmp	x10, x9
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x22, #24]
	cbnz	x22, LBB0_4
; %bb.6:
	mov	x22, x8
LBB0_7:
	ldr	x1, [x22, #16]
	ldr	w2, [x22, #8]
	mov	x0, x21
	bl	_bind
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_8:
Lloh23:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_15
; %bb.9:
	mov	x22, x0
Lloh26:
	adrp	x25, _F_SETFL@GOTPAGE
Lloh27:
	ldr	x25, [x25, _F_SETFL@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh28:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x21
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.10:
	stur	x26, [x29, #-144]               ; 8-byte Folded Spill
Lloh31:
	adrp	x8, _POLLIN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _POLLOUT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _POLLOUT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	w21, w8, [x29, #-104]
Lloh37:
	adrp	x26, _quit_time@GOTPAGE
Lloh38:
	ldr	x26, [x26, _quit_time@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_12
; %bb.11:
	sub	x0, x29, #120
	mov	x1, #0
	bl	_gettimeofday
	ldr	w8, [x26]
	ldur	w9, [x29, #-120]
	add	w8, w9, w8
	stur	w8, [x29, #-120]
LBB0_12:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_20
LBB0_13:
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x22
	bl	_fcntl
	cmn	w0, #1
	ldur	x26, [x29, #-144]               ; 8-byte Folded Reload
	b.eq	LBB0_26
; %bb.14:
	mov	w0, #0
	b	LBB0_28
LBB0_15:
	stp	x19, x20, [sp, #-16]!
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_27
LBB0_16:
	mov	x21, sp
Lloh43:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh45:
	ldr	w19, [x8]
	mov	x9, x19
Lloh46:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh47:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh48:
	adrp	x23, _errno@GOTPAGE
Lloh49:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	w24, [x23]
	ldr	x0, [x22, #16]
	ldr	w1, [x22, #8]
	ldr	w6, [x27]
	mov	x2, x20
	mov	x3, x19
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
	cbz	x0, LBB0_18
; %bb.17:
Lloh50:
	adrp	x1, l_.str@PAGE
Lloh51:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_strlcpy
LBB0_18:
	str	w24, [x23]
Lloh52:
	adrp	x0, l_.str.1@PAGE
Lloh53:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_warn
	mov	w0, #-1
	mov	sp, x21
	b	LBB0_28
LBB0_19:
	str	x20, [sp, #-16]!
Lloh54:
	adrp	x0, l_.str.4@PAGE
Lloh55:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	b	LBB0_27
LBB0_20:
Lloh56:
	adrp	x23, _errno@GOTPAGE
Lloh57:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh58:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh59:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_39
; %bb.21:
	mov	w24, #1000
	mov	w27, #19923
	movk	w27, #4194, lsl #16
Lloh61:
	adrp	x28, _EINTR@GOTPAGE
Lloh62:
	ldr	x28, [x28, _EINTR@GOTPAGEOFF]
Lloh63:
	adrp	x25, _INFTIM@GOTPAGE
Lloh64:
	ldr	x25, [x25, _INFTIM@GOTPAGEOFF]
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	w2, [x25]
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	stur	wzr, [x29, #-96]
	sub	x0, x29, #104
	mov	w1, #1
	bl	_ftp_poll
	ldr	w8, [x23]
	ldr	w9, [x28]
	cmn	w0, #1
	ccmp	w8, w9, #0, eq
	b.ne	LBB0_30
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	sub	x0, x29, #128
	mov	x1, #0
	bl	_gettimeofday
	sub	x0, x29, #120
	sub	x1, x29, #128
	sub	x2, x29, #136
	bl	_timersub
	ldp	w8, w9, [x29, #-136]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mul	x9, x9, x27
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	madd	w8, w8, w24, w9
	cmp	w8, #0
	csel	w2, w8, wzr, gt
	b	LBB0_23
LBB0_26:
	stp	x19, x20, [sp, #-16]!
Lloh65:
	adrp	x0, l_.str.2@PAGE
Lloh66:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh67:
	adrp	x1, l_.str.6@PAGE
Lloh68:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_27:
	bl	_warn
	add	sp, sp, #16
	mov	w0, #-1
LBB0_28:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh69:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh70:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.29:
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_30:
	cbz	w0, LBB0_35
; %bb.31:
	cmn	w0, #1
Lloh72:
	adrp	x25, _F_SETFL@GOTPAGE
Lloh73:
	ldr	x25, [x25, _F_SETFL@GOTPAGEOFF]
Lloh74:
	adrp	x9, _POLLIN@GOTPAGE
Lloh75:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh76:
	adrp	x10, _POLLOUT@GOTPAGE
Lloh77:
	ldr	x10, [x10, _POLLOUT@GOTPAGEOFF]
	b.eq	LBB0_39
; %bb.32:
	ldur	w8, [x29, #-96]
	ldr	w9, [x9]
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_36
; %bb.33:
	mov	w8, #4
	stur	w8, [x29, #-112]
Lloh78:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh79:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
Lloh81:
	adrp	x8, _SO_ERROR@GOTPAGE
Lloh82:
	ldr	x8, [x8, _SO_ERROR@GOTPAGEOFF]
Lloh83:
	ldr	w2, [x8]
	sub	x3, x29, #108
	sub	x4, x29, #112
	mov	x0, x21
	bl	_getsockopt
	cmn	w0, #1
	b.eq	LBB0_39
; %bb.34:
	ldur	w8, [x29, #-108]
	cbnz	w8, LBB0_38
	b	LBB0_13
LBB0_35:
Lloh84:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh85:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_37
LBB0_36:
Lloh86:
	adrp	x8, _EBADF@GOTPAGE
Lloh87:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_37:
	ldr	w8, [x8]
LBB0_38:
	str	w8, [x23]
LBB0_39:
	str	x20, [sp, #-16]!
Lloh88:
	adrp	x0, l_.str.5@PAGE
Lloh89:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_warn
	add	sp, sp, #16
	mov	w0, #-1
	ldur	x26, [x29, #-144]               ; 8-byte Folded Reload
	b	LBB0_28
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.comm	_NI_MAXSERV,4,2                 ; @NI_MAXSERV
	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.comm	_NI_NUMERICSERV,4,2             ; @NI_NUMERICSERV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"?"

	.comm	_bindai,8,3                     ; @bindai
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Can't bind to `%s'"

	.comm	_F_GETFL,4,2                    ; @F_GETFL
l_.str.2:                               ; @.str.2
	.asciz	"Can't %s socket flags for connect to `%s:%s'"

l_.str.3:                               ; @.str.3
	.asciz	"save"

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.4:                               ; @.str.4
	.asciz	"Can't set socket non-blocking for connect to `%s:%s'"

	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_quit_time,8,3                  ; @quit_time
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
l_.str.5:                               ; @.str.5
	.asciz	"Can't connect to `%s:%s'"

	.comm	_INFTIM,4,2                     ; @INFTIM
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_ERROR,4,2                   ; @SO_ERROR
	.comm	_EBADF,4,2                      ; @EBADF
l_.str.6:                               ; @.str.6
	.asciz	"restore"

.subsections_via_symbols
