	.file	"288161.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Waiting 10 seconds to exit, but setting an alarm for 1 second. \nIf it's blocked it won't fire"
	.align 8
.LC1:
	.string	"Comment out line 83 to not block alarm."
	.align 8
.LC2:
	.string	"Alarm didn't fire. Calling exit()"
	.text
	.globl	sig_int
	.type	sig_int, @function
sig_int:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	alarm@PLT
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -52[rbp], eax
	jmp	.L2
.L3:
	mov	edi, 1
	call	usleep@PLT
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, eax
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	esi, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	edi, eax
	mov	rcx, QWORD PTR -40[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	lea	edx, [rdi+rax]
	mov	eax, esi
	sub	eax, edx
	mov	DWORD PTR -52[rbp], eax
.L2:
	cmp	DWORD PTR -52[rbp], 9
	jle	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	sig_int, .-sig_int
	.section	.rodata
.LC3:
	.string	"sigaction: "
.LC4:
	.string	"Press ctrl-c"
	.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, sig_int[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	test	eax, eax
	jns	.L6
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	jmp	.L10
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L8:
	mov	edi, 10
	call	sleep@PLT
	jmp	.L8
.L10:
	call	__stack_chk_fail@PLT
.L9:
	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	"288161.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Waiting 10 seconds to exit, but setting an alarm fo"
	.ascii	"r 1 second. \012If it's blocked it won't fire\000"
	.align	2
.LC1:
	.ascii	"Comment out line 83 to not block alarm.\000"
	.align	2
.LC2:
	.ascii	"Alarm didn't fire. Calling exit()\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sig_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_int, %function
sig_int:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L5+4
	bl	puts
	ldr	r0, .L5+8
	bl	puts
	mov	r0, #1
	bl	alarm
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	b	.L2
.L3:
	mov	r0, #1
	bl	usleep
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r1, .L5+12
	smull	r0, r1, r3, r1
	asr	r1, r1, #18
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r0, .L5+12
	smull	ip, r0, r3, r0
	asr	r0, r0, #18
	asr	r3, r3, #31
	sub	r3, r0, r3
	add	r3, r1, r3
	sub	r3, r2, r3
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #9
	ble	.L3
	ldr	r0, .L5+16
	bl	puts
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	1125899907
	.word	.LC2
	.size	sig_int, .-sig_int
	.section	.rodata
	.align	2
.LC4:
	.ascii	"sigaction: \000"
	.align	2
.LC5:
	.ascii	"Press ctrl-c\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L13+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L13+8
	bl	perror
	mov	r3, #1
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	b	.L12
.L8:
	ldr	r0, .L13+12
	bl	puts
.L10:
	mov	r0, #10
	bl	sleep
	b	.L10
.L12:
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	sig_int
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
