	.file	"273967.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"primes.txt"
	.align 8
.LC2:
	.string	"Nie moge otworzyc pliku do zapisu"
.LC3:
	.string	"%ld "
.LC4:
	.string	"Execution took %lu us\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
	push	rbx
	lea	r11, -7999488[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 664
	.cfi_offset 3, -24
	mov	DWORD PTR -8000148[rbp], edi
	mov	QWORD PTR -8000160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rax, -8000048[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	QWORD PTR -8000096[rbp], 3162
	mov	edx, 25304
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -8000088[rbp], rax
	mov	QWORD PTR -8000104[rbp], 0
	mov	QWORD PTR -8000136[rbp], 2
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -8000088[rbp]
	mov	rdx, QWORD PTR -8000136[rbp]
	mov	QWORD PTR [rax+rdx*8], 1
	add	QWORD PTR -8000136[rbp], 1
.L5:
	cmp	QWORD PTR -8000136[rbp], 3162
	jle	.L6
	mov	QWORD PTR -8000136[rbp], 2
	jmp	.L7
.L11:
	mov	rax, QWORD PTR -8000088[rbp]
	mov	rdx, QWORD PTR -8000136[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	cmp	rax, 1
	jne	.L8
	mov	rax, QWORD PTR -8000104[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8000104[rbp], rdx
	mov	rdx, QWORD PTR -8000136[rbp]
	mov	QWORD PTR -8000032[rbp+rax*8], rdx
	mov	rax, QWORD PTR -8000136[rbp]
	add	rax, rax
	mov	QWORD PTR -8000128[rbp], rax
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -8000088[rbp]
	mov	rdx, QWORD PTR -8000128[rbp]
	mov	QWORD PTR [rax+rdx*8], 0
	mov	rax, QWORD PTR -8000136[rbp]
	add	QWORD PTR -8000128[rbp], rax
.L9:
	cmp	QWORD PTR -8000128[rbp], 3162
	jle	.L10
.L8:
	add	QWORD PTR -8000136[rbp], 1
.L7:
	cmp	QWORD PTR -8000136[rbp], 3162
	jle	.L11
	mov	rax, QWORD PTR -8000104[rbp]
	mov	QWORD PTR -8000080[rbp], rax
	mov	QWORD PTR -8000120[rbp], 3163
	jmp	.L12
.L18:
	mov	QWORD PTR -8000128[rbp], 0
	jmp	.L13
.L16:
	mov	rax, QWORD PTR -8000128[rbp]
	mov	rcx, QWORD PTR -8000032[rbp+rax*8]
	mov	rax, QWORD PTR -8000120[rbp]
	cqo
	idiv	rcx
	mov	QWORD PTR -8000112[rbp], rdx
	cmp	QWORD PTR -8000112[rbp], 0
	je	.L24
	add	QWORD PTR -8000128[rbp], 1
.L13:
	mov	rax, QWORD PTR -8000128[rbp]
	cmp	rax, QWORD PTR -8000080[rbp]
	jl	.L16
	jmp	.L15
.L24:
	nop
.L15:
	cmp	QWORD PTR -8000112[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -8000104[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8000104[rbp], rdx
	mov	rdx, QWORD PTR -8000120[rbp]
	mov	QWORD PTR -8000032[rbp+rax*8], rdx
.L17:
	add	QWORD PTR -8000120[rbp], 1
.L12:
	cmp	QWORD PTR -8000120[rbp], 10000000
	jle	.L18
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -8000072[rbp], rax
	cmp	QWORD PTR -8000072[rbp], 0
	jne	.L19
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	QWORD PTR -8000136[rbp], 0
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -8000136[rbp]
	mov	rdx, QWORD PTR -8000032[rbp+rax*8]
	mov	rax, QWORD PTR -8000072[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -8000136[rbp], 1
.L20:
	mov	rax, QWORD PTR -8000136[rbp]
	cmp	rax, QWORD PTR -8000104[rbp]
	jl	.L21
	mov	rax, QWORD PTR -8000072[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -8000064[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -8000064[rbp]
	mov	rdx, QWORD PTR -8000048[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -8000056[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -8000040[rbp]
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	mov	rbx, QWORD PTR -8[rbp]
	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	"273967.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"primes.txt\000"
	.align	2
.LC2:
	.ascii	"Nie moge otworzyc pliku do zapisu\000"
	.align	2
.LC3:
	.ascii	"%ld \000"
	.align	2
.LC4:
	.ascii	"Execution took %lu us\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4000064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #3997696
	sub	sp, sp, #2368
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	str	r0, [r3, #-2364]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	str	r1, [r3, #-2368]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	ldr	r3, .L22+4
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L22+8
	str	r3, [r2, #-2340]
	ldr	r3, .L22+12
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [r2, #-2336]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2344]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-2360]
	b	.L2
.L3:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2336]
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	ldr	r2, [r2, #-2360]
	mov	r1, #1
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2360]
	add	r3, r3, #1
	str	r3, [r2, #-2360]
.L2:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2360]
	ldr	r2, .L22+8
	cmp	r3, r2
	ble	.L3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-2360]
	b	.L4
.L8:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2336]
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	ldr	r2, [r2, #-2360]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #1
	bne	.L5
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2344]
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2344]
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	ldr	r2, [r2, #-2360]
	str	r2, [r3, #-2308]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2360]
	lsl	r3, r3, #1
	str	r3, [r2, #-2356]
	b	.L6
.L7:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2336]
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	ldr	r2, [r2, #-2356]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r2, [r2, #-2356]
	ldr	r3, [r3, #-2360]
	add	r3, r2, r3
	str	r3, [r1, #-2356]
.L6:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2356]
	ldr	r2, .L22+8
	cmp	r3, r2
	ble	.L7
.L5:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2360]
	add	r3, r3, #1
	str	r3, [r2, #-2360]
.L4:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2360]
	ldr	r2, .L22+8
	cmp	r3, r2
	ble	.L8
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2344]
	str	r3, [r2, #-2332]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L22+16
	str	r3, [r2, #-2352]
	b	.L9
.L15:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2356]
	b	.L10
.L13:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2356]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-2308]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2352]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [r4, #-2348]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2348]
	cmp	r3, #0
	beq	.L21
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2356]
	add	r3, r3, #1
	str	r3, [r2, #-2356]
.L10:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r2, [r2, #-2356]
	ldr	r3, [r3, #-2332]
	cmp	r2, r3
	blt	.L13
	b	.L12
.L21:
	nop
.L12:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2348]
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2344]
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2344]
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	ldr	r2, [r2, #-2352]
	str	r2, [r3, #-2308]
.L14:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2352]
	add	r3, r3, #1
	str	r3, [r2, #-2352]
.L9:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2352]
	ldr	r2, .L22+20
	cmp	r3, r2
	ble	.L15
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L22+24
	ldr	r0, .L22+28
	bl	fopen
	str	r0, [r4, #-2328]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2328]
	cmp	r3, #0
	bne	.L16
	ldr	r0, .L22+32
	bl	puts
	mov	r0, #1
	bl	exit
.L16:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2360]
	b	.L17
.L18:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2360]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-2308]
	sub	r2, fp, #3997696
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L22+36
	ldr	r0, [r0, #-2328]
	bl	fprintf
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2360]
	add	r3, r3, #1
	str	r3, [r2, #-2360]
.L17:
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r2, [r2, #-2360]
	ldr	r3, [r3, #-2344]
	cmp	r2, r3
	blt	.L18
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r0, [r3, #-2328]
	bl	fclose
	ldr	r3, .L22+40
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r2, [r3, #-2324]
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2316]
	sub	r1, r2, r3
	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
	mov	r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2320]
	add	r2, r2, r3
	sub	r3, fp, #3997696
	sub	r3, r3, #12
	ldr	r3, [r3, #-2312]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L22+44
	bl	printf
	mov	r3, #0
	mov	sp, r5
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	-4000012
	.word	3162
	.word	12652
	.word	3163
	.word	10000000
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-4000020
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
