	.file	"670589.c"
	.intel_syntax noprefix
	.text
	.local	invoc_name
	.comm	invoc_name,8,8
	.section	.rodata
.LC0:
	.string	"1.0"
	.section	.data.rel.local,"aw"
	.align 8
	.type	version_string, @object
	.size	version_string, 8
version_string:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"maximum-number"
.LC2:
	.string	"minimum-number"
.LC3:
	.string	"help"
.LC4:
	.string	"version"
	.section	.data.rel.local
	.align 32
	.type	longopts, @object
	.size	longopts, 160
longopts:
	.quad	.LC1
	.long	1
	.zero	4
	.quad	0
	.long	116
	.zero	4
	.quad	.LC2
	.long	1
	.zero	4
	.quad	0
	.long	108
	.zero	4
	.quad	.LC3
	.long	0
	.zero	4
	.quad	0
	.long	104
	.zero	4
	.quad	.LC4
	.long	0
	.zero	4
	.quad	0
	.long	118
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.section	.rodata
.LC5:
	.string	"%d"
	.align 8
.LC6:
	.string	"Maximum needs to be a number: '%s'\n"
	.align 8
.LC7:
	.string	"Minimum needs to be a number: '%s'\n"
	.align 8
.LC8:
	.string	"Try %s --help for more information\n"
.LC9:
	.string	"t:l:hv"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 2000
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR invoc_name[rip], rax
	jmp	.L2
.L10:
	cmp	DWORD PTR -12[rbp], 118
	je	.L3
	cmp	DWORD PTR -12[rbp], 118
	jg	.L4
	cmp	DWORD PTR -12[rbp], 116
	je	.L5
	cmp	DWORD PTR -12[rbp], 116
	jg	.L4
	cmp	DWORD PTR -12[rbp], 104
	je	.L6
	cmp	DWORD PTR -12[rbp], 108
	je	.L7
	jmp	.L4
