	.file	"598377.c"
	.intel_syntax noprefix
	.text
	.globl	interval
	.bss
	.align 4
	.type	interval, @object
	.size	interval, 4
interval:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	rand_x
	.align 8
	.type	rand_x, @object
	.size	rand_x, 8
rand_x:
	.zero	8
	.globl	rand_y
	.align 8
	.type	rand_y, @object
	.size	rand_y, 8
rand_y:
	.zero	8
	.globl	origin_dist
	.align 8
	.type	origin_dist, @object
	.size	origin_dist, 8
origin_dist:
	.zero	8
	.globl	pi
	.align 8
	.type	pi, @object
	.size	pi, 8
pi:
	.zero	8
	.globl	circle_points
	.align 4
	.type	circle_points, @object
	.size	circle_points, 4
circle_points:
	.zero	4
	.globl	square_points
	.align 4
	.type	square_points, @object
	.size	square_points, 4
square_points:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"interval is %d\nnumber of threads %d\n"
.LC1:
	.string	"pi value is %lf\n"
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L2
.L7:
	mov	DWORD PTR -104[rbp], 0
	jmp	.L3
.L4:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, runner[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -104[rbp], 1
.L3:
	cmp	DWORD PTR -104[rbp], 9
	jle	.L4
	mov	DWORD PTR -100[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -100[rbp], 1
.L5:
	cmp	DWORD PTR -100[rbp], 9
	jle	.L6
	mov	eax, DWORD PTR i[rip]
	add	eax, 10
	mov	DWORD PTR i[rip], eax
.L2:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 89999
	jle	.L7
	mov	edx, 10
	mov	esi, 300
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR pi[rip]
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	runner
	.type	runner, @function
runner:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 456607819
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 301
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR rand_x[rip], xmm0
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 456607819
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 301
	sub	eax, ecx
	mov	edx, eax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, edx
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR rand_y[rip], xmm0
	movsd	xmm1, QWORD PTR rand_x[rip]
	movsd	xmm0, QWORD PTR rand_x[rip]
	mulsd	xmm1, xmm0
	movsd	xmm2, QWORD PTR rand_y[rip]
	movsd	xmm0, QWORD PTR rand_y[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR origin_dist[rip], xmm0
	movsd	xmm1, QWORD PTR origin_dist[rip]
	movsd	xmm0, QWORD PTR .LC3[rip]
	comisd	xmm0, xmm1
	jb	.L11
	mov	eax, DWORD PTR circle_points[rip]
	add	eax, 1
	mov	DWORD PTR circle_points[rip], eax
.L11:
	mov	eax, DWORD PTR square_points[rip]
	add	eax, 1
	mov	DWORD PTR square_points[rip], eax
	mov	eax, DWORD PTR circle_points[rip]
	sal	eax, 2
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR square_points[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	divsd	xmm0, xmm1
	movsd	QWORD PTR pi[rip], xmm0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	runner, .-runner
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1081262080
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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	"598377.c"
	.text
	.comm	interval,4,4
	.comm	i,4,4
	.comm	rand_x,8,8
	.comm	rand_y,8,8
	.comm	origin_dist,8,8
	.comm	pi,8,8
	.global	circle_points
	.bss
	.align	2
	.type	circle_points, %object
	.size	circle_points, 4
circle_points:
	.space	4
	.global	square_points
	.align	2
	.type	square_points, %object
	.size	square_points, 4
square_points:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"interval is %d\012number of threads %d\012\000"
	.align	2
.LC1:
	.ascii	"pi value is %lf\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 = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, .L10+4
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L7:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L3
.L4:
	sub	r2, fp, #48
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L10+8
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L3:
	ldr	r3, [fp, #-56]
	cmp	r3, #9
	ble	.L4
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L5
.L6:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L5:
	ldr	r3, [fp, #-52]
	cmp	r3, #9
	ble	.L6
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r3, #10
	ldr	r2, .L10+4
	str	r3, [r2]
.L2:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, .L10+12
	cmp	r3, r2
	ble	.L7
	mov	r2, #10
	mov	r1, #300
	ldr	r0, .L10+16
	bl	printf
	ldr	r3, .L10+20
	ldmia	r3, {r2-r3}
	ldr	r0, .L10+24
	bl	printf
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	i
	.word	runner
	.word	89999
	.word	.LC0
	.word	pi
	.word	.LC1
	.size	main, .-main
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dcmple
	.align	2
	.global	runner
	.syntax unified
	.arm
	.fpu softvfp
	.type	runner, %function
runner:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	bl	rand
	ldr	r3, .L16
	smull	r2, r3, r0, r3
	asr	r2, r3, #5
	asr	r3, r0, #31
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #2
	add	r2, r2, r1
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r1, r0, r3
	mov	r0, r1
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L16+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L16+8
	stm	r1, {r2-r3}
	bl	rand
	ldr	r3, .L16
	smull	r2, r3, r0, r3
	asr	r2, r3, #5
	asr	r3, r0, #31
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #2
	add	r2, r2, r1
	lsl	r3, r2, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r1, r0, r3
	mov	r0, r1
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L16+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L16+12
	stm	r1, {r2-r3}
	ldr	r3, .L16+8
	ldmia	r3, {r0-r1}
	ldr	r3, .L16+8
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, .L16+12
	ldmia	r3, {r0-r1}
	ldr	r3, .L16+12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L16+16
	stm	r1, {r2-r3}
	ldr	r3, .L16+16
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L16+20
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L16+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+24
	str	r3, [r2]
.L13:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+28
	str	r3, [r2]
	ldr	r3, .L16+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L16+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L16+32
	stm	r1, {r2-r3}
	nop
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L17:
	.align	2
.L16:
	.word	456607819
	.word	1081262080
	.word	rand_x
	.word	rand_y
	.word	origin_dist
	.word	1072693248
	.word	circle_points
	.word	square_points
	.word	pi
	.size	runner, .-runner
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
