	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dataconn                       ## -- Begin function dataconn
	.p2align	4, 0x90
_dataconn:                              ## @dataconn
	.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
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_passivemode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_data@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	je	LBB0_3
## %bb.1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.2:
	movq	%rbx, %rsi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fdopen                         ## TAILCALL
LBB0_3:
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.4:
	movl	%eax, %r15d
	movl	(%r14), %edi
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r15d, %edx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.5:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	movl	%eax, -56(%rbp)
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	_quit_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	movl	$60, %ecx
	cmovgq	%rax, %rcx
	addq	%rcx, -104(%rbp)
	leaq	-120(%rbp), %rbx
	leaq	-88(%rbp), %r13
	leaq	-56(%rbp), %r14
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EINTR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	leaq	-104(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_timersub
	movslq	-80(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	imull	$1000, -88(%rbp), %edx          ## imm = 0x3E8
	addl	%eax, %edx
	testl	%edx, %edx
	movl	$0, %eax
	cmovlel	%eax, %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ftp_poll
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rcx
	cmpq	%rcx, (%r15)
	je	LBB0_6
LBB0_8:
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.9:
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:
	movq	_myctladdr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-128(%rbp), %r14
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_data@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_accept
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r12), %rax
	cmpq	%rax, (%r15)
	je	LBB0_11
LBB0_13:
	cmpl	$-1, %ebx
	je	LBB0_18
## %bb.14:
	movq	_data@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_close
	movl	%ebx, (%r14)
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_fcntl
	cmpl	$-1, %eax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_21
## %bb.15:
	movl	(%r14), %edi
	callq	_fdopen
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_19
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	callq	_warnx
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
LBB0_19:
	callq	_warn
LBB0_20:
	movq	_data@GOTPCREL(%rip), %r14
LBB0_21:
	movl	(%r14), %edi
	callq	_close
	movl	$-1, (%r14)
	xorl	%eax, %eax
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_passivemode,8,3                ## @passivemode
	.comm	_data,4,2                       ## @data
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_quit_time,8,3                  ## @quit_time
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't poll waiting before accept"

L_.str.1:                               ## @.str.1
	.asciz	"Poll timeout waiting before accept"

	.comm	_myctladdr,4,2                  ## @myctladdr
L_.str.2:                               ## @.str.2
	.asciz	"Can't accept data connection"

	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IPTOS_THROUGHPUT,4,2           ## @IPTOS_THROUGHPUT
	.comm	_IP_TOS,4,2                     ## @IP_TOS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dataconn                       ; -- Begin function dataconn
	.p2align	2
_dataconn:                              ; @dataconn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _passivemode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _passivemode@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x23, _data@GOTPAGE
Lloh7:
	ldr	x23, [x23, _data@GOTPAGEOFF]
	ldr	w0, [x23]
	cbz	x8, LBB0_3
; %bb.1:
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.2:
	mov	x1, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_fdopen
LBB0_3:
Lloh11:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.4:
	mov	x20, x0
Lloh14:
	adrp	x24, _F_SETFL@GOTPAGE
Lloh15:
	ldr	x24, [x24, _F_SETFL@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x24]
Lloh16:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w2, w8, w20
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.5:
	ldr	w8, [x23]
Lloh19:
	adrp	x9, _POLLIN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _POLLIN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #80]
	add	x0, sp, #48
	mov	x1, #0
	bl	_gettimeofday
Lloh22:
	adrp	x8, _quit_time@GOTPAGE
Lloh23:
	ldr	x8, [x8, _quit_time@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	mov	w9, #60
	cmp	x8, #0
	csel	x8, x8, x9, gt
	ldr	x9, [sp, #48]
	add	x8, x8, x9
	str	x8, [sp, #48]
	mov	w21, #19923
	movk	w21, #4194, lsl #16
	mov	w22, #1000
Lloh25:
	adrp	x25, _errno@GOTPAGE
Lloh26:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh27:
	adrp	x26, _EINTR@GOTPAGE
Lloh28:
	ldr	x26, [x26, _EINTR@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	mov	x1, #0
	bl	_gettimeofday
	add	x0, sp, #48
	add	x1, sp, #32
	add	x2, sp, #16
	bl	_timersub
	ldr	w8, [sp, #16]
	ldrsw	x9, [sp, #24]
	mul	x9, x9, x21
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	madd	w8, w8, w22, w9
	cmp	w8, #0
	csel	w2, w8, wzr, gt
	add	x0, sp, #80
	mov	w1, #1
	bl	_ftp_poll
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_6
; %bb.7:
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.8:
	cbz	w0, LBB0_15
; %bb.9:
Lloh29:
	adrp	x8, _myctladdr@GOTPAGE
Lloh30:
	ldr	x8, [x8, _myctladdr@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	add	x8, sp, #64
	add	x22, x8, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	add	x2, sp, #12
	mov	x1, x22
	bl	_accept
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_10
; %bb.11:
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.12:
	ldr	w0, [x23]
	bl	_close
	str	w21, [x23]
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x20
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.13:
	ldr	w0, [x23]
	mov	x1, x19
	bl	_fdopen
	b	LBB0_19
LBB0_14:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_17
LBB0_15:
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	b	LBB0_18
LBB0_16:
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_17:
	bl	_warn
LBB0_18:
	ldr	w0, [x23]
	bl	_close
	mov	x0, #0
	mov	w8, #-1
	str	w8, [x23]
LBB0_19:
	ldur	x8, [x29, #-72]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_passivemode,8,3                ; @passivemode
	.comm	_data,4,2                       ; @data
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_quit_time,8,3                  ; @quit_time
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't poll waiting before accept"

l_.str.1:                               ; @.str.1
	.asciz	"Poll timeout waiting before accept"

	.comm	_myctladdr,4,2                  ; @myctladdr
l_.str.2:                               ; @.str.2
	.asciz	"Can't accept data connection"

	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IPTOS_THROUGHPUT,4,2           ; @IPTOS_THROUGHPUT
	.comm	_IP_TOS,4,2                     ; @IP_TOS
.subsections_via_symbols
