	.file	"741967.c"
	.intel_syntax noprefix
	.text
	.local	QUIT_STATE
	.comm	QUIT_STATE,4,4
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"/bin/kill -l "
	.align 8
.LC2:
	.string	"Sorry, it seems like the \"kill\" directory is absent in /bin/."
.LC3:
	.string	"HUP"
.LC4:
	.string	" "
.LC5:
	.string	"Forking a child: %d\n"
.LC6:
	.string	"And finally\342\200\246"
.LC7:
	.string	"Terminated:"
.LC8:
	.string	"Exit status: %d\n"
	.align 8
.LC9:
	.string	"Starting the counter, delay: %d seconds.\n"
.LC10:
	.string	"%d: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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, 2392
	.cfi_offset 3, -24
	mov	DWORD PTR -2388[rbp], edi
	mov	QWORD PTR -2400[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	popen@PLT
	mov	QWORD PTR -2344[rbp], rax
	cmp	QWORD PTR -2344[rbp], 0
	jne	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	lea	rdx, -2080[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -1056[rbp+rax], 32
.L3:
	mov	rdx, QWORD PTR -2344[rbp]
	lea	rax, -2080[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L4
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	lea	rax, -1056[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	rcx, rax
	lea	rax, -1056[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	lea	rax, -1056[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -2352[rbp], rax
	mov	DWORD PTR -2376[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -2376[rbp]
	cdqe
	mov	rdx, QWORD PTR -2352[rbp]
	mov	QWORD PTR -2336[rbp+rax*8], rdx
	lea	rsi, .LC4[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -2352[rbp], rax
	add	DWORD PTR -2376[rbp], 1
.L5:
	cmp	QWORD PTR -2352[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -2344[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	DWORD PTR -2372[rbp], 2
	jmp	.L7
.L14:
	mov	DWORD PTR -2356[rbp], 0
	mov	DWORD PTR -2368[rbp], 0
	mov	DWORD PTR -2368[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -2372[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2400[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -2368[rbp]
	cdqe
	mov	rax, QWORD PTR -2336[rbp+rax*8]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	DWORD PTR -2356[rbp], eax
	cmp	DWORD PTR -2356[rbp], 0
	je	.L20
	add	DWORD PTR -2368[rbp], 1
.L8:
	mov	eax, DWORD PTR -2368[rbp]
	cmp	eax, 30
	jbe	.L11
	jmp	.L10
.L20:
	nop
.L10:
	cmp	DWORD PTR -2368[rbp], 2
	je	.L12
	add	DWORD PTR -2368[rbp], 1
	mov	eax, DWORD PTR -2368[rbp]
	lea	rsi, signal_handler[rip]
	mov	edi, eax
	call	signal@PLT
	jmp	.L13
.L12:
	add	DWORD PTR -2368[rbp], 1
	mov	eax, DWORD PTR -2368[rbp]
	lea	rsi, exit_handler[rip]
	mov	edi, eax
	call	signal@PLT
.L13:
	add	DWORD PTR -2372[rbp], 1
.L7:
	mov	eax, DWORD PTR -2372[rbp]
	cmp	eax, DWORD PTR -2388[rbp]
	jl	.L14
	mov	rax, QWORD PTR -2400[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2380[rbp], eax
	call	fork@PLT
	mov	DWORD PTR -2360[rbp], eax
	cmp	DWORD PTR -2360[rbp], 0
	jne	.L15
.L16:
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -2360[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -2380[rbp]
	mov	rdi, rax
	call	wait@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -2380[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L17
	mov	eax, DWORD PTR -2380[rbp]
	and	eax, 127
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	psignal@PLT
.L17:
	mov	eax, DWORD PTR -2380[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2400[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -2364[rbp], 0
.L18:
	mov	rax, QWORD PTR -2400[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	edi, eax
	call	sleep@PLT
	call	getpid@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -2364[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -2364[rbp], 1
	jmp	.L18
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC11:
	.string	"[Caught: %s]\n"
	.text
	.type	signal_handler, @function
signal_handler:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	strsignal@PLT
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	signal_handler, .-signal_handler
	.type	exit_handler, @function
exit_handler:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	strsignal@PLT
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR QUIT_STATE[rip]
	add	eax, 1
	mov	DWORD PTR QUIT_STATE[rip], eax
	mov	eax, DWORD PTR QUIT_STATE[rip]
	cmp	eax, 3
	jne	.L24
	mov	edi, 0
	call	exit@PLT
.L24:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	exit_handler, .-exit_handler
	.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	"741967.c"
	.text
	.local	QUIT_STATE
	.comm	QUIT_STATE,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"/bin/kill -l \000"
	.align	2
.LC2:
	.ascii	"Sorry, it seems like the \"kill\" directory is abse"
	.ascii	"nt in /bin/.\000"
	.align	2
.LC3:
	.ascii	"HUP\000"
	.align	2
.LC4:
	.ascii	" \000"
	.align	2
.LC5:
	.ascii	"Forking a child: %d\012\000"
	.align	2
.LC6:
	.ascii	"And finally\342\200\246\000"
	.align	2
.LC7:
	.ascii	"Terminated:\000"
	.align	2
.LC8:
	.ascii	"Exit status: %d\012\000"
	.align	2
.LC9:
	.ascii	"Starting the counter, delay: %d seconds.\012\000"
	.align	2
.LC10:
	.ascii	"%d: %d\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2224
	sub	sp, sp, #4
	str	r0, [fp, #-2232]
	str	r1, [fp, #-2236]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L21+4
	ldr	r0, .L21+8
	bl	popen
	str	r0, [fp, #-2200]
	ldr	r3, [fp, #-2200]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L21+12
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	sub	r2, fp, #2048
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3, #-1028]
.L3:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-2200]
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L21+16
	mov	r0, r3
	bl	strstr
	mov	r4, r0
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r4
	mov	r0, r3
	bl	memmove
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L21+20
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-2220]
	mov	r3, #0
	str	r3, [fp, #-2216]
	b	.L5
.L6:
	ldr	r3, [fp, #-2216]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [fp, #-2220]
	str	r2, [r3, #-2176]
	ldr	r1, .L21+20
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-2220]
	ldr	r3, [fp, #-2216]
	add	r3, r3, #1
	str	r3, [fp, #-2216]
.L5:
	ldr	r3, [fp, #-2220]
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-2200]
	bl	pclose
	mov	r3, #2
	str	r3, [fp, #-2212]
	b	.L7
.L14:
	mov	r3, #0
	str	r3, [fp, #-2192]
	mov	r3, #0
	str	r3, [fp, #-2208]
	mov	r3, #0
	str	r3, [fp, #-2208]
	b	.L8
.L11:
	ldr	r3, [fp, #-2208]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r0, [r3, #-2176]
	ldr	r3, [fp, #-2212]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2236]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcmp
	str	r0, [fp, #-2192]
	ldr	r3, [fp, #-2192]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-2208]
	add	r3, r3, #1
	str	r3, [fp, #-2208]
.L8:
	ldr	r3, [fp, #-2208]
	cmp	r3, #30
	bls	.L11
	b	.L10
.L20:
	nop
.L10:
	ldr	r3, [fp, #-2208]
	cmp	r3, #2
	beq	.L12
	ldr	r3, [fp, #-2208]
	add	r3, r3, #1
	str	r3, [fp, #-2208]
	ldr	r1, .L21+24
	ldr	r0, [fp, #-2208]
	bl	signal
	b	.L13
.L12:
	ldr	r3, [fp, #-2208]
	add	r3, r3, #1
	str	r3, [fp, #-2208]
	ldr	r1, .L21+28
	ldr	r0, [fp, #-2208]
	bl	signal
.L13:
	ldr	r3, [fp, #-2212]
	add	r3, r3, #1
	str	r3, [fp, #-2212]
.L7:
	ldr	r2, [fp, #-2212]
	ldr	r3, [fp, #-2232]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-2236]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-2224]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-2196]
	ldr	r3, [fp, #-2196]
	cmp	r3, #0
	bne	.L15
.L16:
	b	.L16
.L15:
	ldr	r1, [fp, #-2196]
	ldr	r0, .L21+32
	bl	printf
	sub	r3, fp, #2208
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	wait
	ldr	r0, .L21+36
	bl	puts
	ldr	r3, [fp, #-2224]
	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	.L17
	ldr	r3, [fp, #-2224]
	and	r3, r3, #127
	ldr	r1, .L21+40
	mov	r0, r3
	bl	psignal
.L17:
	ldr	r3, [fp, #-2224]
	mov	r1, r3
	ldr	r0, .L21+44
	bl	printf
	ldr	r3, [fp, #-2236]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L21+48
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-2204]
.L18:
	ldr	r3, [fp, #-2236]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r0, r3
	bl	sleep
	bl	getpid
	mov	r3, r0
	ldr	r2, [fp, #-2204]
	mov	r1, r3
	ldr	r0, .L21+52
	bl	printf
	ldr	r3, [fp, #-2204]
	add	r3, r3, #1
	str	r3, [fp, #-2204]
	b	.L18
.L22:
	.align	2
.L21:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	signal_handler
	.word	exit_handler
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
.LC12:
	.ascii	"[Caught: %s]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ 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	r0, [fp, #-8]
	bl	strsignal
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L24
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC12
	.size	signal_handler, .-signal_handler
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exit_handler, %function
exit_handler:
	@ 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	r0, [fp, #-8]
	bl	strsignal
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L29
	bl	printf
	ldr	r3, .L29+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29+4
	str	r3, [r2]
	ldr	r3, .L29+4
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L28
	mov	r0, #0
	bl	exit
.L28:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC12
	.word	QUIT_STATE
	.size	exit_handler, .-exit_handler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
