	.file	"tester.c"
	.local	termination_flag_ptr
	.comm	termination_flag_ptr,8,8
	.text
	.type	trap_ctrl_c, @function
trap_ctrl_c:
.LFB0:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movq	termination_flag_ptr(%rip), %rax
	testq	%rax, %rax
	je	.L1
	movq	termination_flag_ptr(%rip), %rax
	movb	$1, (%rax)
.L1:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	trap_ctrl_c, .-trap_ctrl_c
	.section	.rodata
	.align 8
.LC0:
	.string	"Calculating, press Ctrl+C to stop..."
	.align 8
.LC1:
	.string	"Calculation was terminated at %llu\n"
	.text
	.type	calculate_something, @function
calculate_something:
.LFB1:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movb	$0, -9(%rbp)
	leaq	-9(%rbp), %rax
	movq	%rax, termination_flag_ptr(%rip)
	movq	$0, -8(%rbp)
	movl	$.LC0, %edi
	call	puts
	jmp	.L4
.L5:
	addq	$1, -8(%rbp)
.L4:
	movzbl	-9(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	jne	.L5
	movq	-8(%rbp), %rax
	movq	%rax, %rsi
	movl	$.LC1, %edi
	movl	$0, %eax
	call	printf
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calculate_something, .-calculate_something
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	$trap_ctrl_c, %esi
	movl	$2, %edi
	call	__sysv_signal
	call	calculate_something
	movl	$0, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Debian 4.9.2-10) 4.9.2"
	.section	.note.GNU-stack,"",@progbits
