	.file	"1591.c"
	.intel_syntax noprefix
	.text
	.globl	attachment
	.bss
	.align 4
	.type	attachment, @object
	.size	attachment, 4
attachment:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%s.%02d"
.LC1:
	.string	"Message-ID: <%s>\n"
.LC2:
	.string	"Mime-Version: 1.0\n"
.LC3:
	.string	"Subject: %s (%02d/%02d)\n"
.LC4:
	.string	"References: <%s>\n"
.LC5:
	.string	"\t <%s>\n"
	.align 8
.LC6:
	.string	"Content-Type: message/partial; number=%d; total=%d;\n"
.LC7:
	.string	"\t id=\"%s\"\n"
.LC8:
	.string	"MIME-Version: 1.0\n"
.LC9:
	.string	"Subject: %s\n"
	.align 8
.LC10:
	.string	"Content-Type: multipart/mixed; boundary=\"-\"\n"
	.align 8
.LC11:
	.string	"\nThis is a MIME encoded message.  Decode it with \"munpack\"\n"
	.align 8
.LC12:
	.string	"or any other MIME reading software.  Mpack/munpack is available\n"
	.align 8
.LC13:
	.string	"via anonymous FTP in ftp.andrew.cmu.edu:pub/mpack/\n"
.LC14:
	.string	"---\n\n"
.LC15:
	.string	"---\n"
	.align 8
.LC16:
	.string	"Content-Type: multipart/appledouble; boundary=\"=\"; name=\"%s\"\n"
.LC17:
	.string	"attachment"
.LC18:
	.string	"inline"
	.align 8
.LC19:
	.string	"Content-Disposition: %s; filename=\"%s\"\n"
.LC20:
	.string	"\n\n--=\n"
	.align 8
.LC21:
	.string	"Content-Type: application/applefile\n"
	.align 8
.LC22:
	.string	"Content-Transfer-Encoding: base64\n"
.LC23:
	.string	"Content-MD5: %s\n\n"
.LC24:
	.string	"\n--=\n"
.LC25:
	.string	"Content-Type: %s; name=\"%s\"\n"
.LC26:
	.string	"\n--=--\n"
.LC27:
	.string	"\n-----\n"
	.text
	.globl	encode
	.type	encode, @function
