	.file	"49461.c"
	.intel_syntax noprefix
	.text
	.globl	version
	.section	.rodata
.LC0:
	.string	"0.4"
	.section	.data.rel.local,"aw"
	.align 8
	.type	version, @object
	.size	version, 8
version:
	.quad	.LC0
	.globl	heapPtr
	.bss
	.align 8
	.type	heapPtr, @object
	.size	heapPtr, 8
heapPtr:
	.zero	8
	.globl	mb
	.section	.rodata
.LC1:
	.string	"mb"
	.section	.data.rel.local
	.align 8
	.type	mb, @object
	.size	mb, 8
mb:
	.quad	.LC1
	.globl	gb
	.section	.rodata
.LC2:
	.string	"gb"
	.section	.data.rel.local
	.align 8
	.type	gb, @object
	.size	gb, 8
gb:
	.quad	.LC2
	.section	.rodata
	.align 2
	.type	defaultSpeed, @object
	.size	defaultSpeed, 2
defaultSpeed:
	.value	1024
.LC3:
	.string	"Downloading a"
	.section	.data.rel.local
	.align 8
	.type	progMsg_p1, @object
	.size	progMsg_p1, 8
progMsg_p1:
	.quad	.LC3
	.section	.rodata
.LC4:
	.string	"will take"
	.section	.data.rel.local
	.align 8
	.type	progMsg_p2, @object
	.size	progMsg_p2, 8
progMsg_p2:
	.quad	.LC4
	.section	.rodata
	.align 8
.LC5:
	.string	"No parameters specified. Quitting"
	.section	.data.rel.local
	.align 8
	.type	progErrMsg1, @object
	.size	progErrMsg1, 8
progErrMsg1:
	.quad	.LC5
	.section	.rodata
.LC6:
	.string	"Unrecognized parameter <unit>"
	.section	.data.rel.local
	.align 8
	.type	progErrMsg2, @object
	.size	progErrMsg2, 8
progErrMsg2:
	.quad	.LC6
	.section	.rodata
.LC7:
	.string	"downloadtime 1 1024 gb"
	.section	.data.rel.local
	.align 8
	.type	usageExample, @object
	.size	usageExample, 8
usageExample:
	.quad	.LC7
	.text
	.globl	inputValid
	.type	inputValid, @function
inputValid:
.LFB6:
	.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 -8[rbp], rdi
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	inputValid, .-inputValid
	.section	.rodata
	.align 8
.LC8:
	.string	"Usage: downloadtime <size(GiB)> <speed(kB)> <unit(mB/gB)>"
	.align 8
.LC9:
	.string	"Example: \nIn order to calculate the amount of time it would approximately \ntake to download a 1GiB file at the speed of 1024 kilobytes per second\ntype %s\n        "
	.text
	.globl	displayHelp
	.type	displayHelp, @function
displayHelp:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR usageExample[rip]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	displayHelp, .-displayHelp
	.section	.rodata
.LC10:
	.string	"Wed Dec 18 21:52:07 2024"
.LC11:
	.string	"Last compiled on %s (UTC+3)"
	.text
	.globl	displayInfo
	.type	displayInfo, @function
displayInfo:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	displayInfo, .-displayInfo
	.globl	unitConversion
	.type	unitConversion, @function
unitConversion:
.LFB9:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, WORD PTR [rax]
	test	ax, ax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC12[rip]
	mulsd	xmm0, xmm1
	mov	rax, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rax], xmm0
	jmp	.L8
.L6:
	mov	rax, QWORD PTR -8[rbp]
	movsd	xmm1, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC13[rip]
	mulsd	xmm0, xmm1
	mov	rax, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rax], xmm0
.L8:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	unitConversion, .-unitConversion
	.globl	_toLower
	.type	_toLower, @function
_toLower:
.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	esi, 1
	mov	edi, 3
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	DWORD PTR -28[rbp], 32
	mov	ebx, 0
	jmp	.L10
.L13:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rcx, ebx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 256
	test	eax, eax
	je	.L15
	movsx	rdx, ebx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	lea	ecx, [rdx+rax]
	movsx	rdx, ebx
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L12
.L15:
	nop
.L12:
	add	ebx, 1
.L10:
	cmp	ebx, 1
	jle	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR heapPtr[rip], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	_toLower, .-_toLower
	.section	.rodata
.LC15:
	.string	"MiB"
.LC16:
	.string	"GiB"
.LC17:
	.string	"%s %.2f %s file %s"
.LC20:
	.string	""
.LC21:
	.string	"%d days\n"
.LC22:
	.string	"%d hours\n"
