	.file	"extr_alias_ftp.c_NewFtpMessage.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EPRT |1|%d.%d.%d.%d|%d|\r\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"229 Entering Extended Passive Mode (|||%d|)\r\n"
	.section	.rodata.str1.1
.LC2:
	.string	"PORT %d,%d,%d,%d,%d,%d\r\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"227 Entering Passive Mode (%d,%d,%d,%d,%d,%d)\r\n"
	.text
	.p2align 4
	.type	NewFtpMessage, @function
NewFtpMessage:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	cmp	QWORD PTR 16[rsi], rax
	jne	.L1
	mov	r13, rdi
	mov	rdi, QWORD PTR [rdi]
	cmp	rdi, QWORD PTR IPPORT_RESERVED[rip]
	jge	.L24
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	r11d, DWORD PTR IPPROTO_TCP[rip]
	mov	r12, rdx
	mov	r15, rsi
	mov	ebx, ecx
	mov	r9d, DWORD PTR GET_ALIAS_PORT[rip]
	mov	r14d, r8d
	mov	DWORD PTR -92[rbp], r11d
	mov	DWORD PTR -88[rbp], r9d
	call	htons@PLT
	mov	rdi, r12
	mov	DWORD PTR -80[rbp], eax
	call	GetAliasAddress@PLT
	mov	rdi, r12
	mov	DWORD PTR -72[rbp], eax
	call	GetDestAddress@PLT
	mov	r11d, DWORD PTR -92[rbp]
	mov	r9d, DWORD PTR -88[rbp]
	mov	rdi, r13
	mov	rsi, QWORD PTR 8[r13]
	mov	ecx, DWORD PTR -72[rbp]
	mov	edx, eax
	push	r11
	mov	r8d, DWORD PTR -80[rbp]
	push	r9
	xor	r9d, r9d
	call	AddLink@PLT
	pop	rcx
	pop	rsi
	test	rax, rax
	je	.L1
	mov	rdi, rax
	mov	QWORD PTR -88[rbp], rax
	call	PunchFWHole@PLT
	mov	rdi, r15
	call	ip_next@PLT
	mov	edi, DWORD PTR 4[r15]
	mov	r13d, DWORD PTR [rax]
	add	r13d, DWORD PTR [r15]
	call	ntohs@PLT
	sal	r13d, 2
	mov	rcx, rsp
	mov	QWORD PTR -80[rbp], rsp
	sub	eax, r13d
	mov	r8, QWORD PTR -88[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR MAX_MESSAGE_SIZE[rip]
	add	eax, 1
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L6
.L26:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L26
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L7
	or	QWORD PTR -8[rsp+rdx], 0
.L7:
	mov	r10, rsp
	mov	rdi, r12
	mov	QWORD PTR -120[rbp], r8
	mov	QWORD PTR -112[rbp], r10
	call	GetAliasAddress@PLT
	mov	r8, QWORD PTR -120[rbp]
	mov	ecx, DWORD PTR -64[rbp]
	mov	esi, DWORD PTR -60[rbp]
	mov	r9d, DWORD PTR -56[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	rdi, r8
	mov	DWORD PTR -100[rbp], eax
	mov	DWORD PTR -96[rbp], ecx
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -88[rbp], r9d
	call	GetAliasPort@PLT
	cmp	r14d, 130
	mov	r10, QWORD PTR -112[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	edi, eax
	je	.L8
	mov	r9d, DWORD PTR -88[rbp]
	mov	esi, DWORD PTR -92[rbp]
	mov	ecx, DWORD PTR -96[rbp]
	mov	edx, DWORD PTR -100[rbp]
	jg	.L9
	cmp	r14d, 128
	je	.L10
	cmp	r14d, 129
	jne	.L12
	mov	QWORD PTR -112[rbp], r10
	mov	DWORD PTR -100[rbp], edx
	mov	DWORD PTR -96[rbp], r9d
	mov	DWORD PTR -92[rbp], esi
	mov	DWORD PTR -88[rbp], ecx
	call	ntohs@PLT
	sub	rsp, 8
	mov	esi, DWORD PTR -92[rbp]
	mov	r9d, DWORD PTR -96[rbp]
	mov	ecx, DWORD PTR -88[rbp]
	mov	edx, DWORD PTR -100[rbp]
	push	rax
	mov	r10, QWORD PTR -112[rbp]
	mov	r8d, esi
	lea	rsi, .LC0[rip]
.L22:
	mov	rdi, r10
	xor	eax, eax
	mov	QWORD PTR -88[rbp], r10
	call	sprintf@PLT
	mov	r10, QWORD PTR -88[rbp]
	pop	rax
	pop	rdx
.L12:
	mov	rdi, r10
	mov	QWORD PTR -88[rbp], r10
	sub	ebx, r13d
	call	strlen@PLT
	mov	r10, QWORD PTR -88[rbp]
	movsx	rdi, r13d
	mov	edx, ebx
	add	rdi, r15
	mov	r14d, eax
	mov	rsi, r10
	call	strncpy@PLT
	mov	rsp, QWORD PTR -80[rbp]
	mov	rdi, r12
	call	SetAckModified@PLT
	mov	rdi, r15
	call	ip_next@PLT
	mov	rsi, r12
	mov	edi, DWORD PTR 16[rax]
	mov	rbx, rax
	call	GetDeltaSeqOut@PLT
	mov	r9d, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 16[rbx]
	mov	rdi, r12
	mov	ecx, DWORD PTR 4[r15]
	mov	edx, DWORD PTR [r15]
	lea	esi, [r14+rax]
	sub	esi, DWORD PTR -72[rbp]
	call	AddSeq@PLT
	lea	edi, 0[r13+r14]
	call	htons@PLT
	lea	rdx, 4[r15]
	lea	rsi, -60[rbp]
	mov	ecx, 1
	lea	rdi, 8[r15]
	mov	DWORD PTR -60[rbp], eax
	call	DifferentialChecksum@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	rdi, r15
	mov	DWORD PTR 4[r15], eax
	mov	QWORD PTR 8[rbx], 0
	call	TcpChecksum@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	r14d, 131
	jne	.L12
	mov	eax, DWORD PTR -56[rbp]
	mov	r8d, esi
	lea	rsi, .LC3[rip]
	push	rax
	push	rdi
	jmp	.L22
.L8:
	mov	QWORD PTR -88[rbp], r10
	call	ntohs@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rsp
	mov	edx, eax
	xor	eax, eax
	call	sprintf@PLT
	mov	r10, QWORD PTR -88[rbp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR -56[rbp]
	mov	r8d, esi
	lea	rsi, .LC2[rip]
	push	rax
	push	rdi
	jmp	.L22
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	NewFtpMessage, .-NewFtpMessage
	.comm	stderr,4,4
	.comm	MAX_MESSAGE_SIZE,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	IPPORT_RESERVED,8,8
	.comm	GET_ALIAS_PORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_alias_ftp.c_NewFtpMessage.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PORT %d,%d,%d,%d,%d,%d\015\012\000"
	.align	2
.LC1:
	.ascii	"227 Entering Passive Mode (%d,%d,%d,%d,%d,%d)\015\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"EPRT |1|%d.%d.%d.%d|%d|\015\012\000"
	.align	2
.LC3:
	.ascii	"229 Entering Extended Passive Mode (|||%d|)\015\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	NewFtpMessage, %function
NewFtpMessage:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #52
	mov	r7, r0
	mov	r4, r1
	ldr	r0, [r1, #12]
	ldr	r1, [r7, #4]
	mov	r6, r3
	ldr	r3, .L19
	cmp	r0, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bne	.L1
	ldr	r3, .L19+4
	mov	r5, r2
	ldr	r3, [r3]
	ldr	r2, [r7]
	cmp	r2, r3
	bge	.L17
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r0, r5
	bl	GetDestAddress
	mov	r8, r0
	mov	r0, r5
	bl	GetAliasAddress
	mov	r9, r0
	ldr	r0, [r7]
	bl	htons
	mov	ip, #0
	mov	r10, r0
	ldr	r3, .L19+8
	ldr	r0, .L19+12
	ldr	r2, [r3]
	ldr	r1, [r7, #4]
	str	r2, [sp, #12]
	ldr	lr, [r0]
	mov	r3, r9
	mov	r2, r8
	mov	r0, r7
	stm	sp, {r10, ip, lr}
	bl	AddLink
	subs	r9, r0, #0
	beq	.L1
	bl	PunchFWHole
	mov	r0, r4
	bl	ip_next
	ldr	r7, [r4]
	ldr	r3, [r0]
	ldr	r0, [r4, #4]
	add	r7, r7, r3
	bl	ntohs
	mov	r8, r0
	ldr	r3, .L19+16
	lsl	r7, r7, #2
	ldr	r3, [r3]
	mov	r10, sp
	add	r3, r3, #8
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r0, r5
	sub	r3, r8, r7
	str	r3, [fp, #-52]
	bl	GetAliasAddress
	mov	r8, r0
	ldr	r3, [fp, #-44]
	mov	r0, r9
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-40]
	str	r8, [fp, #-48]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-36]
	add	r9, sp, #16
	str	r3, [fp, #-64]
	bl	GetAliasPort
	ldr	r3, [fp, #4]
	str	r0, [fp, #-44]
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L6
	.word	.L9
	.word	.L8
	.word	.L6
.L9:
	bl	ntohs
	ldr	r3, [fp, #-64]
	str	r0, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-60]
	mov	r2, r8
	str	r3, [sp]
	mov	r0, r9
	ldr	r3, [fp, #-56]
	ldr	r1, .L19+20
	bl	sprintf
.L5:
	mov	r0, r9
	bl	strlen
	mov	r3, r0
	sub	r2, r6, r7
	mov	r1, r9
	add	r0, r4, r7
	mov	r9, r3
	bl	strncpy
	mov	r0, r5
	mov	sp, r10
	bl	SetAckModified
	mov	r0, r4
	bl	ip_next
	mov	r6, r0
	mov	r10, r4
	mov	r1, r5
	ldr	r0, [r0, #12]
	bl	GetDeltaSeqOut
	ldr	r1, [r6]
	ldr	r2, [r10], #4
	ldr	r3, [r4, #4]
	str	r1, [sp, #4]
	ldr	ip, [r6, #12]
	add	r1, r9, r0
	ldr	r0, [fp, #-52]
	str	ip, [sp]
	sub	r1, r1, r0
	mov	r0, r5
	bl	AddSeq
	add	r0, r7, r9
	bl	htons
	mov	ip, r0
	mov	r2, r10
	mov	r3, #1
	sub	r1, fp, #44
	add	r0, r4, #8
	str	ip, [fp, #-44]
	bl	DifferentialChecksum
	mov	r3, #0
	ldr	r2, [fp, #-44]
	mov	r0, r4
	str	r2, [r4, #4]
	str	r3, [r6, #8]
	bl	TcpChecksum
	str	r0, [r6, #8]
	b	.L1
.L6:
	ldr	r3, [fp, #4]
	mov	r2, r8
	cmp	r3, #128
	ldr	r3, [fp, #-40]
	str	r0, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-64]
	mov	r0, r9
	str	r3, [sp, #4]
	ldr	r3, [fp, #-60]
	ldreq	r1, .L19+24
	str	r3, [sp]
	ldr	r3, [fp, #-56]
	ldrne	r1, .L19+28
	bl	sprintf
	b	.L5
.L8:
	bl	ntohs
	ldr	r1, .L19+32
	mov	r2, r0
	mov	r0, r9
	bl	sprintf
	b	.L5
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	IPPORT_RESERVED
	.word	IPPROTO_TCP
	.word	GET_ALIAS_PORT
	.word	MAX_MESSAGE_SIZE
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.size	NewFtpMessage, .-NewFtpMessage
	.comm	stderr,4,4
	.comm	MAX_MESSAGE_SIZE,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	IPPORT_RESERVED,4,4
	.comm	GET_ALIAS_PORT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