encode:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1248
	mov	QWORD PTR -1192[rbp], rdi
	mov	QWORD PTR -1200[rbp], rsi
	mov	QWORD PTR -1208[rbp], rdx
	mov	QWORD PTR -1216[rbp], rcx
	mov	QWORD PTR -1224[rbp], r8
	mov	QWORD PTR -1232[rbp], r9
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR -1240[rbp], rax
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR -1248[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1112[rbp], 0
	mov	DWORD PTR -1172[rbp], 1
	mov	DWORD PTR -1168[rbp], 0
	mov	rax, QWORD PTR -1208[rbp]
	mov	QWORD PTR -1128[rbp], rax
	mov	rax, QWORD PTR -1128[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -1120[rbp], rax
	cmp	QWORD PTR -1120[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 1
	mov	QWORD PTR -1128[rbp], rax
.L2:
	mov	rax, QWORD PTR -1128[rbp]
	mov	esi, 92
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -1120[rbp], rax
	cmp	QWORD PTR -1120[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 1
	mov	QWORD PTR -1128[rbp], rax
.L3:
	mov	rax, QWORD PTR -1128[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -1120[rbp], rax
	cmp	QWORD PTR -1120[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 1
	mov	QWORD PTR -1128[rbp], rax
.L4:
	cmp	QWORD PTR -1240[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -1240[rbp]
	mov	QWORD PTR -1144[rbp], rax
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -1192[rbp]
	mov	rdi, rax
	call	magic_look@PLT
	mov	QWORD PTR -1144[rbp], rax
.L6:
	lea	rdx, -1160[rbp]
	mov	rax, QWORD PTR -1192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	md5digest@PLT
	mov	QWORD PTR -1096[rbp], rax
	cmp	QWORD PTR -1200[rbp], 0
	je	.L7
	lea	rdx, -1152[rbp]
	mov	rax, QWORD PTR -1200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	md5digest@PLT
	mov	QWORD PTR -1112[rbp], rax
	mov	rdx, QWORD PTR -1160[rbp]
	mov	rax, QWORD PTR -1152[rbp]
	add	rax, rdx
	mov	QWORD PTR -1160[rbp], rax
.L7:
	cmp	QWORD PTR 16[rbp], 0
	je	.L8
	mov	rcx, QWORD PTR -1160[rbp]
	movabs	rdx, 341606371735362067
	mov	rax, rcx
	imul	rdx
	mov	rax, rcx
	sar	rax, 63
	sub	rdx, rax
	mov	rax, rdx
	sal	rax, 3
	add	rax, rdx
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR -1160[rbp], rax
	cmp	QWORD PTR -1216[rbp], 0
	je	.L9
	lea	rdx, -1152[rbp]
	mov	rax, QWORD PTR -1216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	md5digest@PLT
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR -1160[rbp]
	mov	rax, QWORD PTR -1152[rbp]
	add	rax, rdx
	mov	QWORD PTR -1160[rbp], rax
.L9:
	mov	rax, QWORD PTR -1160[rbp]
	sub	rax, 1000
	cqo
	idiv	QWORD PTR 16[rbp]
	add	eax, 1
	mov	DWORD PTR -1172[rbp], eax
	cmp	DWORD PTR -1172[rbp], 0
	jg	.L8
	mov	DWORD PTR -1172[rbp], 1
.L8:
	call	os_genid@PLT
	mov	QWORD PTR -1088[rbp], rax
	mov	DWORD PTR -1164[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -1164[rbp]
	cdqe
	mov	QWORD PTR -1072[rbp+rax*8], 0
	add	DWORD PTR -1164[rbp], 1
.L10:
	cmp	DWORD PTR -1164[rbp], 3
	jle	.L11
	mov	DWORD PTR -1176[rbp], 1
	jmp	.L12
.L50:
	mov	QWORD PTR -1104[rbp], 0
	cmp	DWORD PTR -1172[rbp], 1
	jne	.L13
	mov	rax, QWORD PTR -1248[rbp]
	mov	rdi, rax
	call	os_createnewfile@PLT
	mov	QWORD PTR -1136[rbp], rax
	jmp	.L14
.L13:
	mov	ecx, DWORD PTR -1176[rbp]
	mov	rdx, QWORD PTR -1248[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	os_createnewfile@PLT
	mov	QWORD PTR -1136[rbp], rax
.L14:
	cmp	QWORD PTR -1136[rbp], 0
	jne	.L15
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	os_perror@PLT
	mov	eax, 1
	jmp	.L51
.L15:
	call	os_genid@PLT
	mov	QWORD PTR -1080[rbp], rax
	mov	rdx, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	cmp	QWORD PTR -1232[rbp], 0
	je	.L17
	mov	rdx, QWORD PTR -1136[rbp]
	mov	rax, QWORD PTR -1232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L17:
	cmp	DWORD PTR -1172[rbp], 1
	jle	.L18
	mov	esi, DWORD PTR -1172[rbp]
	mov	ecx, DWORD PTR -1176[rbp]
	mov	rdx, QWORD PTR -1224[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	mov	r8d, esi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -1176[rbp], 1
	jne	.L19
	mov	rax, QWORD PTR -1080[rbp]
	mov	QWORD PTR -1072[rbp], rax
	jmp	.L20
.L19:
	mov	rdx, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -1164[rbp], 1
	jmp	.L21
.L23:
	mov	eax, DWORD PTR -1164[rbp]
	cdqe
	mov	rax, QWORD PTR -1072[rbp+rax*8]
	test	rax, rax
	je	.L22
	mov	eax, DWORD PTR -1164[rbp]
	cdqe
	mov	rdx, QWORD PTR -1072[rbp+rax*8]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L22:
	add	DWORD PTR -1164[rbp], 1
.L21:
	cmp	DWORD PTR -1164[rbp], 3
	jle	.L23
	mov	DWORD PTR -1164[rbp], 2
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -1164[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -1164[rbp]
	cdqe
	mov	rdx, QWORD PTR -1072[rbp+rax*8]
	movsx	rax, ecx
	mov	QWORD PTR -1072[rbp+rax*8], rdx
	add	DWORD PTR -1164[rbp], 1
.L24:
	cmp	DWORD PTR -1164[rbp], 3
	jle	.L25
	mov	rax, QWORD PTR -1080[rbp]
	mov	QWORD PTR -1048[rbp], rax
.L20:
	mov	ecx, DWORD PTR -1172[rbp]
	mov	edx, DWORD PTR -1176[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L18:
	cmp	DWORD PTR -1176[rbp], 1
	jne	.L26
	cmp	DWORD PTR -1172[rbp], 1
	jle	.L27
	mov	rdx, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
.L27:
	mov	rdx, QWORD PTR -1224[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 59
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 64
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	QWORD PTR -1104[rbp], 300
	cmp	QWORD PTR -1216[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	jmp	.L29
.L33:
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1120[rbp], rax
	mov	rax, QWORD PTR -1120[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L30
	jmp	.L31
.L32:
	add	QWORD PTR -1120[rbp], 1
.L31:
	mov	rax, QWORD PTR -1120[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L32
.L30:
	mov	rdx, QWORD PTR -1136[rbp]
	mov	rax, QWORD PTR -1120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -1120[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -1104[rbp]
	add	rax, rdx
	mov	QWORD PTR -1104[rbp], rax
.L29:
	mov	rdx, QWORD PTR -1216[rbp]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L33
	mov	rax, QWORD PTR -1136[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L28:
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	cmp	QWORD PTR -1200[rbp], 0
	je	.L26
	mov	rdx, QWORD PTR -1128[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR attachment[rip]
	test	eax, eax
	je	.L34
	lea	rax, .LC17[rip]
	jmp	.L35
.L34:
	lea	rax, .LC18[rip]
.L35:
	mov	rdx, QWORD PTR -1128[rbp]
	mov	rdi, QWORD PTR -1136[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC19[rip]
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR -1112[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdi, rax
	call	free@PLT
	add	QWORD PTR -1104[rbp], 100
.L26:
	cmp	QWORD PTR -1200[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -1104[rbp]
	cmp	rax, QWORD PTR 16[rbp]
	jne	.L37
	sub	QWORD PTR -1104[rbp], 1
.L37:
	mov	eax, DWORD PTR -1176[rbp]
	cmp	eax, DWORD PTR -1172[rbp]
	je	.L38
	mov	rax, QWORD PTR 16[rbp]
	sub	rax, QWORD PTR -1104[rbp]
	jmp	.L39
.L38:
	mov	eax, 0
.L39:
	mov	rsi, QWORD PTR -1136[rbp]
	mov	rcx, QWORD PTR -1200[rbp]
	mov	rdx, rax
	mov	rdi, rcx
	call	to64@PLT
	cdqe
	add	QWORD PTR -1104[rbp], rax
	mov	rax, QWORD PTR -1200[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L40
	mov	rax, QWORD PTR -1136[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L41
.L40:
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
.L36:
	mov	eax, DWORD PTR -1168[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1168[rbp], edx
	test	eax, eax
	jne	.L42
	mov	rcx, QWORD PTR -1128[rbp]
	mov	rdx, QWORD PTR -1144[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR attachment[rip]
	test	eax, eax
	je	.L43
	lea	rax, .LC17[rip]
	jmp	.L44
.L43:
	lea	rax, .LC18[rip]
.L44:
	mov	rdx, QWORD PTR -1128[rbp]
	mov	rdi, QWORD PTR -1136[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC19[rip]
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR -1096[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -1096[rbp]
	mov	rdi, rax
	call	free@PLT
	add	QWORD PTR -1104[rbp], 80
.L42:
	mov	rax, QWORD PTR -1104[rbp]
	cmp	rax, QWORD PTR 16[rbp]
	jne	.L45
	sub	QWORD PTR -1104[rbp], 1
.L45:
	mov	eax, DWORD PTR -1176[rbp]
	cmp	eax, DWORD PTR -1172[rbp]
	je	.L46
	mov	rax, QWORD PTR 16[rbp]
	sub	rax, QWORD PTR -1104[rbp]
	jmp	.L47
.L46:
	mov	eax, 0
.L47:
	mov	rsi, QWORD PTR -1136[rbp]
	mov	rcx, QWORD PTR -1192[rbp]
	mov	rdx, rax
	mov	rdi, rcx
	call	to64@PLT
	cdqe
	add	QWORD PTR -1104[rbp], rax
	mov	eax, DWORD PTR -1176[rbp]
	cmp	eax, DWORD PTR -1172[rbp]
	jne	.L48
	cmp	QWORD PTR -1200[rbp], 0
	je	.L49
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
.L49:
	mov	rax, QWORD PTR -1136[rbp]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
.L48:
	mov	rax, QWORD PTR -1136[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L41:
	add	DWORD PTR -1176[rbp], 1
.L12:
	mov	eax, DWORD PTR -1176[rbp]
	cmp	eax, DWORD PTR -1172[rbp]
	jle	.L50
	mov	eax, 0
.L51:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	encode, .-encode
	.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	"1591.c"
	.text
	.comm	attachment,4,4
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s.%02d\000"
	.align	2
.LC1:
	.ascii	"Message-ID: <%s>\012\000"
	.align	2
.LC2:
	.ascii	"Mime-Version: 1.0\012\000"
	.align	2
.LC3:
	.ascii	"Subject: %s (%02d/%02d)\012\000"
	.align	2
.LC4:
	.ascii	"References: <%s>\012\000"
	.align	2
.LC5:
	.ascii	"\011 <%s>\012\000"
	.align	2
.LC6:
	.ascii	"Content-Type: message/partial; number=%d; total=%d;"
	.ascii	"\012\000"
	.align	2
.LC7:
	.ascii	"\011 id=\"%s\"\012\000"
	.align	2
.LC8:
	.ascii	"MIME-Version: 1.0\012\000"
	.align	2
.LC9:
	.ascii	"Subject: %s\012\000"
	.align	2
.LC10:
	.ascii	"Content-Type: multipart/mixed; boundary=\"-\"\012\000"
	.align	2
.LC11:
	.ascii	"\012This is a MIME encoded message.  Decode it with"
	.ascii	" \"munpack\"\012\000"
	.align	2
.LC12:
	.ascii	"or any other MIME reading software.  Mpack/munpack "
	.ascii	"is available\012\000"
	.align	2
.LC13:
	.ascii	"via anonymous FTP in ftp.andrew.cmu.edu:pub/mpack/\012"
	.ascii	"\000"
	.align	2
.LC14:
	.ascii	"---\012\012\000"
	.align	2
.LC15:
	.ascii	"---\012\000"
	.align	2
.LC16:
	.ascii	"Content-Type: multipart/appledouble; boundary=\"=\""
	.ascii	"; name=\"%s\"\012\000"
	.align	2
.LC17:
	.ascii	"attachment\000"
	.align	2
.LC18:
	.ascii	"inline\000"
	.align	2
.LC19:
	.ascii	"Content-Disposition: %s; filename=\"%s\"\012\000"
	.align	2
.LC20:
	.ascii	"\012\012--=\012\000"
	.align	2
.LC21:
	.ascii	"Content-Type: application/applefile\012\000"
	.align	2
.LC22:
	.ascii	"Content-Transfer-Encoding: base64\012\000"
	.align	2
.LC23:
	.ascii	"Content-MD5: %s\012\012\000"
	.align	2
.LC24:
	.ascii	"\012--=\012\000"
	.align	2
.LC25:
	.ascii	"Content-Type: %s; name=\"%s\"\012\000"
	.align	2
.LC26:
	.ascii	"\012--=--\012\000"
	.align	2
.LC27:
	.ascii	"\012-----\012\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode, %function
encode:
	@ args = 20, pretend = 0, frame = 1136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1136
	sub	sp, sp, #8
	str	r0, [fp, #-1112]
	str	r1, [fp, #-1116]
	str	r2, [fp, #-1120]
	str	r3, [fp, #-1124]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-1128]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-1132]
	ldr	r3, [fp, #16]
	str	r3, [fp, #-1136]
	ldr	r3, [fp, #20]
	str	r3, [fp, #-1140]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1084]
	mov	r3, #1
	str	r3, [fp, #-1072]
	mov	r3, #0
	str	r3, [fp, #-1068]
	ldr	r3, [fp, #-1120]
	str	r3, [fp, #-1092]
	mov	r1, #47
	ldr	r0, [fp, #-1092]
	bl	strrchr
	str	r0, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1092]
.L2:
	mov	r1, #92
	ldr	r0, [fp, #-1092]
	bl	strrchr
	str	r0, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1092]
.L3:
	mov	r1, #58
	ldr	r0, [fp, #-1092]
	bl	strrchr
	str	r0, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1092]
.L4:
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-1136]
	str	r3, [fp, #-1100]
	b	.L6
.L5:
	ldr	r0, [fp, #-1112]
	bl	magic_look
	str	r0, [fp, #-1100]
.L6:
	sub	r3, fp, #1104
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1112]
	bl	md5digest
	str	r0, [fp, #-1060]
	ldr	r3, [fp, #-1116]
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1116]
	bl	md5digest
	str	r0, [fp, #-1084]
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	add	r3, r2, r3
	str	r3, [fp, #-1108]
.L7:
	ldr	r3, [fp, #12]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-1108]
	ldr	r2, .L53+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #4
	asr	r3, r3, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	str	r3, [fp, #-1108]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #1088
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1124]
	bl	md5digest
	mov	r3, r0
	mov	r0, r3
	bl	free
	ldr	r2, [fp, #-1108]
	ldr	r3, [fp, #-1104]
	add	r3, r2, r3
	str	r3, [fp, #-1108]
.L9:
	ldr	r3, [fp, #-1108]
	sub	r3, r3, #1000
	ldr	r1, [fp, #12]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	bgt	.L8
	mov	r3, #1
	str	r3, [fp, #-1072]
.L8:
	bl	os_genid
	str	r0, [fp, #-1056]
	mov	r3, #0
	str	r3, [fp, #-1064]
	b	.L10
.L11:
	ldr	r3, [fp, #-1064]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-1044]
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
.L10:
	ldr	r3, [fp, #-1064]
	cmp	r3, #3
	ble	.L11
	mov	r3, #1
	str	r3, [fp, #-1076]
	b	.L12
.L50:
	mov	r3, #0
	str	r3, [fp, #-1080]
	ldr	r3, [fp, #-1072]
	cmp	r3, #1
	bne	.L13
	ldr	r0, [fp, #-1140]
	bl	os_createnewfile
	str	r0, [fp, #-1096]
	b	.L14
.L13:
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r3, [fp, #-1076]
	ldr	r2, [fp, #-1140]
	ldr	r1, .L53+8
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	os_createnewfile
	str	r0, [fp, #-1096]
.L14:
	ldr	r3, [fp, #-1096]
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	os_perror
	mov	r3, #1
	b	.L51
.L15:
	bl	os_genid
	str	r0, [fp, #-1052]
	ldr	r2, [fp, #-1052]
	ldr	r1, .L53+12
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r3, [fp, #-1096]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L53+16
	bl	fwrite
	ldr	r3, [fp, #-1132]
	cmp	r3, #0
	beq	.L17
	ldr	r1, [fp, #-1096]
	ldr	r0, [fp, #-1132]
	bl	fputs
.L17:
	ldr	r3, [fp, #-1072]
	cmp	r3, #1
	ble	.L18
	ldr	r3, [fp, #-1072]
	str	r3, [sp]
	ldr	r3, [fp, #-1076]
	ldr	r2, [fp, #-1128]
	ldr	r1, .L53+20
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r3, [fp, #-1076]
	cmp	r3, #1
	bne	.L19
	ldr	r3, [fp, #-1052]
	str	r3, [fp, #-1048]
	b	.L20
.L19:
	ldr	r3, [fp, #-1048]
	mov	r2, r3
	ldr	r1, .L53+24
	ldr	r0, [fp, #-1096]
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-1064]
	b	.L21
.L23:
	ldr	r3, [fp, #-1064]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1044]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-1064]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1044]
	mov	r2, r3
	ldr	r1, .L53+28
	ldr	r0, [fp, #-1096]
	bl	fprintf
.L22:
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
.L21:
	ldr	r3, [fp, #-1064]
	cmp	r3, #3
	ble	.L23
	mov	r3, #2
	str	r3, [fp, #-1064]
	b	.L24
.L25:
	ldr	r3, [fp, #-1064]
	sub	r1, r3, #1
	ldr	r3, [fp, #-1064]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1044]
	lsl	r3, r1, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1044]
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
.L24:
	ldr	r3, [fp, #-1064]
	cmp	r3, #3
	ble	.L25
	ldr	r3, [fp, #-1052]
	str	r3, [fp, #-1036]
.L20:
	ldr	r3, [fp, #-1072]
	ldr	r2, [fp, #-1076]
	ldr	r1, .L53+32
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r2, [fp, #-1056]
	ldr	r1, .L53+36
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r1, [fp, #-1096]
	mov	r0, #10
	bl	fputc
.L18:
	ldr	r3, [fp, #-1076]
	cmp	r3, #1
	bne	.L26
	ldr	r3, [fp, #-1072]
	cmp	r3, #1
	ble	.L27
	ldr	r2, [fp, #-1056]
	ldr	r1, .L53+12
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r3, [fp, #-1096]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L53+40
	bl	fwrite
.L27:
	ldr	r2, [fp, #-1128]
	ldr	r1, .L53+44
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r3, [fp, #-1096]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L53+48
	bl	fwrite
	ldr	r3, [fp, #-1096]
	mov	r2, #59
	mov	r1, #1
	ldr	r0, .L53+52
	bl	fwrite
	ldr	r3, [fp, #-1096]
	mov	r2, #64
	mov	r1, #1
	ldr	r0, .L53+56
	bl	fwrite
	ldr	r3, [fp, #-1096]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L53+60
	bl	fwrite
	mov	r3, #300
	str	r3, [fp, #-1080]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-1096]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L53+64
	bl	fwrite
	b	.L29
.L33:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-1088]
	ldr	r3, [fp, #-1088]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L30
	b	.L31
.L32:
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	str	r3, [fp, #-1088]
.L31:
	ldr	r3, [fp, #-1088]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L32
.L30:
	ldr	r1, [fp, #-1096]
	ldr	r0, [fp, #-1088]
	bl	fputs
	ldr	r0, [fp, #-1088]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-1080]
	add	r3, r2, r3
	str	r3, [fp, #-1080]
.L29:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1124]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r1, [fp, #-1096]
	mov	r0, #10
	bl	fputc
.L28:
	ldr	r3, [fp, #-1096]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L53+68
	bl	fwrite
	ldr	r3, [fp, #-1116]
	cmp	r3, #0
	beq	.L26
	ldr	r2, [fp, #-1092]
	ldr	r1, .L53+72
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r3, .L53+76
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	ldr	r2, .L53+80
	b	.L35
.L34:
	ldr	r2, .L53+84
.L35:
	ldr	r3, [fp, #-1092]
	ldr	r1, .L53+88
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r3, [fp, #-1096]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L53+92
	bl	fwrite
	ldr	r3, [fp, #-1096]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L53+96
	bl	fwrite
	ldr	r3, [fp, #-1096]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L53+100
	bl	fwrite
	ldr	r2, [fp, #-1084]
	ldr	r1, .L53+104
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r0, [fp, #-1084]
	bl	free
	ldr	r3, [fp, #-1080]
	add	r3, r3, #100
	str	r3, [fp, #-1080]
.L26:
	ldr	r3, [fp, #-1116]
	cmp	r3, #0
	beq	.L36
	ldr	r0, [fp, #-1116]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r2, [fp, #-1080]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	bne	.L37
	ldr	r3, [fp, #-1080]
	sub	r3, r3, #1
	str	r3, [fp, #-1080]
.L37:
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	cmp	r2, r3
	beq	.L38
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-1080]
	sub	r3, r2, r3
	b	.L39
.L38:
	mov	r3, #0
.L39:
	mov	r2, r3
	ldr	r1, [fp, #-1096]
	ldr	r0, [fp, #-1116]
	bl	to64
	mov	r2, r0
	ldr	r3, [fp, #-1080]
	add	r3, r3, r2
	str	r3, [fp, #-1080]
	ldr	r0, [fp, #-1116]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	ldr	r0, [fp, #-1096]
	bl	fclose
	b	.L41
.L40:
	ldr	r3, [fp, #-1096]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L53+108
	bl	fwrite
.L36:
	ldr	r3, [fp, #-1068]
	add	r2, r3, #1
	str	r2, [fp, #-1068]
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-1092]
	ldr	r2, [fp, #-1100]
	ldr	r1, .L53+112
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r3, [fp, #-1096]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L53+100
	bl	fwrite
	ldr	r3, .L53+76
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L43
	ldr	r2, .L53+80
	b	.L44
.L43:
	ldr	r2, .L53+84
.L44:
	ldr	r3, [fp, #-1092]
	ldr	r1, .L53+88
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r2, [fp, #-1060]
	ldr	r1, .L53+104
	ldr	r0, [fp, #-1096]
	bl	fprintf
	ldr	r0, [fp, #-1060]
	bl	free
	ldr	r3, [fp, #-1080]
	add	r3, r3, #80
	str	r3, [fp, #-1080]
.L42:
	ldr	r2, [fp, #-1080]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	bne	.L45
	ldr	r3, [fp, #-1080]
	sub	r3, r3, #1
	str	r3, [fp, #-1080]
.L45:
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	cmp	r2, r3
	beq	.L46
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #-1080]
	sub	r3, r2, r3
	b	.L47
.L46:
	mov	r3, #0
.L47:
	mov	r2, r3
	ldr	r1, [fp, #-1096]
	ldr	r0, [fp, #-1112]
	bl	to64
	mov	r2, r0
	ldr	r3, [fp, #-1080]
	add	r3, r3, r2
	str	r3, [fp, #-1080]
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	cmp	r2, r3
	bne	.L48
	ldr	r3, [fp, #-1116]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-1096]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L53+116
	bl	fwrite
.L49:
	ldr	r3, [fp, #-1096]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L53+120
	bl	fwrite
.L48:
	ldr	r0, [fp, #-1096]
	bl	fclose
.L41:
	ldr	r3, [fp, #-1076]
	add	r3, r3, #1
	str	r3, [fp, #-1076]
.L12:
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1072]
	cmp	r2, r3
	ble	.L50
	mov	r3, #0
.L51:
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC28
	.word	1272582903
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	attachment
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	encode, .-encode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
