	.file	"192330164.c"
	.intel_syntax noprefix
	.text
	.local	timed
	.comm	timed,4,4
	.globl	myPrint
	.type	myPrint, @function
myPrint:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	cmp	rax, -1
	jne	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	eax, 1
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	myPrint, .-myPrint
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	myPrintInt
	.type	myPrintInt, @function
myPrintInt:
.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, 288
	mov	DWORD PTR -276[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -276[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	cmp	rax, -1
	jne	.L5
	mov	eax, 0
	jmp	.L7
.L5:
	mov	eax, 1
.L7:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	myPrintInt, .-myPrintInt
	.section	.rodata
.LC1:
	.string	"\nAre sure to exit y/n : ? "
.LC2:
	.string	"y"
.LC3:
	.string	"n"
	.text
	.globl	signalHandler
	.type	signalHandler, @function
signalHandler:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -18[rbp]
	mov	QWORD PTR -32[rbp], rax
	cmp	DWORD PTR -36[rbp], 2
	jne	.L10
	mov	edx, 22
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	write@PLT
	jmp	.L11
.L14:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L12
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L13
.L12:
	add	QWORD PTR -32[rbp], 1
.L11:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	test	rax, rax
	jne	.L14
.L13:
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L15
	mov	edi, 0
	call	exit@PLT
.L15:
	lea	rax, -18[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	strcmp@PLT
	test	eax, eax
	jmp	.L9
.L10:
	cmp	DWORD PTR -36[rbp], 14
	jne	.L9
	mov	DWORD PTR timed[rip], 1
.L9:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	signalHandler, .-signalHandler
	.globl	readLine
	.type	readLine, @function
readLine:
.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L20
.L23:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 10
	jne	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 0
	mov	eax, 1
	jmp	.L24
.L21:
	movzx	edx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -32[rbp], 1
.L20:
	lea	rcx, -9[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L23
	mov	eax, 0
.L24:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	readLine, .-readLine
	.globl	readQA
	.type	readQA, @function
readQA:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	QWORD PTR -24[rbp], rcx
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	readLine
	test	eax, eax
	jne	.L27
	mov	eax, 0
	jmp	.L28
.L27:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	readLine
	test	eax, eax
	jne	.L29
	mov	eax, 0
	jmp	.L28
.L29:
	mov	eax, 1
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	readQA, .-readQA
	.section	.rodata
.LC4:
	.string	"quest.txt"
	.align 8
.LC5:
	.string	"Error while opening quest.txt file..."
.LC6:
	.string	"ans.txt"
	.align 8
.LC7:
	.string	"Error while opening ans.txt file..."
.LC8:
	.string	"#"
.LC9:
	.string	" "
.LC10:
	.string	"? "
.LC11:
	.string	"\nTime's up, next question\n"
.LC12:
	.string	"read"
.LC13:
	.string	"\ncorrect\n"
.LC14:
	.string	"\nwrong\n"
.LC15:
	.string	"final score is "
.LC16:
	.string	" out of "
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 3360
	mov	DWORD PTR -3348[rbp], edi
	mov	QWORD PTR -3360[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -3328[rbp], 0
	mov	DWORD PTR -3324[rbp], 0
	mov	DWORD PTR -3336[rbp], 1
	mov	DWORD PTR -3332[rbp], 0
	lea	rax, signalHandler[rip]
	mov	QWORD PTR -3248[rbp], rax
	mov	DWORD PTR -3112[rbp], 0
	lea	rax, -3248[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -3248[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 14
	call	sigaction@PLT
	mov	QWORD PTR -3296[rbp], 30
	mov	QWORD PTR -3288[rbp], 0
	mov	QWORD PTR -3312[rbp], 0
	mov	QWORD PTR -3304[rbp], 0
	mov	QWORD PTR -3264[rbp], 0
	mov	QWORD PTR -3256[rbp], 0
	mov	QWORD PTR -3280[rbp], 0
	mov	QWORD PTR -3272[rbp], 0
	lea	rsi, signalHandler[rip]
	mov	edi, 2
	call	signal@PLT
	mov	esi, 0
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -3320[rbp], eax
	cmp	DWORD PTR -3320[rbp], -1
	jne	.L31
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L31:
	mov	esi, 0
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -3316[rbp], eax
	cmp	DWORD PTR -3316[rbp], -1
	jne	.L32
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L32:
	lea	rcx, -1040[rbp]
	lea	rdx, -2064[rbp]
	mov	esi, DWORD PTR -3316[rbp]
	mov	eax, DWORD PTR -3320[rbp]
	mov	edi, eax
	call	readQA
.L43:
	lea	rdi, .LC8[rip]
	call	myPrint
	mov	eax, DWORD PTR -3336[rbp]
	mov	edi, eax
	call	myPrintInt
	lea	rdi, .LC9[rip]
	call	myPrint
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	myPrint
	lea	rdi, .LC10[rip]
	call	myPrint
	mov	DWORD PTR timed[rip], 0
	lea	rax, -3312[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	setitimer@PLT
	lea	rax, -3088[rbp]
	mov	edx, 1024
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -3328[rbp], eax
	cmp	DWORD PTR -3328[rbp], 0
	je	.L46
	cmp	DWORD PTR -3328[rbp], -1
	jne	.L35
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L36
	mov	eax, DWORD PTR timed[rip]
	test	eax, eax
	je	.L47
	lea	rdi, .LC11[rip]
	call	myPrint
	lea	rcx, -1040[rbp]
	lea	rdx, -2064[rbp]
	mov	esi, DWORD PTR -3316[rbp]
	mov	eax, DWORD PTR -3320[rbp]
	mov	edi, eax
	call	readQA
	test	eax, eax
	je	.L48
	add	DWORD PTR -3336[rbp], 1
	jmp	.L47
.L36:
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L35:
	lea	rax, -3280[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 0
	call	setitimer@PLT
	mov	eax, DWORD PTR -3328[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -3088[rbp+rax], 0
	lea	rdx, -1040[rbp]
	lea	rax, -3088[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L40
	add	DWORD PTR -3332[rbp], 1
	lea	rdi, .LC13[rip]
	call	myPrint
	jmp	.L41
.L40:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	myPrint
	lea	rdi, .LC14[rip]
	call	myPrint
.L41:
	lea	rcx, -1040[rbp]
	lea	rdx, -2064[rbp]
	mov	esi, DWORD PTR -3316[rbp]
	mov	eax, DWORD PTR -3320[rbp]
	mov	edi, eax
	call	readQA
	test	eax, eax
	je	.L49
	add	DWORD PTR -3336[rbp], 1
	jmp	.L43
.L47:
	nop
	jmp	.L43
.L46:
	nop
	jmp	.L34
.L48:
	nop
	jmp	.L34
.L49:
	nop
.L34:
	lea	rdi, .LC15[rip]
	call	myPrint
	mov	eax, DWORD PTR -3332[rbp]
	mov	edi, eax
	call	myPrintInt
	lea	rdi, .LC16[rip]
	call	myPrint
	mov	eax, DWORD PTR -3336[rbp]
	mov	edi, eax
	call	myPrintInt
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -3320[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -3316[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"192330164.c"
	.text
	.local	timed
	.comm	timed,4,4
	.align	2
	.global	myPrint
	.syntax unified
	.arm
	.fpu softvfp
	.type	myPrint, %function
myPrint:
	@ 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	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #1
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	myPrint, .-myPrint
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	myPrintInt
	.syntax unified
	.arm
	.fpu softvfp
	.type	myPrintInt, %function
myPrintInt:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #264
	ldr	r2, [fp, #-272]
	ldr	r1, .L9+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	mov	r0, #1
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	mov	r3, #0
	b	.L7
.L5:
	mov	r3, #1
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.size	myPrintInt, .-myPrintInt
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012Are sure to exit y/n : ? \000"
	.align	2
.LC3:
	.ascii	"y\000"
	.align	2
.LC4:
	.ascii	"n\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	signalHandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	signalHandler, %function
signalHandler:
	@ 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, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L12
	mov	r2, #22
	ldr	r1, .L21+4
	mov	r0, #1
	bl	write
	b	.L13
.L16:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L14
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
	b	.L15
.L14:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L13:
	mov	r2, #1
	ldr	r1, [fp, #-24]
	mov	r0, #0
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
.L15:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L21+8
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	mov	r0, #0
	bl	exit
.L17:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L21+12
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	b	.L11
.L12:
	ldr	r3, [fp, #-32]
	cmp	r3, #14
	bne	.L11
	ldr	r3, .L21+16
	mov	r2, #1
	str	r2, [r3]
.L11:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	timed
	.size	signalHandler, .-signalHandler
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readLine
	.syntax unified
	.arm
	.fpu softvfp
	.type	readLine, %function
readLine:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L24
.L27:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L25
	ldr	r3, [fp, #-20]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
	b	.L28
.L25:
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L24:
	sub	r3, fp, #9
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	mov	r3, #0
.L28:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC6
	.size	readLine, .-readLine
	.align	2
	.global	readQA
	.syntax unified
	.arm
	.fpu softvfp
	.type	readQA, %function
readQA:
	@ 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]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	readLine
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	mov	r3, #0
	b	.L34
.L33:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	readLine
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	mov	r3, #0
	b	.L34
.L35:
	mov	r3, #1
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	readQA, .-readQA
	.section	.rodata
	.align	2
.LC7:
	.ascii	"quest.txt\000"
	.align	2
.LC8:
	.ascii	"Error while opening quest.txt file...\000"
	.align	2
.LC9:
	.ascii	"ans.txt\000"
	.align	2
.LC10:
	.ascii	"Error while opening ans.txt file...\000"
	.align	2
.LC11:
	.ascii	"#\000"
	.align	2
.LC12:
	.ascii	" \000"
	.align	2
.LC13:
	.ascii	"? \000"
	.align	2
.LC14:
	.ascii	"\012Time's up, next question\012\000"
	.align	2
.LC15:
	.ascii	"read\000"
	.align	2
.LC16:
	.ascii	"\012correct\012\000"
	.align	2
.LC17:
	.ascii	"\012wrong\012\000"
	.align	2
.LC18:
	.ascii	"final score is \000"
	.align	2
.LC19:
	.ascii	" out of \000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #3280
	str	r0, [fp, #-3280]
	str	r1, [fp, #-3284]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-3268]
	mov	r3, #0
	str	r3, [fp, #-3264]
	mov	r3, #1
	str	r3, [fp, #-3276]
	mov	r3, #0
	str	r3, [fp, #-3272]
	ldr	r3, .L56+4
	str	r3, [fp, #-3220]
	mov	r3, #0
	str	r3, [fp, #-3088]
	sub	r3, fp, #3216
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #3216
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	mov	r0, #14
	bl	sigaction
	mov	r3, #30
	str	r3, [fp, #-3244]
	mov	r3, #0
	str	r3, [fp, #-3240]
	mov	r3, #0
	str	r3, [fp, #-3252]
	mov	r3, #0
	str	r3, [fp, #-3248]
	mov	r3, #0
	str	r3, [fp, #-3228]
	mov	r3, #0
	str	r3, [fp, #-3224]
	mov	r3, #0
	str	r3, [fp, #-3236]
	mov	r3, #0
	str	r3, [fp, #-3232]
	ldr	r1, .L56+4
	mov	r0, #2
	bl	signal
	mov	r1, #0
	ldr	r0, .L56+8
	bl	open
	str	r0, [fp, #-3260]
	ldr	r3, [fp, #-3260]
	cmn	r3, #1
	bne	.L37
	ldr	r0, .L56+12
	bl	puts
	mov	r0, #0
	bl	exit
.L37:
	mov	r1, #0
	ldr	r0, .L56+16
	bl	open
	str	r0, [fp, #-3256]
	ldr	r3, [fp, #-3256]
	cmn	r3, #1
	bne	.L38
	ldr	r0, .L56+20
	bl	puts
	mov	r0, #0
	bl	exit
.L38:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #2048
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-3256]
	ldr	r0, [fp, #-3260]
	bl	readQA
.L49:
	ldr	r0, .L56+24
	bl	myPrint
	ldr	r0, [fp, #-3276]
	bl	myPrintInt
	ldr	r0, .L56+28
	bl	myPrint
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	myPrint
	ldr	r0, .L56+32
	bl	myPrint
	ldr	r3, .L56+36
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #3248
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	setitimer
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-3268]
	ldr	r3, [fp, #-3268]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-3268]
	cmn	r3, #1
	bne	.L41
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L42
	ldr	r3, .L56+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L53
	ldr	r0, .L56+40
	bl	myPrint
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #2048
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-3256]
	ldr	r0, [fp, #-3260]
	bl	readQA
	mov	r3, r0
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-3276]
	add	r3, r3, #1
	str	r3, [fp, #-3276]
	b	.L53
.L42:
	ldr	r0, .L56+44
	bl	perror
	mov	r0, #1
	bl	exit
.L41:
	sub	r3, fp, #3232
	sub	r3, r3, #4
	mov	r2, #0
	mov	r1, r3
	mov	r0, #0
	bl	setitimer
	ldr	r3, [fp, #-3268]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-3076]
	sub	r2, fp, #1024
	sub	r2, r2, #4
	sub	r2, r2, #4
	sub	r3, fp, #3072
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-3272]
	add	r3, r3, #1
	str	r3, [fp, #-3272]
	ldr	r0, .L56+48
	bl	myPrint
	b	.L47
.L46:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	myPrint
	ldr	r0, .L56+52
	bl	myPrint
.L47:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	sub	r2, fp, #2048
	sub	r2, r2, #4
	sub	r2, r2, #4
	ldr	r1, [fp, #-3256]
	ldr	r0, [fp, #-3260]
	bl	readQA
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
	ldr	r3, [fp, #-3276]
	add	r3, r3, #1
	str	r3, [fp, #-3276]
	b	.L49
.L53:
	nop
	b	.L49
.L52:
	nop
	b	.L40
.L54:
	nop
	b	.L40
.L55:
	nop
.L40:
	ldr	r0, .L56+56
	bl	myPrint
	ldr	r0, [fp, #-3272]
	bl	myPrintInt
	ldr	r0, .L56+60
	bl	myPrint
	ldr	r0, [fp, #-3276]
	bl	myPrintInt
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-3260]
	bl	close
	ldr	r0, [fp, #-3256]
	bl	close
	mov	r3, #0
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC20
	.word	signalHandler
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	timed
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
