	.file	"374438.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"signal(SIGINT) error"
.LC1:
	.string	"SIG_BLOCK error"
	.align 8
.LC2:
	.string	"In critical region: SIGINT will be blocked for 10 sec."
	.align 8
.LC3:
	.string	"Type Ctrl-C in first 10 secs and see what happens."
	.align 8
.LC4:
	.string	"Then run this program again and type Ctrl-C when 10 secs elapsed."
.LC5:
	.string	"sigsuspend error"
	.align 8
.LC6:
	.string	"after return from sigsuspend: "
.LC7:
	.string	"SIG_SETMASK error"
	.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, 400
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, sig_int[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	rax, -1
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
.L2:
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -400[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -400[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rdx, -272[rbp]
	lea	rax, -400[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	test	eax, eax
	jns	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
.L3:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 10
	call	sleep@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigsuspend@PLT
	cmp	eax, -1
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
.L4:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -272[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	test	eax, eax
	jns	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 17
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
.L5:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC8:
	.string	"\nIn sig_int: SIGINT"
	.text
	.type	sig_int, @function
sig_int:
.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
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sig_int, .-sig_int
	.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	"374438.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"signal(SIGINT) error\000"
	.align	2
.LC1:
	.ascii	"SIG_BLOCK error\000"
	.align	2
.LC2:
	.ascii	"In critical region: SIGINT will be blocked for 10 s"
	.ascii	"ec.\000"
	.align	2
.LC3:
	.ascii	"Type Ctrl-C in first 10 secs and see what happens.\000"
	.align	2
.LC4:
	.ascii	"Then run this program again and type Ctrl-C when 10"
	.ascii	" secs elapsed.\000"
	.align	2
.LC5:
	.ascii	"sigsuspend error\000"
	.align	2
.LC6:
	.ascii	"after return from sigsuspend: \000"
	.align	2
.LC7:
	.ascii	"SIG_SETMASK error\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 392
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #392
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L7+4
	mov	r0, #2
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
.L2:
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #392
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #392
	mov	r1, #2
	mov	r0, r3
	bl	sigaddset
	sub	r2, fp, #264
	sub	r3, fp, #392
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L7+16
	bl	fwrite
.L3:
	ldr	r0, .L7+20
	bl	puts
	ldr	r0, .L7+24
	bl	puts
	ldr	r0, .L7+28
	bl	puts
	ldr	r3, .L7+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #10
	bl	sleep
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigsuspend
	mov	r3, r0
	cmn	r3, #1
	beq	.L4
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L7+36
	bl	fwrite
.L4:
	ldr	r0, .L7+40
	bl	printf
	sub	r3, fp, #264
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, #17
	mov	r1, #1
	ldr	r0, .L7+44
	bl	fwrite
.L5:
	mov	r0, #0
	bl	exit
.L8:
	.align	2
.L7:
	.word	.LC8
	.word	sig_int
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	stdout
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\012In sig_int: SIGINT\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_int, %function
sig_int:
	@ 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, .L11
	bl	puts
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC9
	.word	stdout
	.size	sig_int, .-sig_int
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
