	.file	"349211.c"
	.intel_syntax noprefix
	.text
	.globl	progName
	.bss
	.align 8
	.type	progName, @object
	.size	progName, 8
progName:
	.zero	8
	.section	.rodata
.LC0:
	.string	"USAGE:\t%s <url>\n"
	.align 8
.LC1:
	.string	"\tDownloads a file indicated by the URL.\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR progName[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC2:
	.string	"%s: unsupported URL: %s\n"
.LC3:
	.string	"http://"
.LC4:
	.string	"%s: no server specified\n"
	.align 8
.LC5:
	.string	"%s: no path on server specified\n"
.LC6:
	.string	"%s: server name too long\n"
.LC7:
	.string	"80"
	.align 8
.LC8:
	.string	"%s: failed to resolve '%s': %s\n"
.LC9:
	.string	"Connecting to %s...\n"
.LC10:
	.string	"%s:%hu"
.LC11:
	.string	"[%s]:%hu"
.LC12:
	.string	"Trying %s... "
.LC13:
	.string	"socket: %s\n"
.LC14:
	.string	"connect: %s\n"
.LC15:
	.string	"Good"
.LC16:
	.string	"%s: failed to connect to %s\n"
.LC17:
	.string	"Sending HTTP request... "
	.align 8
.LC18:
	.string	"GET %s HTTP/1.1\r\nHost: %s\r\nUser-Agent: glidix-shutils-wget\r\n\r\n"
	.align 8
.LC19:
	.string	"Failed to send the whole request"
.LC20:
	.string	"Done"
.LC21:
	.string	"index.html"
	.align 8
.LC22:
	.string	"%s: cannot open output file: %s\n"
.LC23:
	.string	"Awaiting response..."
.LC24:
	.string	"EOF before end of headers"
.LC25:
	.string	"\r\n\r\n"
.LC26:
	.string	"\r\n"
.LC27:
	.string	"Content-Length: "
.LC28:
	.string	"%ld"
.LC29:
	.string	"%s: invalid Content-Length!\n"
.LC30:
	.string	"Transfer-Encoding: chunked"
.LC31:
	.string	"Downloading..."
.LC32:
	.string	"\rDownloaded %016ld bytes"
	.align 8
.LC33:
	.string	"\nerror: premature end of stream\n"
	.align 8
.LC34:
	.string	"\nerror: invalid character in chunk header\n"
	.align 8
.LC35:
	.string	"\nerror: invalid termination of chunk header\n"
.LC36:
	.string	""
.LC37:
	.string	"\rDownload complete.%-16s\n"
	.align 8
.LC38:
	.string	"\nerror: failed to read chunk data\n"
	.align 8
.LC39:
	.string	"\nerror: invalid chunk terminator\n"
.LC40:
	.string	"\rDownloaded: %20ld bytes"
.LC41:
	.string	"\r["
.LC42:
	.string	"] %3ld%%"
	.align 8
.LC43:
	.string	"\r[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX] ERR%%\n"
.LC44:
	.string	"read: %s\n"
	.align 8
.LC45:
	.string	"\n%s: connection terminated before full file received\n"
	.align 8
