	.file	"802519.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"How much is %d times %d?"
	.text
	.globl	gen
	.type	gen, @function
gen:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	cmp	DWORD PTR -20[rbp], 3
	je	.L2
	cmp	DWORD PTR -20[rbp], 3
	jg	.L3
	cmp	DWORD PTR -20[rbp], 1
	je	.L4
	cmp	DWORD PTR -20[rbp], 2
	je	.L5
	jmp	.L3
.L4:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 954437177
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	ecx, edx
	sal	ecx, 3
	add	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -8[rbp], eax
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 954437177
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	ecx, edx
	sal	ecx, 3
	add	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L3
.L5:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -1518422781
	shr	rdx, 32
	add	edx, eax
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 99
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -8[rbp], eax
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -1518422781
	shr	rdx, 32
	add	edx, eax
	sar	edx, 6
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 99
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L3
.L2:
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -2093742815
	shr	rdx, 32
	add	edx, eax
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 999
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -8[rbp], eax
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, -2093742815
	shr	rdx, 32
	add	edx, eax
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 999
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -4[rbp], eax
	nop
.L3:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gen, .-gen
	.section	.rodata
.LC1:
	.string	"Choose level 1-3:"
.LC2:
	.string	"%d"
.LC3:
	.string	"Very good!"
.LC4:
	.string	"Excellent!"
.LC5:
	.string	"Nice work!"
.LC6:
	.string	"Keep up the good work!"
.LC7:
	.string	"No. Please try again."
.LC8:
	.string	"Wrong. Try once more."
.LC9:
	.string	"Don\342\200\231t give up."
.LC10:
	.string	"No. Keep trying."
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L14:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	gen
	mov	DWORD PTR -12[rbp], eax
.L20:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L8
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	add	eax, 1
	cmp	eax, 4
	je	.L9
	cmp	eax, 4
	jg	.L14
	cmp	eax, 3
	je	.L11
	cmp	eax, 3
	jg	.L14
	cmp	eax, 1
	je	.L12
	cmp	eax, 2
	je	.L13
	jmp	.L10
.L9:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L10
.L12:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L10
.L13:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L10
.L11:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	nop
.L10:
	jmp	.L14
.L8:
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	add	eax, 1
	cmp	eax, 4
	je	.L15
	cmp	eax, 4
	jg	.L20
	cmp	eax, 3
	je	.L17
	cmp	eax, 3
	jg	.L20
	cmp	eax, 1
	je	.L18
	cmp	eax, 2
	je	.L19
	jmp	.L16
.L15:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L16
.L18:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L16
.L19:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L16
.L17:
	lea	rdi, .LC10[rip]
	call	puts@PLT
	nop
.L16:
	jmp	.L20
	.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	"802519.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"How much is %d times %d?\000"
	.text
	.align	2
	.global	gen
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen, %function
gen:
	@ 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]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	beq	.L2
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bgt	.L3
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L4
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	beq	.L5
	b	.L3
.L4:
	bl	rand
	mov	r1, r0
	ldr	r3, .L7
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-12]
	bl	rand
	mov	r1, r0
	ldr	r3, .L7
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-8]
	b	.L3
.L5:
	bl	rand
	mov	r2, r0
	ldr	r3, .L7+4
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #6
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r1, r3, #5
	add	r3, r3, r1
	sub	r1, r2, r3
	add	r3, r1, #1
	str	r3, [fp, #-12]
	bl	rand
	mov	r2, r0
	ldr	r3, .L7+4
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #6
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r1, r3, #5
	add	r3, r3, r1
	sub	r1, r2, r3
	add	r3, r1, #1
	str	r3, [fp, #-8]
	b	.L3
.L2:
	bl	rand
	mov	r1, r0
	ldr	r3, .L7+8
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #9
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-12]
	bl	rand
	mov	r1, r0
	ldr	r3, .L7+8
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #9
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-8]
	nop
.L3:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L7+12
	bl	printf
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	mul	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	954437177
	.word	-1518422781
	.word	-2093742815
	.word	.LC0
	.size	gen, .-gen
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Choose level 1-3:\000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Very good!\000"
	.align	2
.LC4:
	.ascii	"Excellent!\000"
	.align	2
.LC5:
	.ascii	"Nice work!\000"
	.align	2
.LC6:
	.ascii	"Keep up the good work!\000"
	.align	2
.LC7:
	.ascii	"No. Please try again.\000"
	.align	2
.LC8:
	.ascii	"Wrong. Try once more.\000"
	.align	2
.LC9:
	.ascii	"Don\342\200\231t give up.\000"
	.align	2
.LC10:
	.ascii	"No. Keep trying.\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L26+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L26+8
	bl	__isoc99_scanf
.L17:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	gen
	str	r0, [fp, #-12]
.L24:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L26+8
	bl	__isoc99_scanf
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L10
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	add	r3, r3, #1
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L17
.L13:
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L12
.L12:
	ldr	r0, .L26+12
	bl	puts
	b	.L11
.L16:
	ldr	r0, .L26+16
	bl	puts
	b	.L11
.L15:
	ldr	r0, .L26+20
	bl	puts
	b	.L11
.L14:
	ldr	r0, .L26+24
	bl	puts
	nop
.L11:
	b	.L17
.L10:
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	add	r3, r3, #1
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L24
.L20:
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L19
.L19:
	ldr	r0, .L26+28
	bl	puts
	b	.L18
.L23:
	ldr	r0, .L26+32
	bl	puts
	b	.L18
.L22:
	ldr	r0, .L26+36
	bl	puts
	b	.L18
.L21:
	ldr	r0, .L26+40
	bl	puts
	nop
.L18:
	b	.L24
.L27:
	.align	2
.L26:
	.word	.LC11
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
