	.file	"185187.c"
	.intel_syntax noprefix
	.text
	.globl	parent_pid
	.bss
	.align 4
	.type	parent_pid, @object
	.size	parent_pid, 4
parent_pid:
	.zero	4
	.globl	child_pid
	.align 4
	.type	child_pid, @object
	.size	child_pid, 4
child_pid:
	.zero	4
	.globl	type
	.align 4
	.type	type, @object
	.size	type, 4
type:
	.zero	4
	.globl	sig1
	.align 4
	.type	sig1, @object
	.size	sig1, 4
sig1:
	.zero	4
	.globl	sig2
	.align 4
	.type	sig2, @object
	.size	sig2, 4
sig2:
	.zero	4
	.globl	get_parent
	.align 4
	.type	get_parent, @object
	.size	get_parent, 4
get_parent:
	.zero	4
	.globl	get_child
	.align 4
	.type	get_child, @object
	.size	get_child, 4
get_child:
	.zero	4
	.globl	parent_send
	.align 4
	.type	parent_send, @object
	.size	parent_send, 4
parent_send:
	.zero	4
	.text
	.globl	get_signal
	.type	get_signal, @function
get_signal:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR get_parent[rip]
	add	eax, 1
	mov	DWORD PTR get_parent[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_signal, .-get_signal
	.globl	get_child_signal
	.type	get_child_signal, @function
get_child_signal:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, DWORD PTR get_child[rip]
	add	eax, 1
	mov	DWORD PTR get_child[rip], eax
	mov	DWORD PTR -8[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR sig1[rip]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L3
	mov	eax, DWORD PTR type[rip]
	cmp	eax, 3
	je	.L4
	cmp	eax, 3
	jg	.L8
	cmp	eax, 1
	je	.L6
	cmp	eax, 2
	je	.L7
	jmp	.L8
.L6:
	mov	edx, DWORD PTR sig1[rip]
	mov	eax, DWORD PTR parent_pid[rip]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	jmp	.L5
.L7:
	mov	ecx, DWORD PTR sig1[rip]
	mov	eax, DWORD PTR parent_pid[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	sigqueue@PLT
	jmp	.L5
.L4:
	mov	edx, DWORD PTR sig1[rip]
	mov	eax, DWORD PTR parent_pid[rip]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	nop
.L5:
	jmp	.L8
.L3:
	mov	eax, DWORD PTR get_child[rip]
	mov	edi, eax
	call	_exit@PLT
.L8:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_child_signal, .-get_child_signal
	.globl	add_handle
	.type	add_handle, @function
add_handle:
.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 4
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR -160[rbp], rax
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sigaction@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add_handle, .-add_handle
	.section	.rodata
	.align 8
.LC0:
	.string	"Wyslane do potomka : %d\nOdebrane przez potomka: %d\nOdebrane przez rodzica: %d\n"
	.text
	.globl	print_score
	.type	print_score, @function
print_score:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	ecx, DWORD PTR get_parent[rip]
	mov	edx, DWORD PTR get_child[rip]
	mov	eax, DWORD PTR parent_send[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_score, .-print_score
	.section	.rodata
.LC1:
	.string	"\nOdebrano sygna\305\202 SIGINT"
	.text
	.globl	quit
	.type	quit, @function
quit:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR child_pid[rip]
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR child_pid[rip]
	lea	rcx, -12[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	DWORD PTR get_child[rip], eax
	mov	eax, 0
	call	print_score
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	quit, .-quit
	.section	.rodata
.LC2:
	.string	"Potrzeba 3 argumentow!"
.LC3:
	.string	"fork"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 2
	jg	.L15
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR type[rip], eax
	mov	DWORD PTR get_parent[rip], 0
	mov	DWORD PTR get_child[rip], 0
	mov	DWORD PTR parent_send[rip], 0
	mov	eax, DWORD PTR type[rip]
	cmp	eax, 3
	jg	.L16
	mov	eax, DWORD PTR type[rip]
	test	eax, eax
	jg	.L17
.L16:
	mov	DWORD PTR type[rip], 1
.L17:
	mov	eax, DWORD PTR type[rip]
	cmp	eax, 3
	jne	.L18
	call	__libc_current_sigrtmin@PLT
	add	eax, 1
	mov	DWORD PTR sig1[rip], eax
	call	__libc_current_sigrtmin@PLT
	add	eax, 2
	mov	DWORD PTR sig2[rip], eax
	jmp	.L19
.L18:
	mov	DWORD PTR sig1[rip], 10
	mov	DWORD PTR sig2[rip], 12
.L19:
	call	getpid@PLT
	mov	DWORD PTR parent_pid[rip], eax
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR sig1[rip]
	lea	rsi, get_child_signal[rip]
	mov	edi, eax
	call	add_handle
	mov	eax, DWORD PTR sig2[rip]
	lea	rsi, get_child_signal[rip]
	mov	edi, eax
	call	add_handle
	cmp	DWORD PTR -20[rbp], -1
	jne	.L20
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L21
.L22:
	jmp	.L22
.L21:
	mov	edi, 1
	call	usleep@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR child_pid[rip], eax
	mov	eax, DWORD PTR sig1[rip]
	lea	rsi, get_signal[rip]
	mov	edi, eax
	call	add_handle
	lea	rsi, quit[rip]
	mov	edi, 2
	call	signal@PLT
	mov	DWORD PTR -16[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L23
.L28:
	mov	eax, DWORD PTR type[rip]
	cmp	eax, 3
	je	.L24
	cmp	eax, 3
	jg	.L25
	cmp	eax, 1
	je	.L26
	cmp	eax, 2
	je	.L27
	jmp	.L25
.L26:
	mov	edx, DWORD PTR sig1[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	jmp	.L25
.L27:
	mov	ecx, DWORD PTR sig1[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	sigqueue@PLT
	jmp	.L25
.L24:
	mov	ecx, DWORD PTR sig1[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	sigqueue@PLT
	nop
.L25:
	mov	eax, DWORD PTR parent_send[rip]
	add	eax, 1
	mov	DWORD PTR parent_send[rip], eax
	mov	edi, 1
	call	usleep@PLT
	add	DWORD PTR -28[rbp], 1
.L23:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L28
	mov	edi, 1
	call	usleep@PLT
	mov	eax, DWORD PTR type[rip]
	cmp	eax, 3
	je	.L29
	cmp	eax, 3
	jg	.L30
	cmp	eax, 1
	je	.L31
	cmp	eax, 2
	je	.L32
	jmp	.L30
.L31:
	mov	edx, DWORD PTR sig2[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	jmp	.L30
.L32:
	mov	ecx, DWORD PTR sig2[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	sigqueue@PLT
	jmp	.L30
.L29:
	mov	edx, DWORD PTR sig2[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	nop
.L30:
	mov	eax, DWORD PTR parent_send[rip]
	add	eax, 1
	mov	DWORD PTR parent_send[rip], eax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	eax, DWORD PTR -32[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	DWORD PTR get_child[rip], eax
	mov	eax, 0
	call	print_score
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.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	"185187.c"
	.text
	.comm	parent_pid,4,4
	.comm	child_pid,4,4
	.comm	type,4,4
	.comm	sig1,4,4
	.comm	sig2,4,4
	.comm	get_parent,4,4
	.comm	get_child,4,4
	.comm	parent_send,4,4
	.align	2
	.global	get_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_signal, %function
get_signal:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, .L2
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L2
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	get_parent
	.size	get_signal, .-get_signal
	.align	2
	.global	get_child_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_child_signal, %function
get_child_signal:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L11
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L5
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L6
	cmp	r3, #3
	bgt	.L10
	cmp	r3, #1
	beq	.L8
	cmp	r3, #2
	beq	.L9
	b	.L10
.L8:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	ldr	r2, .L11+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	kill
	b	.L7
.L9:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	ldr	r2, .L11+4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	mov	r0, r3
	bl	sigqueue
	b	.L7
.L6:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	ldr	r2, .L11+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	kill
	nop
.L7:
	b	.L10
.L5:
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r0, r3
	bl	_exit
.L10:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	get_child
	.word	sig1
	.word	type
	.word	parent_pid
	.size	get_child_signal, .-get_child_signal
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_handle
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_handle, %function
add_handle:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #4
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-156]
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	sigaction
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	add_handle, .-add_handle
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Wyslane do potomka : %d\012Odebrane przez potomka: "
	.ascii	"%d\012Odebrane przez rodzica: %d\012\000"
	.text
	.align	2
	.global	print_score
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_score, %function
print_score:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L18
	ldr	r1, [r3]
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r0, .L18+12
	bl	printf
	nop
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	parent_send
	.word	get_child
	.word	get_parent
	.word	.LC1
	.size	print_score, .-print_score
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012Odebrano sygna\305\202 SIGINT\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	quit
	.syntax unified
	.arm
	.fpu softvfp
	.type	quit, %function
quit:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L22+4
	bl	puts
	ldr	r3, .L22+8
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	kill
	ldr	r3, .L22+8
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #10
	mov	r0, r3
	bl	waitpid
	ldr	r3, [fp, #-12]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L22+12
	str	r3, [r2]
	bl	print_score
	mov	r0, #0
	bl	exit
.L23:
	.align	2
.L22:
	.word	.LC3
	.word	.LC2
	.word	child_pid
	.word	get_child
	.size	quit, .-quit
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Potrzeba 3 argumentow!\000"
	.align	2
.LC5:
	.ascii	"fork\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bgt	.L25
	ldr	r0, .L44+4
	bl	puts
	mov	r0, #1
	bl	exit
.L25:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L44+8
	str	r3, [r2]
	ldr	r3, .L44+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L44+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L44+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L44+8
	ldr	r3, [r3]
	cmp	r3, #3
	bgt	.L26
	ldr	r3, .L44+8
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L27
.L26:
	ldr	r3, .L44+8
	mov	r2, #1
	str	r2, [r3]
.L27:
	ldr	r3, .L44+8
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L28
	bl	__libc_current_sigrtmin
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, .L44+24
	str	r3, [r2]
	bl	__libc_current_sigrtmin
	mov	r3, r0
	add	r3, r3, #2
	ldr	r2, .L44+28
	str	r3, [r2]
	b	.L29
.L28:
	ldr	r3, .L44+24
	mov	r2, #10
	str	r2, [r3]
	ldr	r3, .L44+28
	mov	r2, #12
	str	r2, [r3]
.L29:
	bl	getpid
	mov	r3, r0
	ldr	r2, .L44+32
	str	r3, [r2]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, .L44+24
	ldr	r3, [r3]
	ldr	r1, .L44+36
	mov	r0, r3
	bl	add_handle
	ldr	r3, .L44+28
	ldr	r3, [r3]
	ldr	r1, .L44+36
	mov	r0, r3
	bl	add_handle
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L44+40
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L31
.L32:
	b	.L32
.L31:
	mov	r0, #1
	bl	usleep
	ldr	r2, .L44+44
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r3, .L44+24
	ldr	r3, [r3]
	ldr	r1, .L44+48
	mov	r0, r3
	bl	add_handle
	ldr	r1, .L44+52
	mov	r0, #2
	bl	signal
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L33
.L38:
	ldr	r3, .L44+8
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L34
	cmp	r3, #3
	bgt	.L35
	cmp	r3, #1
	beq	.L36
	cmp	r3, #2
	beq	.L37
	b	.L35
.L36:
	ldr	r3, .L44+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	kill
	b	.L35
.L37:
	ldr	r3, .L44+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	sigqueue
	b	.L35
.L34:
	ldr	r3, .L44+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	sigqueue
	nop
.L35:
	ldr	r3, .L44+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L44+20
	str	r3, [r2]
	mov	r0, #1
	bl	usleep
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L33:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L38
	mov	r0, #1
	bl	usleep
	ldr	r3, .L44+8
	ldr	r3, [r3]
	cmp	r3, #3
	beq	.L39
	cmp	r3, #3
	bgt	.L40
	cmp	r3, #1
	beq	.L41
	cmp	r3, #2
	beq	.L42
	b	.L40
.L41:
	ldr	r3, .L44+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	kill
	b	.L40
.L42:
	ldr	r3, .L44+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	sigqueue
	b	.L40
.L39:
	ldr	r3, .L44+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	kill
	nop
.L40:
	ldr	r3, .L44+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L44+20
	str	r3, [r2]
	sub	r3, fp, #24
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	waitpid
	ldr	r3, [fp, #-24]
	asr	r3, r3, #8
	and	r3, r3, #255
	ldr	r2, .L44+16
	str	r3, [r2]
	bl	print_score
	mov	r0, #0
	bl	exit
.L45:
	.align	2
.L44:
	.word	.LC6
	.word	.LC4
	.word	type
	.word	get_parent
	.word	get_child
	.word	parent_send
	.word	sig1
	.word	sig2
	.word	parent_pid
	.word	get_child_signal
	.word	.LC5
	.word	child_pid
	.word	get_signal
	.word	quit
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
