	.file	"418826.c"
	.intel_syntax noprefix
	.text
	.local	count
	.comm	count,128,32
	.local	gotSigint
	.comm	gotSigint,4,4
	.globl	all_handler
	.type	all_handler, @function
all_handler:
.LFB6:
	.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
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, count[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, count[rip]
	mov	DWORD PTR [rdx+rax], ecx
	cmp	DWORD PTR -4[rbp], 2
	jne	.L3
	mov	DWORD PTR gotSigint[rip], 1
.L3:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	all_handler, .-all_handler
	.section	.rodata
.LC0:
	.string	"signal %d is pending\n"
.LC1:
	.string	"signal %d: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -308[rbp], 2
	jle	.L5
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rax, all_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -300[rbp], 1
	jmp	.L6
.L7:
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -300[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sigaction@PLT
	add	DWORD PTR -300[rbp], 1
.L6:
	cmp	DWORD PTR -300[rbp], 31
	jle	.L7
	cmp	DWORD PTR -308[rbp], 2
	jne	.L17
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -288[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	edi, eax
	call	sleep@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigpending@PLT
	mov	DWORD PTR -296[rbp], 1
	jmp	.L9
.L11:
	mov	edx, DWORD PTR -296[rbp]
	lea	rax, -288[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	sigismember@PLT
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR -296[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	add	DWORD PTR -296[rbp], 1
.L9:
	cmp	DWORD PTR -296[rbp], 31
	jle	.L11
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -288[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
.L17:
	nop
.L12:
	mov	eax, DWORD PTR gotSigint[rip]
	test	eax, eax
	je	.L12
	mov	DWORD PTR -292[rbp], 1
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, count[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -292[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -292[rbp], 1
.L13:
	cmp	DWORD PTR -292[rbp], 31
	jle	.L14
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"418826.c"
	.text
	.local	count
	.comm	count,128,4
	.local	gotSigint
	.comm	gotSigint,4,4
	.align	2
	.global	all_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	all_handler, %function
all_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	r2, .L4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L3
	ldr	r3, .L4+4
	mov	r2, #1
	str	r2, [r3]
.L3:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	count
	.word	gotSigint
	.size	all_handler, .-all_handler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"signal %d is pending\012\000"
	.align	2
.LC1:
	.ascii	"signal %d: %d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-296]
	cmp	r3, #2
	ble	.L7
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, .L20+4
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #1
	str	r3, [fp, #-288]
	b	.L8
.L9:
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-288]
	bl	sigaction
	ldr	r3, [fp, #-288]
	add	r3, r3, #1
	str	r3, [fp, #-288]
.L8:
	ldr	r3, [fp, #-288]
	cmp	r3, #31
	ble	.L9
	ldr	r3, [fp, #-296]
	cmp	r3, #2
	bne	.L19
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #276
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r0, r3
	bl	sleep
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigpending
	mov	r3, #1
	str	r3, [fp, #-284]
	b	.L11
.L13:
	sub	r3, fp, #276
	ldr	r1, [fp, #-284]
	mov	r0, r3
	bl	sigismember
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r1, [fp, #-284]
	ldr	r0, .L20+8
	bl	printf
.L12:
	ldr	r3, [fp, #-284]
	add	r3, r3, #1
	str	r3, [fp, #-284]
.L11:
	ldr	r3, [fp, #-284]
	cmp	r3, #31
	ble	.L13
	sub	r3, fp, #276
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #276
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
.L19:
	nop
.L14:
	ldr	r3, .L20+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	mov	r3, #1
	str	r3, [fp, #-280]
	b	.L15
.L16:
	ldr	r2, .L20+16
	ldr	r3, [fp, #-280]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-280]
	ldr	r0, .L20+20
	bl	printf
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L15:
	ldr	r3, [fp, #-280]
	cmp	r3, #31
	ble	.L16
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	all_handler
	.word	.LC0
	.word	gotSigint
	.word	count
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
