	.file	"9513387.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\n\t\t---------------------------------------------------------------------------"
.LC1:
	.string	"\n\t\t Email : RarchK"
	.align 8
.LC2:
	.string	"\n\t\t Objective : OpenMP Numerical Computation - PI Computation  "
	.align 8
.LC3:
	.string	"\n\t\t Computation of PI using Numerical Integration method ."
	.align 8
.LC4:
	.string	"\n\t\t OpenMP Parallel for directive,Private Clause and Critical Section  "
	.align 8
.LC5:
	.string	"\n\t\t.........................................................................."
.LC6:
	.string	"\t\t Very Few Arguments\n "
	.align 8
.LC7:
	.string	"\t\t Syntax : exec <Threads> <no. of interval>"
	.align 8
.LC8:
	.string	"\n Number of threads should be 1,2,4,8 or 16 for the execution of program. \n"
.LC9:
	.string	"\n\t\t Threads : %d "
	.align 8
.LC10:
	.string	"\n\t\t Number of intervals should be positive integer"
	.align 8
.LC16:
	.string	"\n\t\t Calculated PI               : %1.15lf"
	.align 8
.LC17:
	.string	"\n\t\t Time in Seconds (T)         : %lf"
	.align 8
.LC18:
	.string	"\n\n\t\t   ( T represents the Time taken for computation )"
	.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	cmp	DWORD PTR -132[rbp], 3
	je	.L2
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], 1
	je	.L3
	cmp	DWORD PTR -120[rbp], 2
	je	.L3
	cmp	DWORD PTR -120[rbp], 4
	je	.L3
	cmp	DWORD PTR -120[rbp], 8
	je	.L3
	cmp	DWORD PTR -120[rbp], 16
	je	.L3
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -144[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -116[rbp], 0
	jg	.L4
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -112[rbp], xmm0
	lea	rdx, -64[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gettimeofday@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -116[rbp]
	movsd	xmm0, QWORD PTR .LC12[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -104[rbp], xmm0
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	omp_set_num_threads@PLT
	mov	DWORD PTR -124[rbp], 1
	jmp	.L5
.L6:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -124[rbp]
	movsd	xmm0, QWORD PTR .LC13[rip]
	addsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -104[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
	movsd	xmm0, QWORD PTR -72[rbp]
	movapd	xmm1, xmm0
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC12[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -112[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -112[rbp], xmm0
	add	DWORD PTR -124[rbp], 1
.L5:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jge	.L6
	movsd	xmm0, QWORD PTR -112[rbp]
	mulsd	xmm0, QWORD PTR -104[rbp]
	movsd	QWORD PTR -112[rbp], xmm0
	lea	rdx, -56[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	sub	rax, QWORD PTR -88[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm1, QWORD PTR .LC15[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -80[rbp], xmm0
	mov	rax, QWORD PTR -112[rbp]
	movq	xmm0, rax
	lea	rdi, .LC16[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	movq	xmm0, rax
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC12:
	.long	0
	.long	1072693248
	.align 8
.LC13:
	.long	0
	.long	1071644672
	.align 8
.LC14:
	.long	0
	.long	1074790400
	.align 8
.LC15:
	.long	0
	.long	1093567616
	.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	"9513387.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\011\011---------------------------------------"
	.ascii	"------------------------------------\000"
	.align	2
.LC1:
	.ascii	"\012\011\011 Email : RarchK\000"
	.align	2
.LC2:
	.ascii	"\012\011\011 Objective : OpenMP Numerical Computati"
	.ascii	"on - PI Computation  \000"
	.align	2
.LC3:
	.ascii	"\012\011\011 Computation of PI using Numerical Inte"
	.ascii	"gration method .\000"
	.align	2
.LC4:
	.ascii	"\012\011\011 OpenMP Parallel for directive,Private "
	.ascii	"Clause and Critical Section  \000"
	.align	2
.LC5:
	.ascii	"\012\011\011......................................."
	.ascii	"...................................\000"
	.align	2
.LC6:
	.ascii	"\011\011 Very Few Arguments\012 \000"
	.align	2
.LC7:
	.ascii	"\011\011 Syntax : exec <Threads> <no. of interval>\000"
	.align	2
.LC8:
	.ascii	"\012 Number of threads should be 1,2,4,8 or 16 for "
	.ascii	"the execution of program. \012\000"
	.align	2
.LC9:
	.ascii	"\012\011\011 Threads : %d \000"
	.align	2
.LC10:
	.ascii	"\012\011\011 Number of intervals should be positive"
	.ascii	" integer\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.align	2
.LC11:
	.ascii	"\012\011\011 Calculated PI               : %1.15lf\000"
	.align	2
.LC12:
	.ascii	"\012\011\011 Time in Seconds (T)         : %lf\000"
	.align	2
.LC13:
	.ascii	"\012\012\011\011   ( T represents the Time taken fo"
	.ascii	"r computation )\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L9+4
	bl	printf
	ldr	r0, .L9+8
	bl	printf
	ldr	r0, .L9+4
	bl	printf
	ldr	r0, .L9+12
	bl	printf
	ldr	r0, .L9+16
	bl	printf
	ldr	r0, .L9+20
	bl	printf
	ldr	r0, .L9+24
	bl	puts
	ldr	r3, [fp, #-104]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L9+28
	bl	printf
	ldr	r0, .L9+32
	bl	puts
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-108]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmp	r3, #1
	beq	.L3
	ldr	r3, [fp, #-92]
	cmp	r3, #2
	beq	.L3
	ldr	r3, [fp, #-92]
	cmp	r3, #4
	beq	.L3
	ldr	r3, [fp, #-92]
	cmp	r3, #8
	beq	.L3
	ldr	r3, [fp, #-92]
	cmp	r3, #16
	beq	.L3
	ldr	r0, .L9+36
	bl	puts
	mvn	r0, #0
	bl	exit
.L3:
	ldr	r3, [fp, #-108]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-88]
	ldr	r1, [fp, #-92]
	ldr	r0, .L9+40
	bl	printf
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bgt	.L4
	ldr	r0, .L9+44
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r2, fp, #32
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	gettimeofday
	ldr	r0, [fp, #-88]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L9+48
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r0, [fp, #-92]
	bl	omp_set_num_threads
	mov	r3, #1
	str	r3, [fp, #-96]
	b	.L5
.L6:
	ldr	r0, [fp, #-96]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L9+52
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L9+48
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L9+56
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L5:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	bge	.L6
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	sub	r2, fp, #16
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	gettimeofday
	ldr	r1, [fp, #-24]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-84]
	ldr	r1, [fp, #-40]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-80]
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-80]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L9+60
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+64
	bl	printf
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+68
	bl	printf
	ldr	r0, .L9+72
	bl	printf
	ldr	r0, .L9+24
	bl	puts
	mov	r3, #0
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	1072693248
	.word	1071644672
	.word	1074790400
	.word	1093567616
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