.L5:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 1
	je	.L2
	mov	DWORD PTR -24[rbp], 2000
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L2
.L7:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -20[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 1
	je	.L2
	mov	DWORD PTR -24[rbp], 0
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L2
.L6:
	call	usage
	mov	edi, 0
	call	exit@PLT
.L3:
	call	version
	mov	edi, 0
	call	exit@PLT
.L4:
	mov	rdx, QWORD PTR invoc_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rsi, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8d, 0
	lea	rcx, longopts[rip]
	lea	rdx, .LC9[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L10
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	print_primes
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC10:
	.string	"Insufficient memory\n"
.LC11:
	.string	"%d\n"
	.text
	.type	print_primes, @function
print_primes:
.LFB7:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -16[rbp], 2
	jmp	.L15
.L21:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	je	.L22
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L18
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, eax
	mov	DWORD PTR -12[rbp], eax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -12[rbp], eax
.L19:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L20
	jmp	.L17
.L22:
	nop
.L17:
	add	DWORD PTR -16[rbp], 1
.L15:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L21
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_primes, .-print_primes
	.section	.rodata
.LC12:
	.string	"Usage %s [SHORT-OPTION]...\n"
.LC13:
	.string	"   or: %s [LONG-OPTION]...\n"
.LC14:
	.string	"Calculate some prime numbers."
	.align 8
.LC15:
	.string	"    -t, --maximum-number   calculate up to this number"
	.align 8
.LC16:
	.string	"    -l, --minimum-number   calculate from this number"
	.align 8
.LC17:
	.string	"    -h, --help             display this help and exit"
	.align 8
.LC18:
	.string	"    -v, --version          display version information and exit"
	.align 8
.LC19:
	.string	" Default maximum number is %d and the default minimum is %d\n"
	.text
	.type	usage, @function
usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR invoc_name[rip]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR invoc_name[rip]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edx, 0
	mov	esi, 2000
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.section	.rodata
.LC20:
	.string	"Primes v%s\n"
	.text
	.type	version, @function
version:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR version_string[rip]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	version, .-version
	.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	"670589.c"
	.text
	.local	invoc_name
	.comm	invoc_name,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1.0\000"
	.data
	.align	2
	.type	version_string, %object
	.size	version_string, 4
version_string:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"maximum-number\000"
	.align	2
.LC2:
	.ascii	"minimum-number\000"
	.align	2
.LC3:
	.ascii	"help\000"
	.align	2
.LC4:
	.ascii	"version\000"
	.data
	.align	2
	.type	longopts, %object
	.size	longopts, 80
longopts:
	.word	.LC1
	.word	1
	.word	0
	.word	116
	.word	.LC2
	.word	1
	.word	0
	.word	108
	.word	.LC3
	.word	0
	.word	0
	.word	104
	.word	.LC4
	.word	0
	.word	0
	.word	118
	.word	0
	.word	0
	.word	0
	.word	0
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"Maximum needs to be a number: '%s'\012\000"
	.align	2
.LC7:
	.ascii	"Minimum needs to be a number: '%s'\012\000"
	.align	2
.LC8:
	.ascii	"Try %s --help for more information\012\000"
	.align	2
.LC9:
	.ascii	"t:l:hv\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2000
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, .L14+4
	str	r3, [r2]
	b	.L2
.L11:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #104
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L3
	.word	.L4
.L6:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, .L14+12
	mov	r0, r3
	bl	__isoc99_sscanf
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L2
	mov	r3, #2000
	str	r3, [fp, #-24]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r2, .L14+8
	ldr	r2, [r2]
	ldr	r1, .L14+20
	mov	r0, r3
	bl	fprintf
	b	.L2
.L7:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	sub	r2, fp, #20
	ldr	r1, .L14+12
	mov	r0, r3
	bl	__isoc99_sscanf
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L2
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r2, .L14+8
	ldr	r2, [r2]
	ldr	r1, .L14+24
	mov	r0, r3
	bl	fprintf
	b	.L2
.L8:
	bl	usage
	mov	r0, #0
	bl	exit
.L4:
	bl	version
	mov	r0, #0
	bl	exit
.L3:
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r2, .L14+4
	ldr	r2, [r2]
	ldr	r1, .L14+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L14+32
	ldr	r2, .L14+36
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt_long
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L11
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	print_primes
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC10
	.word	invoc_name
	.word	optarg
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	longopts
	.word	.LC9
	.size	main, .-main
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Insufficient memory\012\000"
	.align	2
.LC12:
	.ascii	"%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_primes, %function
print_primes:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L26+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L18
.L24:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L25
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L21
	ldr	r1, [fp, #-16]
	ldr	r0, .L26+8
	bl	printf
.L21:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L22
.L23:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L22:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L23
	b	.L20
.L25:
	nop
.L20:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L24
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	stderr
	.word	.LC11
	.word	.LC12
	.size	print_primes, .-print_primes
	.section	.rodata
	.align	2
.LC13:
	.ascii	"Usage %s [SHORT-OPTION]...\012\000"
	.align	2
.LC14:
	.ascii	"   or: %s [LONG-OPTION]...\012\000"
	.align	2
.LC15:
	.ascii	"Calculate some prime numbers.\000"
	.align	2
.LC16:
	.ascii	"    -t, --maximum-number   calculate up to this num"
	.ascii	"ber\000"
	.align	2
.LC17:
	.ascii	"    -l, --minimum-number   calculate from this numb"
	.ascii	"er\000"
	.align	2
.LC18:
	.ascii	"    -h, --help             display this help and ex"
	.ascii	"it\000"
	.align	2
.LC19:
	.ascii	"    -v, --version          display version informat"
	.ascii	"ion and exit\000"
	.align	2
.LC20:
	.ascii	" Default maximum number is %d and the default minim"
	.ascii	"um is %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+4
	bl	printf
	ldr	r3, .L29
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+8
	bl	printf
	ldr	r0, .L29+12
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, .L29+16
	bl	puts
	ldr	r0, .L29+20
	bl	puts
	ldr	r0, .L29+24
	bl	puts
	ldr	r0, .L29+28
	bl	puts
	mov	r0, #10
	bl	putchar
	mov	r2, #0
	mov	r1, #2000
	ldr	r0, .L29+32
	bl	printf
	nop
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	invoc_name
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC21:
	.ascii	"Primes v%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	version, %function
version:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+4
	bl	printf
	nop
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	version_string
	.word	.LC21
	.size	version, .-version
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
