	.file	"37501.c"
	.intel_syntax noprefix
	.text
	.data
	.align 8
	.type	num_steps, @object
	.size	num_steps, 8
num_steps:
	.quad	100000000
	.globl	step
	.bss
	.align 8
	.type	step, @object
	.size	step, 8
step:
	.zero	8
	.section	.rodata
.LC2:
	.string	" num_threads = %d"
	.align 8
.LC5:
	.string	"\n pi is %f in %f seconds %d thrds \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -88[rbp], xmm0
	mov	rax, QWORD PTR num_steps[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm0, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR step[rip], xmm0
	mov	DWORD PTR -104[rbp], 1
	jmp	.L2
.L8:
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	omp_set_num_threads@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -88[rbp], xmm0
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	mov	QWORD PTR -80[rbp], rax
	call	omp_get_thread_num@PLT
	mov	DWORD PTR -96[rbp], eax
	call	omp_get_num_threads@PLT
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	pxor	xmm0, xmm0
	movsd	QWORD PTR -48[rbp+rax*8], xmm0
	cmp	DWORD PTR -96[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	eax, DWORD PTR -96[rbp]
	mov	DWORD PTR -100[rbp], eax
	jmp	.L4
.L5:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -100[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR step[rip]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movsd	xmm1, QWORD PTR -48[rbp+rax*8]
	movsd	xmm0, QWORD PTR -56[rbp]
	movapd	xmm2, xmm0
	mulsd	xmm2, xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	addsd	xmm2, xmm0
	movsd	xmm0, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movsd	QWORD PTR -48[rbp+rax*8], xmm0
	mov	eax, DWORD PTR -92[rbp]
	add	DWORD PTR -100[rbp], eax
.L4:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR num_steps[rip]
	cmp	rdx, rax
	jl	.L5
	pxor	xmm0, xmm0
	movsd	QWORD PTR -88[rbp], xmm0
	mov	DWORD PTR -108[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	movsd	xmm0, QWORD PTR -48[rbp+rax*8]
	movsd	xmm1, QWORD PTR -88[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -88[rbp], xmm0
	add	DWORD PTR -108[rbp], 1
.L6:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jl	.L7
	movsd	xmm0, QWORD PTR step[rip]
	movsd	xmm1, QWORD PTR -88[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
	call	omp_get_wtime@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	subsd	xmm0, QWORD PTR -80[rbp]
	movsd	QWORD PTR -64[rbp], xmm0
	mov	edx, DWORD PTR -104[rbp]
	movsd	xmm0, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -104[rbp], 1
.L2:
	cmp	DWORD PTR -104[rbp], 4
	jle	.L8
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.align 8
.LC4:
	.long	0
	.long	1074790400
	.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	"37501.c"
	.text
	.data
	.align	2
	.type	num_steps, %object
	.size	num_steps, 4
num_steps:
	.word	100000000
	.comm	step,8,8
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC0:
	.ascii	" num_threads = %d\000"
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.align	2
.LC1:
	.ascii	"\012 pi is %f in %f seconds %d thrds \012\000"
	.align	2
.LC2:
	.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	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L11+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L11+12
	stm	r1, {r2-r3}
	mov	r3, #1
	str	r3, [fp, #-108]
	b	.L2
.L8:
	ldr	r0, [fp, #-108]
	bl	omp_set_num_threads
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	bl	omp_get_wtime
	str	r0, [fp, #-84]
	str	r1, [fp, #-80]
	bl	omp_get_thread_num
	str	r0, [fp, #-100]
	bl	omp_get_num_threads
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r1, r3, #40
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bne	.L3
	ldr	r1, [fp, #-96]
	ldr	r0, .L11+16
	bl	printf
.L3:
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-104]
	b	.L4
.L5:
	ldr	r0, [fp, #-104]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L11+20
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, .L11+12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-100]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #40
	ldmia	r3, {r4-r5}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L11+8
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L11+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-100]
	lsl	r1, r1, #3
	sub	r0, fp, #12
	add	r1, r0, r1
	sub	r1, r1, #40
	stm	r1, {r2-r3}
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-96]
	add	r3, r2, r3
	str	r3, [fp, #-104]
.L4:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L5
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-112]
	b	.L6
.L7:
	ldr	r3, [fp, #-112]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #40
	ldmia	r3, {r2-r3}
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
.L6:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-108]
	cmp	r2, r3
	blt	.L7
	ldr	r3, .L11+12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	bl	omp_get_wtime
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-108]
	str	r3, [sp, #8]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r0, .L11+28
	bl	printf
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L2:
	ldr	r3, [fp, #-108]
	cmp	r3, #4
	ble	.L8
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	num_steps
	.word	1072693248
	.word	step
	.word	.LC0
	.word	1071644672
	.word	1074790400
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
