	.file	"779458.c"
	.intel_syntax noprefix
	.text
	.globl	score
	.bss
	.align 4
	.type	score, @object
	.size	score, 4
score:
	.zero	4
	.globl	lives
	.data
	.align 4
	.type	lives, @object
	.size	lives, 4
lives:
	.long	1
	.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
	.globl	end_flag
	.bss
	.align 4
	.type	end_flag, @object
	.size	end_flag, 4
end_flag:
	.zero	4
	.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
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR end_flag[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	times_up, .-times_up
	.section	.rodata
.LC1:
	.string	"\nWhat is %d times %d? "
.LC2:
	.string	"\nRight!"
.LC3:
	.string	"\nWrong!"
.LC4:
	.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
.L11:
	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 -36[rbp], eax
	mov	ecx, DWORD PTR -36[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	add	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -36[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 -32[rbp], eax
	mov	ecx, DWORD PTR -32[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	add	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -32[rbp], edx
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC1[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 -24[rbp], rax
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -32[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR score[rip]
	add	eax, 1
	mov	DWORD PTR score[rip], eax
	jmp	.L8
.L7:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR end_flag[rip], 1
.L8:
	mov	eax, DWORD PTR score[rip]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR end_flag[rip]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR lives[rip]
	test	eax, eax
	jne	.L10
	mov	edi, 0
	call	end_game
.L10:
	mov	eax, DWORD PTR lives[rip]
	sub	eax, 1
	mov	DWORD PTR lives[rip], eax
	jmp	.L11
	.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	"779458.c"
	.text
	.global	score
	.bss
	.align	2
	.type	score, %object
	.size	score, 4
score:
	.space	4
	.global	lives
	.data
	.align	2
	.type	lives, %object
	.size	lives, 4
lives:
	.word	1
	.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
	.global	end_flag
	.bss
	.align	2
	.type	end_flag, %object
	.size	end_flag, 4
end_flag:
	.space	4
	.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
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L10
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	end_flag
	.size	times_up, .-times_up
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012What is %d times %d? \000"
	.align	2
.LC3:
	.ascii	"\012Right!\000"
	.align	2
.LC4:
	.ascii	"\012Wrong!\000"
	.align	2
.LC5:
	.ascii	"Score: %i\012\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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L19+4
	mov	r0, #14
	bl	catch_signal
	ldr	r1, .L19+8
	mov	r0, #2
	bl	catch_signal
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srandom
.L17:
	bl	rand
	mov	r2, r0
	ldr	r3, .L19+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]
	bl	rand
	mov	r2, r0
	ldr	r3, .L19+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, #-24]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, .L19+16
	bl	printf
	mov	r0, #5
	bl	alarm
	ldr	r3, .L19+20
	ldr	r2, [r3]
	sub	r3, fp, #12
	mov	r1, #4
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-20]
	sub	r3, fp, #12
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L13
	ldr	r0, .L19+24
	bl	puts
	ldr	r3, .L19+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+28
	str	r3, [r2]
	b	.L14
.L13:
	ldr	r0, .L19+32
	bl	puts
	ldr	r3, .L19+36
	mov	r2, #1
	str	r2, [r3]
.L14:
	ldr	r3, .L19+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+40
	bl	printf
	ldr	r3, .L19+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L19+44
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	mov	r0, #0
	bl	end_game
.L16:
	ldr	r3, .L19+44
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L19+44
	str	r3, [r2]
	b	.L17
.L20:
	.align	2
.L19:
	.word	.LC6
	.word	times_up
	.word	end_game
	.word	780903145
	.word	.LC2
	.word	stdin
	.word	.LC3
	.word	score
	.word	.LC4
	.word	end_flag
	.word	.LC5
	.word	lives
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
