	.file	"3927.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"PRIME_OPENMP"
.LC1:
	.string	"  C/OpenMP version"
	.align 8
.LC2:
	.string	"  Number of processors available = %d\n"
	.align 8
.LC3:
	.string	"  Number of threads =              %d\n"
.LC4:
	.string	"  Normal end of execution."
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	call	omp_get_num_procs@PLT
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	call	omp_get_max_threads@PLT
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 500
	mov	DWORD PTR -4[rbp], 2
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	prime_number_sweep
	mov	DWORD PTR -12[rbp], 5
	mov	DWORD PTR -8[rbp], 500000
	mov	DWORD PTR -4[rbp], 10
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"TEST01"
	.align 8
.LC6:
	.string	"  Call PRIME_NUMBER to count the primes from 1 to N."
	.align 8
.LC7:
	.string	"         N        Pi          Time"
.LC8:
	.string	"  %8d  %8d  %14f\n"
	.text
	.globl	prime_number_sweep
	.type	prime_number_sweep, @function
prime_number_sweep:
.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	DWORD PTR -28[rbp], edx
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L4
.L5:
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	prime_number
	mov	DWORD PTR -12[rbp], eax
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -16[rbp], eax
.L4:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jle	.L5
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	prime_number_sweep, .-prime_number_sweep
	.globl	prime_number
	.type	prime_number, @function
prime_number:
.LFB8:
	.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 -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -16[rbp], 2
	jmp	.L8
.L13:
	mov	DWORD PTR -8[rbp], 1
	mov	DWORD PTR -12[rbp], 2
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -16[rbp]
	cdq
	idiv	DWORD PTR -12[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L10
	mov	DWORD PTR -8[rbp], 0
	jmp	.L11
.L10:
	add	DWORD PTR -12[rbp], 1
.L9:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L12
.L11:
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
	add	DWORD PTR -16[rbp], 1
.L8:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L13
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	prime_number, .-prime_number
	.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	"3927.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"PRIME_OPENMP\000"
	.align	2
.LC1:
	.ascii	"  C/OpenMP version\000"
	.align	2
.LC2:
	.ascii	"  Number of processors available = %d\012\000"
	.align	2
.LC3:
	.ascii	"  Number of threads =              %d\012\000"
	.align	2
.LC4:
	.ascii	"  Normal end of execution.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r0, #10
	bl	putchar
	ldr	r0, .L3
	bl	puts
	ldr	r0, .L3+4
	bl	puts
	mov	r0, #10
	bl	putchar
	bl	omp_get_num_procs
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L3+8
	bl	printf
	bl	omp_get_max_threads
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L3+12
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #500
	str	r3, [fp, #-12]
	mov	r3, #2
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	prime_number_sweep
	mov	r3, #5
	str	r3, [fp, #-16]
	ldr	r3, .L3+16
	str	r3, [fp, #-12]
	mov	r3, #10
	str	r3, [fp, #-8]
	mov	r0, #10
	bl	putchar
	ldr	r0, .L3
	bl	puts
	ldr	r0, .L3+20
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	500000
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"TEST01\000"
	.align	2
.LC6:
	.ascii	"  Call PRIME_NUMBER to count the primes from 1 to N"
	.ascii	".\000"
	.align	2
.LC7:
	.ascii	"         N        Pi          Time\000"
	.global	__aeabi_dsub
	.align	2
.LC8:
	.ascii	"  %8d  %8d  %14f\012\000"
	.text
	.align	2
	.global	prime_number_sweep
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime_number_sweep, %function
prime_number_sweep:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r0, #10
	bl	putchar
	ldr	r0, .L9
	bl	puts
	ldr	r0, .L9+4
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, .L9+8
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	b	.L6
.L7:
	bl	omp_get_wtime
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	prime_number
	str	r0, [fp, #-16]
	bl	omp_get_wtime
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, .L9+12
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	mul	r3, r2, r3
	str	r3, [fp, #-20]
.L6:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L7
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	prime_number_sweep, .-prime_number_sweep
	.global	__aeabi_idivmod
	.align	2
	.global	prime_number
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime_number, %function
prime_number:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L12
.L17:
	mov	r3, #1
	str	r3, [fp, #-12]
	mov	r3, #2
	str	r3, [fp, #-16]
	b	.L13
.L16:
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L15
.L14:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L16
.L15:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L12:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L17
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	prime_number, .-prime_number
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
