	.file	"1153669.c"
	.intel_syntax noprefix
	.text
	.globl	MAX_SIZE
	.section	.rodata
	.align 8
	.type	MAX_SIZE, @object
	.size	MAX_SIZE, 8
MAX_SIZE:
	.quad	1000000
	.text
	.globl	prime
	.type	prime, @function
prime:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -24[rbp], 3
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	add	QWORD PTR -24[rbp], 2
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1000000
	cmp	rax, rdx
	jbe	.L3
	mov	QWORD PTR -16[rbp], 3
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L5
	mov	rax, QWORD PTR -16[rbp]
	imul	rax, rax
	mov	QWORD PTR -8[rbp], rax
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	add	QWORD PTR -8[rbp], rax
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 1000000
	cmp	rax, rdx
	jbe	.L7
.L5:
	add	QWORD PTR -16[rbp], 2
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 1000000
	cmp	rax, rdx
	jbe	.L8
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 8
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], 0
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	prime, .-prime
	.globl	count
	.type	count, @function
count:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L11
	add	DWORD PTR -8[rbp], 1
.L11:
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L12
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	count, .-count
	.section	.rodata
.LC0:
	.string	"Test Case 1..."
.LC1:
	.string	"the_stack_data/1153669.c"
.LC2:
	.string	"count(arr,size)==4"
.LC3:
	.string	"Passed"
	.text
	.type	test, @function
test:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -3997696[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4000036[rbp], 10
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4000032[rbp]
	mov	edx, 4000020
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -4000032[rbp]
	mov	rdi, rax
	call	prime
	mov	edx, DWORD PTR -4000036[rbp]
	lea	rax, -4000032[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	count
	cmp	eax, 4
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 63
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L15:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	test, .-test
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	test
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"test"
	.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	"1153669.c"
	.text
	.global	MAX_SIZE
	.section	.rodata
	.align	3
	.type	MAX_SIZE, %object
	.size	MAX_SIZE, 8
MAX_SIZE:
	.word	1000000
	.word	0
	.text
	.align	2
	.global	prime
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime, %function
prime:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #36
	str	r0, [fp, #-56]
	mov	r2, #3
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L2
.L3:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r8, r2, #2
	adc	r9, r3, #0
	str	r8, [fp, #-52]
	str	r9, [fp, #-48]
.L2:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L9
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L3
	mov	r2, #3
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L4
.L8:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L5
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-44]
	mul	r3, r1, r3
	add	r0, r2, r3
	ldr	r1, [fp, #-44]
	umull	r2, r3, r1, r1
	add	r1, r0, r3
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L6
.L7:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
.L6:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L9
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L7
.L5:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r6, r2, #2
	adc	r7, r3, #0
	str	r6, [fp, #-44]
	str	r7, [fp, #-40]
.L4:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L9
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L8
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	str	r2, [r3]
	nop
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
.L10:
	.align	2
.L9:
	.word	1000000
	.size	prime, .-prime
	.align	2
	.global	count
	.syntax unified
	.arm
	.fpu softvfp
	.type	count, %function
count:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L12
.L14:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L13
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L14
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	count, .-count
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Test Case 1...\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/1153669.c\000"
	.align	2
.LC2:
	.ascii	"count(arr,size)==4\000"
	.align	2
.LC3:
	.ascii	"Passed\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test, %function
test:
	@ args = 0, pretend = 0, frame = 4000032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3997696
	sub	sp, sp, #2336
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #10
	str	r3, [r2, #-2332]
	ldr	r0, .L19+4
	bl	printf
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	sub	r3, r3, #2320
	sub	r3, r3, #8
	ldr	r2, .L19+8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L19+12
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r0, r3
	bl	prime
	sub	r3, fp, #3997696
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r3, .L19+12
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r2, #-2332]
	mov	r0, r3
	bl	count
	mov	r3, r0
	cmp	r3, #4
	beq	.L17
	ldr	r3, .L19+16
	mov	r2, #63
	ldr	r1, .L19+20
	ldr	r0, .L19+24
	bl	__assert_fail
.L17:
	ldr	r0, .L19+28
	bl	puts
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	.LC0
	.word	4000020
	.word	-4000024
	.word	__PRETTY_FUNCTION__.5158
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	test, .-test
	.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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	bl	test
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5158, %object
	.size	__PRETTY_FUNCTION__.5158, 5
__PRETTY_FUNCTION__.5158:
	.ascii	"test\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
