	.file	"159320.c"
	.intel_syntax noprefix
	.text
	.globl	timer
	.bss
	.align 32
	.type	timer, @object
	.size	timer, 32
timer:
	.zero	32
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.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	edi, 1
	call	set_timer
	lea	rsi, alarm_handler[rip]
	mov	edi, 26
	call	sigset@PLT
	lea	rsi, alarm_handler[rip]
	mov	edi, 2
	call	sigset@PLT
	lea	rsi, memory_access_handler[rip]
	mov	edi, 11
	call	sigset@PLT
	mov	edi, 200
	call	count_loop_iterations
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"Loop iteration %d.\n"
	.text
	.globl	count_loop_iterations
	.type	count_loop_iterations, @function
count_loop_iterations:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	add	DWORD PTR -4[rbp], 1
.L5:
	cmp	DWORD PTR -4[rbp], 99999999
	jle	.L6
	add	DWORD PTR -8[rbp], 1
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L7
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	count_loop_iterations, .-count_loop_iterations
	.globl	set_timer
	.type	set_timer, @function
set_timer:
.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
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	QWORD PTR timer[rip+16], rax
	mov	QWORD PTR timer[rip+24], 0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	QWORD PTR timer[rip], rax
	mov	QWORD PTR timer[rip+8], 0
	mov	edx, 0
	lea	rsi, timer[rip]
	mov	edi, 1
	call	setitimer@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	set_timer, .-set_timer
	.section	.rodata
	.align 8
.LC2:
	.string	"    ****    Interrupted by Signal %d (SIGVTALRM)    ****\n"
	.align 8
.LC3:
	.string	"    ****    Interrupted by Signal %d (SIGINT)    ****\n"
	.align 8
.LC4:
	.string	"    ****    Interrupted by Signal %d (OTHER)    ****\n"
	.text
	.globl	alarm_handler
	.type	alarm_handler, @function
alarm_handler:
.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
	cmp	DWORD PTR -4[rbp], 26
	jne	.L10
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L10:
	cmp	DWORD PTR -4[rbp], 2
	jne	.L12
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	alarm_handler, .-alarm_handler
	.section	.rodata
	.align 8
.LC5:
	.string	"You tried to access memory you shouldn\342\200\231t. Naughty, naughty!"
	.text
	.globl	memory_access_handler
	.type	memory_access_handler, @function
memory_access_handler:
.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, .LC5[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE4:
	.size	memory_access_handler, .-memory_access_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	"159320.c"
	.text
	.comm	timer,16,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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	r0, #1
	bl	set_timer
	ldr	r1, .L3
	mov	r0, #26
	bl	sigset
	ldr	r1, .L3
	mov	r0, #2
	bl	sigset
	ldr	r1, .L3+4
	mov	r0, #11
	bl	sigset
	mov	r0, #200
	bl	count_loop_iterations
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L3+8
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	alarm_handler
	.word	memory_access_handler
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Loop iteration %d.\012\000"
	.text
	.align	2
	.global	count_loop_iterations
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_loop_iterations, %function
count_loop_iterations:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L9:
	ldr	r1, [fp, #-12]
	ldr	r0, .L10
	bl	printf
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	ldr	r2, .L10+8
	cmp	r3, r2
	ble	.L8
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L9
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	stdout
	.word	99999999
	.size	count_loop_iterations, .-count_loop_iterations
	.align	2
	.global	set_timer
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_timer, %function
set_timer:
	@ 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, .L13
	ldr	r3, [fp, #-8]
	str	r3, [r2, #8]
	ldr	r3, .L13
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r2, .L13
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L13
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r2, #0
	ldr	r1, .L13
	mov	r0, #1
	bl	setitimer
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	timer
	.size	set_timer, .-set_timer
	.section	.rodata
	.align	2
.LC2:
	.ascii	"    ****    Interrupted by Signal %d (SIGVTALRM)   "
	.ascii	" ****\012\000"
	.align	2
.LC3:
	.ascii	"    ****    Interrupted by Signal %d (SIGINT)    **"
	.ascii	"**\012\000"
	.align	2
.LC4:
	.ascii	"    ****    Interrupted by Signal %d (OTHER)    ***"
	.ascii	"*\012\000"
	.text
	.align	2
	.global	alarm_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	alarm_handler, %function
alarm_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	r3, [fp, #-8]
	cmp	r3, #26
	bne	.L16
	ldr	r1, [fp, #-8]
	ldr	r0, .L20
	bl	printf
	b	.L19
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L18
	ldr	r1, [fp, #-8]
	ldr	r0, .L20+4
	bl	printf
	b	.L19
.L18:
	ldr	r1, [fp, #-8]
	ldr	r0, .L20+8
	bl	printf
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	alarm_handler, .-alarm_handler
	.section	.rodata
	.align	2
.LC5:
	.ascii	"You tried to access memory you shouldn\342\200\231t"
	.ascii	". Naughty, naughty!\000"
	.text
	.align	2
	.global	memory_access_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	memory_access_handler, %function
memory_access_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, .L23
	bl	puts
	mov	r0, #1
	bl	exit
.L24:
	.align	2
.L23:
	.word	.LC5
	.size	memory_access_handler, .-memory_access_handler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
