	.file	"304819.c"
	.intel_syntax noprefix
	.text
	.globl	recipient
	.section	.rodata
.LC0:
	.string	"127.0.0.1"
	.section	.data.rel.local,"aw"
	.align 8
	.type	recipient, @object
	.size	recipient, 8
recipient:
	.quad	.LC0
	.globl	userDir
	.section	.rodata
.LC1:
	.string	"public_html"
	.section	.data.rel.local
	.align 8
	.type	userDir, @object
	.size	userDir, 8
userDir:
	.quad	.LC1
	.globl	userDirLen
	.data
	.align 4
	.type	userDirLen, @object
	.size	userDirLen, 4
userDirLen:
	.long	11
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 4096
buf:
	.zero	4096
	.text
	.type	inet_sum, @function
inet_sum:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], ecx
	mov	rbx, QWORD PTR -40[rbp]
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 10
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 12
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	rbx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 14
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	rbx, rax
	add	QWORD PTR -24[rbp], 16
	sub	DWORD PTR -28[rbp], 16
.L2:
	cmp	DWORD PTR -28[rbp], 15
	jg	.L3
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	add	rbx, rax
	sub	DWORD PTR -28[rbp], 2
.L4:
	cmp	DWORD PTR -28[rbp], 1
	jg	.L5
	cmp	DWORD PTR -28[rbp], 0
	jle	.L6
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rbx, rax
.L6:
	cmp	DWORD PTR -32[rbp], 0
	je	.L7
	jmp	.L8
.L9:
	movzx	eax, bx
	mov	rdx, rbx
	sar	rdx, 16
	lea	rbx, [rax+rdx]
.L8:
	mov	rax, rbx
	sar	rax, 16
	test	rax, rax
	jne	.L9
	mov	rax, rbx
	not	rax
	movzx	eax, ax
	jmp	.L10
.L7:
	mov	rax, rbx
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	inet_sum, .-inet_sum
	.section	.rodata
.LC2:
	.string	"openconn"
.LC3:
	.string	"Couldn't create a TCP socket\n"
	.align 8
.LC4:
	.string	"cannot establish connection to server: portno %d\n"
.LC5:
	.string	"dammit"
	.text
	.globl	openconn
	.type	openconn, @function
openconn:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 2
	mov	esi, ecx
	mov	rdi, rax
	call	gethostbyaddr@PLT
	mov	QWORD PTR -40[rbp], rax
.L12:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L13
	lea	rdi, .LC2[rip]
	call	herror@PLT
	mov	edi, 0
	call	exit@PLT
