	.file	"677825.c"
	.intel_syntax noprefix
	.text
	.globl	size
	.data
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.long	40
	.globl	ara
	.bss
	.align 32
	.type	ara, @object
	.size	ara, 160
ara:
	.zero	160
	.section	.rodata
.LC0:
	.string	"%4d"
.LC1:
	.string	"----"
.LC2:
	.string	"\n\n"
	.text
	.globl	print_ara
	.type	print_ara, @function
print_ara:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 2
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ara[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR size[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L3
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 2
	jmp	.L4
.L5:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR size[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L5
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -4[rbp], 2
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L6:
	mov	eax, DWORD PTR size[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	print_ara, .-print_ara
	.globl	sieve
	.type	sieve, @function
sieve:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -12[rbp], 2
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ara[rip]
	mov	DWORD PTR [rdx+rax], 1
	add	DWORD PTR -12[rbp], 1
.L9:
	mov	eax, DWORD PTR size[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L10
	mov	eax, DWORD PTR size[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movq	rax, xmm1
	movq	xmm0, rax
	call	sqrt@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	mov	eax, 0
	call	print_ara
	mov	DWORD PTR -12[rbp], 2
	jmp	.L11
.L15:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ara[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L12
	mov	DWORD PTR -8[rbp], 2
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ara[rip]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -8[rbp], 1
.L13:
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR size[rip]
	cmp	edx, eax
	jle	.L14
	mov	eax, 0
	call	print_ara
.L12:
	add	DWORD PTR -12[rbp], 1
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	sieve, .-sieve
	.globl	is_prime
	.type	is_prime, @function
is_prime:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 1
	jg	.L17
	mov	eax, 0
	jmp	.L18
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ara[rip]
	mov	eax, DWORD PTR [rdx+rax]
.L18:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	is_prime, .-is_prime
	.section	.rodata
	.align 8
.LC3:
	.string	"Please enter a number (enter 0 to exit): "
.LC4:
	.string	"%d"
	.align 8
.LC5:
	.string	"The number should be less than %d\n"
.LC6:
	.string	"%d is a prime number.\n"
.LC7:
	.string	"%d is not a prime number.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	sieve
.L25:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L29
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR size[rip]
	cmp	edx, eax
	jl	.L22
	mov	eax, DWORD PTR size[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L22:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	is_prime
	cmp	eax, 1
	jne	.L24
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	jmp	.L25
.L29:
	nop
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"677825.c"
	.text
	.global	size
	.data
	.align	2
	.type	size, %object
	.size	size, 4
size:
	.word	40
	.comm	ara,160,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%4d\000"
	.align	2
.LC1:
	.ascii	"----\000"
	.align	2
.LC2:
	.ascii	"\012\012\000"
	.text
	.align	2
	.global	print_ara
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_ara, %function
print_ara:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, .L8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L8+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	mov	r0, #10
	bl	putchar
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r0, .L8+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L5
	mov	r0, #10
	bl	putchar
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L7
	ldr	r0, .L8+16
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	ara
	.word	.LC0
	.word	size
	.word	.LC1
	.word	.LC2
	.size	print_ara, .-print_ara
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
	.global	sieve
	.syntax unified
	.arm
	.fpu softvfp
	.type	sieve, %function
sieve:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L11
.L12:
	ldr	r2, .L18
	ldr	r3, [fp, #-16]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L12
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-8]
	bl	print_ara
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L13
.L17:
	ldr	r2, .L18
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #1
	bne	.L14
	mov	r3, #2
	str	r3, [fp, #-12]
	b	.L15
.L16:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	ldr	r2, .L18
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L15:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mul	r2, r3, r2
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L16
	bl	print_ara
.L14:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L17
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	ara
	.word	size
	.size	sieve, .-sieve
	.align	2
	.global	is_prime
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_prime, %function
is_prime:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L21
	mov	r3, #0
	b	.L22
.L21:
	ldr	r2, .L23
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
.L22:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L24:
	.align	2
.L23:
	.word	ara
	.size	is_prime, .-is_prime
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Please enter a number (enter 0 to exit): \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"The number should be less than %d\012\000"
	.align	2
.LC6:
	.ascii	"%d is a prime number.\012\000"
	.align	2
.LC7:
	.ascii	"%d is not a prime number.\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	sieve
.L31:
	ldr	r0, .L36+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L36+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L35
	ldr	r2, [fp, #-12]
	ldr	r3, .L36+12
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L28
	ldr	r3, .L36+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L36+16
	bl	printf
	b	.L29
.L28:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	is_prime
	mov	r3, r0
	cmp	r3, #1
	bne	.L30
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L36+20
	bl	printf
	b	.L31
.L30:
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L36+24
	bl	printf
.L29:
	b	.L31
.L35:
	nop
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC8
	.word	.LC3
	.word	.LC4
	.word	size
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
