	.file	"322821.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"generate"
.LC1:
	.string	"Brakuje kilku argumentow\n"
.LC2:
	.string	"sort"
.LC3:
	.string	"sys"
.LC4:
	.string	"lib"
.LC5:
	.string	"Must be lib or sys"
.LC6:
	.string	"copy"
.LC7:
	.string	"Must be lib or sys\n"
.LC8:
	.string	"Wrong command\n"
.LC9:
	.string	"%s "
.LC10:
	.string	"\nReal time:  \t%lf\n"
.LC11:
	.string	"User time:  \t%lf\n"
.LC12:
	.string	"System time:\t%lf\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -212[rbp], 1
	jne	.L2
	mov	eax, 0
	call	help
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	DWORD PTR -200[rbp], 1
	jmp	.L3
.L17:
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	times@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -200[rbp]
	add	eax, 3
	cmp	DWORD PTR -212[rbp], eax
	jg	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -120[rbp], rax
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -176[rbp], eax
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -172[rbp], eax
	mov	edx, DWORD PTR -172[rbp]
	mov	ecx, DWORD PTR -176[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	generate
	jmp	.L6
.L4:
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -200[rbp]
	add	eax, 4
	cmp	DWORD PTR -212[rbp], eax
	jg	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -136[rbp], rax
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -184[rbp], eax
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -180[rbp], eax
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	edx, DWORD PTR -180[rbp]
	mov	ecx, DWORD PTR -184[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	sys_sort
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -128[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	mov	edx, DWORD PTR -180[rbp]
	mov	ecx, DWORD PTR -184[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	lib_sort
	jmp	.L6
.L10:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -200[rbp]
	add	eax, 5
	cmp	DWORD PTR -212[rbp], eax
	jg	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -160[rbp], rax
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -152[rbp], rax
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -192[rbp], eax
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -188[rbp], eax
	add	DWORD PTR -200[rbp], 1
	mov	eax, DWORD PTR -200[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L13
	mov	ecx, DWORD PTR -188[rbp]
	mov	edx, DWORD PTR -192[rbp]
	mov	rsi, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	sys_copy
	jmp	.L6
.L13:
	mov	rax, QWORD PTR -144[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	mov	ecx, DWORD PTR -188[rbp]
	mov	edx, DWORD PTR -192[rbp]
	mov	rsi, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	lib_copy
	jmp	.L6
.L14:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	add	DWORD PTR -200[rbp], 1
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	times@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	time_diff
	movq	rax, xmm0
	mov	QWORD PTR -104[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	time_diff
	movq	rax, xmm0
	mov	QWORD PTR -96[rbp], rax
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	time_diff
	movq	rax, xmm0
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -196[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -196[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -196[rbp], 1
.L15:
	mov	eax, DWORD PTR -196[rbp]
	cmp	eax, DWORD PTR -212[rbp]
	jl	.L16
	mov	rax, QWORD PTR -104[rbp]
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -96[rbp]
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
.L3:
	mov	eax, DWORD PTR -200[rbp]
	cmp	eax, DWORD PTR -212[rbp]
	jl	.L17
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC13:
	.string	"You can use this commands:"
	.align 8
.LC14:
	.string	"generate <file> <size> <count>             \t powinno losowo generowa\304\207 <size> rekord\303\263w o d\305\202ugo\305\233ci <count> bajt\303\263w do pliku <file>,\n"
	.align 8
.LC15:
	.string	"sort <file> <size> <count> sys/lib         \t powinien sortowa\304\207 rekordy w pliku dane przy u\305\274yciu funkcji systemowych lub biblioteki C, zak\305\202adaj\304\205c \305\274e zawiera on <size> rekord\303\263w wielko\305\233ci <count> bajt\303\263w\n"
	.align 8
.LC16:
	.string	"copy <file1> <file2> <size> <count> sys/lib\t powinno skopiowa\304\207 <size> rekord\303\263w <file1> do <file2> za pomoc\304\205 funkcji bibliotecznych C lub funckji systemowych z wykorzystaniem bufora <count> bajt\303\263w\n"
	.text
	.globl	help
	.type	help, @function
help:
.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, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	help, .-help
	.section	.rodata
.LC17:
	.string	"w"
.LC18:
	.string	"Nie udalo sie stworzyc plik\n"
.LC19:
	.string	"r"
.LC20:
	.string	"/dev/urandom"
	.align 8
.LC21:
	.string	"Nie udalo sie odczytac pliku z /dev/random\n"
	.align 8
.LC22:
	.string	"Nie udalo sie zalokowac pamieci do buforow\n"
.LC23:
	.string	"/dev/random"
	.text
	.globl	generate
	.type	generate, @function
generate:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	lea	rsi, .LC19[rip]
	lea	rdi, .LC20[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	eax, DWORD PTR -48[rbp]
	imul	eax, DWORD PTR -44[rbp]
	cdqe
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	eax, DWORD PTR -48[rbp]
	imul	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -48[rbp]
	imul	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	jne	.L25
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	perror@PLT
.L25:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	jne	.L27
	lea	rdi, .LC23[rip]
	call	perror@PLT
.L27:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	generate, .-generate
	.section	.rodata
.LC24:
	.string	"r+"
.LC25:
	.string	"Nie udalo sie otworzyc plik\n"
	.text
	.globl	lib_sort
	.type	lib_sort, @function
lib_sort:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L30
	cmp	QWORD PTR -8[rbp], 0
	jne	.L31
.L30:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L32
.L36:
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -38[rbp], al
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -28[rbp], eax
	jmp	.L33
.L35:
	mov	eax, DWORD PTR -28[rbp]
	imul	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -37[rbp], al
	movzx	eax, BYTE PTR -37[rbp]
	cmp	al, BYTE PTR -38[rbp]
	jnb	.L34
	movzx	eax, BYTE PTR -37[rbp]
	mov	BYTE PTR -38[rbp], al
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -32[rbp], eax
.L34:
	add	DWORD PTR -28[rbp], 1
.L33:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L35
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -64[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -64[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -64[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -36[rbp], 1
.L32:
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jl	.L36
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	jne	.L38
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	perror@PLT
.L38:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	lib_sort, .-lib_sort
	.globl	sys_sort
	.type	sys_sort, @function
sys_sort:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	DWORD PTR -64[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jne	.L40
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L40:
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L41
	cmp	QWORD PTR -16[rbp], 0
	jne	.L42
.L41:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L42:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L43
.L47:
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -41[rbp], al
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	mov	DWORD PTR -32[rbp], eax
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -32[rbp]
	imul	eax, DWORD PTR -60[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -42[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	movzx	eax, BYTE PTR -42[rbp]
	cmp	BYTE PTR -41[rbp], al
	jbe	.L45
	movzx	eax, BYTE PTR -42[rbp]
	mov	BYTE PTR -41[rbp], al
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -36[rbp], eax
.L45:
	add	DWORD PTR -32[rbp], 1
.L44:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jl	.L46
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -64[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -64[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, DWORD PTR -64[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	DWORD PTR -40[rbp], 1
.L43:
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, 1
	cmp	DWORD PTR -40[rbp], eax
	jl	.L47
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jne	.L50
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	perror@PLT
.L50:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sys_sort, .-sys_sort
	.globl	sys_copy
	.type	sys_copy, @function
sys_copy:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -40[rbp], ecx
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L52
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L52:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 384
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L53
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L53:
	mov	eax, DWORD PTR -40[rbp]
	imul	eax, DWORD PTR -36[rbp]
	cdqe
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L54
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L54:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	imul	rdx, rax
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	imul	rdx, rax
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jne	.L55
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	perror@PLT
.L55:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jne	.L57
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	perror@PLT
.L57:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sys_copy, .-sys_copy
	.globl	lib_copy
	.type	lib_copy, @function
lib_copy:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	DWORD PTR -56[rbp], ecx
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L59
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L59:
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L60
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L60:
	mov	eax, DWORD PTR -56[rbp]
	imul	eax, DWORD PTR -52[rbp]
	cdqe
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L61
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L61:
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	jne	.L62
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	perror@PLT
.L62:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	jne	.L64
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	perror@PLT
.L64:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	lib_copy, .-lib_copy
	.globl	time_diff
	.type	time_diff, @function
time_diff:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -8[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	movsd	QWORD PTR -24[rbp], xmm2
	mov	edi, 2
	call	sysconf@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR -24[rbp]
	divsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	time_diff, .-time_diff
	.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	"322821.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"generate\000"
	.align	2
.LC1:
	.ascii	"Brakuje kilku argumentow\012\000"
	.align	2
.LC2:
	.ascii	"sort\000"
	.align	2
.LC3:
	.ascii	"sys\000"
	.align	2
.LC4:
	.ascii	"lib\000"
	.align	2
.LC5:
	.ascii	"Must be lib or sys\000"
	.align	2
.LC6:
	.ascii	"copy\000"
	.align	2
.LC7:
	.ascii	"Must be lib or sys\012\000"
	.align	2
.LC8:
	.ascii	"Wrong command\012\000"
	.align	2
.LC9:
	.ascii	"%s \000"
	.align	2
.LC10:
	.ascii	"\012Real time:  \011%lf\012\000"
	.align	2
.LC11:
	.ascii	"User time:  \011%lf\012\000"
	.align	2
.LC12:
	.ascii	"System time:\011%lf\012\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-136]
	cmp	r3, #1
	bne	.L2
	bl	help
	mov	r0, #0
	bl	exit
.L2:
	mov	r3, #1
	str	r3, [fp, #-132]
	b	.L3
.L17:
	sub	r3, fp, #40
	mov	r0, r3
	bl	times
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L20+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-132]
	add	r3, r3, #3
	ldr	r2, [fp, #-136]
	cmp	r2, r3
	bgt	.L5
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L20+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-76]
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-80]
	ldr	r0, [fp, #-84]
	bl	generate
	b	.L6
.L4:
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L20+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-132]
	add	r3, r3, #4
	ldr	r2, [fp, #-136]
	cmp	r2, r3
	bgt	.L8
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L20+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-88]
	ldr	r1, .L20+20
	ldr	r0, [fp, #-88]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-96]
	ldr	r0, [fp, #-100]
	bl	sys_sort
	b	.L6
.L9:
	ldr	r1, .L20+24
	ldr	r0, [fp, #-88]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-96]
	ldr	r0, [fp, #-100]
	bl	lib_sort
	b	.L6
.L10:
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L20+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L20+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-132]
	add	r3, r3, #5
	ldr	r2, [fp, #-136]
	cmp	r2, r3
	bgt	.L12
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L20+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-104]
	ldr	r1, .L20+20
	ldr	r0, [fp, #-104]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-120]
	bl	sys_copy
	b	.L6
.L13:
	ldr	r1, .L20+24
	ldr	r0, [fp, #-104]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-120]
	bl	lib_copy
	b	.L6
.L14:
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L20+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L20+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	sub	r3, fp, #24
	mov	r0, r3
	bl	times
	str	r0, [fp, #-72]
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-124]
	bl	time_diff
	str	r0, [fp, #-68]
	str	r1, [fp, #-64]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	time_diff
	str	r0, [fp, #-60]
	str	r1, [fp, #-56]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	time_diff
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L15
.L16:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L20+44
	bl	printf
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L15:
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L16
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+48
	bl	printf
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+52
	bl	printf
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L20+56
	bl	printf
.L3:
	ldr	r2, [fp, #-132]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L17
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC13
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.section	.rodata
	.align	2
.LC14:
	.ascii	"You can use this commands:\000"
	.align	2
.LC15:
	.ascii	"generate <file> <size> <count>             \011 pow"
	.ascii	"inno losowo generowa\304\207 <size> rekord\303\263w"
	.ascii	" o d\305\202ugo\305\233ci <count> bajt\303\263w do "
	.ascii	"pliku <file>,\012\000"
	.align	2
.LC16:
	.ascii	"sort <file> <size> <count> sys/lib         \011 pow"
	.ascii	"inien sortowa\304\207 rekordy w pliku dane przy u\305"
	.ascii	"\274yciu funkcji systemowych lub biblioteki C, zak\305"
	.ascii	"\202adaj\304\205c \305\274e zawiera on <size> rekor"
	.ascii	"d\303\263w wielko\305\233ci <count> bajt\303\263w\012"
	.ascii	"\000"
	.align	2
.LC17:
	.ascii	"copy <file1> <file2> <size> <count> sys/lib\011 pow"
	.ascii	"inno skopiowa\304\207 <size> rekord\303\263w <file1"
	.ascii	"> do <file2> za pomoc\304\205 funkcji bibliotecznyc"
	.ascii	"h C lub funckji systemowych z wykorzystaniem bufora"
	.ascii	" <count> bajt\303\263w\012\000"
	.text
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L23
	bl	puts
	ldr	r0, .L23+4
	bl	puts
	ldr	r0, .L23+8
	bl	puts
	ldr	r0, .L23+12
	bl	puts
	nop
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	help, .-help
	.section	.rodata
	.align	2
.LC18:
	.ascii	"w\000"
	.align	2
.LC19:
	.ascii	"Nie udalo sie stworzyc plik\012\000"
	.align	2
.LC20:
	.ascii	"r\000"
	.align	2
.LC21:
	.ascii	"/dev/urandom\000"
	.align	2
.LC22:
	.ascii	"Nie udalo sie odczytac pliku z /dev/random\012\000"
	.align	2
.LC23:
	.ascii	"Nie udalo sie zalokowac pamieci do buforow\012\000"
	.align	2
.LC24:
	.ascii	"/dev/random\000"
	.text
	.align	2
	.global	generate
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate, %function
generate:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, .L32
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L32+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L26:
	ldr	r1, .L32+12
	ldr	r0, .L32+16
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L32+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L28
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L32+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L28:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-12]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fread
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fwrite
	ldr	r0, [fp, #-16]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r0, [fp, #-24]
	bl	perror
.L29:
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L32+28
	bl	perror
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC18
	.word	stderr
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	generate, .-generate
	.section	.rodata
	.align	2
.LC25:
	.ascii	"r+\000"
	.align	2
.LC26:
	.ascii	"Nie udalo sie otworzyc plik\012\000"
	.text
	.align	2
	.global	lib_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	lib_sort, %function
lib_sort:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r1, .L45
	ldr	r0, [fp, #-40]
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L45+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L35:
	ldr	r3, [fp, #-48]
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-48]
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L37
.L36:
	ldr	r3, .L45+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L45+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L37:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L38
.L42:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fread
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]
	strb	r3, [fp, #-30]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L39
.L41:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r0, [fp, #-16]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L40
	ldrb	r3, [fp, #-29]
	strb	r3, [fp, #-30]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
.L40:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L39:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L41
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fread
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fwrite
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fwrite
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L38:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L42
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r0, [fp, #-16]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r0, [fp, #-40]
	bl	perror
.L44:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC25
	.word	stderr
	.word	.LC26
	.word	.LC23
	.size	lib_sort, .-lib_sort
	.section	.rodata
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sys_sort
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_sort, %function
sys_sort:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #2
	ldr	r0, [fp, #-40]
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L59+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L59+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L48:
	ldr	r3, [fp, #-48]
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L50
.L49:
	ldr	r3, .L59+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L59+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L50:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L51
.L55:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	lseek
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	read
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-33]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L52
.L54:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-44]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	lseek
	sub	r3, fp, #34
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	read
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	ldrb	r2, [fp, #-33]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L53
	ldrb	r3, [fp, #-34]
	strb	r3, [fp, #-33]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
.L53:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L52:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L54
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	lseek
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	read
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	lseek
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	write
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-48]
	mul	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	lseek
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	write
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L51:
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L55
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, [fp, #-20]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	ldr	r0, [fp, #-40]
	bl	perror
.L58:
	nop
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC27
	.word	stderr
	.word	.LC26
	.word	.LC23
	.size	sys_sort, .-sys_sort
	.align	2
	.global	sys_copy
	.syntax unified
	.arm
	.fpu softvfp
	.type	sys_copy, %function
sys_copy:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L62
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L68+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L62:
	mov	r2, #384
	ldr	r1, .L68+8
	ldr	r0, [fp, #-28]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L63
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L68+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L63:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L64
	ldr	r3, .L68
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L68+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L64:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	read
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	write
	ldr	r0, [fp, #-16]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	ldr	r0, [fp, #-24]
	bl	perror
.L65:
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r0, [fp, #-28]
	bl	perror
.L67:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	stderr
	.word	.LC26
	.word	577
	.word	.LC19
	.word	.LC23
	.size	sys_copy, .-sys_copy
	.align	2
	.global	lib_copy
	.syntax unified
	.arm
	.fpu softvfp
	.type	lib_copy, %function
lib_copy:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r1, .L77
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L71
	ldr	r3, .L77+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L77+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L71:
	ldr	r1, .L77+12
	ldr	r0, [fp, #-28]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L72
	ldr	r3, .L77+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L77+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L72:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L73
	ldr	r3, .L77+4
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L77+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L73:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fread
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-12]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fwrite
	ldr	r0, [fp, #-16]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	bne	.L74
	ldr	r0, [fp, #-24]
	bl	perror
.L74:
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	ldr	r0, [fp, #-28]
	bl	perror
.L76:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC20
	.word	stderr
	.word	.LC26
	.word	.LC18
	.word	.LC19
	.word	.LC23
	.size	lib_copy, .-lib_copy
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
	.global	time_diff
	.syntax unified
	.arm
	.fpu softvfp
	.type	time_diff, %function
time_diff:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	mov	r0, #2
	bl	sysconf
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	time_diff, .-time_diff
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
