	.file	"754655.c"
	.intel_syntax noprefix
	.text
	.globl	cancel
	.bss
	.align 4
	.type	cancel, @object
	.size	cancel, 4
cancel:
	.zero	4
	.text
	.globl	action
	.type	action, @function
action:
.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	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR cancel[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	action, .-action
	.globl	testcancel
	.type	testcancel, @function
testcancel:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR cancel[rip]
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L3
	mov	DWORD PTR cancel[rip], 0
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L5
.L3:
	mov	eax, DWORD PTR -4[rbp]
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	testcancel, .-testcancel
	.type	die, @function
die:
.LFB8:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	die, .-die
	.globl	my_read
	.type	my_read, @function
my_read:
.LFB9:
	.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR cancel[rip]
	test	eax, eax
	jne	.L8
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	jmp	.L9
.L8:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 125
	mov	rax, -1
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	my_read, .-my_read
	.local	buf
	.comm	buf,1024,32
	.section	.rodata
.LC0:
	.string	"%ld \n"
.LC1:
	.string	"setitimer"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 480
	mov	DWORD PTR -468[rbp], edi
	mov	QWORD PTR -480[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	lea	rax, action[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 4
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 14
	call	sigaction@PLT
	mov	QWORD PTR -464[rbp], 0
	mov	rax, QWORD PTR -480[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR -480[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	jmp	.L12
.L11:
	mov	eax, 100000
.L12:
	mov	QWORD PTR -456[rbp], rax
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rax, -416[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	sigdelset@PLT
	lea	rax, -416[rbp]
	mov	esi, 15
	mov	rdi, rax
	call	sigdelset@PLT
	lea	rax, -416[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	sigdelset@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	jmp	.L13
.L15:
	lea	rdx, -288[rbp]
	lea	rax, -416[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	call	testcancel
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -464[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -288[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigprocmask@PLT
	mov	QWORD PTR -448[rbp], 0
	mov	QWORD PTR -440[rbp], 0
	mov	QWORD PTR -432[rbp], 0
	mov	QWORD PTR -424[rbp], 0
	mov	QWORD PTR -424[rbp], 1
	lea	rax, -448[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	setitimer@PLT
	test	eax, eax
	jns	.L14
	lea	rdi, .LC1[rip]
	call	die
.L14:
	mov	edx, 1024
	lea	rsi, buf[rip]
	mov	edi, 0
	call	my_read
	mov	DWORD PTR cancel[rip], 0
	add	QWORD PTR -464[rbp], 1
.L13:
	mov	rax, QWORD PTR -464[rbp]
	cmp	rax, QWORD PTR -456[rbp]
	jl	.L15
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"754655.c"
	.text
	.comm	cancel,4,4
	.align	2
	.global	action
	.syntax unified
	.arm
	.fpu softvfp
	.type	action, %function
action:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, .L2
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	cancel
	.size	action, .-action
	.align	2
	.global	testcancel
	.syntax unified
	.arm
	.fpu softvfp
	.type	testcancel, %function
testcancel:
	@ 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
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	b	.L7
.L5:
	ldr	r3, [fp, #-8]
.L7:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	cancel
	.size	testcancel, .-testcancel
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ 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	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	die, .-die
	.align	2
	.global	my_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_read, %function
my_read:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	read
	mov	r3, r0
	b	.L13
.L12:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #125
	str	r2, [r3]
	mvn	r3, #0
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	cancel
	.size	my_read, .-my_read
	.local	buf
	.comm	buf,1024,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%ld \012\000"
	.align	2
.LC1:
	.ascii	"setitimer\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 = 432
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #432
	str	r0, [fp, #-432]
	str	r1, [fp, #-436]
	ldr	r3, .L24
	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, .L24+4
	str	r3, [fp, #-148]
	mov	r3, #4
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #14
	bl	sigaction
	mov	r3, #0
	str	r3, [fp, #-428]
	ldr	r3, [fp, #-436]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-436]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L18
.L17:
	ldr	r3, .L24+8
.L18:
	str	r3, [fp, #-424]
	sub	r3, fp, #404
	mov	r0, r3
	bl	sigfillset
	sub	r3, fp, #404
	mov	r1, #2
	mov	r0, r3
	bl	sigdelset
	sub	r3, fp, #404
	mov	r1, #15
	mov	r0, r3
	bl	sigdelset
	sub	r3, fp, #404
	mov	r1, #3
	mov	r0, r3
	bl	sigdelset
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	b	.L19
.L21:
	sub	r2, fp, #276
	sub	r3, fp, #404
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	bl	testcancel
	ldr	r3, .L24+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-428]
	ldr	r1, .L24+16
	mov	r0, r3
	bl	fprintf
	sub	r3, fp, #276
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigprocmask
	sub	r3, fp, #420
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #1
	str	r3, [fp, #-408]
	sub	r3, fp, #420
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	setitimer
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L24+20
	bl	die
.L20:
	mov	r2, #1024
	ldr	r1, .L24+24
	mov	r0, #0
	bl	my_read
	ldr	r3, .L24+28
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
.L19:
	ldr	r2, [fp, #-428]
	ldr	r3, [fp, #-424]
	cmp	r2, r3
	blt	.L21
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	action
	.word	100000
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	buf
	.word	cancel
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