.L13:
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], -1
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	exit@PLT
.L14:
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 1081
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	DWORD PTR -44[rbp], 16
	mov	edx, DWORD PTR -44[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 1081
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L15:
	mov	eax, DWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	openconn, .-openconn
	.section	.rodata
.LC6:
	.string	"%c %8d %8x"
	.align 8
.LC7:
	.string	"Unexpected length for send_aloha message: %d != %d\n"
	.align 8
.LC8:
	.string	"Failed to send entire send_aloha message: %d != %d\n"
	.align 8
.LC9:
	.string	"Unexpcted response to send_aloha: len %d, ret %d\n"
	.text
	.globl	send_aloha
	.type	send_aloha, @function
send_aloha:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -28[rbp], 19
	cmp	DWORD PTR -36[rbp], 0
	je	.L19
	mov	eax, 48
	jmp	.L20
.L19:
	mov	eax, 51
.L20:
	mov	BYTE PTR -29[rbp], al
	mov	rax, QWORD PTR recipient[rip]
	mov	rdi, rax
	call	openconn
	mov	DWORD PTR -24[rbp], eax
	movsx	eax, BYTE PTR -29[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, eax
	lea	rsi, .LC6[rip]
	lea	rdi, buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -28[rbp]
	movsx	rbx, eax
	lea	rdi, buf[rip]
	call	strlen@PLT
	cmp	rbx, rax
	je	.L21
	lea	rdi, buf[rip]
	call	strlen@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -28[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L21:
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	lea	rsi, buf[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	je	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L22:
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 4
	lea	rsi, buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -28[rbp], eax
	lea	rdi, buf[rip]
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -28[rbp], 4
	jne	.L23
	cmp	DWORD PTR -20[rbp], 0
	jne	.L24
.L23:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -28[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L24:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	send_aloha, .-send_aloha
	.section	.rodata
.LC10:
	.string	"1 %8d %8x %s"
	.align 8
.LC11:
	.string	"Unexpected length for send_mkdir message: %d != %d\n"
	.align 8
.LC12:
	.string	"Failed to send entire send_mkdir message: %d != %d\n"
	.align 8
.LC13:
	.string	"Unexpcted response to send_mkdir: len %d, ret %d\n"
.LC14:
	.string	"Moving on"
	.text
	.globl	send_mkdir
	.type	send_mkdir, @function
send_mkdir:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR recipient[rip]
	mov	rdi, rax
	call	openconn
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, eax
	lea	rsi, .LC10[rip]
	lea	rdi, buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	add	DWORD PTR -24[rbp], 20
	mov	eax, DWORD PTR -24[rbp]
	movsx	rbx, eax
	lea	rdi, buf[rip]
	call	strlen@PLT
	cmp	rbx, rax
	je	.L27
	lea	rdi, buf[rip]
	call	strlen@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L27:
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	lea	rsi, buf[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L28:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 4
	lea	rsi, buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -24[rbp], eax
	lea	rdi, buf[rip]
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -24[rbp], 4
	jne	.L29
	cmp	DWORD PTR -20[rbp], 0
	jne	.L30
.L29:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -24[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L30:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	send_mkdir, .-send_mkdir
	.section	.rodata
.LC15:
	.string	"Unable to open file: %s (%d)\n"
.LC16:
	.string	"2 %8d %8x %s"
	.align 8
.LC17:
	.string	"Unexpected length for send_file message: %d != %d\n"
	.align 8
.LC18:
	.string	"Failed to send entire send_file message: %d != %d\n"
	.align 8
.LC19:
	.string	"Unexpcted response to send_file: len %d, ret %d\n"
	.align 8
.LC20:
	.string	"Non-matched amount of data sent: %d != %d\n"
.LC21:
	.string	"filesize: %d (sum %x)\n"
	.text
	.globl	send_file
	.type	send_file, @function
send_file:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L33
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	je	.L34
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L35
.L34:
	mov	eax, 0
	jmp	.L36
.L35:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L33:
	mov	rax, QWORD PTR recipient[rip]
	mov	rdi, rax
	call	openconn
	mov	DWORD PTR -32[rbp], eax
	jmp	.L37
.L38:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, 0
	mov	esi, eax
	lea	rdi, buf[rip]
	mov	eax, 0
	call	inet_sum
	mov	DWORD PTR -40[rbp], eax
.L37:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 4096
	lea	rsi, buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jg	.L38
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	r8, rcx
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC16[rip]
	lea	rdi, buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	add	DWORD PTR -24[rbp], 20
	mov	eax, DWORD PTR -24[rbp]
	movsx	rbx, eax
	lea	rdi, buf[rip]
	call	strlen@PLT
	cmp	rbx, rax
	je	.L39
	lea	rdi, buf[rip]
	call	strlen@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L39:
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	lea	rsi, buf[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L40
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L40:
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, 4
	lea	rsi, buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -24[rbp], eax
	lea	rdi, buf[rip]
	call	atoi@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -24[rbp], 4
	jne	.L41
	cmp	DWORD PTR -28[rbp], 0
	jne	.L42
.L41:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -24[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L42:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L43
.L44:
	mov	eax, DWORD PTR -28[rbp]
	add	DWORD PTR -44[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, 0
	mov	esi, eax
	lea	rdi, buf[rip]
	mov	eax, 0
	call	inet_sum
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	lea	rsi, buf[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	je	.L43
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L43:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 4096
	lea	rsi, buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jg	.L44
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
.L36:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	send_file, .-send_file
	.globl	find_wordend
	.type	find_wordend, @function
find_wordend:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	DWORD PTR -4[rbp], 0
	jmp	.L46
.L48:
	add	DWORD PTR -4[rbp], 1
.L46:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -28[rbp], al
	je	.L47
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L48
.L47:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	find_wordend, .-find_wordend
	.section	.rodata
	.align 8
.LC22:
	.string	"fix_personal_directory_name called with illegal pathname: %s\n"
.LC23:
	.string	"Unknown user name: %s (%d)\n"
	.text
	.globl	fix_personal_directory_name
	.type	fix_personal_directory_name, @function
fix_personal_directory_name:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 126
	je	.L51
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L51:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	esi, 47
	mov	rdi, rax
	mov	eax, 0
	call	find_wordend
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	rdi, rax
	call	getpwnam@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L52
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, 1[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L52:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 47
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 47
	mov	eax, DWORD PTR userDirLen[rip]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR userDir[rip]
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jle	.L53
	mov	edx, DWORD PTR userDirLen[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 47
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	ecx, DWORD PTR userDirLen[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, ecx
	cdqe
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rcx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	jmp	.L54
.L53:
	mov	edx, DWORD PTR userDirLen[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -24[rbp], -1
.L54:
	mov	edx, DWORD PTR userDirLen[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	add	eax, 2
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	fix_personal_directory_name, .-fix_personal_directory_name
	.section	.rodata
.LC24:
	.string	"(3) add %s\n"
.LC25:
	.string	"the_stack_data/304819.c"
	.align 8
.LC26:
	.string	"(ret == 1) || (ret == ALFS_EEXIST)"
.LC27:
	.string	"."
.LC28:
	.string	".."
.LC29:
	.string	"%s: %d\n"
.LC30:
	.string	"Unable to lstat file: %s\n"
.LC31:
	.string	"Unable to read symbolic link"
.LC32:
	.string	"Unable to stat soft link: %s\n"
.LC33:
	.string	"add: %s\n"
	.align 8
.LC34:
	.string	"Unexpected error from send_file: %d\n"
	.text
	.globl	get_documents
	.type	get_documents, @function
get_documents:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 1256
	.cfi_offset 3, -24
	mov	QWORD PTR -1256[rbp], rdi
	mov	DWORD PTR -1260[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1236[rbp], 0
	mov	DWORD PTR -1232[rbp], 1
	mov	rax, QWORD PTR -1256[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -1216[rbp], rax
	cmp	QWORD PTR -1216[rbp], 0
	je	.L57
	mov	rax, QWORD PTR -1256[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1256[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	send_mkdir
	mov	DWORD PTR -1220[rbp], eax
	cmp	DWORD PTR -1220[rbp], 1
	je	.L59
	cmp	DWORD PTR -1220[rbp], -17
	je	.L59
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 338
	lea	rsi, .LC25[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L60:
	mov	rax, QWORD PTR -1208[rbp]
	add	rax, 19
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L59
	mov	rax, QWORD PTR -1208[rbp]
	add	rax, 19
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L59
	mov	eax, DWORD PTR -1260[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1256[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 47
	mov	rax, QWORD PTR -1208[rbp]
	lea	rdx, 19[rax]
	mov	eax, DWORD PTR -1260[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -1256[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -1260[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -1208[rbp]
	add	rax, 19
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -1256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	get_documents
	add	DWORD PTR -1236[rbp], eax
	mov	eax, DWORD PTR -1260[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1256[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L59:
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1208[rbp], rax
	cmp	QWORD PTR -1208[rbp], 0
	jne	.L60
	mov	rax, QWORD PTR -1216[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	edx, DWORD PTR -1236[rbp]
	mov	rax, QWORD PTR -1256[rbp]
	mov	rsi, rax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L61
.L57:
	lea	rdx, -1200[rbp]
	mov	rax, QWORD PTR -1256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	test	eax, eax
	je	.L62
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -1256[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L62:
	mov	eax, DWORD PTR -1176[rbp]
	and	eax, 61440
	cmp	eax, 40960
	jne	.L63
	lea	rcx, -1056[rbp]
	mov	rax, QWORD PTR -1256[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	rdi, rax
	call	readlink@PLT
	mov	DWORD PTR -1228[rbp], eax
	cmp	DWORD PTR -1228[rbp], -1
	jne	.L64
	lea	rdi, .LC31[rip]
	call	perror@PLT
	mov	edi, 0
	call	exit@PLT
.L64:
	mov	eax, DWORD PTR -1228[rbp]
	cdqe
	mov	BYTE PTR -1056[rbp+rax], 0
	lea	rdx, -1200[rbp]
	mov	rax, QWORD PTR -1256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L63
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -1056[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -1232[rbp], 0
.L63:
	mov	rax, QWORD PTR -1152[rbp]
	mov	DWORD PTR -1236[rbp], eax
	cmp	DWORD PTR -1232[rbp], 0
	je	.L61
	cmp	DWORD PTR -1236[rbp], 4194304
	jg	.L61
	mov	rax, QWORD PTR -1256[rbp]
	mov	rsi, rax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1256[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	send_file
	mov	DWORD PTR -1224[rbp], eax
	cmp	DWORD PTR -1224[rbp], 0
	jns	.L61
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -1224[rbp]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L61:
	mov	eax, DWORD PTR -1236[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L67
	call	__stack_chk_fail@PLT
.L67:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	get_documents, .-get_documents
	.section	.rodata
.LC35:
	.string	"Usage: %s <docdirs> [host]\n"
.LC36:
	.string	"r"
	.align 8
.LC37:
	.string	"Unable to open docdir file: %s\n"
.LC38:
	.string	"inname[(len-1)] == '\\n'"
.LC39:
	.string	"(1) add %s\n"
	.align 8
.LC40:
	.string	"Problem with send_mkdir for %s: ret %d\n"
.LC41:
	.string	"(2) add %s\n"
	.align 8
.LC42:
	.string	"total size of grabbed documents: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2112
	mov	DWORD PTR -2100[rbp], edi
	mov	QWORD PTR -2112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2088[rbp], 0
	cmp	DWORD PTR -2100[rbp], 2
	je	.L69
	cmp	DWORD PTR -2100[rbp], 3
	je	.L70
	mov	rax, QWORD PTR -2112[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L70:
	mov	rax, QWORD PTR -2112[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR recipient[rip], rax
.L69:
	mov	rax, QWORD PTR -2112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2072[rbp], rax
	cmp	QWORD PTR -2072[rbp], 0
	jne	.L71
	mov	rax, QWORD PTR -2112[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L71:
	mov	edi, 1
	mov	eax, 0
	call	send_aloha
	jmp	.L72
.L84:
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -2080[rbp], eax
	mov	eax, DWORD PTR -2080[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	cmp	al, 10
	je	.L73
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 432
	lea	rsi, .LC25[rip]
	lea	rdi, .LC38[rip]
	call	__assert_fail@PLT
.L73:
	mov	eax, DWORD PTR -2080[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -2064[rbp+rax], 0
	movzx	eax, BYTE PTR -2064[rbp]
	cmp	al, 126
	jne	.L74
	lea	rdx, -2064[rbp]
	lea	rax, -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fix_personal_directory_name
	mov	DWORD PTR -2080[rbp], eax
	mov	DWORD PTR -2084[rbp], 0
.L79:
	add	DWORD PTR -2084[rbp], 1
	lea	rdx, -1040[rbp]
	mov	eax, DWORD PTR -2084[rbp]
	cdqe
	add	rax, rdx
	mov	esi, 47
	mov	rdi, rax
	mov	eax, 0
	call	find_wordend
	add	DWORD PTR -2084[rbp], eax
	mov	eax, DWORD PTR -2084[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 0
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	send_mkdir
	mov	DWORD PTR -2076[rbp], eax
	cmp	DWORD PTR -2076[rbp], 1
	je	.L75
	cmp	DWORD PTR -2076[rbp], -17
	je	.L75
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -2076[rbp]
	lea	rdx, -1040[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L75:
	cmp	DWORD PTR -2076[rbp], 1
	je	.L76
	cmp	DWORD PTR -2076[rbp], -17
	je	.L76
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 450
	lea	rsi, .LC25[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L76:
	mov	eax, DWORD PTR -2084[rbp]
	cmp	eax, DWORD PTR -2080[rbp]
	jge	.L89
	mov	eax, DWORD PTR -2084[rbp]
	cdqe
	mov	BYTE PTR -1040[rbp+rax], 47
	jmp	.L79
.L89:
	nop
	mov	edx, DWORD PTR -2080[rbp]
	lea	rax, -1040[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	get_documents
	add	DWORD PTR -2088[rbp], eax
	jmp	.L72
.L74:
	mov	DWORD PTR -2084[rbp], 0
.L83:
	add	DWORD PTR -2084[rbp], 1
	lea	rdx, -2064[rbp]
	mov	eax, DWORD PTR -2084[rbp]
	cdqe
	add	rax, rdx
	mov	esi, 47
	mov	rdi, rax
	mov	eax, 0
	call	find_wordend
	add	DWORD PTR -2084[rbp], eax
	mov	eax, DWORD PTR -2084[rbp]
	cdqe
	mov	BYTE PTR -2064[rbp+rax], 0
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2064[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	send_mkdir
	mov	DWORD PTR -2076[rbp], eax
	cmp	DWORD PTR -2076[rbp], 1
	je	.L80
	cmp	DWORD PTR -2076[rbp], -17
	je	.L80
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 468
	lea	rsi, .LC25[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L80:
	mov	eax, DWORD PTR -2084[rbp]
	cmp	eax, DWORD PTR -2080[rbp]
	jge	.L90
	mov	eax, DWORD PTR -2084[rbp]
	cdqe
	mov	BYTE PTR -2064[rbp+rax], 47
	jmp	.L83
.L90:
	nop
	mov	eax, DWORD PTR -2080[rbp]
	lea	edx, -1[rax]
	lea	rax, -2064[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	get_documents
	add	DWORD PTR -2088[rbp], eax
.L72:
	mov	rdx, QWORD PTR -2072[rbp]
	lea	rax, -2064[rbp]
	mov	esi, 1023
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L84
	mov	eax, DWORD PTR -2088[rbp]
	mov	esi, eax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	mov	eax, 0
	call	send_aloha
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L86
	call	__stack_chk_fail@PLT
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 14
__PRETTY_FUNCTION__.1:
	.string	"get_documents"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"304819.c"
	.text
	.global	recipient
	.section	.rodata
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.data
	.align	2
	.type	recipient, %object
	.size	recipient, 4
recipient:
	.word	.LC0
	.global	userDir
	.section	.rodata
	.align	2
.LC1:
	.ascii	"public_html\000"
	.data
	.align	2
	.type	userDir, %object
	.size	userDir, 4
userDir:
	.word	.LC1
	.global	userDirLen
	.align	2
	.type	userDirLen, %object
	.size	userDirLen, 4
userDirLen:
	.word	11
	.comm	buf,4096,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	inet_sum, %function
inet_sum:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r4, [fp, #-24]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #10
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #14
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #16
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #15
	bgt	.L3
	b	.L4
.L5:
	ldr	r3, [fp, #-16]
	add	r2, r3, #2
	str	r2, [fp, #-16]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	str	r3, [fp, #-20]
.L4:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bgt	.L5
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r4, r4, r3
.L6:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L7
	b	.L8
.L9:
	lsl	r3, r4, #16
	lsr	r3, r3, #16
	asr	r2, r4, #16
	add	r4, r3, r2
.L8:
	asr	r3, r4, #16
	cmp	r3, #0
	bne	.L9
	mvn	r3, r4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	b	.L10
.L7:
	mov	r3, r4
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	inet_sum, .-inet_sum
	.section	.rodata
	.align	2
.LC2:
	.ascii	"openconn\000"
	.align	2
.LC3:
	.ascii	"Couldn't create a TCP socket\012\000"
	.align	2
.LC4:
	.ascii	"cannot establish connection to server: portno %d\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"dammit\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	openconn
	.syntax unified
	.arm
	.fpu softvfp
	.type	openconn, %function
openconn:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-40]
	bl	gethostbyname
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L12
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	gethostbyaddr
	str	r0, [fp, #-36]
.L12:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L18+4
	bl	herror
	mov	r0, #0
	bl	exit
.L13:
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L14
	ldr	r3, .L18+8
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L18+12
	bl	fwrite
	mov	r0, #0
	bl	exit
.L14:
	sub	r3, fp, #24
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r0, .L18+16
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	mov	r3, #16
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, .L18+16
	ldr	r1, .L18+20
	mov	r0, r3
	bl	fprintf
	ldr	r0, .L18+24
	bl	perror
	mov	r0, #0
	bl	exit
.L15:
	ldr	r3, [fp, #-32]
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	1081
	.word	.LC4
	.word	.LC5
	.size	openconn, .-openconn
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%c %8d %8x\000"
	.align	2
.LC8:
	.ascii	"Unexpected length for send_aloha message: %d != %d\012"
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"Failed to send entire send_aloha message: %d != %d\012"
	.ascii	"\000"
	.align	2
.LC10:
	.ascii	"Unexpcted response to send_aloha: len %d, ret %d\012"
	.ascii	"\000"
	.text
	.align	2
	.global	send_aloha
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_aloha, %function
send_aloha:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	mov	r3, #19
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L21
	mov	r3, #48
	b	.L22
.L21:
	mov	r3, #51
.L22:
	strb	r3, [fp, #-25]
	ldr	r3, .L28
	ldr	r3, [r3]
	mov	r0, r3
	bl	openconn
	str	r0, [fp, #-20]
	ldrb	r2, [fp, #-25]	@ zero_extendqisi2
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, .L28+4
	ldr	r0, .L28+8
	bl	sprintf
	ldr	r0, .L28+8
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L23
	ldr	r3, .L28+12
	ldr	r4, [r3]
	ldr	r0, .L28+8
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-24]
	ldr	r1, .L28+16
	mov	r0, r4
	bl	fprintf
	mov	r0, #0
	bl	exit
.L23:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r2, r3
	ldr	r1, .L28+8
	ldr	r0, [fp, #-20]
	bl	write
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L24
	ldr	r3, .L28+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r1, .L28+20
	bl	fprintf
	mov	r0, #0
	bl	exit
.L24:
	mov	r2, #4
	ldr	r1, .L28+8
	ldr	r0, [fp, #-20]
	bl	read
	str	r0, [fp, #-24]
	ldr	r0, .L28+8
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	bne	.L25
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L26
.L25:
	ldr	r3, .L28+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r1, .L28+24
	bl	fprintf
	mov	r0, #0
	bl	exit
.L26:
	ldr	r0, [fp, #-20]
	bl	close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L29:
	.align	2
.L28:
	.word	recipient
	.word	.LC7
	.word	buf
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	send_aloha, .-send_aloha
	.section	.rodata
	.align	2
.LC11:
	.ascii	"1 %8d %8x %s\000"
	.align	2
.LC12:
	.ascii	"Unexpected length for send_mkdir message: %d != %d\012"
	.ascii	"\000"
	.align	2
.LC13:
	.ascii	"Failed to send entire send_mkdir message: %d != %d\012"
	.ascii	"\000"
	.align	2
.LC14:
	.ascii	"Unexpcted response to send_mkdir: len %d, ret %d\012"
	.ascii	"\000"
	.align	2
.LC15:
	.ascii	"Moving on\000"
	.text
	.align	2
	.global	send_mkdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_mkdir, %function
send_mkdir:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	ldr	r3, .L36
	ldr	r3, [r3]
	mov	r0, r3
	bl	openconn
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-20]
	ldr	r1, .L36+4
	ldr	r0, .L36+8
	bl	sprintf
	ldr	r3, [fp, #-20]
	add	r3, r3, #20
	str	r3, [fp, #-20]
	ldr	r0, .L36+8
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L31
	ldr	r3, .L36+12
	ldr	r4, [r3]
	ldr	r0, .L36+8
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	ldr	r1, .L36+16
	mov	r0, r4
	bl	fprintf
	mov	r0, #0
	bl	exit
.L31:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, .L36+8
	ldr	r0, [fp, #-24]
	bl	write
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L32
	ldr	r3, .L36+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, .L36+20
	bl	fprintf
	mov	r0, #0
	bl	exit
.L32:
	mov	r2, #4
	ldr	r1, .L36+8
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-20]
	ldr	r0, .L36+8
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	bne	.L33
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L34
.L33:
	ldr	r3, .L36+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, .L36+24
	bl	fprintf
	mov	r0, #0
	bl	exit
.L34:
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r0, .L36+28
	bl	puts
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L37:
	.align	2
.L36:
	.word	recipient
	.word	.LC11
	.word	buf
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	send_mkdir, .-send_mkdir
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Unable to open file: %s (%d)\012\000"
	.align	2
.LC17:
	.ascii	"2 %8d %8x %s\000"
	.align	2
.LC18:
	.ascii	"Unexpected length for send_file message: %d != %d\012"
	.ascii	"\000"
	.align	2
.LC19:
	.ascii	"Failed to send entire send_file message: %d != %d\012"
	.ascii	"\000"
	.align	2
.LC20:
	.ascii	"Unexpcted response to send_file: len %d, ret %d\012"
	.ascii	"\000"
	.align	2
.LC21:
	.ascii	"Non-matched amount of data sent: %d != %d\012\000"
	.align	2
.LC22:
	.ascii	"filesize: %d (sum %x)\012\000"
	.text
	.align	2
	.global	send_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_file, %function
send_file:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	open
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L39
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	beq	.L40
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L41
.L40:
	mov	r3, #0
	b	.L42
.L41:
	ldr	r3, .L51
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	ldr	r1, .L51+4
	bl	fprintf
	ldr	r0, .L51+8
	bl	perror
	mov	r0, #0
	bl	exit
.L39:
	ldr	r3, .L51+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	openconn
	str	r0, [fp, #-28]
	b	.L43
.L44:
	mov	r3, #0
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-24]
	ldr	r0, .L51+16
	bl	inet_sum
	str	r0, [fp, #-36]
.L43:
	mov	r2, #4096
	ldr	r1, .L51+16
	ldr	r0, [fp, #-32]
	bl	read
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L44
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	lseek
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-20]
	ldr	r1, .L51+20
	ldr	r0, .L51+16
	bl	sprintf
	ldr	r3, [fp, #-20]
	add	r3, r3, #20
	str	r3, [fp, #-20]
	ldr	r0, .L51+16
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L45
	ldr	r3, .L51
	ldr	r4, [r3]
	ldr	r0, .L51+16
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-20]
	ldr	r1, .L51+24
	mov	r0, r4
	bl	fprintf
	mov	r0, #0
	bl	exit
.L45:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, .L51+16
	ldr	r0, [fp, #-28]
	bl	write
	str	r0, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	beq	.L46
	ldr	r3, .L51
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r1, .L51+28
	bl	fprintf
	mov	r0, #0
	bl	exit
.L46:
	mov	r2, #4
	ldr	r1, .L51+16
	ldr	r0, [fp, #-28]
	bl	read
	str	r0, [fp, #-20]
	ldr	r0, .L51+16
	bl	atoi
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	bne	.L47
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L48
.L47:
	ldr	r3, .L51
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r1, .L51+32
	bl	fprintf
	mov	r0, #0
	bl	exit
.L48:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L49
.L50:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	mov	r3, #0
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-24]
	ldr	r0, .L51+16
	bl	inet_sum
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-24]
	mov	r2, r3
	ldr	r1, .L51+16
	ldr	r0, [fp, #-28]
	bl	write
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L49
	ldr	r3, .L51
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r1, .L51+36
	bl	fprintf
	mov	r0, #0
	bl	exit
.L49:
	mov	r2, #4096
	ldr	r1, .L51+16
	ldr	r0, [fp, #-32]
	bl	read
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L50
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, .L51+40
	bl	printf
	ldr	r0, [fp, #-32]
	bl	close
	ldr	r0, [fp, #-28]
	bl	close
	ldr	r3, [fp, #-24]
.L42:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L52:
	.align	2
.L51:
	.word	stderr
	.word	.LC16
	.word	.LC5
	.word	recipient
	.word	buf
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	send_file, .-send_file
	.align	2
	.global	find_wordend
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_wordend, %function
find_wordend:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L54
.L56:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L54:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L55
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L56
.L55:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	find_wordend, .-find_wordend
	.section	.rodata
	.align	2
.LC23:
	.ascii	"fix_personal_directory_name called with illegal pat"
	.ascii	"hname: %s\012\000"
	.align	2
.LC24:
	.ascii	"Unknown user name: %s (%d)\012\000"
	.text
	.align	2
	.global	fix_personal_directory_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	fix_personal_directory_name, %function
fix_personal_directory_name:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #126
	beq	.L59
	ldr	r3, .L64
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, .L64+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L59:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, #47
	mov	r0, r3
	bl	find_wordend
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r0, r3
	bl	getpwnam
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L60
	ldr	r3, .L64
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r1, .L64+8
	bl	fprintf
	mov	r0, #0
	bl	exit
.L60:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #47
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	memmove
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #47
	strb	r2, [r3]
	ldr	r3, .L64+12
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, .L64+16
	ldr	r2, [r2]
	mov	r0, r3
	bl	memmove
	ldr	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L61
	ldr	r3, .L64+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #47
	strb	r2, [r3]
	ldr	r3, .L64+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-12]
	bl	memmove
	b	.L62
.L61:
	ldr	r3, .L64+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mvn	r3, #0
	str	r3, [fp, #-20]
.L62:
	ldr	r3, .L64+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	stderr
	.word	.LC23
	.word	.LC24
	.word	userDir
	.word	userDirLen
	.size	fix_personal_directory_name, .-fix_personal_directory_name
	.section	.rodata
	.align	2
.LC25:
	.ascii	"(3) add %s\012\000"
	.align	2
.LC26:
	.ascii	"the_stack_data/304819.c\000"
	.align	2
.LC27:
	.ascii	"(ret == 1) || (ret == ALFS_EEXIST)\000"
	.align	2
.LC28:
	.ascii	".\000"
	.align	2
.LC29:
	.ascii	"..\000"
	.align	2
.LC30:
	.ascii	"%s: %d\012\000"
	.align	2
.LC31:
	.ascii	"Unable to lstat file: %s\012\000"
	.align	2
.LC32:
	.ascii	"Unable to read symbolic link\000"
	.align	2
.LC33:
	.ascii	"Unable to stat soft link: %s\012\000"
	.align	2
.LC34:
	.ascii	"add: %s\012\000"
	.align	2
.LC35:
	.ascii	"Unexpected error from send_file: %d\012\000"
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_documents
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_documents, %function
get_documents:
	@ args = 0, pretend = 0, frame = 1160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1152
	sub	sp, sp, #8
	str	r0, [fp, #-1160]
	str	r1, [fp, #-1164]
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1152]
	mov	r3, #1
	str	r3, [fp, #-1148]
	ldr	r0, [fp, #-1160]
	bl	opendir
	str	r0, [fp, #-1144]
	ldr	r3, [fp, #-1144]
	cmp	r3, #0
	beq	.L67
	ldr	r1, [fp, #-1160]
	ldr	r0, .L78+4
	bl	printf
	ldr	r0, [fp, #-1160]
	bl	send_mkdir
	str	r0, [fp, #-1132]
	ldr	r3, [fp, #-1132]
	cmp	r3, #1
	beq	.L69
	ldr	r3, [fp, #-1132]
	cmn	r3, #17
	beq	.L69
	ldr	r3, .L78+8
	ldr	r2, .L78+12
	ldr	r1, .L78+16
	ldr	r0, .L78+20
	bl	__assert_fail
.L70:
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	ldr	r1, .L78+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	ldr	r1, .L78+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L69
	ldr	r3, [fp, #-1164]
	ldr	r2, [fp, #-1160]
	add	r3, r2, r3
	mov	r2, #47
	strb	r2, [r3]
	ldr	r3, [fp, #-1164]
	add	r3, r3, #1
	ldr	r2, [fp, #-1160]
	add	r2, r2, r3
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, [fp, #-1128]
	add	r3, r3, #11
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1164]
	add	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-1160]
	bl	get_documents
	mov	r2, r0
	ldr	r3, [fp, #-1152]
	add	r3, r3, r2
	str	r3, [fp, #-1152]
	ldr	r3, [fp, #-1164]
	ldr	r2, [fp, #-1160]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L69:
	ldr	r0, [fp, #-1144]
	bl	readdir
	str	r0, [fp, #-1128]
	ldr	r3, [fp, #-1128]
	cmp	r3, #0
	bne	.L70
	ldr	r0, [fp, #-1144]
	bl	closedir
	ldr	r2, [fp, #-1152]
	ldr	r1, [fp, #-1160]
	ldr	r0, .L78+32
	bl	printf
	b	.L71
.L67:
	sub	r3, fp, #1120
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1160]
	bl	lstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	ldr	r3, .L78+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-1160]
	ldr	r1, .L78+40
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L72:
	ldr	r3, [fp, #-1108]
	and	r3, r3, #61440
	cmp	r3, #40960
	bne	.L73
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1160]
	bl	readlink
	str	r0, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	cmn	r3, #1
	bne	.L74
	ldr	r0, .L78+44
	bl	perror
	mov	r0, #0
	bl	exit
.L74:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1140]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1120
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1160]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L78+36
	ldr	r0, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L78+48
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-1148]
.L73:
	ldr	r3, [fp, #-1080]
	str	r3, [fp, #-1152]
	ldr	r3, [fp, #-1148]
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-1152]
	cmp	r3, #4194304
	bgt	.L71
	ldr	r1, [fp, #-1160]
	ldr	r0, .L78+52
	bl	printf
	ldr	r0, [fp, #-1160]
	bl	send_file
	str	r0, [fp, #-1136]
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	bge	.L71
	ldr	r3, .L78+36
	ldr	r3, [r3]
	ldr	r2, [fp, #-1136]
	ldr	r1, .L78+56
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L71:
	ldr	r3, [fp, #-1152]
	ldr	r2, .L78
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC36
	.word	.LC25
	.word	__PRETTY_FUNCTION__.6977
	.word	338
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	stderr
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.size	get_documents, .-get_documents
	.section	.rodata
	.align	2
.LC37:
	.ascii	"Usage: %s <docdirs> [host]\012\000"
	.align	2
.LC38:
	.ascii	"r\000"
	.align	2
.LC39:
	.ascii	"Unable to open docdir file: %s\012\000"
	.align	2
.LC40:
	.ascii	"inname[(len-1)] == '\\n'\000"
	.align	2
.LC41:
	.ascii	"(1) add %s\012\000"
	.align	2
.LC42:
	.ascii	"Problem with send_mkdir for %s: ret %d\012\000"
	.align	2
.LC43:
	.ascii	"(2) add %s\012\000"
	.align	2
.LC44:
	.ascii	"total size of grabbed documents: %d\012\000"
	.align	2
.LC45:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2080
	str	r0, [fp, #-2080]
	str	r1, [fp, #-2084]
	ldr	r3, .L103
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2076]
	ldr	r3, [fp, #-2080]
	cmp	r3, #2
	beq	.L81
	ldr	r3, [fp, #-2080]
	cmp	r3, #3
	beq	.L82
	ldr	r3, .L103+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-2084]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L103+8
	bl	fprintf
	mov	r0, #0
	bl	exit
.L82:
	ldr	r3, [fp, #-2084]
	ldr	r3, [r3, #8]
	ldr	r2, .L103+12
	str	r3, [r2]
.L81:
	ldr	r3, [fp, #-2084]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L103+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-2068]
	ldr	r3, [fp, #-2068]
	cmp	r3, #0
	bne	.L83
	ldr	r3, .L103+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L103+20
	bl	fprintf
	mov	r0, #0
	bl	exit
.L83:
	mov	r0, #1
	bl	send_aloha
	b	.L84
.L96:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L85
	ldr	r3, .L103+24
	mov	r2, #432
	ldr	r1, .L103+28
	ldr	r0, .L103+32
	bl	__assert_fail
.L85:
	ldr	r3, [fp, #-2064]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-2052]
	ldrb	r3, [fp, #-2056]	@ zero_extendqisi2
	cmp	r3, #126
	bne	.L86
	sub	r2, fp, #2048
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	fix_personal_directory_name
	str	r0, [fp, #-2064]
	mov	r3, #0
	str	r3, [fp, #-2072]
.L91:
	ldr	r3, [fp, #-2072]
	add	r3, r3, #1
	str	r3, [fp, #-2072]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	mov	r1, #47
	mov	r0, r3
	bl	find_wordend
	mov	r2, r0
	ldr	r3, [fp, #-2072]
	add	r3, r3, r2
	str	r3, [fp, #-2072]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L103+36
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	send_mkdir
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #1
	beq	.L87
	ldr	r3, [fp, #-2060]
	cmn	r3, #17
	beq	.L87
	ldr	r3, .L103+4
	ldr	r0, [r3]
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r3, [fp, #-2060]
	ldr	r1, .L103+40
	bl	fprintf
.L87:
	ldr	r3, [fp, #-2060]
	cmp	r3, #1
	beq	.L88
	ldr	r3, [fp, #-2060]
	cmn	r3, #17
	beq	.L88
	ldr	r3, .L103+24
	ldr	r2, .L103+44
	ldr	r1, .L103+28
	ldr	r0, .L103+48
	bl	__assert_fail
.L88:
	ldr	r2, [fp, #-2072]
	ldr	r3, [fp, #-2064]
	cmp	r2, r3
	bge	.L101
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	mov	r2, #47
	strb	r2, [r3]
	b	.L91
.L101:
	nop
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, [fp, #-2064]
	mov	r0, r3
	bl	get_documents
	mov	r2, r0
	ldr	r3, [fp, #-2076]
	add	r3, r3, r2
	str	r3, [fp, #-2076]
	b	.L84
.L86:
	mov	r3, #0
	str	r3, [fp, #-2072]
.L95:
	ldr	r3, [fp, #-2072]
	add	r3, r3, #1
	str	r3, [fp, #-2072]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	mov	r1, #47
	mov	r0, r3
	bl	find_wordend
	mov	r2, r0
	ldr	r3, [fp, #-2072]
	add	r3, r3, r2
	str	r3, [fp, #-2072]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L103+52
	bl	printf
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	send_mkdir
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #1
	beq	.L92
	ldr	r3, [fp, #-2060]
	cmn	r3, #17
	beq	.L92
	ldr	r3, .L103+24
	mov	r2, #468
	ldr	r1, .L103+28
	ldr	r0, .L103+48
	bl	__assert_fail
.L92:
	ldr	r2, [fp, #-2072]
	ldr	r3, [fp, #-2064]
	cmp	r2, r3
	bge	.L102
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2072]
	add	r3, r3, r2
	mov	r2, #47
	strb	r2, [r3]
	b	.L95
.L102:
	nop
	ldr	r3, [fp, #-2064]
	sub	r2, r3, #1
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	get_documents
	mov	r2, r0
	ldr	r3, [fp, #-2076]
	add	r3, r3, r2
	str	r3, [fp, #-2076]
.L84:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2068]
	ldr	r1, .L103+56
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L96
	ldr	r1, [fp, #-2076]
	ldr	r0, .L103+60
	bl	printf
	mov	r0, #0
	bl	send_aloha
	mov	r3, #0
	ldr	r2, .L103
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L98
	bl	__stack_chk_fail
.L98:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC45
	.word	stderr
	.word	.LC37
	.word	recipient
	.word	.LC38
	.word	.LC39
	.word	__PRETTY_FUNCTION__.6995
	.word	.LC26
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	450
	.word	.LC27
	.word	.LC43
	.word	1023
	.word	.LC44
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6977, %object
	.size	__PRETTY_FUNCTION__.6977, 14
__PRETTY_FUNCTION__.6977:
	.ascii	"get_documents\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6995, %object
	.size	__PRETTY_FUNCTION__.6995, 5
__PRETTY_FUNCTION__.6995:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
