	.file	"497023.c"
	.intel_syntax noprefix
	.text
	.globl	myadd
	.type	myadd, @function
myadd:
.LFB0:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm1, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movss	xmm0, DWORD PTR [rax]
	addss	xmm0, xmm1
	mov	rax, QWORD PTR -8[rbp]
	movss	DWORD PTR [rax], xmm0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	myadd, .-myadd
	.section	.rodata
.LC0:
	.string	"Starting PI..."
	.align 8
.LC7:
	.string	" x = %9.6f    y = %12.2f  low = %8d j = %7d\n"
	.align 8
.LC10:
	.string	"Pi = %9.6f ztot = %12.2f itot = %8d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	pxor	xmm0, xmm0
	movss	DWORD PTR -84[rbp], xmm0
	mov	QWORD PTR -48[rbp], 1
	mov	QWORD PTR -40[rbp], 1907
	movss	xmm0, DWORD PTR .LC2[rip]
	movss	DWORD PTR -76[rbp], xmm0
	movss	xmm0, DWORD PTR .LC3[rip]
	movss	DWORD PTR -64[rbp], xmm0
	movss	xmm0, DWORD PTR .LC4[rip]
	movss	DWORD PTR -60[rbp], xmm0
	mov	QWORD PTR -24[rbp], 40000000
	mov	QWORD PTR -32[rbp], 1
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -40[rbp]
	imul	rax, rax, 27611
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	movabs	rdx, 8126358305087380011
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 15
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 74383
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, QWORD PTR -40[rbp]
	movss	xmm1, DWORD PTR .LC5[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -72[rbp], xmm0
	movss	xmm0, DWORD PTR -64[rbp]
	mulss	xmm0, DWORD PTR -76[rbp]
	movss	DWORD PTR -52[rbp], xmm0
	movss	xmm0, DWORD PTR -52[rbp]
	divss	xmm0, DWORD PTR -60[rbp]
	cvttss2si	rax, xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movaps	xmm1, xmm0
	mulss	xmm1, DWORD PTR -60[rbp]
	movss	xmm0, DWORD PTR -52[rbp]
	subss	xmm0, xmm1
	movss	DWORD PTR -76[rbp], xmm0
	movss	xmm0, DWORD PTR -76[rbp]
	divss	xmm0, DWORD PTR -60[rbp]
	movss	DWORD PTR -68[rbp], xmm0
	movss	xmm0, DWORD PTR -72[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR -68[rbp]
	mulss	xmm0, xmm0
	addss	xmm0, xmm1
	movss	DWORD PTR -80[rbp], xmm0
	lea	rdx, -80[rbp]
	lea	rax, -84[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	myadd
	movss	xmm1, DWORD PTR -80[rbp]
	movss	xmm0, DWORD PTR .LC6[rip]
	comiss	xmm0, xmm1
	jb	.L4
	add	QWORD PTR -48[rbp], 1
.L4:
	add	QWORD PTR -32[rbp], 1
.L3:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jle	.L6
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, eax
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -68[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -72[rbp]
	movq	rax, xmm2
	mov	esi, ecx
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 2
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, QWORD PTR -48[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, QWORD PTR -24[rbp]
	cvtss2sd	xmm1, xmm1
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -56[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, eax
	movss	xmm0, DWORD PTR -84[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	pxor	xmm0, xmm0
	mulsd	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -56[rbp]
	movq	rax, xmm3
	mov	esi, edx
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 2
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC2:
	.long	1169532928
	.align 4
.LC3:
	.long	1151557632
	.align 4
.LC4:
	.long	1168832512
	.align 4
.LC5:
	.long	1200703360
	.align 4
.LC6:
	.long	1065353216
	.align 8
.LC8:
	.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	"497023.c"
	.text
	.global	__aeabi_fadd
	.align	2
	.global	myadd
	.syntax unified
	.arm
	.fpu softvfp
	.type	myadd, %function
myadd:
	@ 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]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]	@ float
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	myadd, .-myadd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Starting PI...\000"
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.global	__aeabi_fsub
	.global	__aeabi_fcmple
	.global	__aeabi_f2d
	.align	2
.LC1:
	.ascii	" x = %9.6f    y = %12.2f  low = %8d j = %7d\012\000"
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_d2f
	.align	2
.LC2:
	.ascii	"Pi = %9.6f ztot = %12.2f itot = %8d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #88
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L10+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-72]	@ float
	mov	r3, #1
	str	r3, [fp, #-52]
	ldr	r3, .L10+8
	str	r3, [fp, #-48]
	ldr	r3, .L10+12
	str	r3, [fp, #-64]	@ float
	ldr	r3, .L10+16
	str	r3, [fp, #-40]	@ float
	ldr	r3, .L10+20
	str	r3, [fp, #-36]	@ float
	ldr	r3, .L10+24
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L3
.L6:
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #8
	sub	r3, r3, r2
	lsl	r1, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	ldr	r3, .L10+28
	smull	r2, r3, r0, r3
	asr	r2, r3, #15
	asr	r3, r0, #31
	sub	r1, r2, r3
	mov	r2, r1
	lsl	r2, r2, #2
	add	r2, r2, r1
	lsl	r2, r2, #5
	add	r2, r2, r1
	lsl	r3, r2, #3
	sub	r3, r3, r2
	lsl	r2, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r0, r3
	str	r3, [fp, #-48]
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L10+32
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-60]	@ float
	ldr	r1, [fp, #-64]	@ float
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r1, [fp, #-36]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-36]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-64]	@ float
	ldr	r1, [fp, #-36]	@ float
	ldr	r0, [fp, #-64]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-56]	@ float
	ldr	r1, [fp, #-60]	@ float
	ldr	r0, [fp, #-60]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-56]	@ float
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-68]	@ float
	sub	r2, fp, #68
	sub	r3, fp, #72
	mov	r1, r2
	mov	r0, r3
	bl	myadd
	ldr	r3, [fp, #-68]	@ float
	mov	r1, #1065353216
	mov	r0, r3
	bl	__aeabi_fcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L4:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L6
	ldr	r0, [fp, #-60]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-44]
	str	r1, [sp, #12]
	ldr	r1, [fp, #-52]
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L10+36
	bl	printf
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L10+40
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-72]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-32]
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L10+44
	bl	printf
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	1907
	.word	1169532928
	.word	1151557632
	.word	1168832512
	.word	40000000
	.word	1892065235
	.word	1200703360
	.word	.LC1
	.word	1074790400
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
