	.file	"349856.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nChild 1 is living! (%i)\n"
.LC1:
	.string	"Child 1 is diying... (%i)\n"
	.text
	.globl	main_child1
	.type	main_child1, @function
main_child1:
.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, 16
	call	getpid@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	edi, 1000000
	call	usleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 500000
	call	usleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main_child1, .-main_child1
	.section	.rodata
.LC2:
	.string	"\nChild 2 is living! (%i)\n"
.LC3:
	.string	"Child 2 is diying... (%i)\n"
	.text
	.globl	main_child2
	.type	main_child2, @function
main_child2:
.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
	call	getpid@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	edi, 2000000
	call	usleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 500000
	call	usleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main_child2, .-main_child2
	.section	.rodata
.LC4:
	.string	"\nChild 3 is living! (%i)\n"
.LC5:
	.string	"Child 3 is diying... (%i)\n"
	.text
	.globl	main_child3
	.type	main_child3, @function
main_child3:
.LFB8:
	.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
	call	getpid@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	edi, 3000000
	call	usleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 500000
	call	usleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	main_child3, .-main_child3
	.section	.rodata
.LC6:
	.string	"Starting main proccess (%i)\n"
.LC7:
	.string	"\nEnding main proccess (%i)\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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
	call	getpid@PLT
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, main_child1[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, main_child2[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, main_child3[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L5
.L7:
	call	fork@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	DWORD PTR -44[rbp+rax*4], edx
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	eax, DWORD PTR -44[rbp+rax*4]
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	rax, QWORD PTR -32[rbp+rax*8]
	call	rax
.L6:
	add	DWORD PTR -56[rbp], 1
.L5:
	cmp	DWORD PTR -56[rbp], 2
	jle	.L7
	mov	DWORD PTR -52[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -44[rbp+rax*4]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	waitpid@PLT
	add	DWORD PTR -52[rbp], 1
.L8:
	cmp	DWORD PTR -52[rbp], 2
	jle	.L9
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.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	"349856.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012Child 1 is living! (%i)\012\000"
	.align	2
.LC2:
	.ascii	"Child 1 is diying... (%i)\012\000"
	.text
	.align	2
	.global	main_child1
	.syntax unified
	.arm
	.fpu softvfp
	.type	main_child1, %function
main_child1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	getpid
	str	r0, [fp, #-8]
	ldr	r0, .L2
	bl	usleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L2+4
	bl	printf
	ldr	r0, .L2+8
	bl	usleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L2+12
	bl	printf
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	1000000
	.word	.LC1
	.word	500000
	.word	.LC2
	.size	main_child1, .-main_child1
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012Child 2 is living! (%i)\012\000"
	.align	2
.LC4:
	.ascii	"Child 2 is diying... (%i)\012\000"
	.text
	.align	2
	.global	main_child2
	.syntax unified
	.arm
	.fpu softvfp
	.type	main_child2, %function
main_child2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	getpid
	str	r0, [fp, #-8]
	ldr	r0, .L5
	bl	usleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L5+4
	bl	printf
	ldr	r0, .L5+8
	bl	usleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L5+12
	bl	printf
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	2000000
	.word	.LC3
	.word	500000
	.word	.LC4
	.size	main_child2, .-main_child2
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012Child 3 is living! (%i)\012\000"
	.align	2
.LC6:
	.ascii	"Child 3 is diying... (%i)\012\000"
	.text
	.align	2
	.global	main_child3
	.syntax unified
	.arm
	.fpu softvfp
	.type	main_child3, %function
main_child3:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	getpid
	str	r0, [fp, #-8]
	ldr	r0, .L8
	bl	usleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+4
	bl	printf
	ldr	r0, .L8+8
	bl	usleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+12
	bl	printf
	mov	r0, #0
	bl	exit
.L9:
	.align	2
.L8:
	.word	3000000
	.word	.LC5
	.word	500000
	.word	.LC6
	.size	main_child3, .-main_child3
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Starting main proccess (%i)\012\000"
	.align	2
.LC9:
	.ascii	"\012Ending main proccess (%i)\012\000"
	.align	2
.LC8:
	.word	main_child1
	.word	main_child2
	.word	main_child3
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getpid
	str	r0, [fp, #-36]
	ldr	r1, [fp, #-36]
	ldr	r0, .L18+4
	bl	printf
	ldr	r2, .L18+8
	sub	r3, fp, #20
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L11
.L13:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-28]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-16]
	blx	r3
.L12:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L11:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	ble	.L13
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L14
.L15:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	waitpid
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L14:
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	ble	.L15
	ldr	r1, [fp, #-36]
	ldr	r0, .L18+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC10
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
