	.file	"402499.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage: %s GP nume_fisier\n"
.LC1:
	.string	"Eroare la fork"
.LC2:
	.string	"parallel-with-locks"
.LC3:
	.string	"Eroare la exec:"
.LC5:
	.string	"%f\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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	cmp	DWORD PTR -68[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -60[rbp], 1
	jmp	.L3
.L8:
	call	fork@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L4:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L5
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	ecx, 0
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	execl@PLT
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 12
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -60[rbp]
	jmp	.L11
.L5:
	add	DWORD PTR -60[rbp], 1
.L3:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jle	.L8
	mov	DWORD PTR -60[rbp], 1
	jmp	.L9
.L10:
	mov	edi, 0
	call	wait@PLT
	add	DWORD PTR -60[rbp], 1
.L9:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jle	.L10
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 4
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC4[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1104006501
	.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	"402499.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s GP nume_fisier\012\000"
	.align	2
.LC1:
	.ascii	"Eroare la fork\000"
	.align	2
.LC2:
	.ascii	"parallel-with-locks\000"
	.align	2
.LC3:
	.ascii	"Eroare la exec:\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
.LC4:
	.ascii	"%f\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+4
	bl	printf
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L3
.L8:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L13+8
	bl	perror
	mov	r0, #2
	bl	exit
.L4:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r2, [r3]
	mov	r3, #0
	ldr	r1, .L13+12
	ldr	r0, .L13+12
	bl	execl
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L13+16
	bl	perror
	mov	r0, #12
	bl	exit
.L6:
	ldr	r3, [fp, #-44]
	b	.L11
.L5:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L8
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L9
.L10:
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L9:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L10
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #4
	bl	clock_gettime
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L13+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L13+24
	bl	printf
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	1104006501
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
