	.file	"839367.c"
	.intel_syntax noprefix
	.text
	.globl	colours
	.section	.rodata
.LC0:
	.string	"\033[30m\033[47m"
.LC1:
	.string	"\033[36m\033[41m"
.LC2:
	.string	"\033[32m\033[45m"
.LC3:
	.string	"\033[34m\033[43m"
.LC4:
	.string	"\033[30m\033[46m"
.LC5:
	.string	"\033[37m\033[41m"
.LC6:
	.string	"\033[34m\033[42m"
.LC7:
	.string	"\033[33m\033[45m"
.LC8:
	.string	"\033[30m\033[42m"
.LC9:
	.string	"\033[33m\033[41m"
.LC10:
	.string	"\033[34m\033[46m"
.LC11:
	.string	"\033[35m\033[47m"
.LC12:
	.string	"\033[30m\033[43m"
.LC13:
	.string	"\033[32m\033[41m"
.LC14:
	.string	"\033[34m\033[47m"
.LC15:
	.string	"\033[36m\033[45m"
.LC16:
	.string	"\033[37m\033[40m"
.LC17:
	.string	"\033[31m\033[46m"
.LC18:
	.string	"\033[35m\033[42m"
.LC19:
	.string	"\033[33m\033[44m"
.LC20:
	.string	"\033[36m\033[40m"
.LC21:
	.string	"\033[31m\033[47m"
.LC22:
	.string	"\033[32m\033[44m"
.LC23:
	.string	"\033[35m\033[43m"
.LC24:
	.string	"\033[32m\033[40m"
.LC25:
	.string	"\033[31m\033[43m"
.LC26:
	.string	"\033[36m\033[44m"
.LC27:
	.string	"\033[37m\033[45m"
.LC28:
	.string	"\033[33m\033[40m"
.LC29:
	.string	"\033[31m\033[42m"
.LC30:
	.string	"\033[37m\033[44m"
.LC31:
	.string	"\033[35m\033[46m"
	.section	.data.rel.local,"aw"
	.align 32
	.type	colours, @object
	.size	colours, 256
colours:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.quad	.LC11
	.quad	.LC12
	.quad	.LC13
	.quad	.LC14
	.quad	.LC15
	.quad	.LC16
	.quad	.LC17
	.quad	.LC18
	.quad	.LC19
	.quad	.LC20
	.quad	.LC21
	.quad	.LC22
	.quad	.LC23
	.quad	.LC24
	.quad	.LC25
	.quad	.LC26
	.quad	.LC27
	.quad	.LC28
	.quad	.LC29
	.quad	.LC30
	.quad	.LC31
	.globl	colour
	.bss
	.align 8
	.type	colour, @object
	.size	colour, 8
colour:
	.zero	8
	.local	signal_SIGINT
	.comm	signal_SIGINT,4,4
	.local	signal_SIGQUIT
	.comm	signal_SIGQUIT,4,4
	.local	signal_SIGHUP
	.comm	signal_SIGHUP,4,4
	.local	signal_SIGTERM
	.comm	signal_SIGTERM,4,4
	.local	signal_SIGABRT
	.comm	signal_SIGABRT,4,4
	.local	signal_SIGCONT
	.comm	signal_SIGCONT,4,4
	.local	signal_SIGTSTP
	.comm	signal_SIGTSTP,4,4
	.section	.rodata
.LC32:
	.string	"%s%7d; START\033[30m\033[0m\n"
.LC33:
	.string	"%s%7d; SIGCONT\033[30m\033[0m\n"
.LC34:
	.string	"%s%7d; tick %d\033[30m\033[0m\n"
.LC35:
	.string	"%s%7d; SIGINT\033[30m\033[0m\n"
.LC36:
	.string	"%s%7d; SIGQUIT\033[30m\033[0m\n"
.LC37:
	.string	"%s%7d; SIGHUP\033[30m\033[0m\n"
.LC38:
	.string	"%s%7d; SIGTSTP\033[30m\033[0m\n"
