	.file	"70448940.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Brak 1 argumentu(sciezka do pliku)!"
	.align 8
.LC1:
	.string	"Brak 2 i 3 argumentu(ograniczenia)!"
.LC2:
	.string	"r"
.LC3:
	.string	" \n"
.LC4:
	.string	"fork"
.LC5:
	.string	"B\305\202ad w wykonaniu lini: %d "
	.align 8
.LC6:
	.string	"Czas: user :%ld.%06ld system:%ld.%06ld\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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -340[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L19
.L2:
	cmp	DWORD PTR -340[rbp], 3
	jg	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L19
.L4:
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -248[rbp], rax
	mov	rax, QWORD PTR -248[rbp]
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	imul	eax, eax, 1000000
	cdqe
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -264[rbp]
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -296[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, 1
	jmp	.L19
.L5:
	mov	DWORD PTR -328[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	jmp	.L6
.L18:
	add	DWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 35
	jne	.L8
	lea	rsi, .LC3[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 1
	mov	rdi, rax
	call	unsetenv@PLT
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	lea	rcx, 1[rdx]
	mov	edx, 1
	mov	rsi, rax
	mov	rdi, rcx
	call	setenv@PLT
	jmp	.L6
.L8:
	mov	DWORD PTR -324[rbp], 1
.L12:
	lea	rsi, .LC3[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	edx, DWORD PTR -324[rbp]
	movsx	rdx, edx
	mov	QWORD PTR -96[rbp+rdx*8], rax
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	test	rax, rax
	je	.L21
	add	DWORD PTR -324[rbp], 1
	cmp	DWORD PTR -324[rbp], 4
	jle	.L12
	jmp	.L11
.L21:
	nop
.L11:
	mov	eax, DWORD PTR -324[rbp]
	cdqe
	mov	QWORD PTR -96[rbp+rax*8], 0
	call	fork@PLT
	mov	DWORD PTR -320[rbp], eax
	cmp	DWORD PTR -320[rbp], -1
	jne	.L13
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	cmp	DWORD PTR -320[rbp], 0
	jne	.L14
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 9
	call	setrlimit@PLT
	lea	rax, -256[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	setrlimit@PLT
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	cmp	eax, -1
	jne	.L6
	mov	edx, DWORD PTR -328[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rdx, -240[rbp]
	lea	rax, -332[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	wait3@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	je	.L16
	mov	eax, DWORD PTR -332[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	je	.L17
.L16:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	rsi, QWORD PTR -216[rbp]
	mov	rcx, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	mov	rdx, QWORD PTR -288[rbp]
	lea	rcx, -304[rbp]
	lea	rax, -312[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], -1
	jne	.L18
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"70448940.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Brak 1 argumentu(sciezka do pliku)!\000"
	.align	2
.LC1:
	.ascii	"Brak 2 i 3 argumentu(ograniczenia)!\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	" \012\000"
	.align	2
.LC4:
	.ascii	"fork\000"
	.align	2
.LC5:
	.ascii	"B\305\202ad w wykonaniu lini: %d \000"
	.align	2
.LC6:
	.ascii	"Czas: user :%ld.%06ld system:%ld.%06ld\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	str	r0, [fp, #-200]
	str	r1, [fp, #-204]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-200]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L22+4
	bl	puts
	mov	r3, #1
	b	.L19
.L2:
	ldr	r3, [fp, #-200]
	cmp	r3, #3
	bgt	.L4
	ldr	r0, .L22+8
	bl	puts
	mov	r3, #1
	b	.L19
.L4:
	ldr	r3, [fp, #-204]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-204]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r1, r0
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-148]
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-172]
	ldr	r1, .L22+12
	ldr	r0, [fp, #-172]
	bl	fopen
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bne	.L5
	ldr	r0, [fp, #-172]
	bl	perror
	mov	r3, #1
	b	.L19
.L5:
	mov	r3, #0
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-192]
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L6
.L18:
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-192]
	ldr	r1, .L22+16
	mov	r0, r3
	bl	strtok
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #35
	bne	.L8
	ldr	r1, .L22+16
	mov	r0, #0
	bl	strtok
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	mov	r0, r3
	bl	unsetenv
	b	.L6
.L9:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	ldr	r1, [fp, #-60]
	mov	r2, #1
	mov	r0, r3
	bl	setenv
	b	.L6
.L8:
	mov	r3, #1
	str	r3, [fp, #-176]
.L12:
	ldr	r1, .L22+16
	mov	r0, #0
	bl	strtok
	mov	r2, r0
	ldr	r3, [fp, #-176]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-60]
	ldr	r3, [fp, #-176]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-176]
	cmp	r3, #4
	ble	.L12
	b	.L11
.L21:
	nop
.L11:
	ldr	r3, [fp, #-176]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-60]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L22+20
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bne	.L14
	sub	r3, fp, #152
	mov	r1, r3
	mov	r0, #9
	bl	setrlimit
	sub	r3, fp, #144
	mov	r1, r3
	mov	r0, #0
	bl	setrlimit
	ldr	r3, [fp, #-64]
	sub	r2, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	sub	r3, fp, #40
	ldr	r2, [fp, #-180]
	ldr	r1, .L22+24
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #40
	mov	r0, r3
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	sub	r2, fp, #136
	sub	r3, fp, #184
	mov	r1, #10
	mov	r0, r3
	bl	wait3
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmn	r3, #1
	beq	.L16
	ldr	r3, [fp, #-184]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L17
.L16:
	ldr	r0, [fp, #-168]
	bl	fclose
	mov	r0, #1
	bl	exit
.L17:
	ldr	r1, [fp, #-136]
	ldr	r2, [fp, #-132]
	ldr	r0, [fp, #-128]
	ldr	r3, [fp, #-124]
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L22+28
	bl	printf
.L6:
	sub	r1, fp, #188
	sub	r3, fp, #192
	ldr	r2, [fp, #-168]
	mov	r0, r3
	bl	getline
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-164]
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-192]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-168]
	bl	fclose
	mov	r3, #0
.L19:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
