	.file	"684163.c"
	.intel_syntax noprefix
	.text
	.globl	score
	.bss
	.align 4
	.type	score, @object
	.size	score, 4
score:
	.zero	4
	.globl	alarm_sounded
	.align 4
	.type	alarm_sounded, @object
	.size	alarm_sounded, 4
alarm_sounded:
	.zero	4
	.text
	.globl	catch_signal
	.type	catch_signal, @function
catch_signal:
.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, 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
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rcx, -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	sigaction@PLT
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	catch_signal, .-catch_signal
	.section	.rodata
.LC0:
	.string	"\nFinal score: %i\n"
	.text
	.globl	end_game
	.type	end_game, @function
end_game:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR score[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	end_game, .-end_game
	.section	.rodata
	.align 8
.LC1:
	.string	"\nTIME'S UP! But don't give up yet; answer this last question..."
	.text
	.globl	times_up
	.type	times_up, @function
times_up:
.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	DWORD PTR -4[rbp], edi
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR alarm_sounded[rip], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	times_up, .-times_up
	.section	.rodata
.LC2:
	.string	"\nWhat is %d times %d? "
.LC3:
	.string	"\nRight!"
.LC4:
	.string	"\nWrong!"
.LC5:
	.string	"Score: %i\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, times_up[rip]
	mov	edi, 14
	call	catch_signal
	lea	rsi, end_game[rip]
	mov	edi, 2
	call	catch_signal
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srandom@PLT
.L12:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 780903145
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -44[rbp], eax
	mov	ecx, DWORD PTR -44[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	add	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -44[rbp], edx
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 780903145
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -40[rbp], eax
	mov	ecx, DWORD PTR -40[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	add	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -40[rbp], edx
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 5
	call	alarm@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -12[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L7
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -12[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -24[rbp], rax
.L7:
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	imul	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L8
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR score[rip]
	add	eax, 1
	mov	DWORD PTR score[rip], eax
	jmp	.L9
.L8:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L9:
	mov	eax, DWORD PTR alarm_sounded[rip]
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR score[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L13
	jmp	.L14
.L10:
	mov	eax, DWORD PTR score[rip]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L14:
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"684163.c"
	.text
	.global	score
	.bss
	.align	2
	.type	score, %object
	.size	score, 4
score:
	.space	4
	.global	alarm_sounded
	.align	2
	.type	alarm_sounded, %object
	.size	alarm_sounded, 4
alarm_sounded:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	catch_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	catch_signal, %function
catch_signal:
	@ 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, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-156]
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	sigaction
	mov	r3, r0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	catch_signal, .-catch_signal
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012Final score: %i\012\000"
	.text
	.align	2
	.global	end_game
	.syntax unified
	.arm
	.fpu softvfp
	.type	end_game, %function
end_game:
	@ 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	r3, .L7
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+4
	bl	printf
	mov	r0, #0
	bl	exit
.L8:
	.align	2
.L7:
	.word	score
	.word	.LC1
	.size	end_game, .-end_game
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012TIME'S UP! But don't give up yet; answer this l"
	.ascii	"ast question...\000"
	.text
	.align	2
	.global	times_up
	.syntax unified
	.arm
	.fpu softvfp
	.type	times_up, %function
times_up:
	@ 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, .L10
	bl	puts
	ldr	r3, .L10+4
	mov	r2, #1
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	alarm_sounded
	.size	times_up, .-times_up
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012What is %d times %d? \000"
	.align	2
.LC4:
	.ascii	"\012Right!\000"
	.align	2
.LC5:
	.ascii	"\012Wrong!\000"
	.align	2
.LC6:
	.ascii	"Score: %i\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L21+4
	mov	r0, #14
	bl	catch_signal
	ldr	r1, .L21+8
	mov	r0, #2
	bl	catch_signal
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srandom
.L18:
	bl	rand
	mov	r2, r0
	ldr	r3, .L21+12
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	bl	rand
	mov	r2, r0
	ldr	r3, .L21+12
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, .L21+16
	bl	printf
	mov	r0, #5
	bl	alarm
	ldr	r3, .L21+20
	ldr	r2, [r3]
	sub	r3, fp, #12
	mov	r1, #4
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L21+20
	ldr	r2, [r3]
	sub	r3, fp, #12
	mov	r1, #4
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-20]
.L13:
	sub	r3, fp, #12
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L14
	ldr	r0, .L21+24
	bl	puts
	ldr	r3, .L21+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21+28
	str	r3, [r2]
	b	.L15
.L14:
	ldr	r0, .L21+32
	bl	puts
.L15:
	ldr	r3, .L21+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L21+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+40
	bl	printf
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	b	.L20
.L16:
	ldr	r3, .L21+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+44
	bl	printf
	b	.L18
.L20:
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC7
	.word	times_up
	.word	end_game
	.word	780903145
	.word	.LC3
	.word	stdin
	.word	.LC4
	.word	score
	.word	.LC5
	.word	alarm_sounded
	.word	.LC1
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
