	.file	"155083.c"
	.intel_syntax noprefix
	.text
	.globl	total
	.bss
	.align 4
	.type	total, @object
	.size	total, 4
total:
	.zero	4
	.globl	pid
	.align 16
	.type	pid, @object
	.size	pid, 20
pid:
	.zero	20
	.section	.rodata
.LC0:
	.string	"1.pipe"
.LC1:
	.string	"recived %s\n"
.LC2:
	.string	"total is now = %d\n"
.LC3:
	.string	"child with pid=%d killed\n"
	.text
	.globl	handler1
	.type	handler1, @function
handler1:
.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 10
	jne	.L7
	mov	esi, 2048
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -276[rbp], eax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -276[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, DWORD PTR total[rip]
	add	eax, edx
	mov	DWORD PTR total[rip], eax
	mov	eax, DWORD PTR total[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	eax, DWORD PTR total[rip]
	cmp	eax, 100
	jle	.L8
	mov	DWORD PTR -280[rbp], 0
	jmp	.L4
.L5:
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -280[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pid[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	add	DWORD PTR -280[rbp], 1
.L4:
	cmp	DWORD PTR -280[rbp], 4
	jle	.L5
	mov	edi, 0
	call	exit@PLT
.L8:
	nop
.L7:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handler1, .-handler1
	.section	.rodata
.LC4:
	.string	"child pid = %d\n"
.LC5:
	.string	"%d"
	.align 8
.LC6:
	.string	"child[%d] with pid=%d creat %s\n"
.LC7:
	.string	"parent pid = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 496
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -484[rbp], 0
	call	getpid@PLT
	mov	DWORD PTR -476[rbp], eax
	lea	rax, handler1[rip]
	mov	QWORD PTR -464[rbp], rax
	mov	DWORD PTR -328[rbp], 0
	lea	rax, -464[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 10
	call	sigaction@PLT
	lea	rax, -304[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -304[rbp]
	mov	esi, 511
	mov	rdi, rax
	call	mkfifo@PLT
	mov	DWORD PTR -480[rbp], 0
	jmp	.L10
.L13:
	call	fork@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pid[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -480[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, pid[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -480[rbp]
	add	eax, 1
	mov	DWORD PTR -484[rbp], eax
	jmp	.L12
.L11:
	add	DWORD PTR -480[rbp], 1
.L10:
	cmp	DWORD PTR -480[rbp], 4
	jle	.L13
.L12:
	cmp	DWORD PTR -484[rbp], 0
	je	.L14
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -304[rbp]
	mov	esi, 2049
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -472[rbp], eax
	call	getpid@PLT
	mov	edi, eax
	call	srand@PLT
.L15:
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -468[rbp], eax
	mov	ecx, DWORD PTR -468[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -468[rbp], edx
	mov	eax, DWORD PTR -468[rbp]
	mov	edi, eax
	call	sleep@PLT
	mov	edx, DWORD PTR -468[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdx, -272[rbp]
	mov	eax, DWORD PTR -484[rbp]
	mov	rcx, rdx
	mov	edx, esi
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -472[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -476[rbp]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	jmp	.L15
.L14:
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	jmp	.L16
	.cfi_endproc
.LFE7:
	.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	"155083.c"
	.text
	.global	total
	.bss
	.align	2
	.type	total, %object
	.size	total, 4
total:
	.space	4
	.comm	pid,20,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1.pipe\000"
	.align	2
.LC1:
	.ascii	"recived %s\012\000"
	.align	2
.LC2:
	.ascii	"total is now = %d\012\000"
	.align	2
.LC3:
	.ascii	"child with pid=%d killed\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handler1
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler1, %function
handler1:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-280]
	cmp	r3, #10
	bne	.L7
	mov	r1, #2048
	ldr	r0, .L9+4
	bl	open
	str	r0, [fp, #-268]
	sub	r3, fp, #264
	mov	r2, #255
	mov	r1, r3
	ldr	r0, [fp, #-268]
	bl	read
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
	sub	r3, fp, #264
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, .L9+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L9+12
	str	r3, [r2]
	ldr	r3, .L9+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+16
	bl	printf
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L9+12
	ldr	r3, [r3]
	cmp	r3, #100
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-272]
	b	.L4
.L5:
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L9+20
	bl	printf
	ldr	r2, .L9+24
	ldr	r3, [fp, #-272]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	ldr	r3, [fp, #-272]
	add	r3, r3, #1
	str	r3, [fp, #-272]
.L4:
	ldr	r3, [fp, #-272]
	cmp	r3, #4
	ble	.L5
	mov	r0, #0
	bl	exit
.L8:
	nop
.L7:
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	total
	.word	.LC2
	.word	.LC3
	.word	pid
	.size	handler1, .-handler1
	.section	.rodata
	.align	2
.LC5:
	.ascii	"child pid = %d\012\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"child[%d] with pid=%d creat %s\012\000"
	.align	2
.LC8:
	.ascii	"parent pid = %d\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #440
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-444]
	bl	getpid
	str	r0, [fp, #-436]
	ldr	r3, .L20+4
	str	r3, [fp, #-424]
	mov	r3, #0
	str	r3, [fp, #-292]
	sub	r3, fp, #424
	mov	r2, #0
	mov	r1, r3
	mov	r0, #10
	bl	sigaction
	sub	r3, fp, #284
	ldr	r1, .L20+8
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #284
	ldr	r1, .L20+12
	mov	r0, r3
	bl	mkfifo
	mov	r3, #0
	str	r3, [fp, #-440]
	b	.L12
.L15:
	bl	fork
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L20+16
	ldr	r3, [fp, #-440]
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L20+16
	ldr	r3, [fp, #-440]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-444]
	b	.L14
.L13:
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
.L12:
	ldr	r3, [fp, #-440]
	cmp	r3, #4
	ble	.L15
.L14:
	ldr	r3, [fp, #-444]
	cmp	r3, #0
	beq	.L16
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+20
	bl	printf
	sub	r3, fp, #284
	ldr	r1, .L20+24
	mov	r0, r3
	bl	open
	str	r0, [fp, #-432]
	bl	getpid
	mov	r3, r0
	mov	r0, r3
	bl	srand
.L17:
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	bl	rand
	mov	r2, r0
	ldr	r3, .L20+28
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-428]
	ldr	r3, [fp, #-428]
	mov	r0, r3
	bl	sleep
	sub	r3, fp, #264
	ldr	r2, [fp, #-428]
	ldr	r1, .L20+32
	mov	r0, r3
	bl	sprintf
	bl	getpid
	mov	r2, r0
	sub	r3, fp, #264
	ldr	r1, [fp, #-444]
	ldr	r0, .L20+36
	bl	printf
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-432]
	bl	write
	mov	r1, #10
	ldr	r0, [fp, #-436]
	bl	kill
	b	.L17
.L16:
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L20+40
	bl	printf
.L18:
	b	.L18
.L21:
	.align	2
.L20:
	.word	.LC9
	.word	handler1
	.word	.LC0
	.word	511
	.word	pid
	.word	.LC5
	.word	2049
	.word	1717986919
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
