	.file	"78617.c"
	.intel_syntax noprefix
	.text
	.globl	count
	.bss
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.text
	.globl	SigHandler
	.type	SigHandler, @function
SigHandler:
.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	rsi, SigHandler[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, SigHandler[rip]
	mov	edi, 20
	call	signal@PLT
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	cmp	DWORD PTR -4[rbp], 2
	jne	.L2
	mov	DWORD PTR flag[rip], 1
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 5
	jne	.L2
	mov	esi, 0
	mov	edi, 2
	call	signal@PLT
.L2:
	cmp	DWORD PTR -4[rbp], 20
	jne	.L4
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 3
	jle	.L4
	mov	esi, 0
	mov	edi, 2
	call	signal@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	SigHandler, .-SigHandler
	.section	.rodata
	.align 8
.LC0:
	.string	"I've received SIGINT %d time(s)\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
	lea	rsi, SigHandler[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, SigHandler[rip]
	mov	edi, 20
	call	signal@PLT
	call	getpid@PLT
	mov	esi, 2
	mov	edi, eax
	call	kill@PLT
	mov	edi, 2
	call	raise@PLT
.L7:
	mov	eax, DWORD PTR flag[rip]
	test	eax, eax
	je	.L7
	mov	DWORD PTR flag[rip], 0
	mov	eax, DWORD PTR count[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
	.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	"78617.c"
	.text
	.global	count
	.bss
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.space	4
	.global	flag
	.align	2
	.type	flag, %object
	.size	flag, 4
flag:
	.space	4
	.text
	.align	2
	.global	SigHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	SigHandler, %function
SigHandler:
	@ 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	r1, .L5
	mov	r0, #2
	bl	signal
	ldr	r1, .L5
	mov	r0, #20
	bl	signal
	ldr	r3, .L5+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5+4
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L2
	ldr	r3, .L5+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L2
	mov	r1, #0
	mov	r0, #2
	bl	signal
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #20
	bne	.L4
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L4
	mov	r1, #0
	mov	r0, #2
	bl	signal
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	SigHandler
	.word	count
	.word	flag
	.size	SigHandler, .-SigHandler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"I've received SIGINT %d time(s)\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L10
	mov	r0, #2
	bl	signal
	ldr	r1, .L10
	mov	r0, #20
	bl	signal
	bl	getpid
	mov	r3, r0
	mov	r1, #2
	mov	r0, r3
	bl	kill
	mov	r0, #2
	bl	raise
.L9:
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L10+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L10+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+12
	bl	printf
	b	.L9
.L11:
	.align	2
.L10:
	.word	SigHandler
	.word	flag
	.word	count
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