.LC23:
	.string	"%d minutes\n"
.LC24:
	.string	"%d seconds\n"
	.text
	.globl	findTime
	.type	findTime, @function
findTime:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -56[rbp]
	movsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	unitConversion
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	mov	rax, QWORD PTR -56[rbp]
	movsd	xmm1, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	test	rax, rax
	js	.L18
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L20
.L18:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	jmp	.L20
.L17:
	mov	eax, 1024
	cwde
	mov	eax, eax
	test	rax, rax
	js	.L21
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L20
.L21:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L20:
	divsd	xmm1, xmm0
	movsd	QWORD PTR -40[rbp], xmm1
	mov	rdx, QWORD PTR progMsg_p2[rip]
	cmp	QWORD PTR -64[rbp], 0
	jne	.L23
	lea	rax, .LC15[rip]
	jmp	.L24
.L23:
	lea	rax, .LC16[rip]
.L24:
	mov	rsi, QWORD PTR progMsg_p1[rip]
	mov	rdi, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	movq	xmm0, rdi
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -40[rbp]
	comisd	xmm0, QWORD PTR .LC18[rip]
	jbe	.L25
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	xmm1, QWORD PTR .LC18[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -40[rbp]
	cvttsd2si	eax, xmm0
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 60
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	comisd	xmm0, QWORD PTR .LC18[rip]
	jbe	.L25
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	xmm1, QWORD PTR .LC18[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	cvttsd2si	eax, xmm0
	movsx	rdx, eax
	imul	rdx, rdx, -2004318071
	shr	rdx, 32
	add	edx, eax
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 60
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	comisd	xmm0, QWORD PTR .LC19[rip]
	jbe	.L25
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	xmm1, QWORD PTR .LC19[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	cvttsd2si	edx, xmm0
	movsx	rax, edx
	imul	rax, rax, 715827883
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	add	eax, eax
	add	eax, ecx
	sal	eax, 3
	mov	ecx, edx
	sub	ecx, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, ecx
	movsd	QWORD PTR -24[rbp], xmm0
.L25:
	lea	rdi, .LC20[rip]
	call	puts@PLT
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -16[rbp]
	jp	.L40
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -16[rbp]
	je	.L29
.L40:
	movsd	xmm0, QWORD PTR -16[rbp]
	cvttsd2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L29:
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -24[rbp]
	jp	.L41
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -24[rbp]
	je	.L31
.L41:
	movsd	xmm0, QWORD PTR -24[rbp]
	cvttsd2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
.L31:
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -32[rbp]
	jp	.L42
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -32[rbp]
	je	.L33
.L42:
	movsd	xmm0, QWORD PTR -32[rbp]
	cvttsd2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
.L33:
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -40[rbp]
	jp	.L43
	pxor	xmm0, xmm0
	comisd	xmm0, QWORD PTR -40[rbp]
	jne	.L43
	jmp	.L44
.L43:
	movsd	xmm0, QWORD PTR -40[rbp]
	cvttsd2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
.L44:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	findTime, .-findTime
	.section	.rodata
.LC25:
	.string	"help"
.LC26:
	.string	"info"
.LC27:
	.string	"about"
.LC29:
	.string	"%lf"
.LC30:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L46
	mov	rax, QWORD PTR progErrMsg1[rip]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	jmp	.L47
.L46:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L48
	call	displayHelp
	jmp	.L49
.L48:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L50
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
.L50:
	call	displayInfo
	jmp	.L49
.L51:
	movsd	xmm0, QWORD PTR .LC28[rip]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	WORD PTR -38[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -36[rbp]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	rbx, QWORD PTR mb[rip]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	_toLower
	mov	rsi, rbx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L52
	mov	WORD PTR -38[rbp], 0
	jmp	.L53
.L52:
	mov	rbx, QWORD PTR gb[rip]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	_toLower
	mov	rsi, rbx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L54
	mov	WORD PTR -38[rbp], 1
	jmp	.L53
.L54:
	mov	WORD PTR -38[rbp], -1
.L53:
	movzx	eax, WORD PTR -38[rbp]
	test	ax, ax
	js	.L55
	lea	rdx, -36[rbp]
	lea	rcx, -38[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	findTime
	mov	rax, QWORD PTR heapPtr[rip]
	mov	rdi, rax
	call	free@PLT
	jmp	.L49
.L55:
	mov	rax, QWORD PTR progErrMsg2[rip]
	mov	rdi, rax
	call	puts@PLT
.L49:
	mov	eax, 0
.L47:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC12:
	.long	0
	.long	1083179008
	.align 8
.LC13:
	.long	0
	.long	1093664768
	.align 8
.LC18:
	.long	0
	.long	1078853632
	.align 8
.LC19:
	.long	0
	.long	1077411840
	.align 8
.LC28:
	.long	0
	.long	1072693248
	.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	"49461.c"
	.text
	.global	version
	.section	.rodata
	.align	2
.LC0:
	.ascii	"0.4\000"
	.data
	.align	2
	.type	version, %object
	.size	version, 4
version:
	.word	.LC0
	.global	heapPtr
	.bss
	.align	2
	.type	heapPtr, %object
	.size	heapPtr, 4
heapPtr:
	.space	4
	.global	mb
	.section	.rodata
	.align	2
.LC1:
	.ascii	"mb\000"
	.data
	.align	2
	.type	mb, %object
	.size	mb, 4
mb:
	.word	.LC1
	.global	gb
	.section	.rodata
	.align	2
.LC2:
	.ascii	"gb\000"
	.data
	.align	2
	.type	gb, %object
	.size	gb, 4
gb:
	.word	.LC2
	.section	.rodata
	.align	1
	.type	defaultSpeed, %object
	.size	defaultSpeed, 2
defaultSpeed:
	.short	1024
	.align	2
.LC3:
	.ascii	"Downloading a\000"
	.data
	.align	2
	.type	progMsg_p1, %object
	.size	progMsg_p1, 4
progMsg_p1:
	.word	.LC3
	.section	.rodata
	.align	2
.LC4:
	.ascii	"will take\000"
	.data
	.align	2
	.type	progMsg_p2, %object
	.size	progMsg_p2, 4
progMsg_p2:
	.word	.LC4
	.section	.rodata
	.align	2
.LC5:
	.ascii	"No parameters specified. Quitting\000"
	.data
	.align	2
	.type	progErrMsg1, %object
	.size	progErrMsg1, 4
progErrMsg1:
	.word	.LC5
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Unrecognized parameter <unit>\000"
	.data
	.align	2
	.type	progErrMsg2, %object
	.size	progErrMsg2, 4
progErrMsg2:
	.word	.LC6
	.section	.rodata
	.align	2
.LC7:
	.ascii	"downloadtime 1 1024 gb\000"
	.data
	.align	2
	.type	usageExample, %object
	.size	usageExample, 4
usageExample:
	.word	.LC7
	.text
	.align	2
	.global	inputValid
	.syntax unified
	.arm
	.fpu softvfp
	.type	inputValid, %function
inputValid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	inputValid, .-inputValid
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Usage: downloadtime <size(GiB)> <speed(kB)> <unit(m"
	.ascii	"B/gB)>\000"
	.align	2
.LC9:
	.ascii	"Example: \012In order to calculate the amount of ti"
	.ascii	"me it would approximately \012take to download a 1G"
	.ascii	"iB file at the speed of 1024 kilobytes per second\012"
	.ascii	"type %s\012        \000"
	.text
	.align	2
	.global	displayHelp
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayHelp, %function
displayHelp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L4
	bl	puts
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4+8
	bl	printf
	nop
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC8
	.word	usageExample
	.word	.LC9
	.size	displayHelp, .-displayHelp
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Wed Dec 18 20:53:58 2024\000"
	.align	2
.LC11:
	.ascii	"Last compiled on %s (UTC+3)\000"
	.text
	.align	2
	.global	displayInfo
	.syntax unified
	.arm
	.fpu softvfp
	.type	displayInfo, %function
displayInfo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L7
	ldr	r0, .L7+4
	bl	printf
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC10
	.word	.LC11
	.size	displayInfo, .-displayInfo
	.global	__aeabi_dmul
	.align	2
	.global	unitConversion
	.syntax unified
	.arm
	.fpu softvfp
	.type	unitConversion, %function
unitConversion:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrsh	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-8]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L13
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-8]
	stm	r1, {r2-r3}
	b	.L12
.L10:
	ldr	r3, [fp, #-8]
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L13+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-8]
	stm	r1, {r2-r3}
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	1083179008
	.word	1093664768
	.size	unitConversion, .-unitConversion
	.align	2
	.global	_toLower
	.syntax unified
	.arm
	.fpu softvfp
	.type	_toLower, %function
_toLower:
	@ 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, #-24]
	mov	r1, #1
	mov	r0, #3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	strcpy
	mov	r3, #32
	str	r3, [fp, #-16]
	mov	r4, #0
	b	.L16
.L19:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	mov	r1, r4
	ldr	r3, [fp, #-20]
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L21
	mov	r2, r4
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	and	r2, r3, #255
	mov	r0, r4
	ldr	r3, [fp, #-20]
	add	r3, r3, r0
	add	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L18
.L21:
	nop
.L18:
	add	r4, r4, #1
.L16:
	cmp	r4, #1
	ble	.L19
	ldr	r2, .L22
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	heapPtr
	.size	_toLower, .-_toLower
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC12:
	.ascii	"MiB\000"
	.align	2
.LC13:
	.ascii	"GiB\000"
	.align	2
.LC14:
	.ascii	"%s %.2f %s file %s\000"
	.global	__aeabi_dcmpgt
	.global	__aeabi_d2iz
	.global	__aeabi_i2d
	.align	2
.LC15:
	.ascii	"\000"
	.global	__aeabi_dcmpeq
	.align	2
.LC16:
	.ascii	"%d days\012\000"
	.align	2
.LC17:
	.ascii	"%d hours\012\000"
	.align	2
.LC18:
	.ascii	"%d minutes\012\000"
	.align	2
.LC19:
	.ascii	"%d seconds\012\000"
	.text
	.align	2
	.global	findTime
	.syntax unified
	.arm
	.fpu softvfp
	.type	findTime, %function
findTime:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, [fp, #-56]
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	unitConversion
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-64]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	b	.L26
.L25:
	mov	r3, #1024
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
.L26:
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, .L49
	ldr	r1, [r3]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L49+4
	b	.L28
.L27:
	ldr	r3, .L49+8
.L28:
	ldr	r2, .L49+12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	str	r3, [sp]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L49+16
	bl	printf
	mov	r2, #0
	ldr	r3, .L49+20
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	mov	r2, #0
	ldr	r3, .L49+20
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r3, .L49+24
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	mov	r0, r1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L49+20
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	mov	r2, #0
	ldr	r3, .L49+20
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r3, .L49+24
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	sub	r1, r2, r3
	mov	r0, r1
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	ldr	r3, .L49+28
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	mov	r2, #0
	ldr	r3, .L49+28
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r1, r0
	ldr	r3, .L49+32
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #3
	sub	r2, r1, r3
	mov	r0, r2
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
.L29:
	ldr	r0, .L49+36
	bl	puts
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L49+40
	bl	printf
.L33:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L49+44
	bl	printf
.L35:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L49+48
	bl	printf
.L37:
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L47
	b	.L48
.L47:
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L49+52
	bl	printf
.L48:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L50:
	.align	2
.L49:
	.word	progMsg_p1
	.word	.LC12
	.word	.LC13
	.word	progMsg_p2
	.word	.LC14
	.word	1078853632
	.word	-2004318071
	.word	1077411840
	.word	715827883
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	findTime, .-findTime
	.section	.rodata
	.align	2
.LC20:
	.ascii	"help\000"
	.align	2
.LC21:
	.ascii	"info\000"
	.align	2
.LC22:
	.ascii	"about\000"
	.align	2
.LC23:
	.ascii	"%lf\000"
	.align	2
.LC24:
	.ascii	"%d\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L52
	ldr	r3, .L64+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	mov	r3, #0
	b	.L53
.L52:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L64+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	bl	displayHelp
	b	.L55
.L54:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L64+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L64+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
.L56:
	bl	displayInfo
	b	.L55
.L57:
	mov	r2, #0
	ldr	r3, .L64+20
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	strh	r3, [fp, #-26]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #20
	ldr	r1, .L64+24
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, .L64+28
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	_toLower
	mov	r2, r0
	ldr	r3, .L64+32
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	mov	r3, #0
	strh	r3, [fp, #-26]	@ movhi
	b	.L59
.L58:
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	_toLower
	mov	r2, r0
	ldr	r3, .L64+36
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	mov	r3, #1
	strh	r3, [fp, #-26]	@ movhi
	b	.L59
.L60:
	mvn	r3, #0
	strh	r3, [fp, #-26]	@ movhi
.L59:
	ldrsh	r3, [fp, #-26]
	cmp	r3, #0
	blt	.L61
	sub	r2, fp, #24
	sub	r1, fp, #26
	sub	r3, fp, #20
	mov	r0, r3
	bl	findTime
	ldr	r3, .L64+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	b	.L55
.L61:
	ldr	r3, .L64+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
.L55:
	mov	r3, #0
.L53:
	ldr	r2, .L64
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC25
	.word	progErrMsg1
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	1072693248
	.word	.LC23
	.word	.LC24
	.word	mb
	.word	gb
	.word	heapPtr
	.word	progErrMsg2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
