	.file	"186823.c"
	.intel_syntax noprefix
	.text
	.globl	sigs
	.data
	.align 16
	.type	sigs, @object
	.size	sigs, 24
sigs:
	.long	6
	.long	8
	.long	4
	.long	2
	.long	11
	.long	15
	.align 16
	.type	rets, @object
	.size	rets, 24
rets:
	.quad	0
	.quad	-1
	.quad	1
	.local	atomic
	.comm	atomic,4,4
	.section	.rodata
.LC0:
	.string	"tick"
	.text
	.globl	tick
	.type	tick, @function
tick:
.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	tick, .-tick
	.section	.rodata
.LC1:
	.string	"tock"
	.text
	.globl	tock
	.type	tock, @function
tock:
.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
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	tock, .-tock
	.section	.rodata
.LC2:
	.string	"Exiting via myexit"
	.text
	.globl	myexit
	.type	myexit, @function
myexit:
.LFB2:
	.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
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE2:
	.size	myexit, .-myexit
	.section	.rodata
.LC3:
	.string	"raised 1"
	.text
	.globl	myraised1
	.type	myraised1, @function
myraised1:
.LFB3:
	.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
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	myraised1, .-myraised1
	.section	.rodata
.LC4:
	.string	"raised 2"
	.text
	.globl	myraised2
	.type	myraised2, @function
