	.file	"1102450.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"SIGINT received"
	.text
	.type	signal_handler, @function
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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	signal_handler, .-signal_handler
	.section	.rodata
.LC1:
	.string	"%d: ON\n"
.LC2:
	.string	"%d: OFF\n"
	.text
	.globl	dump_signal_set
	.type	dump_signal_set, @function
dump_signal_set:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L3
.L6:
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sigismember@PLT
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	add	DWORD PTR -4[rbp], 1
.L3:
	cmp	DWORD PTR -4[rbp], 65
	jne	.L6
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dump_signal_set, .-dump_signal_set
	.section	.rodata
.LC3:
	.string	"Set signal handler failed"
.LC4:
	.string	"Use signal_handler"
.LC5:
	.string	"Empty new_set failed"
.LC6:
	.string	"Add to new_set failed"
.LC7:
	.string	"Mask signal failed"
.LC8:
	.string	"++++++++++++++++++++"
.LC9:
	.string	"New set"
.LC10:
	.string	"Old set"
.LC11:
	.string	"Empty pend_set failed"
.LC12:
	.string	"Get pending set failed"
.LC13:
	.string	"Pending set"
.LC14:
	.string	"Unmask signal failed"
.LC15:
	.string	"Set mask failed"
.LC16:
	.string	"Set default handler failed"
.LC17:
	.string	"Default handler"
	.text
	.globl	main
	.type	main, @function
main:
.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, 432
	mov	DWORD PTR -420[rbp], edi
	mov	QWORD PTR -432[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -404[rbp], 0
	lea	rsi, signal_handler[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	rax, -1
	jne	.L8
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -400[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -404[rbp], eax
	cmp	DWORD PTR -404[rbp], 0
	je	.L9
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rax, -400[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	mov	DWORD PTR -404[rbp], eax
	cmp	DWORD PTR -404[rbp], 0
	je	.L10
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rdx, -272[rbp]
	lea	rax, -400[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	mov	DWORD PTR -404[rbp], eax
	cmp	DWORD PTR -404[rbp], 0
	je	.L11
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	DWORD PTR -408[rbp], 0
	jmp	.L12
.L13:
	mov	edi, 2
	call	raise@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -408[rbp], 1
.L12:
	cmp	DWORD PTR -408[rbp], 5
	jne	.L13
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -400[rbp]
	mov	rdi, rax
	call	dump_signal_set
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	dump_signal_set
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -404[rbp], eax
	cmp	DWORD PTR -404[rbp], 0
	je	.L14
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigpending@PLT
	mov	DWORD PTR -404[rbp], eax
	cmp	DWORD PTR -404[rbp], 0
	je	.L15
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	dump_signal_set
	lea	rdx, -272[rbp]
	lea	rax, -400[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	sigprocmask@PLT
	mov	DWORD PTR -404[rbp], eax
	cmp	DWORD PTR -404[rbp], 0
	je	.L16
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	lea	rax, -272[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	mov	DWORD PTR -404[rbp], eax
	cmp	DWORD PTR -404[rbp], 0
	je	.L17
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	esi, 0
	mov	edi, 2
	call	signal@PLT
	cmp	rax, -1
	jne	.L18
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"1102450.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SIGINT received\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, .L2
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d: ON\012\000"
	.align	2
.LC2:
	.ascii	"%d: OFF\012\000"
	.text
	.align	2
	.global	dump_signal_set
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_signal_set, %function
dump_signal_set:
	@ 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, #-8]
	b	.L5
.L8:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	sigismember
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	ldr	r1, [fp, #-8]
	ldr	r0, .L9
	bl	printf
	b	.L7
.L6:
	ldr	r1, [fp, #-8]
	ldr	r0, .L9+4
	bl	printf
.L7:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #65
	bne	.L8
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC2
	.size	dump_signal_set, .-dump_signal_set
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Set signal handler failed\000"
	.align	2
.LC4:
	.ascii	"Use signal_handler\000"
	.align	2
.LC5:
	.ascii	"Empty new_set failed\000"
	.align	2
.LC6:
	.ascii	"Add to new_set failed\000"
	.align	2
.LC7:
	.ascii	"Mask signal failed\000"
	.align	2
.LC8:
	.ascii	"++++++++++++++++++++\000"
	.align	2
.LC9:
	.ascii	"New set\000"
	.align	2
.LC10:
	.ascii	"Old set\000"
	.align	2
.LC11:
	.ascii	"Empty pend_set failed\000"
	.align	2
.LC12:
	.ascii	"Get pending set failed\000"
	.align	2
.LC13:
	.ascii	"Pending set\000"
	.align	2
.LC14:
	.ascii	"Unmask signal failed\000"
	.align	2
.LC15:
	.ascii	"Set mask failed\000"
	.align	2
.LC16:
	.ascii	"Set default handler failed\000"
	.align	2
.LC17:
	.ascii	"Default handler\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 408
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #408
	str	r0, [fp, #-408]
	str	r1, [fp, #-412]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-396]
	ldr	r1, .L25+4
	mov	r0, #2
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L25+8
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	ldr	r0, .L25+12
	bl	puts
	sub	r3, fp, #392
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L25+16
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	sub	r3, fp, #392
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L25+20
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	sub	r2, fp, #264
	sub	r3, fp, #392
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L25+24
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	mov	r3, #0
	str	r3, [fp, #-400]
	b	.L16
.L17:
	mov	r0, #2
	bl	raise
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-400]
	add	r3, r3, #1
	str	r3, [fp, #-400]
.L16:
	ldr	r3, [fp, #-400]
	cmp	r3, #5
	bne	.L17
	ldr	r0, .L25+28
	bl	puts
	ldr	r0, .L25+32
	bl	puts
	ldr	r0, .L25+28
	bl	puts
	sub	r3, fp, #392
	mov	r0, r3
	bl	dump_signal_set
	ldr	r0, .L25+28
	bl	puts
	ldr	r0, .L25+36
	bl	puts
	ldr	r0, .L25+28
	bl	puts
	sub	r3, fp, #264
	mov	r0, r3
	bl	dump_signal_set
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigemptyset
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L25+40
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigpending
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L25+44
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r0, .L25+28
	bl	puts
	ldr	r0, .L25+48
	bl	puts
	ldr	r0, .L25+28
	bl	puts
	sub	r3, fp, #136
	mov	r0, r3
	bl	dump_signal_set
	sub	r2, fp, #264
	sub	r3, fp, #392
	mov	r1, r3
	mov	r0, #1
	bl	sigprocmask
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L20
	ldr	r0, .L25+52
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	sub	r3, fp, #264
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	str	r0, [fp, #-396]
	ldr	r3, [fp, #-396]
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L25+56
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	mov	r1, #0
	mov	r0, #2
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L25+60
	bl	perror
	mov	r0, #1
	bl	exit
.L22:
	ldr	r0, .L25+64
	bl	puts
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC18
	.word	signal_handler
	.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
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
