	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AliasHandleFtpIn
_AliasHandleFtpIn:                      ## @AliasHandleFtpIn
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_ip_next
	movq	%rax, %r14
	movl	(%rax), %r15d
	addl	(%rbx), %r15d
	shll	$2, %r15d
	movl	4(%rbx), %edi
	callq	_ntohs
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	subl	%r15d, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_GetProtocolFlags
	movl	%eax, %r13d
	movq	_MAX_MESSAGE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_6
## %bb.1:
	movq	_WAIT_CRLF@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_6
## %bb.2:
	movl	4(%r14), %edi
	callq	_ntohs
	movq	_FTP_CONTROL_PORT_NUMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movslq	%r15d, %r14
	addq	%rbx, %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_ParseFtpPortCommand
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_ParseFtpEprtCommand
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_GetOriginalAddress
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_GetAliasAddress
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_FTP_CONTROL_PORT_NUMBER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	decq	%rdi
	callq	_htons
	movl	%eax, %r14d
	movq	(%r12), %rdi
	callq	_htons
	movq	_GET_ALIAS_PORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	%r12, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%eax, %r9d
	pushq	%r11
	pushq	%r10
	callq	_AddLink
	addq	$16, %rsp
LBB0_6:
	cmpl	-80(%rbp), %r15d                ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	4(%rbx), %edi
	callq	_ntohs
	shlq	$32, %rax
	movabsq	$-8589934592, %rcx              ## imm = 0xFFFFFFFE00000000
	addq	%rax, %rcx
	sarq	$32, %rcx
	cmpb	$13, (%rbx,%rcx)
	jne	LBB0_10
## %bb.8:
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	addq	%rcx, %rax
	sarq	$32, %rax
	cmpb	$10, (%rbx,%rax)
	jne	LBB0_10
## %bb.9:
	movq	_WAIT_CRLF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r13d
	movl	%r13d, %esi
	jmp	LBB0_11
LBB0_10:
	movq	_WAIT_CRLF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r13d, %esi
LBB0_11:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SetProtocolFlags               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MESSAGE_SIZE,4,2           ## @MAX_MESSAGE_SIZE
	.comm	_WAIT_CRLF,4,2                  ## @WAIT_CRLF
	.comm	_FTP_CONTROL_PORT_NUMBER,8,3    ## @FTP_CONTROL_PORT_NUMBER
	.comm	_GET_ALIAS_PORT,4,2             ## @GET_ALIAS_PORT
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.no_dead_strip	_AliasHandleFtpIn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AliasHandleFtpIn
_AliasHandleFtpIn:                      ; @AliasHandleFtpIn
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_ip_next
	mov	x25, x0
	ldr	w8, [x0]
	ldp	w9, w0, [x20]
	add	w8, w8, w9
	lsl	w28, w8, #2
	bl	_ntohs
	mov	x23, x0
	sub	w24, w23, w28
	mov	x0, x19
	bl	_GetProtocolFlags
	mov	x21, x0
Lloh0:
	adrp	x8, _MAX_MESSAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_MESSAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w8
	b.gt	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _WAIT_CRLF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WAIT_CRLF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x25, #4]
	bl	_ntohs
Lloh6:
	adrp	x27, _FTP_CONTROL_PORT_NUMBER@GOTPAGE
Lloh7:
	ldr	x27, [x27, _FTP_CONTROL_PORT_NUMBER@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	add	x25, x20, w28, sxtw
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	bl	_ParseFtpPortCommand
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	bl	_ParseFtpEprtCommand
	cbz	x0, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_GetOriginalAddress
	mov	x24, x0
	ldr	w25, [x22, #8]
	mov	x0, x19
	bl	_GetAliasAddress
	mov	x26, x0
	ldr	x8, [x27]
	sub	x0, x8, #1
	bl	_htons
	mov	x27, x0
	ldr	x0, [x22]
	bl	_htons
	mov	x5, x0
Lloh8:
	adrp	x8, _GET_ALIAS_PORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GET_ALIAS_PORT@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
Lloh11:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	x4, x27
	bl	_AddLink
LBB0_6:
	cmp	w28, w23
	b.ne	LBB0_8
; %bb.7:
	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_8:
	ldr	w0, [x20, #4]
	bl	_ntohs
	lsl	x8, x0, #32
	mov	x9, #-8589934592
	add	x9, x8, x9
	asr	x9, x9, #32
	ldrb	w9, [x20, x9]
	cmp	w9, #13
	b.ne	LBB0_11
; %bb.9:
	mov	x9, #-4294967296
	add	x8, x8, x9
	asr	x8, x8, #32
	ldrb	w8, [x20, x8]
	cmp	w8, #10
	b.ne	LBB0_11
; %bb.10:
Lloh14:
	adrp	x8, _WAIT_CRLF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WAIT_CRLF@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w1, w21, w8
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _WAIT_CRLF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WAIT_CRLF@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w1, w8, w21
LBB0_12:
	mov	x0, x19
	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
	b	_SetProtocolFlags
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MESSAGE_SIZE,4,2           ; @MAX_MESSAGE_SIZE
	.comm	_WAIT_CRLF,4,2                  ; @WAIT_CRLF
	.comm	_FTP_CONTROL_PORT_NUMBER,8,3    ; @FTP_CONTROL_PORT_NUMBER
	.comm	_GET_ALIAS_PORT,4,2             ; @GET_ALIAS_PORT
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.no_dead_strip	_AliasHandleFtpIn
.subsections_via_symbols