.LC46:
	.string	"\r[======================================================================] 100%%\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 664
	.cfi_offset 3, -24
	mov	DWORD PTR -4756[rbp], edi
	mov	QWORD PTR -4768[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4768[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR progName[rip], rax
	cmp	DWORD PTR -4756[rbp], 2
	je	.L3
	mov	eax, 0
	call	usage
	mov	eax, 1
	jmp	.L71
.L3:
	mov	rax, QWORD PTR -4768[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -4640[rbp], rax
	mov	rax, QWORD PTR -4640[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 6
	ja	.L5
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -4640[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L71
.L5:
	mov	rax, QWORD PTR -4640[rbp]
	mov	edx, 7
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -4640[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L71
.L6:
	mov	rax, QWORD PTR -4640[rbp]
	add	rax, 7
	mov	QWORD PTR -4632[rbp], rax
	mov	rax, QWORD PTR -4632[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L71
.L7:
	mov	rax, QWORD PTR -4632[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -4624[rbp], rax
	cmp	QWORD PTR -4624[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L71
.L8:
	mov	rax, QWORD PTR -4624[rbp]
	sub	rax, QWORD PTR -4632[rbp]
	cmp	rax, 255
	jle	.L9
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L71
.L9:
	lea	rax, -4384[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -4624[rbp]
	sub	rax, QWORD PTR -4632[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -4632[rbp]
	lea	rax, -4384[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rax, .LC7[rip]
	mov	QWORD PTR -4616[rbp], rax
	lea	rax, -4480[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -4476[rbp], 0
	mov	DWORD PTR -4472[rbp], 1
	mov	DWORD PTR -4468[rbp], 6
	mov	DWORD PTR -4480[rbp], 0
	lea	rcx, -4728[rbp]
	lea	rdx, -4480[rbp]
	mov	rsi, QWORD PTR -4616[rbp]
	lea	rax, -4384[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -4736[rbp], eax
	cmp	DWORD PTR -4736[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -4736[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -4384[rbp]
	mov	r8, rsi
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L71
.L10:
	lea	rax, -4384[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4728[rbp]
	mov	QWORD PTR -4712[rbp], rax
	jmp	.L11
.L19:
	mov	rax, QWORD PTR -4712[rbp]
	mov	rax, QWORD PTR 24[rax]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 2
	jne	.L12
	mov	rax, QWORD PTR -4712[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -4600[rbp], rax
	mov	rax, QWORD PTR -4600[rbp]
	lea	rsi, 4[rax]
	lea	rax, -4432[rbp]
	mov	ecx, 16
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	mov	rax, QWORD PTR -4600[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ecx, ax
	lea	rdx, -4432[rbp]
	lea	rax, -4128[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -4712[rbp]
	mov	rax, QWORD PTR 24[rax]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 10
	jne	.L74
	mov	rax, QWORD PTR -4712[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -4608[rbp], rax
	mov	rax, QWORD PTR -4608[rbp]
	lea	rsi, 8[rax]
	lea	rax, -4432[rbp]
	mov	ecx, 46
	mov	rdx, rax
	mov	edi, 10
	call	inet_ntop@PLT
	mov	rax, QWORD PTR -4608[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ecx, ax
	lea	rdx, -4432[rbp]
	lea	rax, -4128[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L13:
	lea	rax, -4128[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -4712[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -4712[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -4712[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -4748[rbp], eax
	cmp	DWORD PTR -4748[rbp], -1
	jne	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -4712[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -4712[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -4748[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4748[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L15
.L17:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L18
.L74:
	nop
.L15:
	mov	rax, QWORD PTR -4712[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -4712[rbp], rax
.L11:
	cmp	QWORD PTR -4712[rbp], 0
	jne	.L19
.L18:
	cmp	QWORD PTR -4712[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -4384[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L71
.L20:
	mov	rax, QWORD PTR -4728[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC18[rip]
	mov	QWORD PTR -4592[rbp], rax
	mov	rax, QWORD PTR -4592[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -4624[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rbx, rax
	lea	rax, -4384[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 1
	mov	QWORD PTR -4584[rbp], rax
	mov	rax, QWORD PTR -4584[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -4576[rbp], rax
	lea	rcx, -4384[rbp]
	mov	rdx, QWORD PTR -4624[rbp]
	mov	rsi, QWORD PTR -4592[rbp]
	mov	rax, QWORD PTR -4576[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -4576[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -4576[rbp]
	mov	eax, DWORD PTR -4748[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -4568[rbp], rax
	cmp	QWORD PTR -4568[rbp], -1
	jne	.L21
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdi, rax
	call	puts@PLT
	mov	eax, DWORD PTR -4748[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L71
.L21:
	mov	rax, QWORD PTR -4576[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -4568[rbp]
	cmp	rax, rdx
	jbe	.L22
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4748[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L71
.L22:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -4624[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 1
	jne	.L23
	mov	edx, 420
	mov	esi, 706
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4744[rbp], eax
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -4624[rbp]
	add	rax, 1
	mov	QWORD PTR -4704[rbp], rax
	mov	rax, QWORD PTR -4704[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -4560[rbp], rax
	cmp	QWORD PTR -4560[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -4560[rbp]
	add	rax, 1
	mov	QWORD PTR -4704[rbp], rax
.L25:
	mov	rax, QWORD PTR -4704[rbp]
	mov	edx, 420
	mov	esi, 706
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4744[rbp], eax
.L24:
	cmp	DWORD PTR -4744[rbp], -1
	jne	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -4748[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L71
.L26:
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -4696[rbp], rax
	mov	rax, QWORD PTR -4696[rbp]
	mov	BYTE PTR [rax], 0
	mov	QWORD PTR -4688[rbp], 0
	jmp	.L27
.L31:
	lea	rcx, -4128[rbp]
	mov	eax, DWORD PTR -4748[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -4496[rbp], rax
	cmp	QWORD PTR -4496[rbp], -1
	jne	.L28
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdi, rax
	call	puts@PLT
	mov	eax, DWORD PTR -4748[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L71
.L28:
	cmp	QWORD PTR -4496[rbp], 0
	jne	.L30
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4748[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L71
.L30:
	mov	rax, QWORD PTR -4688[rbp]
	mov	QWORD PTR -4488[rbp], rax
	mov	rax, QWORD PTR -4496[rbp]
	add	QWORD PTR -4688[rbp], rax
	mov	rax, QWORD PTR -4688[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -4696[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -4696[rbp], rax
	mov	rdx, QWORD PTR -4496[rbp]
	mov	rcx, QWORD PTR -4696[rbp]
	mov	rax, QWORD PTR -4488[rbp]
	add	rcx, rax
	lea	rax, -4128[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rdx, QWORD PTR -4696[rbp]
	mov	rax, QWORD PTR -4688[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L27:
	mov	rax, QWORD PTR -4696[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L31
	mov	rax, QWORD PTR -4696[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -4552[rbp], rax
	mov	rax, QWORD PTR -4552[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -4696[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -4544[rbp], rax
	mov	rax, QWORD PTR -4544[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	QWORD PTR -4720[rbp], -1
	mov	DWORD PTR -4740[rbp], 0
	jmp	.L32
.L34:
	mov	rax, QWORD PTR -4536[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 16
	jbe	.L33
	mov	rax, QWORD PTR -4536[rbp]
	mov	edx, 16
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L33
	mov	rax, QWORD PTR -4536[rbp]
	lea	rcx, 16[rax]
	lea	rax, -4720[rbp]
	mov	rdx, rax
	lea	rsi, .LC28[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L33
	mov	rax, QWORD PTR -4768[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -4744[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4748[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L71
.L33:
	mov	rax, QWORD PTR -4536[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
	mov	DWORD PTR -4740[rbp], 1
.L32:
	lea	rsi, .LC26[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -4536[rbp], rax
	cmp	QWORD PTR -4536[rbp], 0
	jne	.L34
	lea	rdi, .LC31[rip]
	call	puts@PLT
	cmp	DWORD PTR -4740[rbp], 0
	je	.L35
	mov	QWORD PTR -4512[rbp], 0
.L58:
	mov	rax, QWORD PTR -4512[rbp]
	mov	rsi, rax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	QWORD PTR -4680[rbp], 0
.L45:
	lea	rcx, -4749[rbp]
	mov	eax, DWORD PTR -4748[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 1
	je	.L36
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L71
.L36:
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 47
	jle	.L38
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 57
	jg	.L38
	mov	rax, QWORD PTR -4680[rbp]
	sal	rax, 4
	mov	rdx, rax
	movzx	eax, BYTE PTR -4749[rbp]
	movsx	eax, al
	sub	eax, 48
	cdqe
	or	rax, rdx
	mov	QWORD PTR -4680[rbp], rax
	jmp	.L39
.L38:
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 96
	jle	.L40
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 102
	jg	.L40
	mov	rax, QWORD PTR -4680[rbp]
	sal	rax, 4
	mov	rdx, rax
	movzx	eax, BYTE PTR -4749[rbp]
	movsx	eax, al
	sub	eax, 87
	cdqe
	or	rax, rdx
	mov	QWORD PTR -4680[rbp], rax
	jmp	.L39
.L40:
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 64
	jle	.L41
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 70
	jg	.L41
	mov	rax, QWORD PTR -4680[rbp]
	sal	rax, 4
	mov	rdx, rax
	movzx	eax, BYTE PTR -4749[rbp]
	movsx	eax, al
	sub	eax, 55
	cdqe
	or	rax, rdx
	mov	QWORD PTR -4680[rbp], rax
	jmp	.L39
.L41:
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 13
	jne	.L42
	lea	rcx, -4749[rbp]
	mov	eax, DWORD PTR -4748[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 1
	jne	.L43
	jmp	.L73
.L42:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L71
.L39:
	jmp	.L45
.L43:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L71
.L73:
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 10
	je	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC35[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L71
.L47:
	cmp	QWORD PTR -4680[rbp], 0
	jne	.L50
	lea	rsi, .LC36[rip]
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L49
.L53:
	mov	rax, QWORD PTR -4680[rbp]
	mov	QWORD PTR -4672[rbp], rax
	cmp	QWORD PTR -4672[rbp], 1024
	jbe	.L51
	mov	QWORD PTR -4672[rbp], 1024
.L51:
	mov	rdx, QWORD PTR -4672[rbp]
	lea	rcx, -4128[rbp]
	mov	eax, DWORD PTR -4748[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -4504[rbp], rax
	cmp	QWORD PTR -4504[rbp], 1
	jg	.L52
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC38[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L71
.L52:
	mov	rdx, QWORD PTR -4504[rbp]
	lea	rcx, -4128[rbp]
	mov	eax, DWORD PTR -4744[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rax, QWORD PTR -4504[rbp]
	sub	QWORD PTR -4680[rbp], rax
.L50:
	cmp	QWORD PTR -4680[rbp], 0
	jne	.L53
	lea	rcx, -4749[rbp]
	mov	eax, DWORD PTR -4748[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 1
	je	.L54
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L71
.L54:
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 13
	je	.L55
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L71
.L55:
	lea	rcx, -4749[rbp]
	mov	eax, DWORD PTR -4748[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 1
	je	.L56
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC33[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L71
.L56:
	movzx	eax, BYTE PTR -4749[rbp]
	cmp	al, 10
	je	.L58
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC39[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L71
.L35:
	mov	QWORD PTR -4664[rbp], 0
	jmp	.L59
.L69:
	mov	rax, QWORD PTR -4720[rbp]
	cmp	rax, -1
	jne	.L60
	mov	rax, QWORD PTR -4664[rbp]
	mov	rsi, rax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L61
.L60:
	mov	rdx, QWORD PTR -4664[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rbx, QWORD PTR -4720[rbp]
	cqo
	idiv	rbx
	mov	QWORD PTR -4528[rbp], rax
	mov	rax, QWORD PTR -4664[rbp]
	imul	rax, rax, 70
	mov	rbx, QWORD PTR -4720[rbp]
	cqo
	idiv	rbx
	mov	QWORD PTR -4656[rbp], rax
	mov	eax, 70
	sub	rax, QWORD PTR -4656[rbp]
	mov	QWORD PTR -4648[rbp], rax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L62
.L63:
	mov	edi, 61
	call	putchar@PLT
.L62:
	mov	rax, QWORD PTR -4656[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -4656[rbp], rdx
	test	rax, rax
	jne	.L63
	jmp	.L64
.L65:
	mov	edi, 32
	call	putchar@PLT
.L64:
	mov	rax, QWORD PTR -4648[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -4648[rbp], rdx
	test	rax, rax
	jne	.L65
	mov	rax, QWORD PTR -4528[rbp]
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
.L61:
	lea	rcx, -4128[rbp]
	mov	eax, DWORD PTR -4748[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -4520[rbp], rax
	cmp	QWORD PTR -4520[rbp], -1
	jne	.L66
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4732[rbp], eax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4732[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4744[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4748[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L71
.L66:
	cmp	QWORD PTR -4520[rbp], 0
	je	.L75
	mov	rdx, QWORD PTR -4520[rbp]
	lea	rcx, -4128[rbp]
	mov	eax, DWORD PTR -4744[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rax, QWORD PTR -4520[rbp]
	add	QWORD PTR -4664[rbp], rax
.L59:
	mov	rax, QWORD PTR -4720[rbp]
	cmp	QWORD PTR -4664[rbp], rax
	jl	.L69
	mov	rax, QWORD PTR -4720[rbp]
	cmp	rax, -1
	je	.L69
	jmp	.L68
.L75:
	nop
.L68:
	mov	rax, QWORD PTR -4720[rbp]
	cmp	rax, -1
	je	.L70
	mov	rax, QWORD PTR -4720[rbp]
	cmp	QWORD PTR -4664[rbp], rax
	jge	.L70
	mov	rax, QWORD PTR -4768[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L71
.L70:
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
.L49:
	mov	eax, DWORD PTR -4744[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4748[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L71:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L72
	call	__stack_chk_fail@PLT
.L72:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-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	"349211.c"
	.text
	.comm	progName,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"USAGE:\011%s <url>\012\000"
	.align	2
.LC1:
	.ascii	"\011Downloads a file indicated by the URL.\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r2, .L2+4
	ldr	r2, [r2]
	ldr	r1, .L2+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L2+12
	bl	fwrite
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	stderr
	.word	progName
	.word	.LC0
	.word	.LC1
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s: unsupported URL: %s\012\000"
	.align	2
.LC3:
	.ascii	"http://\000"
	.align	2
.LC4:
	.ascii	"%s: no server specified\012\000"
	.align	2
.LC5:
	.ascii	"%s: no path on server specified\012\000"
	.align	2
.LC6:
	.ascii	"%s: server name too long\012\000"
	.align	2
.LC7:
	.ascii	"80\000"
	.align	2
.LC8:
	.ascii	"%s: failed to resolve '%s': %s\012\000"
	.align	2
.LC9:
	.ascii	"Connecting to %s...\012\000"
	.align	2
.LC10:
	.ascii	"%s:%hu\000"
	.align	2
.LC11:
	.ascii	"[%s]:%hu\000"
	.align	2
.LC12:
	.ascii	"Trying %s... \000"
	.align	2
.LC13:
	.ascii	"socket: %s\012\000"
	.align	2
.LC14:
	.ascii	"connect: %s\012\000"
	.align	2
.LC15:
	.ascii	"Good\000"
	.align	2
.LC16:
	.ascii	"%s: failed to connect to %s\012\000"
	.align	2
.LC17:
	.ascii	"Sending HTTP request... \000"
	.align	2
.LC18:
	.ascii	"GET %s HTTP/1.1\015\012Host: %s\015\012User-Agent: "
	.ascii	"glidix-shutils-wget\015\012\015\012\000"
	.align	2
.LC19:
	.ascii	"Failed to send the whole request\000"
	.align	2
.LC20:
	.ascii	"Done\000"
	.align	2
.LC21:
	.ascii	"index.html\000"
	.align	2
.LC22:
	.ascii	"%s: cannot open output file: %s\012\000"
	.align	2
.LC23:
	.ascii	"Awaiting response...\000"
	.align	2
.LC24:
	.ascii	"EOF before end of headers\000"
	.align	2
.LC25:
	.ascii	"\015\012\015\012\000"
	.align	2
.LC26:
	.ascii	"\015\012\000"
	.align	2
.LC27:
	.ascii	"Content-Length: \000"
	.align	2
.LC28:
	.ascii	"%ld\000"
	.align	2
.LC29:
	.ascii	"%s: invalid Content-Length!\012\000"
	.align	2
.LC30:
	.ascii	"Transfer-Encoding: chunked\000"
	.align	2
.LC31:
	.ascii	"Downloading...\000"
	.align	2
.LC32:
	.ascii	"\015Downloaded %016ld bytes\000"
	.align	2
.LC33:
	.ascii	"\012error: premature end of stream\012\000"
	.align	2
.LC34:
	.ascii	"\012error: invalid character in chunk header\012\000"
	.align	2
.LC35:
	.ascii	"\012error: invalid termination of chunk header\012\000"
	.align	2
.LC36:
	.ascii	"\000"
	.align	2
.LC37:
	.ascii	"\015Download complete.%-16s\012\000"
	.align	2
.LC38:
	.ascii	"\012error: failed to read chunk data\012\000"
	.align	2
.LC39:
	.ascii	"\012error: invalid chunk terminator\012\000"
	.align	2
.LC40:
	.ascii	"\015Downloaded: %20ld bytes\000"
	.global	__aeabi_idiv
	.align	2
.LC41:
	.ascii	"\015[\000"
	.align	2
.LC42:
	.ascii	"] %3ld%%\000"
	.align	2
.LC43:
	.ascii	"\015[XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
	.ascii	"XXXXXXXXXXXXXXXXXXXXXXXX] ERR%%\012\000"
	.align	2
.LC44:
	.ascii	"read: %s\012\000"
	.align	2
.LC45:
	.ascii	"\012%s: connection terminated before full file rece"
	.ascii	"ived\012\000"
	.align	2
.LC46:
	.ascii	"\015[=============================================="
	.ascii	"========================] 100%%\012\000"
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4592
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #4544
	sub	sp, sp, #56
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-492]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-496]
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r3, [r3]
	ldr	r2, .L78+4
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-492]
	cmp	r3, #2
	beq	.L5
	bl	usage
	mov	r3, #1
	b	.L73
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r3, [r3, #4]
	str	r3, [r2, #-428]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-428]
	bl	strlen
	mov	r3, r0
	cmp	r3, #6
	bhi	.L7
	ldr	r3, .L78+164
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-428]
	ldr	r1, .L78+8
	bl	fprintf
	mov	r3, #1
	b	.L73
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #7
	ldr	r1, .L78+12
	ldr	r0, [r3, #-428]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L78+164
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-428]
	ldr	r1, .L78+8
	bl	fprintf
	mov	r3, #1
	b	.L73
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-428]
	add	r3, r3, #7
	str	r3, [r2, #-424]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-424]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L78+164
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L78+16
	bl	fprintf
	mov	r3, #1
	b	.L73
.L9:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #47
	ldr	r0, [r3, #-424]
	bl	strchr
	str	r0, [r4, #-420]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-420]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L78+164
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L78+20
	bl	fprintf
	mov	r3, #1
	b	.L73
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-420]
	ldr	r3, [r3, #-424]
	sub	r3, r2, r3
	cmp	r3, #255
	ble	.L11
	ldr	r3, .L78+164
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L78+24
	bl	fprintf
	mov	r3, #1
	b	.L73
.L11:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-420]
	ldr	r3, [r3, #-424]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r1, #-424]
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L78+28
	str	r3, [r2, #-416]
	sub	r3, fp, #4416
	sub	r3, r3, #12
	sub	r3, r3, #20
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-336]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-332]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #6
	str	r3, [r2, #-328]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-340]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4544
	sub	r3, r3, #12
	sub	r3, r3, #36
	sub	r2, fp, #4416
	sub	r2, r2, #12
	sub	r2, r2, #20
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r0, fp, #4352
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r1, [r1, #-416]
	bl	getaddrinfo
	str	r0, [r4, #-412]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-412]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L78+164
	ldr	r4, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r5, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-412]
	bl	gai_strerror
	mov	r2, r0
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r2, [sp]
	mov	r2, r5
	ldr	r1, .L78+32
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L73
.L12:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L78+36
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-484]
	str	r3, [r2, #-472]
	b	.L13
.L21:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r3, [r3, #20]
	ldrh	r3, [r3]
	cmp	r3, #2
	bne	.L14
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r3, [r3, #20]
	str	r3, [r2, #-404]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-404]
	add	r1, r3, #4
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #52
	mov	r3, #16
	mov	r0, #2
	bl	inet_ntop
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-404]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #52
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r1, .L78+40
	bl	sprintf
	b	.L15
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r3, [r3, #20]
	ldrh	r3, [r3]
	cmp	r3, #10
	bne	.L76
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r3, [r3, #20]
	str	r3, [r2, #-408]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-408]
	add	r1, r3, #8
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #52
	mov	r3, #46
	mov	r0, #10
	bl	inet_ntop
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-408]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	sub	r2, fp, #4352
	sub	r2, r2, #12
	sub	r2, r2, #52
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r1, .L78+44
	bl	sprintf
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L78+48
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r0, [r3, #4]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r1, [r3, #8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r3, [r3, #12]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, r3
	bl	socket
	str	r0, [r4, #-476]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-476]
	cmn	r3, #1
	bne	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L78+52
	bl	printf
	b	.L17
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r1, [r3, #20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r3, [r3, #16]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r0, [r0, #-476]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L78+56
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-476]
	bl	close
	b	.L17
.L19:
	ldr	r0, .L78+60
	bl	puts
	b	.L20
.L76:
	nop
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	ldr	r3, [r3, #28]
	str	r3, [r2, #-472]
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	cmp	r3, #0
	bne	.L21
.L20:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-472]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L78+164
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r2, [r3]
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L78+64
	bl	fprintf
	mov	r3, #1
	b	.L73
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-484]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r0, .L78+68
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L78+72
	str	r3, [r2, #-400]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-400]
	bl	strlen
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-420]
	bl	strlen
	mov	r3, r0
	add	r4, r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [r2, #-396]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-396]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-392]
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	ldr	r2, [r2, #-420]
	ldr	r1, [r1, #-400]
	ldr	r0, [r0, #-392]
	bl	sprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-392]
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-392]
	ldr	r0, [r0, #-476]
	bl	write
	str	r0, [r4, #-388]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-388]
	cmn	r3, #1
	bne	.L23
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r0, r3
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-476]
	bl	close
	mov	r3, #1
	b	.L73
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-392]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-388]
	cmp	r2, r3
	bls	.L24
	ldr	r0, .L78+76
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-476]
	bl	close
	mov	r3, #1
	b	.L73
.L24:
	ldr	r0, .L78+80
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-420]
	bl	strlen
	mov	r3, r0
	cmp	r3, #1
	bne	.L25
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #420
	ldr	r1, .L78+84
	ldr	r0, .L78+88
	bl	open
	str	r0, [r4, #-468]
	b	.L26
.L25:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-420]
	add	r3, r3, #1
	str	r3, [r2, #-464]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, #47
	ldr	r0, [r3, #-464]
	bl	strrchr
	str	r0, [r4, #-384]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-384]
	cmp	r3, #0
	beq	.L27
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-384]
	add	r3, r3, #1
	str	r3, [r2, #-464]
.L27:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #420
	ldr	r1, .L78+84
	ldr	r0, [r3, #-464]
	bl	open
	str	r0, [r4, #-468]
.L26:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-468]
	cmn	r3, #1
	bne	.L28
	ldr	r3, .L78+164
	ldr	r4, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L78+92
	mov	r0, r4
	bl	fprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-476]
	bl	close
	mov	r3, #1
	b	.L73
.L28:
	ldr	r0, .L78+96
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-460]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-460]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-456]
	b	.L29
.L33:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-476]
	bl	read
	str	r0, [r4, #-348]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	cmn	r3, #1
	bne	.L30
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r0, r3
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-476]
	bl	close
	mov	r3, #1
	b	.L73
.L30:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L78+100
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-476]
	bl	close
	mov	r3, #1
	b	.L73
.L32:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-456]
	str	r3, [r2, #-344]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-456]
	add	r3, r2, r3
	str	r3, [r1, #-456]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-456]
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-460]
	bl	realloc
	str	r0, [r4, #-460]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-460]
	ldr	r3, [r3, #-344]
	add	r0, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-348]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-460]
	ldr	r3, [r3, #-456]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L29:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L78+104
	ldr	r0, [r3, #-460]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L78+104
	ldr	r0, [r3, #-460]
	bl	strstr
	str	r0, [r4, #-380]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-380]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L78+108
	ldr	r0, [r3, #-460]
	bl	strtok
	str	r0, [r4, #-376]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-376]
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-480]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-452]
	b	.L34
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-372]
	bl	strlen
	mov	r3, r0
	cmp	r3, #16
	bls	.L35
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #16
	ldr	r1, .L78+112
	ldr	r0, [r3, #-372]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-372]
	add	r0, r3, #16
	sub	r3, fp, #4544
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r2, r3
	ldr	r1, .L78+116
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L35
	ldr	r3, .L78+164
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L78+120
	bl	fprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-468]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-476]
	bl	close
	mov	r3, #1
	b	.L73
.L35:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L78+124
	ldr	r0, [r3, #-372]
	bl	strcmp
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-452]
	str	r3, [r1, #-452]
	cmp	r2, #0
	bne	.L34
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-452]
.L34:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L78+108
	mov	r0, #0
	bl	strtok
	str	r0, [r4, #-372]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-372]
	cmp	r3, #0
	bne	.L36
	ldr	r0, .L78+128
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-452]
	cmp	r3, #0
	beq	.L37
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-356]
.L60:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-356]
	ldr	r0, .L78+132
	bl	printf
	ldr	r3, .L78+136
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-448]
.L47:
	sub	r3, fp, #4544
	sub	r3, r3, #12
	sub	r3, r3, #37
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-476]
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L38
	ldr	r3, .L78+164
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L78+160
	bl	fwrite
	mov	r3, #1
	b	.L73
.L38:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-448]
	lsl	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldrb	r2, [r2, #-485]	@ zero_extendqisi2
	sub	r2, r2, #48
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	orr	r3, r3, r1
	str	r3, [r2, #-448]
	b	.L41
.L40:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L42
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #102
	bhi	.L42
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-448]
	lsl	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldrb	r2, [r2, #-485]	@ zero_extendqisi2
	sub	r2, r2, #87
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	orr	r3, r3, r1
	str	r3, [r2, #-448]
	b	.L41
.L42:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L43
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #70
	bhi	.L43
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-448]
	lsl	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldrb	r2, [r2, #-485]	@ zero_extendqisi2
	sub	r2, r2, #55
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	orr	r3, r3, r1
	str	r3, [r2, #-448]
	b	.L41
.L79:
	.align	2
.L78:
	.word	.LC47
	.word	progName
	.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	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	706
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	stdout
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC33
	.word	stderr
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
.L43:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L44
	sub	r3, fp, #4544
	sub	r3, r3, #12
	sub	r3, r3, #37
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-476]
	bl	read
	mov	r3, r0
	cmp	r3, #1
	bne	.L45
	b	.L75
.L44:
	ldr	r3, .L78+164
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L78+140
	bl	fwrite
	mov	r3, #1
	b	.L73
.L41:
	b	.L47
.L45:
	ldr	r3, .L78+164
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L78+160
	bl	fwrite
	mov	r3, #1
	b	.L73
.L75:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L49
	ldr	r3, .L78+164
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L78+144
	bl	fwrite
	mov	r3, #1
	b	.L73
.L49:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-448]
	cmp	r3, #0
	bne	.L52
	ldr	r1, .L78+148
	ldr	r0, .L78+152
	bl	printf
	b	.L51
.L55:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-448]
	str	r3, [r2, #-444]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-444]
	cmp	r3, #1024
	bls	.L53
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1024
	str	r3, [r2, #-444]
.L53:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-444]
	mov	r1, r3
	ldr	r0, [r0, #-476]
	bl	read
	str	r0, [r4, #-352]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-352]
	cmp	r3, #1
	bgt	.L54
	ldr	r3, .L78+164
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L78+156
	bl	fwrite
	mov	r3, #1
	b	.L73
.L54:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-352]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-468]
	bl	write
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-352]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-448]
	sub	r3, r2, r3
	str	r3, [r1, #-448]
.L52:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-448]
	cmp	r3, #0
	bne	.L55
	sub	r3, fp, #4544
	sub	r3, r3, #12
	sub	r3, r3, #37
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-476]
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L56
	ldr	r3, .L78+164
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L78+160
	bl	fwrite
	mov	r3, #1
	b	.L73
.L56:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L57
	ldr	r3, .L78+164
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L78+168
	bl	fwrite
	mov	r3, #1
	b	.L73
.L57:
	sub	r3, fp, #4544
	sub	r3, r3, #12
	sub	r3, r3, #37
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-476]
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L58
	ldr	r3, .L78+164
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L78+160
	bl	fwrite
	mov	r3, #1
	b	.L73
.L58:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-485]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L60
	ldr	r3, .L78+164
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L78+168
	bl	fwrite
	mov	r3, #1
	b	.L73
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-440]
	b	.L61
.L71:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-480]
	cmn	r3, #1
	bne	.L62
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-440]
	ldr	r0, .L78+172
	bl	printf
	b	.L63
.L62:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-440]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-480]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [r4, #-368]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-440]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #1
	mov	r2, r3
	mov	r0, r2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-480]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [r4, #-436]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-436]
	rsb	r3, r3, #70
	str	r3, [r2, #-432]
	ldr	r0, .L78+176
	bl	printf
	b	.L64
.L65:
	mov	r0, #61
	bl	putchar
.L64:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-436]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, r3, #1
	str	r2, [r1, #-436]
	cmp	r3, #0
	bne	.L65
	b	.L66
.L67:
	mov	r0, #32
	bl	putchar
.L66:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-432]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, r3, #1
	str	r2, [r1, #-432]
	cmp	r3, #0
	bne	.L67
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-368]
	ldr	r0, .L78+180
	bl	printf
.L63:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-476]
	bl	read
	str	r0, [r4, #-364]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-364]
	cmn	r3, #1
	bne	.L68
	bl	__errno_location
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-360]
	ldr	r0, .L78+184
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-360]
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L78+188
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-468]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-476]
	bl	close
	mov	r3, #1
	b	.L73
.L68:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-364]
	cmp	r3, #0
	beq	.L77
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-364]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-468]
	bl	write
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-440]
	ldr	r3, [r3, #-364]
	add	r3, r2, r3
	str	r3, [r1, #-440]
.L61:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-480]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-440]
	cmp	r2, r3
	blt	.L71
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-480]
	cmn	r3, #1
	beq	.L71
	b	.L70
.L77:
	nop
.L70:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-480]
	cmn	r3, #1
	beq	.L72
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-480]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-440]
	cmp	r2, r3
	bge	.L72
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-496]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L78+192
	bl	printf
	mov	r3, #1
	b	.L73
.L72:
	ldr	r0, .L78+196
	bl	printf
.L51:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-468]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-476]
	bl	close
	mov	r3, #0
.L73:
	ldr	r2, .L78+200
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
