	.file	"656754.c"
	.intel_syntax noprefix
	.text
	.globl	MIN_NUM
	.bss
	.align 4
	.type	MIN_NUM, @object
	.size	MIN_NUM, 4
MIN_NUM:
	.zero	4
	.globl	MAX_NUM
	.data
	.align 4
	.type	MAX_NUM, @object
	.size	MAX_NUM, 4
MAX_NUM:
	.long	1023
	.globl	guessed_num
	.align 4
	.type	guessed_num, @object
	.size	guessed_num, 4
guessed_num:
	.long	-1
	.globl	next_round
	.align 4
	.type	next_round, @object
	.size	next_round, 4
next_round:
	.long	1
	.globl	num_guess
	.bss
	.align 4
	.type	num_guess, @object
	.size	num_guess, 4
num_guess:
	.zero	4
	.globl	parent_catch_sigint
	.align 4
	.type	parent_catch_sigint, @object
	.size	parent_catch_sigint, 4
parent_catch_sigint:
	.zero	4
	.globl	sender_pid
	.align 4
	.type	sender_pid, @object
	.size	sender_pid, 4
sender_pid:
	.zero	4
	.globl	recv_pid
	.align 4
	.type	recv_pid, @object
	.size	recv_pid, 4
recv_pid:
	.zero	4
	.text
	.globl	check_input
	.type	check_input, @function
check_input:
.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
	cmp	DWORD PTR -4[rbp], 0
	js	.L2
	cmp	DWORD PTR -4[rbp], 1023
	jg	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_input, .-check_input
	.section	.rodata
.LC0:
	.string	"correct"
	.text
	.globl	is_correct
	.type	is_correct, @function
is_correct:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	eax, 1
	jmp	.L6
.L5:
	mov	eax, 0
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	is_correct, .-is_correct
	.section	.rodata
.LC1:
	.string	"hi"
.LC2:
	.string	"lo"
	.text
	.globl	valid_str
	.type	valid_str, @function
valid_str:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
.L8:
	mov	eax, 1
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	valid_str, .-valid_str
	.section	.rodata
.LC3:
	.string	"fork"
	.align 8
.LC4:
	.string	"Input secret number from 0 - 1023 (inclusive): "
.LC5:
	.string	"%d"
	.align 8
.LC6:
	.string	"Invalid input. Please choose between 0 - 1023 (inclusive): "
.LC7:
	.string	"Hint (hi, lo, correct): "
.LC8:
	.string	"%s"
.LC9:
	.string	"Hint: "
.LC10:
	.string	"kill"
.LC11:
	.string	"Guess: %d\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, 288
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -288[rbp], 0
	call	fork@PLT
	mov	DWORD PTR -280[rbp], eax
	cmp	DWORD PTR -280[rbp], 0
	jns	.L12
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	cmp	DWORD PTR -280[rbp], 0
	jne	.L13
	call	getppid@PLT
	mov	DWORD PTR sender_pid[rip], eax
	call	getpid@PLT
	mov	DWORD PTR recv_pid[rip], eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L14
.L15:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L14:
	mov	eax, DWORD PTR -288[rbp]
	mov	edi, eax
	call	check_input
	cmp	eax, 1
	jne	.L15
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	movabs	rax, 500135195763
	mov	QWORD PTR -16[rbp], rax
	jmp	.L16
