	.file	"588236.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage: sieve <number>\n"
.LC1:
	.string	"Need higher cieling\n"
.LC2:
	.string	"Not enough memory\n"
.LC3:
	.string	"%d\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	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	r15d, 2
	cmp	DWORD PTR -52[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	ebx, eax
	cmp	ebx, 2
	jg	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	eax, 1[rbx]
	sar	eax
	mov	r12d, eax
	movsx	rax, r12d
	mov	rdi, rax
	call	malloc@PLT
	mov	r14, rax
	test	r14, r14
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	movsx	rax, r12d
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, r14
	call	memset@PLT
	mov	ebx, 1
	jmp	.L5
.L9:
	movsx	rax, ebx
	add	rax, r14
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	lea	eax, [rbx+rbx]
	lea	r15d, 1[rax]
	lea	r13d, [rbx+r15]
	jmp	.L7
.L8:
	movsx	rax, r13d
	add	rax, r14
	mov	BYTE PTR [rax], 1
	add	r13d, r15d
.L7:
	cmp	r13d, r12d
	jl	.L8
.L6:
	add	ebx, 1
.L5:
	cmp	ebx, r12d
	jl	.L9
	mov	rdi, r14
	call	free@PLT
	mov	esi, r15d
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	add	rsp, 24
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.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	"588236.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: sieve <number>\012\000"
	.align	2
.LC1:
	.ascii	"Need higher cieling\012\000"
	.align	2
.LC2:
	.ascii	"Not enough memory\012\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.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	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #12
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r6, #2
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L10+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r4, r0
	cmp	r4, #2
	bgt	.L3
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L10+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	add	r3, r4, #1
	asr	r8, r3, #1
	mov	r3, r8
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r5, r3
	cmp	r5, #0
	bne	.L4
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L10+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L4:
	mov	r3, r8
	mov	r2, r3
	mov	r1, #0
	mov	r0, r5
	bl	memset
	mov	r4, #1
	b	.L5
.L9:
	mov	r3, r4
	add	r3, r5, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	lsl	r3, r4, #1
	add	r6, r3, #1
	add	r7, r4, r6
	b	.L7
.L8:
	mov	r3, r7
	add	r3, r5, r3
	mov	r2, #1
	strb	r2, [r3]
	add	r7, r7, r6
.L7:
	cmp	r7, r8
	blt	.L8
.L6:
	add	r4, r4, #1
.L5:
	cmp	r4, r8
	blt	.L9
	mov	r0, r5
	bl	free
	mov	r1, r6
	ldr	r0, .L10+16
	bl	printf
	nop
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L11:
	.align	2
.L10:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
