	.file	"72013478.c"
	.intel_syntax noprefix
	.text
	.local	prog_name
	.comm	prog_name,8,8
	.local	set_block
	.comm	set_block,128,32
	.local	set_normal
	.comm	set_normal,128,32
	.local	last_sig
	.comm	last_sig,4,4
	.section	.rodata
	.align 16
	.type	fwd_list, @object
	.size	fwd_list, 28
fwd_list:
	.long	1
	.long	2
	.long	3
	.long	15
	.long	10
	.long	12
	.long	28
	.align 8
	.type	unpause_list, @object
	.size	unpause_list, 12
unpause_list:
	.long	2
	.long	15
	.long	17
	.align 4
	.type	sig_alrm, @object
	.size	sig_alrm, 4
sig_alrm:
	.long	14
.LC0:
	.string	"[ERROR %s] line %d: %s\n"
	.text
	.type	exit_error, @function
exit_error:
.LFB0:
	.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	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR prog_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	_exit@PLT
	.cfi_endproc
.LFE0:
	.size	exit_error, .-exit_error
	.type	exit_errno, @function
exit_errno:
.LFB1:
	.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
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	exit_error
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	exit_errno, .-exit_errno
	.type	block_signal, @function
block_signal:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 0
	lea	rsi, set_block[rip]
	mov	edi, 2
	call	sigprocmask@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	block_signal, .-block_signal
	.type	unblock_signals, @function
unblock_signals:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 0
	lea	rsi, set_normal[rip]
	mov	edi, 2
	call	sigprocmask@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	unblock_signals, .-unblock_signals
	.type	handle_signal, @function
handle_signal:
.LFB4:
	.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	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR last_sig[rip], eax
	mov	eax, 0
	call	block_signal
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	handle_signal, .-handle_signal
	.type	register_signal_handler, @function