.L23:
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -144[rbp]
	mov	esi, 18
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	lea	rdx, -284[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sigwait@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L17
.L18:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L17:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	valid_str
	cmp	eax, 1
	jne	.L18
	lea	rax, -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	jns	.L20
	lea	rdi, .LC10[rip]
	call	perror@PLT
.L20:
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	jns	.L16
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L16
.L19:
	lea	rax, -16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L22
	lea	rdi, .LC10[rip]
	call	perror@PLT
.L22:
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L16
	lea	rdi, .LC10[rip]
	call	perror@PLT
.L16:
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	is_correct
	cmp	eax, 1
	jne	.L23
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L24
	lea	rdi, .LC10[rip]
	call	perror@PLT
.L24:
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L25
	lea	rdi, .LC10[rip]
	call	perror@PLT
.L25:
	lea	rsi, sigcinthandler[rip]
	mov	edi, 2
	call	signal@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	jmp	.L32
.L13:
	mov	eax, DWORD PTR -280[rbp]
	mov	DWORD PTR sender_pid[rip], eax
	call	getpid@PLT
	mov	DWORD PTR recv_pid[rip], eax
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -272[rbp]
	mov	esi, 18
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -272[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	lea	rdx, -284[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sigwait@PLT
	lea	rsi, sig1handler[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, sig2handler[rip]
	mov	edi, 12
	call	signal@PLT
	lea	rsi, sigpinthandler[rip]
	mov	edi, 2
	call	signal@PLT
	mov	DWORD PTR -276[rbp], 1
.L29:
	mov	eax, DWORD PTR next_round[rip]
	test	eax, eax
	je	.L27
	mov	DWORD PTR -284[rbp], 0
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -144[rbp]
	mov	esi, 18
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	call	rand@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR MAX_NUM[rip]
	mov	edx, DWORD PTR MIN_NUM[rip]
	sub	eax, edx
	lea	esi, 1[rax]
	mov	eax, 2147483647
	cdq
	idiv	esi
	lea	esi, 1[rax]
	mov	eax, ecx
	cdq
	idiv	esi
	mov	edx, eax
	mov	eax, DWORD PTR MIN_NUM[rip]
	add	eax, edx
	mov	DWORD PTR -276[rbp], eax
	mov	eax, DWORD PTR -276[rbp]
	mov	DWORD PTR guessed_num[rip], eax
	mov	eax, DWORD PTR guessed_num[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR next_round[rip], 0
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 18
	mov	edi, eax
	call	kill@PLT
	lea	rdx, -284[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sigwait@PLT
	jmp	.L29
.L27:
	mov	eax, DWORD PTR parent_catch_sigint[rip]
	cmp	eax, 1
	jne	.L29
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	je	.L29
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L29
.L32:
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
.LC12:
	.string	"%d # SIGUSR1 # %d\n"
	.text
	.globl	sig1handler
	.type	sig1handler, @function
sig1handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	ecx, DWORD PTR recv_pid[rip]
	mov	edx, DWORD PTR sender_pid[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR guessed_num[rip]
	sub	eax, 1
	mov	DWORD PTR MAX_NUM[rip], eax
	mov	eax, DWORD PTR num_guess[rip]
	add	eax, 1
	mov	DWORD PTR num_guess[rip], eax
	mov	DWORD PTR next_round[rip], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sig1handler, .-sig1handler
	.section	.rodata
.LC13:
	.string	"%d # SIGUSR2 # %d\n"
	.text
	.globl	sig2handler
	.type	sig2handler, @function
sig2handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	ecx, DWORD PTR recv_pid[rip]
	mov	edx, DWORD PTR sender_pid[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR guessed_num[rip]
	add	eax, 1
	mov	DWORD PTR MIN_NUM[rip], eax
	mov	eax, DWORD PTR num_guess[rip]
	add	eax, 1
	mov	DWORD PTR num_guess[rip], eax
	mov	DWORD PTR next_round[rip], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sig2handler, .-sig2handler
	.section	.rodata
.LC14:
	.string	"%d # SIGINT # %d\n"
.LC15:
	.string	"Number of guess: %d\n"
	.text
	.globl	sigpinthandler
	.type	sigpinthandler, @function
sigpinthandler:
.LFB12:
	.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
	mov	DWORD PTR -4[rbp], edi
	mov	ecx, DWORD PTR recv_pid[rip]
	mov	edx, DWORD PTR sender_pid[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR num_guess[rip]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR parent_catch_sigint[rip], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	sigpinthandler, .-sigpinthandler
	.globl	sigcinthandler
	.type	sigcinthandler, @function
sigcinthandler:
.LFB13:
	.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
	mov	DWORD PTR -4[rbp], edi
	mov	ecx, DWORD PTR recv_pid[rip]
	mov	edx, DWORD PTR sender_pid[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR sender_pid[rip]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.size	sigcinthandler, .-sigcinthandler
	.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	"656754.c"
	.text
	.global	MIN_NUM
	.bss
	.align	2
	.type	MIN_NUM, %object
	.size	MIN_NUM, 4
MIN_NUM:
	.space	4
	.global	MAX_NUM
	.data
	.align	2
	.type	MAX_NUM, %object
	.size	MAX_NUM, 4
MAX_NUM:
	.word	1023
	.global	guessed_num
	.align	2
	.type	guessed_num, %object
	.size	guessed_num, 4
guessed_num:
	.word	-1
	.global	next_round
	.align	2
	.type	next_round, %object
	.size	next_round, 4
next_round:
	.word	1
	.global	num_guess
	.bss
	.align	2
	.type	num_guess, %object
	.size	num_guess, 4
num_guess:
	.space	4
	.global	parent_catch_sigint
	.align	2
	.type	parent_catch_sigint, %object
	.size	parent_catch_sigint, 4
parent_catch_sigint:
	.space	4
	.comm	sender_pid,4,4
	.comm	recv_pid,4,4
	.text
	.align	2
	.global	check_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_input, %function
check_input:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #1024
	bge	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_input, .-check_input
	.section	.rodata
	.align	2
.LC0:
	.ascii	"correct\000"
	.text
	.align	2
	.global	is_correct
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_correct, %function
is_correct:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, .L7
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mov	r3, #1
	b	.L6
.L5:
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	is_correct, .-is_correct
	.section	.rodata
	.align	2
.LC1:
	.ascii	"hi\000"
	.align	2
.LC2:
	.ascii	"lo\000"
	.text
	.align	2
	.global	valid_str
	.syntax unified
	.arm
	.fpu softvfp
	.type	valid_str, %function
valid_str:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, .L13
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L13+4
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L13+8
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
.L10:
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	valid_str, .-valid_str
	.section	.rodata
	.align	2
.LC3:
	.ascii	"fork\000"
	.align	2
.LC4:
	.ascii	"Input secret number from 0 - 1023 (inclusive): \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"Invalid input. Please choose between 0 - 1023 (incl"
	.ascii	"usive): \000"
	.align	2
.LC8:
	.ascii	"Hint (hi, lo, correct): \000"
	.align	2
.LC9:
	.ascii	"%s\000"
	.align	2
.LC10:
	.ascii	"Hint: \000"
	.align	2
.LC11:
	.ascii	"kill\000"
	.global	__aeabi_idiv
	.align	2
.LC12:
	.ascii	"Guess: %d\012\000"
	.align	2
.LC7:
	.ascii	"start\000\000\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #292
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-296]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L37+4
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L17
	bl	getppid
	mov	r3, r0
	ldr	r2, .L37+8
	str	r3, [r2]
	bl	getpid
	mov	r3, r0
	ldr	r2, .L37+12
	str	r3, [r2]
	ldr	r0, .L37+16
	bl	printf
	sub	r3, fp, #296
	mov	r1, r3
	ldr	r0, .L37+20
	bl	__isoc99_scanf
	b	.L18
.L19:
	ldr	r0, .L37+24
	bl	printf
	sub	r3, fp, #296
	mov	r1, r3
	ldr	r0, .L37+20
	bl	__isoc99_scanf
.L18:
	ldr	r3, [fp, #-296]
	mov	r0, r3
	bl	check_input
	mov	r3, r0
	cmp	r3, #1
	bne	.L19
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r1, #18
	mov	r0, r3
	bl	kill
	ldr	r2, .L37+28
	sub	r3, fp, #24
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	b	.L20
.L27:
	sub	r3, fp, #152
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #152
	mov	r1, #18
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #152
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	sub	r2, fp, #292
	sub	r3, fp, #152
	mov	r1, r2
	mov	r0, r3
	bl	sigwait
	ldr	r0, .L37+32
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L37+36
	bl	__isoc99_scanf
	b	.L21
.L22:
	ldr	r0, .L37+40
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L37+36
	bl	__isoc99_scanf
.L21:
	sub	r3, fp, #24
	mov	r0, r3
	bl	valid_str
	mov	r3, r0
	cmp	r3, #1
	bne	.L22
	sub	r3, fp, #24
	ldr	r1, .L37+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r1, #18
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L37+48
	bl	perror
.L24:
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L37+48
	bl	perror
	b	.L20
.L23:
	sub	r3, fp, #24
	ldr	r1, .L37+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r1, #18
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r0, .L37+48
	bl	perror
.L26:
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r1, #12
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	ldr	r0, .L37+48
	bl	perror
.L20:
	sub	r3, fp, #24
	mov	r0, r3
	bl	is_correct
	mov	r3, r0
	cmp	r3, #1
	bne	.L27
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r0, .L37+48
	bl	perror
.L28:
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r1, #18
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r0, .L37+48
	bl	perror
.L29:
	ldr	r1, .L37+56
	mov	r0, #2
	bl	signal
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	b	.L36
.L17:
	ldr	r2, .L37+8
	ldr	r3, [fp, #-288]
	str	r3, [r2]
	bl	getpid
	mov	r3, r0
	ldr	r2, .L37+12
	str	r3, [r2]
	sub	r3, fp, #280
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #280
	mov	r1, #18
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #280
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	sub	r2, fp, #292
	sub	r3, fp, #280
	mov	r1, r2
	mov	r0, r3
	bl	sigwait
	ldr	r1, .L37+60
	mov	r0, #10
	bl	signal
	ldr	r1, .L37+64
	mov	r0, #12
	bl	signal
	ldr	r1, .L37+68
	mov	r0, #2
	bl	signal
	mov	r3, #1
	str	r3, [fp, #-284]
.L33:
	ldr	r3, .L37+72
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	mov	r3, #0
	str	r3, [fp, #-292]
	sub	r3, fp, #152
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #152
	mov	r1, #18
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #152
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	bl	rand
	mov	r4, r0
	ldr	r3, .L37+76
	ldr	r2, [r3]
	ldr	r3, .L37+80
	ldr	r3, [r3]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r1, r3
	mvn	r0, #-2147483648
	bl	__aeabi_idiv
	mov	r3, r0
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L37+80
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-284]
	ldr	r2, .L37+84
	ldr	r3, [fp, #-284]
	str	r3, [r2]
	ldr	r3, .L37+84
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L37+88
	bl	printf
	ldr	r3, .L37+72
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r1, #18
	mov	r0, r3
	bl	kill
	sub	r2, fp, #292
	sub	r3, fp, #152
	mov	r1, r2
	mov	r0, r3
	bl	sigwait
	b	.L33
.L31:
	ldr	r3, .L37+92
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L33
	ldr	r3, .L37+8
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	ldr	r0, .L37+48
	bl	perror
	b	.L33
.L36:
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC13
	.word	.LC3
	.word	sender_pid
	.word	recv_pid
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC1
	.word	.LC11
	.word	.LC2
	.word	sigcinthandler
	.word	sig1handler
	.word	sig2handler
	.word	sigpinthandler
	.word	next_round
	.word	MAX_NUM
	.word	MIN_NUM
	.word	guessed_num
	.word	.LC12
	.word	parent_catch_sigint
	.size	main, .-main
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%d # SIGUSR1 # %d\012\000"
	.text
	.align	2
	.global	sig1handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig1handler, %function
sig1handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L40
	ldr	r0, [r3]
	ldr	r3, .L40+4
	ldr	r2, [r3]
	ldr	r3, .L40+8
	ldr	r3, [r3]
	ldr	r1, .L40+12
	bl	fprintf
	ldr	r3, .L40+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L40+20
	str	r3, [r2]
	ldr	r3, .L40+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L40+24
	str	r3, [r2]
	ldr	r3, .L40+28
	mov	r2, #1
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	stderr
	.word	sender_pid
	.word	recv_pid
	.word	.LC14
	.word	guessed_num
	.word	MAX_NUM
	.word	num_guess
	.word	next_round
	.size	sig1handler, .-sig1handler
	.section	.rodata
	.align	2
.LC15:
	.ascii	"%d # SIGUSR2 # %d\012\000"
	.text
	.align	2
	.global	sig2handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig2handler, %function
sig2handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L43
	ldr	r0, [r3]
	ldr	r3, .L43+4
	ldr	r2, [r3]
	ldr	r3, .L43+8
	ldr	r3, [r3]
	ldr	r1, .L43+12
	bl	fprintf
	ldr	r3, .L43+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L43+20
	str	r3, [r2]
	ldr	r3, .L43+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L43+24
	str	r3, [r2]
	ldr	r3, .L43+28
	mov	r2, #1
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	stderr
	.word	sender_pid
	.word	recv_pid
	.word	.LC15
	.word	guessed_num
	.word	MIN_NUM
	.word	num_guess
	.word	next_round
	.size	sig2handler, .-sig2handler
	.section	.rodata
	.align	2
.LC16:
	.ascii	"%d # SIGINT # %d\012\000"
	.align	2
.LC17:
	.ascii	"Number of guess: %d\012\000"
	.text
	.align	2
	.global	sigpinthandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigpinthandler, %function
sigpinthandler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L46
	ldr	r0, [r3]
	ldr	r3, .L46+4
	ldr	r2, [r3]
	ldr	r3, .L46+8
	ldr	r3, [r3]
	ldr	r1, .L46+12
	bl	fprintf
	ldr	r3, .L46+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L46+20
	bl	printf
	ldr	r3, .L46+24
	mov	r2, #1
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	stderr
	.word	sender_pid
	.word	recv_pid
	.word	.LC16
	.word	num_guess
	.word	.LC17
	.word	parent_catch_sigint
	.size	sigpinthandler, .-sigpinthandler
	.align	2
	.global	sigcinthandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigcinthandler, %function
sigcinthandler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L49
	ldr	r0, [r3]
	ldr	r3, .L49+4
	ldr	r2, [r3]
	ldr	r3, .L49+8
	ldr	r3, [r3]
	ldr	r1, .L49+12
	bl	fprintf
	ldr	r3, .L49+4
	ldr	r3, [r3]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	mov	r0, #0
	bl	exit
.L50:
	.align	2
.L49:
	.word	stderr
	.word	sender_pid
	.word	recv_pid
	.word	.LC16
	.size	sigcinthandler, .-sigcinthandler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
