	.file	"298589.c"
	.intel_syntax noprefix
	.text
	.globl	sieve
	.bss
	.align 32
	.type	sieve, @object
	.size	sieve, 1000005
sieve:
	.zero	1000005
	.section	.rodata
	.align 8
.LC0:
	.string	"Task 13!\nPlease input 'a' or 'b'!"
.LC1:
	.string	"%c"
	.align 8
.LC2:
	.string	"Not valid!\nPlease input 'a' or 'b'!"
	.text
	.globl	printConsole
	.type	printConsole, @function
printConsole:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L4:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 97
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 98
	jne	.L4
.L5:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printConsole, .-printConsole
	.section	.rodata
.LC3:
	.string	"n = "
.LC4:
	.string	"%d"
	.text
	.globl	readArray
	.type	readArray, @function
readArray:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3200
	mov	QWORD PTR -40056[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40032[rbp]
	add	rax, 40020
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40036[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -40036[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, -40032[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -40036[rbp], 1
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -40036[rbp], eax
	jl	.L8
	mov	rax, QWORD PTR -40056[rbp]
	mov	rcx, rax
	lea	rax, -40032[rbp]
	mov	edx, 40024
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rax, QWORD PTR -40056[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readArray, .-readArray
	.section	.rodata
.LC5:
	.string	"%d "
	.text
	.globl	printArray
	.type	printArray, @function
printArray:
.LFB8:
	.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], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L12:
	mov	eax, DWORD PTR 40036[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L13
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	printArray, .-printArray
	.globl	sameDigits
	.type	sameDigits, @function
sameDigits:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	DWORD PTR -120[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -96[rbp]
	mov	edx, 40
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -48[rbp]
	mov	edx, 40
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L15
.L16:
	mov	ecx, DWORD PTR -116[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	movsx	rax, edx
	mov	eax, DWORD PTR -96[rbp+rax*4]
	lea	ecx, 1[rax]
	movsx	rax, edx
	mov	DWORD PTR -96[rbp+rax*4], ecx
	mov	eax, DWORD PTR -116[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -116[rbp], eax
.L15:
	cmp	DWORD PTR -116[rbp], 0
	jne	.L16
	jmp	.L17
.L18:
	mov	ecx, DWORD PTR -120[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	movsx	rax, edx
	mov	eax, DWORD PTR -48[rbp+rax*4]
	lea	ecx, 1[rax]
	movsx	rax, edx
	mov	DWORD PTR -48[rbp+rax*4], ecx
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -120[rbp], eax
.L17:
	cmp	DWORD PTR -120[rbp], 0
	jne	.L18
	mov	DWORD PTR -100[rbp], 0
	jmp	.L19
.L24:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	test	eax, eax
	jne	.L20
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jne	.L21
.L20:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	jne	.L22
.L21:
	mov	eax, 0
	jmp	.L25
.L22:
	add	DWORD PTR -100[rbp], 1
.L19:
	cmp	DWORD PTR -100[rbp], 9
	jle	.L24
	mov	eax, 1
.L25:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sameDigits, .-sameDigits
	.globl	solveB
	.type	solveB, @function
solveB:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -36864[rsp]
.LPSRL1:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL1
	sub	rsp, 3200
	mov	QWORD PTR -40056[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40048[rbp], 0
	mov	DWORD PTR -40044[rbp], 1
	mov	DWORD PTR -40040[rbp], 0
	jmp	.L28
.L33:
	mov	eax, DWORD PTR -40048[rbp]
	mov	DWORD PTR -40036[rbp], eax
	jmp	.L29
.L31:
	add	DWORD PTR -40036[rbp], 1
.L29:
	mov	eax, DWORD PTR -40036[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR 40036[rbp]
	cmp	edx, eax
	jge	.L30
	mov	eax, DWORD PTR -40036[rbp]
	add	eax, 1
	cdqe
	mov	edx, DWORD PTR 16[rbp+rax*4]
	mov	eax, DWORD PTR -40036[rbp]
	cdqe
	mov	eax, DWORD PTR 16[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	sameDigits
	cmp	eax, 1
	je	.L31
.L30:
	mov	eax, DWORD PTR -40036[rbp]
	sub	eax, DWORD PTR -40048[rbp]
	cmp	DWORD PTR -40044[rbp], eax
	jg	.L32
	mov	eax, DWORD PTR -40036[rbp]
	sub	eax, DWORD PTR -40048[rbp]
	add	eax, 1
	mov	DWORD PTR -40044[rbp], eax
	mov	eax, DWORD PTR -40048[rbp]
	mov	DWORD PTR -40040[rbp], eax
.L32:
	mov	eax, DWORD PTR -40036[rbp]
	add	eax, 1
	mov	DWORD PTR -40048[rbp], eax
.L28:
	mov	eax, DWORD PTR 40036[rbp]
	cmp	DWORD PTR -40048[rbp], eax
	jl	.L33
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -40040[rbp]
	mov	DWORD PTR -40048[rbp], eax
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	mov	edx, DWORD PTR -40048[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR 16[rbp+rdx*4]
	cdqe
	mov	DWORD PTR -40032[rbp+rax*4], edx
	add	DWORD PTR -40048[rbp], 1
.L34:
	mov	edx, DWORD PTR -40040[rbp]
	mov	eax, DWORD PTR -40044[rbp]
	add	eax, edx
	cmp	DWORD PTR -40048[rbp], eax
	jl	.L35
	mov	rax, QWORD PTR -40056[rbp]
	mov	rcx, rax
	lea	rax, -40032[rbp]
	mov	edx, 40024
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	mov	rax, QWORD PTR -40056[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	solveB, .-solveB
	.globl	sieveBuild
	.type	sieveBuild, @function
sieveBuild:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	BYTE PTR sieve[rip+1], 1
	movzx	eax, BYTE PTR sieve[rip+1]
	mov	BYTE PTR sieve[rip], al
	mov	DWORD PTR -8[rbp], 2
	jmp	.L39
.L43:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, sieve[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L40
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	mov	DWORD PTR -4[rbp], eax
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, sieve[rip]
	mov	BYTE PTR [rax+rdx], 1
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
.L41:
	cmp	DWORD PTR -4[rbp], 1000004
	jle	.L42
.L40:
	add	DWORD PTR -8[rbp], 1
.L39:
	cmp	DWORD PTR -8[rbp], 1000004
	jle	.L43
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sieveBuild, .-sieveBuild
	.globl	prime
	.type	prime, @function
prime:
.LFB12:
	.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
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, sieve[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 1
	jne	.L45
	mov	eax, 0
	jmp	.L46
.L45:
	mov	eax, 1
.L46:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	prime, .-prime
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB13:
	.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], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 0
	jne	.L48
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L49
.L48:
	mov	eax, DWORD PTR -4[rbp]
	cdq
	idiv	DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	gcd, .-gcd
	.globl	special
	.type	special, @function
special:
.LFB14:
	.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 -4[rbp], 2
	jmp	.L51
.L54:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	gcd
	cmp	eax, 1
	jne	.L52
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	prime
	test	eax, eax
	jne	.L52
	mov	eax, 0
	jmp	.L53
.L52:
	add	DWORD PTR -4[rbp], 1
.L51:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L54
	mov	eax, 1
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	special, .-special
	.globl	solveA
	.type	solveA, @function
solveA:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -36864[rsp]
.LPSRL2:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL2
	sub	rsp, 3200
	mov	QWORD PTR -40056[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40040[rbp], 0
	mov	DWORD PTR -40036[rbp], 2
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -40040[rbp], 0
	jmp	.L56
.L58:
	add	DWORD PTR -40036[rbp], 1
.L57:
	mov	eax, DWORD PTR -40036[rbp]
	mov	edi, eax
	call	special
	test	eax, eax
	je	.L58
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -12[rbp], edx
	cdqe
	mov	edx, DWORD PTR -40036[rbp]
	mov	DWORD PTR -40032[rbp+rax*4], edx
	add	DWORD PTR -40036[rbp], 1
	add	DWORD PTR -40040[rbp], 1
.L56:
	cmp	DWORD PTR -40040[rbp], 8
	jle	.L57
	mov	rax, QWORD PTR -40056[rbp]
	mov	rcx, rax
	lea	rax, -40032[rbp]
	mov	edx, 40024
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	mov	rax, QWORD PTR -40056[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	solveA, .-solveA
	.section	.rodata
.LC6:
	.string	"%d\n"
.LC7:
	.string	"Task (a):"
.LC8:
	.string	"Task (b):"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.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, -77824[rsp]
.LPSRL3:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL3
	sub	rsp, 2264
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 3
	call	special
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -80081[rbp]
	mov	rdi, rax
	call	printConsole
	movzx	eax, BYTE PTR -80081[rbp]
	cmp	al, 97
	jne	.L63
	mov	eax, 0
	call	sieveBuild
	lea	rax, -40048[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	solveA
	lea	rdi, .LC7[rip]
	call	puts@PLT
	sub	rsp, 8
	sub	rsp, 40024
	mov	rax, rsp
	mov	rcx, rax
	lea	rax, -40048[rbp]
	mov	edx, 40024
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	call	printArray
	add	rsp, 40032
	jmp	.L64
.L63:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -80080[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	readArray
	lea	rbx, -40048[rbp]
	sub	rsp, 8
	sub	rsp, 40024
	mov	rax, rsp
	mov	rcx, rax
	lea	rax, -80080[rbp]
	mov	edx, 40024
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rdi, rbx
	call	solveB
	add	rsp, 40032
	sub	rsp, 8
	sub	rsp, 40024
	mov	rax, rsp
	mov	rcx, rax
	lea	rax, -40048[rbp]
	mov	edx, 40024
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	call	printArray
	add	rsp, 40032
.L64:
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	"298589.c"
	.text
	.comm	sieve,1000005,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Task 13!\012Please input 'a' or 'b'!\000"
	.align	2
.LC1:
	.ascii	"%c\000"
	.align	2
.LC2:
	.ascii	"Not valid!\012Please input 'a' or 'b'!\000"
	.text
	.align	2
	.global	printConsole
	.syntax unified
	.arm
	.fpu softvfp
	.type	printConsole, %function
printConsole:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L6
	bl	puts
	ldr	r1, [fp, #-8]
	ldr	r0, .L6+4
	bl	__isoc99_scanf
	b	.L2
.L4:
	ldr	r0, .L6+8
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L6+4
	bl	__isoc99_scanf
.L2:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	beq	.L5
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L4
.L5:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	printConsole, .-printConsole
	.section	.rodata
	.align	2
.LC3:
	.ascii	"n = \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	readArray, %function
readArray:
	@ args = 0, pretend = 0, frame = 40040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #39936
	sub	sp, sp, #104
	sub	r3, fp, #36864
	sub	r3, r3, #4
	str	r0, [r3, #-3172]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	printf
	sub	r3, fp, #39936
	sub	r3, r3, #4
	sub	r3, r3, #92
	add	r3, r3, #39936
	add	r3, r3, #84
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3168]
	b	.L9
.L10:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3168]
	lsl	r2, r3, #2
	sub	r3, fp, #39936
	sub	r3, r3, #4
	sub	r3, r3, #92
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3168]
	add	r3, r3, #1
	str	r3, [r2, #-3168]
.L9:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	add	r3, r3, #32768
	ldr	r3, [r3, #4088]
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3168]
	cmp	r2, r3
	blt	.L10
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3172]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r0, r2
	sub	r3, r3, #3152
	sub	r3, r3, #12
	ldr	r2, .L13+12
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r0, [r3, #-3172]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.word	40024
	.size	readArray, .-readArray
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%d \000"
	.text
	.align	2
	.global	printArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	printArray, %function
printArray:
	@ args = 40024, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, fp, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L18
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L16:
	add	r3, fp, #36864
	add	r3, r3, #4
	ldr	r3, [r3, #3156]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L17
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L19:
	.align	2
.L18:
	.word	.LC6
	.size	printArray, .-printArray
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sameDigits
	.syntax unified
	.arm
	.fpu softvfp
	.type	sameDigits, %function
sameDigits:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #88
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #48
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L21
.L22:
	ldr	r1, [fp, #-96]
	ldr	r3, .L33+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-84]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-84]
	ldr	r3, [fp, #-96]
	ldr	r2, .L33+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-96]
.L21:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L22
	b	.L23
.L24:
	ldr	r1, [fp, #-100]
	ldr	r3, .L33+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-44]
	ldr	r3, [fp, #-100]
	ldr	r2, .L33+4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-100]
.L23:
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L24
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L25
.L30:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bne	.L27
.L26:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bne	.L28
.L27:
	mov	r3, #0
	b	.L31
.L28:
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L25:
	ldr	r3, [fp, #-92]
	cmp	r3, #9
	ble	.L30
	mov	r3, #1
.L31:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC7
	.word	1717986919
	.size	sameDigits, .-sameDigits
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	solveB
	.syntax unified
	.arm
	.fpu softvfp
	.type	solveB, %function
solveB:
	@ args = 40028, pretend = 16, frame = 40056
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #39936
	sub	sp, sp, #120
	sub	ip, fp, #36864
	sub	ip, ip, #4
	str	r0, [ip, #-3188]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3180]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3176]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3172]
	b	.L36
.L41:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3180]
	str	r3, [r2, #-3168]
	b	.L37
.L39:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3168]
	add	r3, r3, #1
	str	r3, [r2, #-3168]
.L37:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3168]
	add	r2, r3, #1
	add	r3, fp, #36864
	add	r3, r3, #4
	ldr	r3, [r3, #3160]
	cmp	r2, r3
	bge	.L38
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3168]
	lsl	r3, r3, #2
	add	r2, fp, #4
	add	r3, r2, r3
	ldr	r0, [r3, #4]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3168]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	bl	sameDigits
	mov	r3, r0
	cmp	r3, #1
	beq	.L39
.L38:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r2, #-3168]
	ldr	r3, [r3, #-3180]
	sub	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3176]
	cmp	r2, r3
	bgt	.L40
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r2, #-3168]
	ldr	r3, [r3, #-3180]
	sub	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #4
	add	r3, r3, #1
	str	r3, [r2, #-3176]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3180]
	str	r3, [r2, #-3172]
.L40:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3168]
	add	r3, r3, #1
	str	r3, [r2, #-3180]
.L36:
	add	r3, fp, #36864
	add	r3, r3, #4
	ldr	r3, [r3, #3160]
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3180]
	cmp	r2, r3
	blt	.L41
	sub	r3, fp, #36864
	sub	r3, r3, #4
	add	r3, r3, #32768
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #4088]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3172]
	str	r3, [r2, #-3180]
	b	.L42
.L43:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	add	r3, r3, #32768
	ldr	r2, [r3, #4088]
	add	r3, r2, #1
	sub	r1, fp, #36864
	sub	r1, r1, #4
	add	r1, r1, #32768
	str	r3, [r1, #4088]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3180]
	lsl	r3, r3, #2
	add	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #4]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-3164]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3180]
	add	r3, r3, #1
	str	r3, [r2, #-3180]
.L42:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r2, #-3172]
	ldr	r3, [r3, #-3176]
	add	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3180]
	cmp	r2, r3
	blt	.L43
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3188]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r0, r2
	sub	r3, r3, #3152
	sub	r3, r3, #12
	ldr	r2, .L46+4
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r0, [r3, #-3188]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L47:
	.align	2
.L46:
	.word	.LC8
	.word	40024
	.size	solveB, .-solveB
	.align	2
	.global	sieveBuild
	.syntax unified
	.arm
	.fpu softvfp
	.type	sieveBuild, %function
sieveBuild:
	@ 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
	ldr	r3, .L54
	mov	r2, #1
	strb	r2, [r3, #1]
	ldr	r3, .L54
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, .L54
	strb	r2, [r3]
	mov	r3, #2
	str	r3, [fp, #-12]
	b	.L49
.L53:
	ldr	r2, .L54
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L50
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L51
.L52:
	ldr	r2, .L54
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L51:
	ldr	r3, [fp, #-8]
	ldr	r2, .L54+4
	cmp	r3, r2
	ble	.L52
.L50:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L49:
	ldr	r3, [fp, #-12]
	ldr	r2, .L54+4
	cmp	r3, r2
	ble	.L53
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L55:
	.align	2
.L54:
	.word	sieve
	.word	1000004
	.size	sieveBuild, .-sieveBuild
	.align	2
	.global	prime
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime, %function
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	r2, .L59
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L57
	mov	r3, #0
	b	.L58
.L57:
	mov	r3, #1
.L58:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L60:
	.align	2
.L59:
	.word	sieve
	.size	prime, .-prime
	.global	__aeabi_idivmod
	.align	2
	.global	gcd
	.syntax unified
	.arm
	.fpu softvfp
	.type	gcd, %function
gcd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L62
	ldr	r3, [fp, #-8]
	b	.L63
.L62:
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	gcd
	mov	r3, r0
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gcd, .-gcd
	.align	2
	.global	special
	.syntax unified
	.arm
	.fpu softvfp
	.type	special, %function
special:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L65
.L68:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	gcd
	mov	r3, r0
	cmp	r3, #1
	bne	.L66
	ldr	r0, [fp, #-8]
	bl	prime
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	mov	r3, #0
	b	.L67
.L66:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L65:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L68
	mov	r3, #1
.L67:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	special, .-special
	.section	.rodata
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	solveA
	.syntax unified
	.arm
	.fpu softvfp
	.type	solveA, %function
solveA:
	@ args = 0, pretend = 0, frame = 40048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #39936
	sub	sp, sp, #112
	sub	r3, fp, #36864
	sub	r3, r3, #4
	str	r0, [r3, #-3180]
	ldr	r3, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3172]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-3168]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	add	r3, r3, #32768
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #4088]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3172]
	b	.L70
.L72:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3168]
	add	r3, r3, #1
	str	r3, [r2, #-3168]
.L71:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r0, [r3, #-3168]
	bl	special
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	sub	r3, fp, #36864
	sub	r3, r3, #4
	add	r3, r3, #32768
	ldr	r3, [r3, #4088]
	add	r2, r3, #1
	sub	r1, fp, #36864
	sub	r1, r1, #4
	add	r1, r1, #32768
	str	r2, [r1, #4088]
	sub	r2, fp, #36864
	sub	r2, r2, #4
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r2, fp, #36864
	sub	r2, r2, #4
	ldr	r2, [r2, #-3168]
	str	r2, [r3, #-3164]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3168]
	add	r3, r3, #1
	str	r3, [r2, #-3168]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3172]
	add	r3, r3, #1
	str	r3, [r2, #-3172]
.L70:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r3, [r3, #-3172]
	cmp	r3, #8
	ble	.L71
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r2, [r3, #-3180]
	sub	r3, fp, #36864
	sub	r3, r3, #4
	mov	r0, r2
	sub	r3, r3, #3152
	sub	r3, r3, #12
	ldr	r2, .L76+4
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L76
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	sub	r3, fp, #36864
	sub	r3, r3, #4
	ldr	r0, [r3, #-3180]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC9
	.word	40024
	.size	solveA, .-solveA
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%d\012\000"
	.align	2
.LC11:
	.ascii	"Task (a):\000"
	.align	2
.LC12:
	.ascii	"Task (b):\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #119808
	sub	sp, sp, #264
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #3
	bl	special
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L83+4
	bl	printf
	sub	r3, fp, #79872
	sub	r3, r3, #12
	sub	r3, r3, #181
	mov	r0, r3
	bl	printConsole
	sub	r3, fp, #77824
	sub	r3, r3, #12
	ldrb	r3, [r3, #-2229]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L79
	bl	sieveBuild
	sub	r3, fp, #36864
	sub	r3, r3, #12
	sub	r3, r3, #3152
	sub	r3, r3, #12
	mov	r0, r3
	bl	solveA
	ldr	r0, .L83+8
	bl	puts
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, sp
	sub	r3, r4, #3136
	sub	r3, r3, #12
	ldr	r2, .L83+12
	mov	r1, r3
	bl	memcpy
	sub	r3, r4, #3152
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2, r3}
	bl	printArray
	b	.L80
.L79:
	ldr	r0, .L83+16
	bl	puts
	sub	r3, fp, #77824
	sub	r3, r3, #12
	sub	r3, r3, #2224
	sub	r3, r3, #4
	mov	r0, r3
	bl	readArray
	sub	r3, fp, #36864
	sub	r3, r3, #12
	sub	r4, r3, #3152
	sub	r4, r4, #12
	sub	r3, fp, #77824
	sub	r3, r3, #12
	mov	r5, r3
	mov	r0, sp
	sub	r3, r5, #2208
	sub	r3, r3, #8
	ldr	r2, .L83+20
	mov	r1, r3
	bl	memcpy
	sub	r3, r5, #2224
	sub	r3, r3, #4
	ldm	r3, {r1, r2, r3}
	mov	r0, r4
	bl	solveB
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, sp
	sub	r3, r4, #3136
	sub	r3, r3, #12
	ldr	r2, .L83+12
	mov	r1, r3
	bl	memcpy
	sub	r3, r4, #3152
	sub	r3, r3, #12
	ldm	r3, {r0, r1, r2, r3}
	bl	printArray
.L80:
	mov	r3, #0
	ldr	r2, .L83
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC13
	.word	.LC10
	.word	.LC11
	.word	40008
	.word	.LC12
	.word	40012
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