register_signal_handler:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, set_block[rip]
	call	sigemptyset@PLT
	mov	DWORD PTR -168[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, set_block[rip]
	call	sigaddset@PLT
	add	DWORD PTR -168[rbp], 1
.L7:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L8
	lea	rdx, set_normal[rip]
	mov	esi, 0
	mov	edi, 2
	call	sigprocmask@PLT
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, handle_signal[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR set_block[rip]
	mov	rdx, QWORD PTR set_block[rip+8]
	mov	QWORD PTR -152[rbp], rax
	mov	QWORD PTR -144[rbp], rdx
	mov	rax, QWORD PTR set_block[rip+16]
	mov	rdx, QWORD PTR set_block[rip+24]
	mov	QWORD PTR -136[rbp], rax
	mov	QWORD PTR -128[rbp], rdx
	mov	rax, QWORD PTR set_block[rip+32]
	mov	rdx, QWORD PTR set_block[rip+40]
	mov	QWORD PTR -120[rbp], rax
	mov	QWORD PTR -112[rbp], rdx
	mov	rax, QWORD PTR set_block[rip+48]
	mov	rdx, QWORD PTR set_block[rip+56]
	mov	QWORD PTR -104[rbp], rax
	mov	QWORD PTR -96[rbp], rdx
	mov	rax, QWORD PTR set_block[rip+64]
	mov	rdx, QWORD PTR set_block[rip+72]
	mov	QWORD PTR -88[rbp], rax
	mov	QWORD PTR -80[rbp], rdx
	mov	rax, QWORD PTR set_block[rip+80]
	mov	rdx, QWORD PTR set_block[rip+88]
	mov	QWORD PTR -72[rbp], rax
	mov	QWORD PTR -64[rbp], rdx
	mov	rax, QWORD PTR set_block[rip+96]
	mov	rdx, QWORD PTR set_block[rip+104]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR set_block[rip+112]
	mov	rdx, QWORD PTR set_block[rip+120]
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -164[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	rcx, -160[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L10
	mov	edi, 61
	call	exit_errno
.L10:
	add	DWORD PTR -164[rbp], 1
.L9:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L11
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	register_signal_handler, .-register_signal_handler
	.type	reset_signal_handler, @function
reset_signal_handler:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -160[rbp], 0
	mov	DWORD PTR -164[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -184[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	rcx, -160[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L15
	mov	edi, 70
	call	exit_errno
.L15:
	add	DWORD PTR -164[rbp], 1
.L14:
	mov	eax, DWORD PTR -164[rbp]
	cmp	eax, DWORD PTR -188[rbp]
	jl	.L16
	mov	eax, 0
	call	unblock_signals
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	reset_signal_handler, .-reset_signal_handler
	.section	.rodata
.LC1:
	.string	"NULL"
.LC2:
	.string	"Terminated by signal %s\n"
	.text
	.type	kill_all_and_exit, @function
kill_all_and_exit:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	esi, 18
	mov	edi, -1
	call	kill@PLT
	mov	esi, 15
	mov	edi, -1
	call	kill@PLT
	mov	esi, 1
	lea	rdi, sig_alrm[rip]
	call	register_signal_handler
	mov	edi, 5
	call	alarm@PLT
	nop
.L19:
	mov	edi, 0
	call	wait@PLT
	cmp	eax, -1
	jne	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 10
	sete	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
	mov	edi, 0
	call	alarm@PLT
	mov	esi, 1
	lea	rdi, sig_alrm[rip]
	call	reset_signal_handler
	cmp	DWORD PTR -20[rbp], 0
	je	.L20
	cmp	DWORD PTR -12[rbp], 0
	jne	.L21
	mov	edi, 1
	call	_exit@PLT
.L21:
	mov	edi, 0
	call	_exit@PLT
.L20:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L22
	mov	eax, DWORD PTR -24[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	edi, eax
	call	_exit@PLT
.L22:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	mov	edi, eax
	call	strsignal@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L23
	lea	rax, .LC1[rip]
	mov	QWORD PTR -8[rbp], rax
.L23:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	sub	eax, -128
	mov	edi, eax
	call	_exit@PLT
	.cfi_endproc
.LFE7:
	.size	kill_all_and_exit, .-kill_all_and_exit
	.type	main_sleep, @function
main_sleep:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 3
	lea	rdi, unpause_list[rip]
	call	register_signal_handler
.L27:
	mov	eax, 0
	call	unblock_signals
	call	pause@PLT
	mov	eax, DWORD PTR last_sig[rip]
	cmp	eax, 17
	je	.L28
	mov	esi, 3
	lea	rdi, unpause_list[rip]
	call	reset_signal_handler
	mov	esi, 0
	mov	edi, 1
	call	kill_all_and_exit
.L28:
	nop
.L26:
	mov	edx, 1
	mov	esi, 0
	mov	edi, -1
	call	waitpid@PLT
	test	eax, eax
	jg	.L26
	jmp	.L27
	.cfi_endproc
.LFE8:
	.size	main_sleep, .-main_sleep
	.type	exec_child, @function
exec_child:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -40[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L30:
	cmp	rsp, rdx
	je	.L31
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L30
.L31:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L32
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L32:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -44[rbp], 1
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -44[rbp]
	sub	edx, 1
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -44[rbp], 1
.L33:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L34
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	exec_child, .-exec_child
	.section	.rodata
.LC3:
	.string	"DEAD CODE !!"
	.text
	.type	main_with_child, @function
main_with_child:
.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, 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
	call	fork@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	jne	.L37
	mov	edi, 124
	call	exit_errno
	jmp	.L38
.L37:
	cmp	DWORD PTR -16[rbp], 0
	je	.L39
	mov	esi, 7
	lea	rdi, fwd_list[rip]
	call	register_signal_handler
.L44:
	mov	eax, 0
	call	unblock_signals
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L40
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L41
	mov	edx, DWORD PTR last_sig[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
	jmp	.L44
.L41:
	mov	edi, 137
	call	exit_errno
	jmp	.L44
.L40:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jne	.L44
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	test	eax, eax
	je	.L43
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L44
.L43:
	mov	esi, 7
	lea	rdi, fwd_list[rip]
	call	reset_signal_handler
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	mov	edi, 0
	call	kill_all_and_exit
	jmp	.L44
.L39:
	call	setsid@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 21518
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	add	DWORD PTR -20[rbp], 1
.L45:
	cmp	DWORD PTR -20[rbp], 2
	jle	.L46
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	exec_child
	mov	edi, 152
	call	exit_errno
.L38:
	lea	rsi, .LC3[rip]
	mov	edi, 156
	call	exit_error
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main_with_child, .-main_with_child
	.section	.rodata
.LC4:
	.string	"--"
	.align 8
.LC5:
	.string	"[WARNING]: %s will not working unless running as pid 1\n"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR prog_name[rip], rax
	mov	DWORD PTR -8[rbp], 1
	jmp	.L49
.L52:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L50
	mov	eax, DWORD PTR -8[rbp]
	sub	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	QWORD PTR -32[rbp], rax
	jmp	.L51
.L50:
	add	DWORD PTR -8[rbp], 1
.L49:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L52
.L51:
	call	getpid@PLT
	cmp	eax, 1
	je	.L53
	mov	rdx, QWORD PTR prog_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -20[rbp], 1
	jle	.L54
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	exec_child
	mov	edi, 173
	call	exit_errno
.L54:
	mov	edi, 0
	call	_exit@PLT
.L53:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L55
.L56:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 21538
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	add	DWORD PTR -4[rbp], 1
.L55:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L56
	cmp	DWORD PTR -20[rbp], 1
	jne	.L57
	mov	eax, 0
	call	main_sleep
.L57:
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	main_with_child
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"72013478.c"
	.text
	.local	prog_name
	.comm	prog_name,4,4
	.local	set_block
	.comm	set_block,128,4
	.local	set_normal
	.comm	set_normal,128,4
	.local	last_sig
	.comm	last_sig,4,4
	.section	.rodata
	.align	2
	.type	fwd_list, %object
	.size	fwd_list, 28
fwd_list:
	.word	1
	.word	2
	.word	3
	.word	15
	.word	10
	.word	12
	.word	28
	.align	2
	.type	unpause_list, %object
	.size	unpause_list, 12
unpause_list:
	.word	2
	.word	15
	.word	17
	.align	2
	.type	sig_alrm, %object
	.size	sig_alrm, 4
sig_alrm:
	.word	14
	.align	2
.LC0:
	.ascii	"[ERROR %s] line %d: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit_error, %function
exit_error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L2
	ldr	r0, [r3]
	ldr	r3, .L2+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	ldr	r1, .L2+8
	bl	fprintf
	mov	r0, #1
	bl	_exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	prog_name
	.word	.LC0
	.size	exit_error, .-exit_error
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit_errno, %function
exit_errno:
	@ 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]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	exit_error
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	exit_errno, .-exit_errno
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	block_signal, %function
block_signal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #0
	ldr	r1, .L6
	mov	r0, #2
	bl	sigprocmask
	nop
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	set_block
	.size	block_signal, .-block_signal
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unblock_signals, %function
unblock_signals:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #0
	ldr	r1, .L9
	mov	r0, #2
	bl	sigprocmask
	nop
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	set_normal
	.size	unblock_signals, .-unblock_signals
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_signal, %function
handle_signal:
	@ 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	r2, .L12
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	bl	block_signal
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	last_sig
	.size	handle_signal, .-handle_signal
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_signal_handler, %function
register_signal_handler:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L21+4
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L15
.L16:
	ldr	r3, [fp, #-156]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-160]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+4
	bl	sigaddset
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L15:
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-164]
	cmp	r2, r3
	blt	.L16
	ldr	r2, .L21+8
	mov	r1, #0
	mov	r0, #2
	bl	sigprocmask
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L21+12
	str	r3, [fp, #-148]
	ldr	r2, .L21+4
	sub	r3, fp, #144
	mov	r1, r2
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L17
.L19:
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-160]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r1, fp, #148
	mov	r2, #0
	mov	r0, r3
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	mov	r0, #61
	bl	exit_errno
.L18:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L17:
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-164]
	cmp	r2, r3
	blt	.L19
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC1
	.word	set_block
	.word	set_normal
	.word	handle_signal
	.size	register_signal_handler, .-register_signal_handler
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_signal_handler, %function
reset_signal_handler:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-152]
	b	.L24
.L26:
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-160]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r1, fp, #148
	mov	r2, #0
	mov	r0, r3
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L25
	mov	r0, #70
	bl	exit_errno
.L25:
	ldr	r3, [fp, #-152]
	add	r3, r3, #1
	str	r3, [fp, #-152]
.L24:
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-164]
	cmp	r2, r3
	blt	.L26
	bl	unblock_signals
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC2
	.size	reset_signal_handler, .-reset_signal_handler
	.section	.rodata
	.align	2
.LC3:
	.ascii	"NULL\000"
	.align	2
.LC4:
	.ascii	"Terminated by signal %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kill_all_and_exit, %function
kill_all_and_exit:
	@ 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]
	str	r1, [fp, #-20]
	mov	r1, #18
	mvn	r0, #0
	bl	kill
	mov	r1, #15
	mvn	r0, #0
	bl	kill
	mov	r1, #1
	ldr	r0, .L36
	bl	register_signal_handler
	mov	r0, #5
	bl	alarm
	nop
.L31:
	mov	r0, #0
	bl	wait
	mov	r3, r0
	cmn	r3, #1
	bne	.L31
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #10
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-8]
	mov	r0, #0
	bl	alarm
	mov	r1, #1
	ldr	r0, .L36
	bl	reset_signal_handler
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L33
	mov	r0, #1
	bl	_exit
.L33:
	mov	r0, #0
	bl	_exit
.L32:
	ldr	r3, [fp, #-20]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-20]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r0, r3
	bl	_exit
.L34:
	ldr	r3, [fp, #-20]
	and	r3, r3, #127
	mov	r0, r3
	bl	strsignal
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L36+4
	str	r3, [fp, #-12]
.L35:
	ldr	r3, .L36+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L36+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-20]
	and	r3, r3, #127
	add	r3, r3, #128
	mov	r0, r3
	bl	_exit
.L37:
	.align	2
.L36:
	.word	sig_alrm
	.word	.LC3
	.word	stderr
	.word	.LC4
	.size	kill_all_and_exit, .-kill_all_and_exit
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	main_sleep, %function
main_sleep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #3
	ldr	r0, .L43
	bl	register_signal_handler
.L41:
	bl	unblock_signals
	bl	pause
	ldr	r3, .L43+4
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L42
	mov	r1, #3
	ldr	r0, .L43
	bl	reset_signal_handler
	mov	r1, #0
	mov	r0, #1
	bl	kill_all_and_exit
.L42:
	nop
.L40:
	mov	r2, #1
	mov	r1, #0
	mvn	r0, #0
	bl	waitpid
	mov	r3, r0
	cmp	r3, #0
	bgt	.L40
	b	.L41
.L44:
	.align	2
.L43:
	.word	unpause_list
	.word	last_sig
	.size	main_sleep, .-main_sleep
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec_child, %function
exec_child:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	ip, [fp, #-32]
	sub	r3, ip, #1
	str	r3, [fp, #-24]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L46
.L47:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	sub	r2, r2, #1
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L46:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L47
	ldr	r3, [fp, #-32]
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	execvp
	mov	sp, r4
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC5
	.size	exec_child, .-exec_child
	.section	.rodata
	.align	2
.LC6:
	.ascii	"DEAD CODE !!\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	main_with_child, %function
main_with_child:
	@ 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, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L52
	mov	r0, #124
	bl	exit_errno
	b	.L53
.L52:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L54
	mov	r1, #7
	ldr	r0, .L63+4
	bl	register_signal_handler
.L59:
	bl	unblock_signals
	sub	r3, fp, #24
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L55
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L56
	ldr	r3, .L63+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	kill
	b	.L59
.L56:
	mov	r0, #137
	bl	exit_errno
	b	.L59
.L55:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L59
	ldr	r3, [fp, #-24]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L59
.L58:
	mov	r1, #7
	ldr	r0, .L63+4
	bl	reset_signal_handler
	ldr	r3, [fp, #-24]
	mov	r1, r3
	mov	r0, #0
	bl	kill_all_and_exit
	b	.L59
.L54:
	bl	setsid
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L60
.L61:
	mov	r2, #0
	ldr	r1, .L63+12
	ldr	r0, [fp, #-20]
	bl	ioctl
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L60:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	ble	.L61
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	exec_child
	mov	r0, #152
	bl	exit_errno
.L53:
	ldr	r1, .L63+16
	mov	r0, #156
	bl	exit_error
	nop
	ldr	r3, .L63
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC7
	.word	fwd_list
	.word	last_sig
	.word	21518
	.word	.LC6
	.size	main_with_child, .-main_with_child
	.section	.rodata
	.align	2
.LC8:
	.ascii	"--\000"
	.align	2
.LC9:
	.ascii	"[WARNING]: %s will not working unless running as pi"
	.ascii	"d 1\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L76
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L66
.L69:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L76+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	b	.L68
.L67:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L66:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L69
.L68:
	bl	getpid
	mov	r3, r0
	cmp	r3, #1
	beq	.L70
	ldr	r3, .L76+8
	ldr	r3, [r3]
	ldr	r2, .L76
	ldr	r2, [r2]
	ldr	r1, .L76+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L71
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	exec_child
	mov	r0, #173
	bl	exit_errno
.L71:
	mov	r0, #0
	bl	_exit
.L70:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L72
.L73:
	ldr	r1, .L76+16
	ldr	r0, [fp, #-8]
	bl	ioctl
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L72:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L73
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L74
	bl	main_sleep
.L74:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	main_with_child
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	prog_name
	.word	.LC8
	.word	stderr
	.word	.LC9
	.word	21538
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
