	.file	"37637039.c"
	.intel_syntax noprefix
	.text
	.local	got_sigint
	.comm	got_sigint,4,4
	.local	sig_cnt
	.comm	sig_cnt,260,32
	.section	.rodata
.LC0:
	.string	"%s%d (%s)\n"
.LC1:
	.string	"%s<empty signal set>\n"
	.text
	.globl	print_sigset
	.type	print_sigset, @function
print_sigset:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -8[rbp], 1
	jmp	.L2
.L4:
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sigismember@PLT
	test	eax, eax
	je	.L3
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	strsignal@PLT
	mov	rcx, rax
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 64
	jle	.L4
	cmp	DWORD PTR -4[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_sigset, .-print_sigset
	.type	handler, @function
handler:
.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], 2
	jne	.L8
	mov	DWORD PTR got_sigint[rip], 1
	jmp	.L10
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sig_cnt[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sig_cnt[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L10:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	handler, .-handler
	.section	.rodata
.LC2:
	.string	"%s: PID is %ld\n"
.LC3:
	.string	"Error on sigprocmask: %s\n"
.LC4:
	.string	"%s: sleeping for %d seconds\n"
.LC5:
	.string	"Error on sigpending: %s\n"
.LC6:
	.string	"%s: pending signals are: \n"
.LC7:
	.string	"\t\t"
.LC8:
	.string	""
.LC9:
	.string	"s"
	.align 8
.LC10:
	.string	"%s: signal %d caught %d time%s\n"
	.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
	call	getpid@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR -432[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -408[rbp], 1
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -408[rbp]
	lea	rsi, handler[rip]
	mov	edi, eax
	call	signal@PLT
	add	DWORD PTR -408[rbp], 1
.L12:
	cmp	DWORD PTR -408[rbp], 64
	jle	.L13
	cmp	DWORD PTR -420[rbp], 1
	jle	.L17
	mov	rax, QWORD PTR -432[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -404[rbp], eax
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -272[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	cmp	eax, -1
	jne	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -432[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -404[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -404[rbp]
	mov	edi, eax
	call	sleep@PLT
	lea	rax, -400[rbp]
	mov	rdi, rax
	call	sigpending@PLT
	cmp	eax, -1
	jne	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	rax, QWORD PTR -432[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -400[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	call	print_sigset
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -144[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	cmp	eax, -1
	jne	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	nop
.L17:
	mov	eax, DWORD PTR got_sigint[rip]
	test	eax, eax
	je	.L18
	mov	DWORD PTR -408[rbp], 1
	jmp	.L19
.L23:
	mov	eax, DWORD PTR -408[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sig_cnt[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L20
	mov	eax, DWORD PTR -408[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, sig_cnt[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 1
	jne	.L21
	lea	rax, .LC8[rip]
	jmp	.L22
.L21:
	lea	rax, .LC9[rip]
.L22:
	mov	edx, DWORD PTR -408[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, sig_cnt[rip]
	mov	ecx, DWORD PTR [rcx+rdx]
	mov	rdx, QWORD PTR -432[rbp]
	mov	rsi, QWORD PTR [rdx]
	mov	edx, DWORD PTR -408[rbp]
	mov	r8, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L20:
	add	DWORD PTR -408[rbp], 1
.L19:
	cmp	DWORD PTR -408[rbp], 64
	jle	.L23
	mov	edi, 0
	call	exit@PLT
	.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	"37637039.c"
	.text
	.local	got_sigint
	.comm	got_sigint,4,4
	.local	sig_cnt
	.comm	sig_cnt,260,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s%d (%s)\012\000"
	.align	2
.LC1:
	.ascii	"%s<empty signal set>\012\000"
	.text
	.align	2
	.global	print_sigset
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_sigset, %function
print_sigset:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	sigismember
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	strsignal
	mov	r3, r0
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L7
	bl	printf
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #64
	ble	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L6
	ldr	r1, [fp, #-16]
	ldr	r0, .L7+4
	bl	printf
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.size	print_sigset, .-print_sigset
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler, %function
handler:
	@ 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]
	cmp	r3, #2
	bne	.L10
	ldr	r3, .L13
	mov	r2, #1
	str	r2, [r3]
	b	.L12
.L10:
	ldr	r2, .L13+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L13+4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L12:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L14:
	.align	2
.L13:
	.word	got_sigint
	.word	sig_cnt
	.size	handler, .-handler
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s: PID is %ld\012\000"
	.align	2
.LC3:
	.ascii	"Error on sigprocmask: %s\012\000"
	.align	2
.LC4:
	.ascii	"%s: sleeping for %d seconds\012\000"
	.align	2
.LC5:
	.ascii	"Error on sigpending: %s\012\000"
	.align	2
.LC6:
	.ascii	"%s: pending signals are: \012\000"
	.align	2
.LC7:
	.ascii	"\011\011\000"
	.align	2
.LC8:
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"s\000"
	.align	2
.LC10:
	.ascii	"%s: signal %d caught %d time%s\012\000"
	.align	2
.LC11:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #420
	str	r0, [fp, #-416]
	str	r1, [fp, #-420]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-420]
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L29+4
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-408]
	b	.L16
.L17:
	ldr	r1, .L29+8
	ldr	r0, [fp, #-408]
	bl	signal
	ldr	r3, [fp, #-408]
	add	r3, r3, #1
	str	r3, [fp, #-408]
.L16:
	ldr	r3, [fp, #-408]
	cmp	r3, #64
	ble	.L17
	ldr	r3, [fp, #-416]
	cmp	r3, #1
	ble	.L21
	ldr	r3, [fp, #-420]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-404]
	sub	r3, fp, #272
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #272
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L29+12
	bl	printf
	mov	r0, #1
	bl	exit
.L19:
	ldr	r3, [fp, #-420]
	ldr	r3, [r3]
	ldr	r2, [fp, #-404]
	mov	r1, r3
	ldr	r0, .L29+16
	bl	printf
	ldr	r3, [fp, #-404]
	mov	r0, r3
	bl	sleep
	sub	r3, fp, #400
	mov	r0, r3
	bl	sigpending
	mov	r3, r0
	cmn	r3, #1
	bne	.L20
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L29+20
	bl	printf
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, [fp, #-420]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+24
	bl	printf
	sub	r3, fp, #400
	mov	r1, r3
	ldr	r0, .L29+28
	bl	print_sigset
	sub	r3, fp, #144
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #144
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L29+12
	bl	printf
	mov	r0, #1
	bl	exit
.L22:
	nop
.L21:
	ldr	r3, .L29+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	mov	r3, #1
	str	r3, [fp, #-408]
	b	.L23
.L27:
	ldr	r2, .L29+36
	ldr	r3, [fp, #-408]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-420]
	ldr	r1, [r3]
	ldr	r2, .L29+36
	ldr	r3, [fp, #-408]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r0, .L29+36
	ldr	r3, [fp, #-408]
	ldr	r3, [r0, r3, lsl #2]
	cmp	r3, #1
	bne	.L25
	ldr	r3, .L29+40
	b	.L26
.L25:
	ldr	r3, .L29+44
.L26:
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-408]
	ldr	r0, .L29+48
	bl	printf
	mov	r0, #0
	bl	exit
.L24:
	ldr	r3, [fp, #-408]
	add	r3, r3, #1
	str	r3, [fp, #-408]
.L23:
	ldr	r3, [fp, #-408]
	cmp	r3, #64
	ble	.L27
	mov	r0, #0
	bl	exit
.L30:
	.align	2
.L29:
	.word	.LC11
	.word	.LC2
	.word	handler
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	got_sigint
	.word	sig_cnt
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
