	.file	"66768.c"
	.intel_syntax noprefix
	.text
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Failed to install SIGINT handler"
.LC1:
	.string	"Press Ctrl+C to interrupt me."
.LC2:
	.string	"\r%d "
	.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
	lea	rsi, sigint_handler[rip]
	mov	edi, 2
	call	signal@PLT
	cmp	rax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 3
	call	exit@PLT
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L3
.L5:
	mov	edx, DWORD PTR i[rip]
	movsx	rax, edx
	imul	rax, rax, 351843721
	shr	rax, 32
	sar	eax, 13
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100000
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR i[rip]
	movsx	rdx, eax
	imul	rdx, rdx, 351843721
	shr	rdx, 32
	sar	edx, 13
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L4:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L3:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 2147483647
	jne	.L5
	mov	edi, 2
	call	raise@PLT
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.string	"\nThis is the function sigint_handler().\nDo you want to exit the program now? [y/n]"
	.text
	.globl	sigint_handler
	.type	sigint_handler, @function
sigint_handler:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	cmp	DWORD PTR -20[rbp], 2
	je	.L7
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	esi, 1
	mov	edi, 2
	call	signal@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
.L9:
	call	getchar@PLT
	mov	edi, eax
	call	tolower@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 121
	je	.L8
	cmp	DWORD PTR -4[rbp], 110
	je	.L8
	cmp	DWORD PTR -4[rbp], -1
	jne	.L9
.L8:
	cmp	DWORD PTR -4[rbp], 110
	je	.L10
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	DWORD PTR i[rip], 0
	lea	rsi, sigint_handler[rip]
	mov	edi, 2
	call	signal@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sigint_handler, .-sigint_handler
	.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	"66768.c"
	.text
	.comm	i,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Failed to install SIGINT handler\000"
	.align	2
.LC1:
	.ascii	"Press Ctrl+C to interrupt me.\000"
	.align	2
.LC2:
	.ascii	"\015%d \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, .L6
	mov	r0, #2
	bl	signal
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L6+4
	bl	perror
	mov	r0, #3
	bl	exit
.L2:
	ldr	r0, .L6+8
	bl	puts
	ldr	r3, .L6+12
	mov	r2, #0
	str	r2, [r3]
	b	.L3
.L5:
	ldr	r3, .L6+12
	ldr	r2, [r3]
	ldr	r3, .L6+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #13
	asr	r3, r2, #31
	sub	r3, r1, r3
	ldr	r1, .L6+20
	mul	r3, r1, r3
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L6+12
	ldr	r3, [r3]
	ldr	r2, .L6+16
	smull	r1, r2, r3, r2
	asr	r2, r2, #13
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L6+24
	bl	printf
	ldr	r3, .L6+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L4:
	ldr	r3, .L6+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6+12
	str	r3, [r2]
.L3:
	ldr	r3, .L6+12
	ldr	r3, [r3]
	cmn	r3, #-2147483647
	bne	.L5
	mov	r0, #2
	bl	raise
	b	.L2
.L7:
	.align	2
.L6:
	.word	sigint_handler
	.word	.LC0
	.word	.LC1
	.word	i
	.word	351843721
	.word	100000
	.word	.LC2
	.word	stdout
	.size	main, .-main
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012This is the function sigint_handler().\012Do yo"
	.ascii	"u want to exit the program now? [y/n]\000"
	.text
	.align	2
	.global	sigint_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint_handler, %function
sigint_handler:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L9
	mov	r0, #1
	bl	exit
.L9:
	mov	r1, #1
	mov	r0, #2
	bl	signal
	ldr	r0, .L13
	bl	puts
	nop
.L11:
	bl	getchar
	mov	r3, r0
	mov	r0, r3
	bl	tolower
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #121
	beq	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #110
	beq	.L10
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L11
.L10:
	ldr	r3, [fp, #-8]
	cmp	r3, #110
	beq	.L12
	mov	r0, #0
	bl	exit
.L12:
	ldr	r3, .L13+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L13+8
	mov	r0, #2
	bl	signal
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	i
	.word	sigint_handler
	.size	sigint_handler, .-sigint_handler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
