	.file	"3262923.c"
	.intel_syntax noprefix
	.text
	.globl	ts
	.bss
	.align 16
	.type	ts, @object
	.size	ts, 16
ts:
	.zero	16
	.globl	totalSum
	.align 8
	.type	totalSum, @object
	.size	totalSum, 8
totalSum:
	.zero	8
	.globl	n
	.align 8
	.type	n, @object
	.size	n, 8
n:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"Ingresar numero de iteraciones: "
.LC1:
	.string	"%lld"
	.align 8
.LC2:
	.string	"Error:unable to create child %d\n"
.LC3:
	.string	"clone() returned %ld\n"
.LC5:
	.string	"Tiempo total: %f\n"
.LC6:
	.string	"TT/4 = %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
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 4194304
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rsi, n[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	esi, 0
	lea	rdi, ts[rip]
	call	gettimeofday@PLT
	mov	rax, QWORD PTR ts[rip]
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR ts[rip+8]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, 1
	sal	rdx, 20
	mov	rcx, rdx
	mov	rdx, QWORD PTR -32[rbp]
	lea	rsi, [rcx+rdx]
	mov	rcx, rax
	mov	edx, 785
	lea	rdi, leibniz_clone[rip]
	mov	eax, 0
	call	clone@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], -1
	jne	.L3
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L3:
	add	QWORD PTR -40[rbp], 1
.L2:
	cmp	QWORD PTR -40[rbp], 3
	jle	.L4
	mov	QWORD PTR -40[rbp], 0
	jmp	.L5
.L6:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	wait@PLT
	add	QWORD PTR -40[rbp], 1
.L5:
	cmp	QWORD PTR -40[rbp], 3
	jle	.L6
	mov	esi, 0
	lea	rdi, ts[rip]
	call	gettimeofday@PLT
	mov	rax, QWORD PTR ts[rip]
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR ts[rip+8]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	xmm1, DWORD PTR .LC4[rip]
	divss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR totalSum[rip]
	movq	xmm0, rax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	leibniz_clone
	.type	leibniz_clone, @function
leibniz_clone:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR n[rip]
	lea	rdx, 3[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	imul	eax, edx
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR n[rip]
	lea	rdx, 3[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	imul	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L9
.L10:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR .LC8[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -28[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC9[rip]
	addsd	xmm1, xmm0
	movq	xmm0, rax
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	add	DWORD PTR -28[rbp], 1
.L9:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L10
	movsd	xmm0, QWORD PTR totalSum[rip]
	addsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR totalSum[rip], xmm0
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	leibniz_clone, .-leibniz_clone
	.section	.rodata
	.align 4
.LC4:
	.long	1232348160
	.align 8
.LC8:
	.long	0
	.long	-1074790400
	.align 8
.LC9:
	.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	"3262923.c"
	.text
	.comm	ts,8,4
	.global	totalSum
	.bss
	.align	3
	.type	totalSum, %object
	.size	totalSum, 8
totalSum:
	.space	8
	.comm	n,8,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Ingresar numero de iteraciones: \000"
	.align	2
.LC1:
	.ascii	"%lld\000"
	.align	2
.LC2:
	.ascii	"Error:unable to create child %d\012\000"
	.align	2
.LC3:
	.ascii	"clone() returned %ld\012\000"
	.global	__aeabi_l2f
	.global	__aeabi_fdiv
	.global	__aeabi_f2d
	.align	2
.LC4:
	.ascii	"Tiempo total: %f\012\000"
	.align	2
.LC5:
	.ascii	"TT/4 = %lf\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r0, #4194304
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r0, .L8+4
	bl	printf
	ldr	r3, .L8+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r1, .L8+12
	ldr	r0, .L8+16
	bl	__isoc99_scanf
	mov	r1, #0
	ldr	r0, .L8+20
	bl	gettimeofday
	ldr	r3, .L8+20
	ldr	r1, [r3]
	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, .L8+20
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L2
.L4:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-84]
	adc	r3, r3, #0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #20
	ldr	r2, [fp, #-68]
	add	r1, r2, r3
	ldr	r3, [fp, #-60]
	ldr	r2, .L8+24
	ldr	r0, .L8+28
	bl	clone
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmn	r3, #1
	bne	.L3
	ldr	r1, [fp, #-64]
	ldr	r0, .L8+32
	bl	printf
	ldr	r1, [fp, #-64]
	ldr	r0, .L8+36
	bl	printf
	mvn	r0, #0
	bl	exit
.L3:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-60]
	str	r7, [fp, #-56]
.L2:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r2, #4
	sbcs	r3, r3, #0
	blt	.L4
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	b	.L5
.L6:
	sub	r3, fp, #72
	mov	r0, r3
	bl	wait
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-60]
	str	r5, [fp, #-56]
.L5:
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	cmp	r2, #4
	sbcs	r3, r3, #0
	blt	.L6
	mov	r1, #0
	ldr	r0, .L8+20
	bl	gettimeofday
	ldr	r3, .L8+20
	ldr	r1, [r3]
	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, .L8+20
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	r8, r0, r2
	sbc	r9, r1, r3
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_l2f
	mov	r3, r0
	ldr	r1, .L8+40
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L8+44
	bl	printf
	ldr	r3, .L8+48
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+52
	bl	printf
	ldr	r0, [fp, #-68]
	bl	free
	mov	r0, #0
	bl	exit
.L9:
	.align	2
.L8:
	.word	.LC6
	.word	.LC0
	.word	stdin
	.word	n
	.word	.LC1
	.word	ts
	.word	785
	.word	leibniz_clone
	.word	.LC2
	.word	.LC3
	.word	1232348160
	.word	.LC4
	.word	totalSum
	.word	.LC5
	.size	main, .-main
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.align	2
	.global	leibniz_clone
	.syntax unified
	.arm
	.fpu softvfp
	.type	leibniz_clone, %function
leibniz_clone:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-48]
	ldr	r3, .L14
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	asr	r1, r3, #31
	mov	r2, r1
	asr	r3, r2, #31
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	mov	r0, #3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	mov	r1, r2
	ldr	r0, [fp, #-76]
	and	r1, r1, r0
	str	r1, [fp, #-84]
	mov	r1, r3
	ldr	r3, [fp, #-72]
	and	r3, r3, r1
	mov	r1, r3
	str	r1, [fp, #-80]
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	mov	ip, r0
	ldr	r3, [fp, #-68]
	adds	r6, ip, r3
	ldr	r3, [fp, #-64]
	adc	r7, r1, r3
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r6, #2
	orr	r2, r2, r7, lsl #30
	asr	r3, r7, #2
	ldr	r3, [fp, #-48]
	mul	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, .L14
	ldmia	r3, {r2-r3}
	asr	r1, r3, #31
	mov	r0, r1
	asr	r1, r0, #31
	mov	r6, #3
	mov	r7, #0
	and	r8, r0, r6
	and	r9, r1, r7
	adds	r4, r8, r2
	adc	r5, r9, r3
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r4, #2
	orr	r2, r2, r5, lsl #30
	asr	r3, r5, #2
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	mul	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-52]
	b	.L11
.L12:
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L14+4
	bl	pow
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-52]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L14+8
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L11:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L12
	ldr	r3, .L14+12
	ldmia	r3, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L14+12
	stm	r1, {r2-r3}
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L15:
	.align	2
.L14:
	.word	n
	.word	-1074790400
	.word	1072693248
	.word	totalSum
	.size	leibniz_clone, .-leibniz_clone
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