.LC39:
	.string	"%s%7d; SIGABRT\033[30m\033[0m\n"
.LC40:
	.string	"%s%7d; SIGTERM\033[30m\033[0m\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
	sub	rsp, 240
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	getpid@PLT
	mov	DWORD PTR -216[rbp], eax
	mov	edi, 2
	call	sysconf@PLT
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -200[rbp], rax
	mov	eax, DWORD PTR -216[rbp]
	cdq
	shr	edx, 27
	add	eax, edx
	and	eax, 31
	sub	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, colours[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR colour[rip], rax
	cmp	DWORD PTR -228[rbp], 2
	jg	.L2
	cmp	DWORD PTR -228[rbp], 2
	jne	.L3
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L3
.L2:
	mov	rax, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	PrintUsage
.L3:
	mov	rdx, QWORD PTR colour[rip]
	mov	ecx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fflush@PLT
	lea	rsi, SignalHandler[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, SignalHandler[rip]
	mov	edi, 3
	call	signal@PLT
	lea	rsi, SignalHandler[rip]
	mov	edi, 1
	call	signal@PLT
	lea	rsi, SignalHandler[rip]
	mov	edi, 15
	call	signal@PLT
	lea	rsi, SignalHandler[rip]
	mov	edi, 6
	call	signal@PLT
	lea	rsi, SignalHandler[rip]
	mov	edi, 20
	call	signal@PLT
	mov	edx, 20
	mov	esi, 0
	mov	edi, 0
	call	setpriority@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -228[rbp], 1
	jle	.L4
	mov	rax, QWORD PTR -240[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L5
.L4:
	mov	eax, 20
.L5:
	mov	DWORD PTR -220[rbp], eax
	cmp	DWORD PTR -220[rbp], 0
	jg	.L6
	mov	DWORD PTR -220[rbp], 1
.L6:
	mov	DWORD PTR -224[rbp], 0
	jmp	.L7
.L17:
	mov	eax, DWORD PTR signal_SIGCONT[rip]
	test	eax, eax
	je	.L8
	mov	DWORD PTR signal_SIGCONT[rip], 0
	mov	rdx, QWORD PTR colour[rip]
	mov	ecx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fflush@PLT
.L8:
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	times@PLT
	mov	QWORD PTR -192[rbp], rax
	mov	edi, 1
	call	sleep@PLT
	mov	DWORD PTR -212[rbp], eax
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	times@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	DWORD PTR -212[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR -192[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rcx, rax
	shr	rcx, 63
	add	rax, rcx
	sar	rax
	cmp	rdx, rax
	jle	.L10
.L9:
	add	DWORD PTR -224[rbp], 1
	mov	rdx, QWORD PTR colour[rip]
	mov	esi, DWORD PTR -224[rbp]
	mov	ecx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	r8d, esi
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L10:
	mov	eax, DWORD PTR signal_SIGINT[rip]
	test	eax, eax
	je	.L11
	mov	rdx, QWORD PTR colour[rip]
	mov	ecx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR signal_SIGQUIT[rip]
	test	eax, eax
	je	.L12
	mov	rdx, QWORD PTR colour[rip]
	mov	ecx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR signal_SIGHUP[rip]
	test	eax, eax
	je	.L13
	mov	rdx, QWORD PTR colour[rip]
	mov	ecx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L13:
	mov	eax, DWORD PTR signal_SIGTSTP[rip]
	test	eax, eax
	je	.L14
	mov	DWORD PTR signal_SIGTSTP[rip], 0
	mov	rdx, QWORD PTR colour[rip]
	mov	ecx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -144[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigprocmask@PLT
	mov	esi, 0
	mov	edi, 20
	call	signal@PLT
	mov	edi, 20
	call	raise@PLT
	lea	rsi, SignalHandler[rip]
	mov	edi, 20
	call	signal@PLT
	mov	DWORD PTR signal_SIGCONT[rip], 1
.L14:
	mov	eax, DWORD PTR signal_SIGABRT[rip]
	test	eax, eax
	je	.L15
	mov	rdx, QWORD PTR colour[rip]
	mov	ecx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fflush@PLT
	mov	esi, 0
	mov	edi, 6
	call	signal@PLT
	mov	edi, 6
	call	raise@PLT
.L15:
	mov	eax, DWORD PTR signal_SIGTERM[rip]
	test	eax, eax
	je	.L16
	mov	rdx, QWORD PTR colour[rip]
	mov	ecx, DWORD PTR -216[rbp]
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	fflush@PLT
.L7:
	mov	eax, DWORD PTR -224[rbp]
	cmp	eax, DWORD PTR -220[rbp]
	jl	.L17
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	SignalHandler, @function
SignalHandler:
.LFB7:
	.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], 20
	ja	.L29
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L22[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L22[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L22:
	.long	.L29-.L22
	.long	.L28-.L22
	.long	.L27-.L22
	.long	.L26-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L25-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L24-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L23-.L22
	.long	.L29-.L22
	.long	.L21-.L22
	.text
.L27:
	mov	DWORD PTR signal_SIGINT[rip], 1
	jmp	.L20
.L26:
	mov	DWORD PTR signal_SIGQUIT[rip], 1
	jmp	.L20
.L28:
	mov	DWORD PTR signal_SIGHUP[rip], 1
	jmp	.L20
.L23:
	mov	DWORD PTR signal_SIGCONT[rip], 1
	jmp	.L20
.L21:
	mov	DWORD PTR signal_SIGTSTP[rip], 1
	jmp	.L20
.L25:
	mov	DWORD PTR signal_SIGABRT[rip], 1
	jmp	.L20
.L24:
	mov	DWORD PTR signal_SIGTERM[rip], 1
	nop
.L20:
.L29:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	SignalHandler, .-SignalHandler
	.section	.rodata
.LC41:
	.string	"sigtrap"
	.align 8
.LC42:
	.ascii	"\n  program: %s - trap and report process control signals\n\n"
	.ascii	"    usage:\n\n      %s [seconds]\n\n      where [seconds] is"
	.ascii	" the lifetime of the program - defa"
	.string	"ult = 20s.\n\n    the program sleeps for a second, reports process id and tick count\n    before sleeping again. any process control signals: SIGINT, SIGQUIT\n    SIGHUP, SIGTERM, SIGABRT, SIGCONT, SIGTSTP, are trapped and\n    reported before being actioned.\n\n"
	.text
	.globl	PrintUsage
	.type	PrintUsage, @function
PrintUsage:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	StripPath
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L31
	lea	rax, .LC41[rip]
	mov	QWORD PTR -8[rbp], rax
.L31:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC42[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 127
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	PrintUsage, .-PrintUsage
	.globl	StripPath
	.type	StripPath, @function
StripPath:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L34
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L35
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L36
.L35:
	mov	eax, 0
	jmp	.L36
.L34:
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L36
.L33:
	mov	eax, 0
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	StripPath, .-StripPath
	.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	"839367.c"
	.text
	.global	colours
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\033[30m\033[47m\000"
	.align	2
.LC1:
	.ascii	"\033[36m\033[41m\000"
	.align	2
.LC2:
	.ascii	"\033[32m\033[45m\000"
	.align	2
.LC3:
	.ascii	"\033[34m\033[43m\000"
	.align	2
.LC4:
	.ascii	"\033[30m\033[46m\000"
	.align	2
.LC5:
	.ascii	"\033[37m\033[41m\000"
	.align	2
.LC6:
	.ascii	"\033[34m\033[42m\000"
	.align	2
.LC7:
	.ascii	"\033[33m\033[45m\000"
	.align	2
.LC8:
	.ascii	"\033[30m\033[42m\000"
	.align	2
.LC9:
	.ascii	"\033[33m\033[41m\000"
	.align	2
.LC10:
	.ascii	"\033[34m\033[46m\000"
	.align	2
.LC11:
	.ascii	"\033[35m\033[47m\000"
	.align	2
.LC12:
	.ascii	"\033[30m\033[43m\000"
	.align	2
.LC13:
	.ascii	"\033[32m\033[41m\000"
	.align	2
.LC14:
	.ascii	"\033[34m\033[47m\000"
	.align	2
.LC15:
	.ascii	"\033[36m\033[45m\000"
	.align	2
.LC16:
	.ascii	"\033[37m\033[40m\000"
	.align	2
.LC17:
	.ascii	"\033[31m\033[46m\000"
	.align	2
.LC18:
	.ascii	"\033[35m\033[42m\000"
	.align	2
.LC19:
	.ascii	"\033[33m\033[44m\000"
	.align	2
.LC20:
	.ascii	"\033[36m\033[40m\000"
	.align	2
.LC21:
	.ascii	"\033[31m\033[47m\000"
	.align	2
.LC22:
	.ascii	"\033[32m\033[44m\000"
	.align	2
.LC23:
	.ascii	"\033[35m\033[43m\000"
	.align	2
.LC24:
	.ascii	"\033[32m\033[40m\000"
	.align	2
.LC25:
	.ascii	"\033[31m\033[43m\000"
	.align	2
.LC26:
	.ascii	"\033[36m\033[44m\000"
	.align	2
.LC27:
	.ascii	"\033[37m\033[45m\000"
	.align	2
.LC28:
	.ascii	"\033[33m\033[40m\000"
	.align	2
.LC29:
	.ascii	"\033[31m\033[42m\000"
	.align	2
.LC30:
	.ascii	"\033[37m\033[44m\000"
	.align	2
.LC31:
	.ascii	"\033[35m\033[46m\000"
	.data
	.align	2
	.type	colours, %object
	.size	colours, 128
colours:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.comm	colour,4,4
	.local	signal_SIGINT
	.comm	signal_SIGINT,4,4
	.local	signal_SIGQUIT
	.comm	signal_SIGQUIT,4,4
	.local	signal_SIGHUP
	.comm	signal_SIGHUP,4,4
	.local	signal_SIGTERM
	.comm	signal_SIGTERM,4,4
	.local	signal_SIGABRT
	.comm	signal_SIGABRT,4,4
	.local	signal_SIGCONT
	.comm	signal_SIGCONT,4,4
	.local	signal_SIGTSTP
	.comm	signal_SIGTSTP,4,4
	.section	.rodata
	.align	2
.LC32:
	.ascii	"%s%7d; START\033[30m\033[0m\012\000"
	.align	2
.LC33:
	.ascii	"%s%7d; SIGCONT\033[30m\033[0m\012\000"
	.align	2
.LC34:
	.ascii	"%s%7d; tick %d\033[30m\033[0m\012\000"
	.align	2
.LC35:
	.ascii	"%s%7d; SIGINT\033[30m\033[0m\012\000"
	.align	2
.LC36:
	.ascii	"%s%7d; SIGQUIT\033[30m\033[0m\012\000"
	.align	2
.LC37:
	.ascii	"%s%7d; SIGHUP\033[30m\033[0m\012\000"
	.align	2
.LC38:
	.ascii	"%s%7d; SIGTSTP\033[30m\033[0m\012\000"
	.align	2
.LC39:
	.ascii	"%s%7d; SIGABRT\033[30m\033[0m\012\000"
	.align	2
.LC40:
	.ascii	"%s%7d; SIGTERM\033[30m\033[0m\012\000"
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #200
	str	r0, [fp, #-192]
	str	r1, [fp, #-196]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getpid
	str	r0, [fp, #-176]
	mov	r0, #2
	bl	sysconf
	str	r0, [fp, #-172]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-176]
	rsbs	r2, r3, #0
	and	r3, r3, #31
	and	r2, r2, #31
	rsbpl	r3, r2, #0
	ldr	r2, .L19+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L19+12
	str	r3, [r2]
	ldr	r3, [fp, #-192]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, [fp, #-192]
	cmp	r3, #2
	bne	.L3
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-196]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, [fp, #-196]
	ldr	r3, [r3]
	mov	r0, r3
	bl	PrintUsage
.L3:
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r1, .L19+16
	ldr	r0, [fp, #-168]
	bl	fprintf
	ldr	r0, [fp, #-168]
	bl	fflush
	ldr	r1, .L19+20
	mov	r0, #2
	bl	signal
	ldr	r1, .L19+20
	mov	r0, #3
	bl	signal
	ldr	r1, .L19+20
	mov	r0, #1
	bl	signal
	ldr	r1, .L19+20
	mov	r0, #15
	bl	signal
	ldr	r1, .L19+20
	mov	r0, #6
	bl	signal
	ldr	r1, .L19+20
	mov	r0, #20
	bl	signal
	mov	r2, #20
	mov	r1, #0
	mov	r0, #0
	bl	setpriority
	str	r0, [fp, #-164]
	ldr	r3, [fp, #-192]
	cmp	r3, #1
	ble	.L4
	ldr	r3, [fp, #-196]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L5
.L4:
	mov	r3, #20
.L5:
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bgt	.L6
	mov	r3, #1
	str	r3, [fp, #-180]
.L6:
	mov	r3, #0
	str	r3, [fp, #-184]
	b	.L7
.L17:
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L19+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r1, .L19+28
	ldr	r0, [fp, #-168]
	bl	fprintf
	ldr	r0, [fp, #-168]
	bl	fflush
.L8:
	sub	r3, fp, #152
	mov	r0, r3
	bl	times
	str	r0, [fp, #-160]
	mov	r0, #1
	bl	sleep
	mov	r3, r0
	str	r3, [fp, #-164]
	sub	r3, fp, #152
	mov	r0, r3
	bl	times
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	beq	.L9
	ldr	r2, [fp, #-156]
	ldr	r3, [fp, #-160]
	sub	r2, r2, r3
	ldr	r3, [fp, #-172]
	lsr	r1, r3, #31
	add	r3, r1, r3
	asr	r3, r3, #1
	cmp	r2, r3
	ble	.L10
.L9:
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-184]
	str	r3, [sp]
	ldr	r3, [fp, #-176]
	ldr	r1, .L19+32
	ldr	r0, [fp, #-168]
	bl	fprintf
.L10:
	ldr	r3, .L19+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r1, .L19+40
	ldr	r0, [fp, #-168]
	bl	fprintf
	mov	r0, #0
	bl	exit
.L11:
	ldr	r3, .L19+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r1, .L19+48
	ldr	r0, [fp, #-168]
	bl	fprintf
	mov	r0, #0
	bl	exit
.L12:
	ldr	r3, .L19+52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r1, .L19+56
	ldr	r0, [fp, #-168]
	bl	fprintf
	mov	r0, #0
	bl	exit
.L13:
	ldr	r3, .L19+60
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L19+60
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r1, .L19+64
	ldr	r0, [fp, #-168]
	bl	fprintf
	ldr	r0, [fp, #-168]
	bl	fflush
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #136
	mov	r1, #20
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #136
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigprocmask
	mov	r1, #0
	mov	r0, #20
	bl	signal
	mov	r0, #20
	bl	raise
	ldr	r1, .L19+20
	mov	r0, #20
	bl	signal
	ldr	r3, .L19+24
	mov	r2, #1
	str	r2, [r3]
.L14:
	ldr	r3, .L19+68
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r1, .L19+72
	ldr	r0, [fp, #-168]
	bl	fprintf
	ldr	r0, [fp, #-168]
	bl	fflush
	mov	r1, #0
	mov	r0, #6
	bl	signal
	mov	r0, #6
	bl	raise
.L15:
	ldr	r3, .L19+76
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L19+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-176]
	ldr	r1, .L19+80
	ldr	r0, [fp, #-168]
	bl	fprintf
	mov	r0, #0
	bl	exit
.L16:
	ldr	r0, [fp, #-168]
	bl	fflush
.L7:
	ldr	r2, [fp, #-184]
	ldr	r3, [fp, #-180]
	cmp	r2, r3
	blt	.L17
	mov	r0, #0
	bl	exit
.L20:
	.align	2
.L19:
	.word	.LC41
	.word	stdout
	.word	colours
	.word	colour
	.word	.LC32
	.word	SignalHandler
	.word	signal_SIGCONT
	.word	.LC33
	.word	.LC34
	.word	signal_SIGINT
	.word	.LC35
	.word	signal_SIGQUIT
	.word	.LC36
	.word	signal_SIGHUP
	.word	.LC37
	.word	signal_SIGTSTP
	.word	.LC38
	.word	signal_SIGABRT
	.word	.LC39
	.word	signal_SIGTERM
	.word	.LC40
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SignalHandler, %function
SignalHandler:
	@ 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]
	sub	r3, r3, #1
	cmp	r3, #19
	ldrls	pc, [pc, r3, asl #2]
	b	.L31
.L24:
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L31
	.word	.L31
	.word	.L27
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L31
	.word	.L26
	.word	.L31
	.word	.L31
	.word	.L25
	.word	.L31
	.word	.L23
.L29:
	ldr	r3, .L32
	mov	r2, #1
	str	r2, [r3]
	b	.L22
.L28:
	ldr	r3, .L32+4
	mov	r2, #1
	str	r2, [r3]
	b	.L22
.L30:
	ldr	r3, .L32+8
	mov	r2, #1
	str	r2, [r3]
	b	.L22
.L25:
	ldr	r3, .L32+12
	mov	r2, #1
	str	r2, [r3]
	b	.L22
.L23:
	ldr	r3, .L32+16
	mov	r2, #1
	str	r2, [r3]
	b	.L22
.L27:
	ldr	r3, .L32+20
	mov	r2, #1
	str	r2, [r3]
	b	.L22
.L26:
	ldr	r3, .L32+24
	mov	r2, #1
	str	r2, [r3]
	nop
.L22:
.L31:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L33:
	.align	2
.L32:
	.word	signal_SIGINT
	.word	signal_SIGQUIT
	.word	signal_SIGHUP
	.word	signal_SIGCONT
	.word	signal_SIGTSTP
	.word	signal_SIGABRT
	.word	signal_SIGTERM
	.size	SignalHandler, .-SignalHandler
	.section	.rodata
	.align	2
.LC42:
	.ascii	"sigtrap\000"
	.align	2
.LC43:
	.ascii	"\012  program: %s - trap and report process control"
	.ascii	" signals\012\012    usage:\012\012      %s [seconds"
	.ascii	"]\012\012      where [seconds] is the lifetime of t"
	.ascii	"he program - default = 20s.\012\012    the program "
	.ascii	"sleeps for a second, reports process id and tick co"
	.ascii	"unt\012    before sleeping again. any process contr"
	.ascii	"ol signals: SIGINT, SIGQUIT\012    SIGHUP, SIGTERM,"
	.ascii	" SIGABRT, SIGCONT, SIGTSTP, are trapped and\012    "
	.ascii	"reported before being actioned.\012\012\000"
	.text
	.align	2
	.global	PrintUsage
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintUsage, %function
PrintUsage:
	@ 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	r0, [fp, #-16]
	bl	StripPath
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L35
	ldr	r3, .L36
	str	r3, [fp, #-8]
.L35:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L36+4
	bl	printf
	mov	r0, #127
	bl	exit
.L37:
	.align	2
.L36:
	.word	.LC42
	.word	.LC43
	.size	PrintUsage, .-PrintUsage
	.align	2
	.global	StripPath
	.syntax unified
	.arm
	.fpu softvfp
	.type	StripPath, %function
StripPath:
	@ 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, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L39
	mov	r1, #47
	ldr	r0, [fp, #-8]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-8]
	b	.L42
.L41:
	mov	r3, #0
	b	.L42
.L40:
	ldr	r3, [fp, #-16]
	b	.L42
.L39:
	mov	r3, #0
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	StripPath, .-StripPath
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