myraised2:
.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
	lea	rdi, .LC4[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	myraised2, .-myraised2
	.globl	T1
	.type	T1, @function
T1:
.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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
.L11:
	lea	rsi, tick[rip]
	mov	edi, 14
	call	__sysv_signal@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	edi, 14
	call	raise@PLT
	lea	rsi, tock[rip]
	mov	edi, 14
	call	__sysv_signal@PLT
	mov	edi, 1
	call	alarm@PLT
	call	pause@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	cmp	DWORD PTR -4[rbp], eax
	je	.L13
	jmp	.L11
.L13:
	nop
	mov	esi, 0
	mov	edi, 14
	call	__sysv_signal@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	T1, .-T1
	.globl	T2
	.type	T2, @function
T2:
.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, 16
	mov	DWORD PTR -12[rbp], 0
	lea	rsi, myraised1[rip]
	mov	edi, 8
	call	__sysv_signal@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 8
	call	raise@PLT
	lea	rsi, myraised2[rip]
	mov	edi, 8
	call	__sysv_signal@PLT
	mov	edi, 8
	call	raise@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 8
	call	__sysv_signal@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	T2, .-T2
	.section	.rodata
	.align 8
.LC5:
	.string	"An error occured while setting a signal handler."
	.align 8
.LC6:
	.string	"Raising the interactive attention signal."
.LC7:
	.string	"Error raising the signal."
	.align 8
.LC8:
	.string	"leaving interactive attention signal."
	.text
	.globl	T3
	.type	T3, @function
T3:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, catch_function[rip]
	mov	edi, 2
	call	__sysv_signal@PLT
	cmp	rax, -1
	jne	.L16
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L16:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 2
	call	raise@PLT
	test	eax, eax
	je	.L17
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L17:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	T3, .-T3
	.section	.rodata
	.align 8
.LC9:
	.string	"Interactive attention signal caught."
	.text
	.globl	catch_function
	.type	catch_function, @function
catch_function:
.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
	lea	rdi, .LC9[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	catch_function, .-catch_function
	.globl	keep_going
	.data
	.align 4
	.type	keep_going, @object
	.size	keep_going, 4
keep_going:
	.long	1
	.section	.rodata
.LC10:
	.string	"MY ALARM"
	.text
	.globl	catch_alarm
	.type	catch_alarm, @function
catch_alarm:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR keep_going[rip], 0
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, catch_alarm[rip]
	mov	edi, eax
	call	__sysv_signal@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	catch_alarm, .-catch_alarm
	.section	.rodata
	.align 8
.LC11:
	.string	"Doing stuff while waiting for alarm...."
	.text
	.globl	do_stuff
	.type	do_stuff, @function
do_stuff:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR keep_going[rip]
	test	eax, eax
	je	.L22
	lea	rdi, .LC11[rip]
	call	puts@PLT
.L22:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	do_stuff, .-do_stuff
	.globl	T4
	.type	T4, @function
T4:
.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
	lea	rsi, catch_alarm[rip]
	mov	edi, 14
	call	__sysv_signal@PLT
	mov	edi, 1
	call	alarm@PLT
	jmp	.L24
.L27:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L26:
	add	DWORD PTR -4[rbp], 1
.L25:
	cmp	DWORD PTR -4[rbp], 32766
	jbe	.L26
	call	do_stuff
.L24:
	mov	eax, DWORD PTR keep_going[rip]
	test	eax, eax
	jne	.L27
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	T4, .-T4
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	T1
	mov	eax, 0
	call	T2
	call	T3
	call	T4
	lea	rsi, myexit[rip]
	mov	edi, 15
	call	__sysv_signal@PLT
	mov	edi, 15
	call	raise@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"186823.c"
	.text
	.global	sigs
	.data
	.align	2
	.type	sigs, %object
	.size	sigs, 24
sigs:
	.word	6
	.word	8
	.word	4
	.word	2
	.word	11
	.word	15
	.align	2
	.type	rets, %object
	.size	rets, 12
rets:
	.word	0
	.word	-1
	.word	1
	.local	atomic
	.comm	atomic,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"tick\000"
	.text
	.align	2
	.global	tick
	.syntax unified
	.arm
	.fpu softvfp
	.type	tick, %function
tick:
	@ 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, .L3
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	tick, .-tick
	.section	.rodata
	.align	2
.LC1:
	.ascii	"tock\000"
	.text
	.align	2
	.global	tock
	.syntax unified
	.arm
	.fpu softvfp
	.type	tock, %function
tock:
	@ 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, .L7
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.size	tock, .-tock
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Exiting via myexit\000"
	.text
	.align	2
	.global	myexit
	.syntax unified
	.arm
	.fpu softvfp
	.type	myexit, %function
myexit:
	@ 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, .L10
	bl	puts
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	.LC2
	.size	myexit, .-myexit
	.section	.rodata
	.align	2
.LC3:
	.ascii	"raised 1\000"
	.text
	.align	2
	.global	myraised1
	.syntax unified
	.arm
	.fpu softvfp
	.type	myraised1, %function
myraised1:
	@ 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, .L13
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.size	myraised1, .-myraised1
	.section	.rodata
	.align	2
.LC4:
	.ascii	"raised 2\000"
	.text
	.align	2
	.global	myraised2
	.syntax unified
	.arm
	.fpu softvfp
	.type	myraised2, %function
myraised2:
	@ 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, .L16
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.size	myraised2, .-myraised2
	.align	2
	.global	T1
	.syntax unified
	.arm
	.fpu softvfp
	.type	T1, %function
T1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
.L21:
	ldr	r1, .L24
	mov	r0, #14
	bl	__sysv_signal
	mov	r0, #1
	bl	sleep
	mov	r0, #14
	bl	raise
	ldr	r1, .L24+4
	mov	r0, #14
	bl	__sysv_signal
	mov	r0, #1
	bl	alarm
	bl	pause
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L23
	b	.L21
.L23:
	nop
	mov	r1, #0
	mov	r0, #14
	bl	__sysv_signal
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	tick
	.word	tock
	.size	T1, .-T1
	.align	2
	.global	T2
	.syntax unified
	.arm
	.fpu softvfp
	.type	T2, %function
T2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L27
	mov	r0, #8
	bl	__sysv_signal
	str	r0, [fp, #-8]
	mov	r0, #8
	bl	raise
	ldr	r1, .L27+4
	mov	r0, #8
	bl	__sysv_signal
	mov	r0, #8
	bl	raise
	ldr	r1, [fp, #-8]
	mov	r0, #8
	bl	__sysv_signal
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	myraised1
	.word	myraised2
	.size	T2, .-T2
	.section	.rodata
	.align	2
.LC5:
	.ascii	"An error occured while setting a signal handler.\000"
	.align	2
.LC6:
	.ascii	"Raising the interactive attention signal.\000"
	.align	2
.LC7:
	.ascii	"Error raising the signal.\000"
	.align	2
.LC8:
	.ascii	"leaving interactive attention signal.\000"
	.text
	.align	2
	.global	T3
	.syntax unified
	.arm
	.fpu softvfp
	.type	T3, %function
T3:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L32
	mov	r0, #2
	bl	__sysv_signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L32+4
	bl	puts
	mov	r0, #0
	bl	exit
.L30:
	ldr	r0, .L32+8
	bl	puts
	mov	r0, #2
	bl	raise
	mov	r3, r0
	cmp	r3, #0
	beq	.L31
	ldr	r0, .L32+12
	bl	puts
	mov	r0, #0
	bl	exit
.L31:
	ldr	r0, .L32+16
	bl	puts
	nop
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	catch_function
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	T3, .-T3
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Interactive attention signal caught.\000"
	.text
	.align	2
	.global	catch_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	catch_function, %function
catch_function:
	@ 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, .L35
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC9
	.size	catch_function, .-catch_function
	.global	keep_going
	.data
	.align	2
	.type	keep_going, %object
	.size	keep_going, 4
keep_going:
	.word	1
	.section	.rodata
	.align	2
.LC10:
	.ascii	"MY ALARM\000"
	.text
	.align	2
	.global	catch_alarm
	.syntax unified
	.arm
	.fpu softvfp
	.type	catch_alarm, %function
catch_alarm:
	@ 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, .L38
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L38+4
	ldr	r0, [fp, #-8]
	bl	__sysv_signal
	ldr	r0, .L38+8
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	keep_going
	.word	catch_alarm
	.word	.LC10
	.size	catch_alarm, .-catch_alarm
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Doing stuff while waiting for alarm....\000"
	.text
	.align	2
	.global	do_stuff
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_stuff, %function
do_stuff:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L43
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L42
	ldr	r0, .L43+4
	bl	puts
.L42:
	nop
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	keep_going
	.word	.LC11
	.size	do_stuff, .-do_stuff
	.align	2
	.global	T4
	.syntax unified
	.arm
	.fpu softvfp
	.type	T4, %function
T4:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r1, .L51
	mov	r0, #14
	bl	__sysv_signal
	mov	r0, #1
	bl	alarm
	b	.L46
.L49:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L47
.L48:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L47:
	ldr	r3, [fp, #-8]
	ldr	r2, .L51+4
	cmp	r3, r2
	bls	.L48
	bl	do_stuff
.L46:
	ldr	r3, .L51+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L49
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	catch_alarm
	.word	32766
	.word	keep_going
	.size	T4, .-T4
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	T1
	bl	T2
	bl	T3
	bl	T4
	ldr	r1, .L55
	mov	r0, #15
	bl	__sysv_signal
	mov	r0, #15
	bl	raise
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	myexit
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
