	.file	"473069.c"
	.intel_syntax noprefix
	.text
	.globl	num1
	.bss
	.align 4
	.type	num1, @object
	.size	num1, 4
num1:
	.zero	4
	.globl	choice
	.align 4
	.type	choice, @object
	.size	choice, 4
choice:
	.zero	4
	.globl	min
	.data
	.align 4
	.type	min, @object
	.size	min, 4
min:
	.long	1
	.globl	max
	.align 4
	.type	max, @object
	.size	max, 4
max:
	.long	10
	.section	.rodata
.LC0:
	.string	"          MENU"
.LC1:
	.string	"    1      -       Addition"
	.align 8
.LC2:
	.string	"    2      -       Subtraction"
	.align 8
.LC3:
	.string	"    3      -       Multiplication"
.LC4:
	.string	"    4      -       Division"
.LC5:
	.string	"    5      -       Quit"
	.text
	.globl	Menu
	.type	Menu, @function
Menu:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Menu, .-Menu
	.globl	randint
	.type	randint, @function
randint:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	call	rand@PLT
	mov	edx, DWORD PTR -20[rbp]
	add	eax, edx
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	randint, .-randint
	.section	.rodata
.LC6:
	.string	"Addition"
.LC7:
	.string	"The sum of %i and %i is %i\n\n"
	.text
	.globl	Addition
	.type	Addition, @function
Addition:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edx, DWORD PTR max[rip]
	mov	eax, DWORD PTR min[rip]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR min[rip]
	mov	eax, DWORD PTR max[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Addition, .-Addition
	.section	.rodata
.LC8:
	.string	"Subtraction"
	.align 8
.LC9:
	.string	"The difference between %i and %i is %i\n\n"
	.text
	.globl	Subtraction
	.type	Subtraction, @function
Subtraction:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, DWORD PTR max[rip]
	mov	edx, DWORD PTR min[rip]
	sub	eax, edx
	mov	ecx, eax
	mov	edx, DWORD PTR min[rip]
	mov	eax, DWORD PTR max[rip]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Subtraction, .-Subtraction
	.section	.rodata
.LC10:
	.string	"Multiplication"
	.align 8
.LC11:
	.string	"The product of %i and %i is %i\n\n"
	.text
	.globl	Multiplication
	.type	Multiplication, @function
Multiplication:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edx, DWORD PTR max[rip]
	mov	eax, DWORD PTR min[rip]
	mov	ecx, edx
	imul	ecx, eax
	mov	edx, DWORD PTR min[rip]
	mov	eax, DWORD PTR max[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Multiplication, .-Multiplication
	.section	.rodata
.LC12:
	.string	"Division"
	.align 8
.LC13:
	.string	"The quotient of %i divided by %i is %i with a remainder of %i\n\n"
	.align 8
.LC14:
	.string	"Error: Cannot Divide by Zero.\n"
	.text
	.globl	Division
	.type	Division, @function
Division:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR min[rip]
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR max[rip]
	mov	ecx, DWORD PTR min[rip]
	cdq
	idiv	ecx
	mov	esi, edx
	mov	eax, DWORD PTR max[rip]
	mov	edi, DWORD PTR min[rip]
	cdq
	idiv	edi
	mov	ecx, eax
	mov	edx, DWORD PTR min[rip]
	mov	eax, DWORD PTR max[rip]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L8:
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L10:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Division, .-Division
	.section	.rodata
.LC15:
	.string	"End of Program"
	.text
	.globl	Quit
	.type	Quit, @function
Quit:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC15[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	Quit, .-Quit
	.globl	Exercises
	.type	Exercises, @function
Exercises:
.LFB13:
	.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
	cmp	DWORD PTR -4[rbp], 4
	je	.L13
	cmp	DWORD PTR -4[rbp], 4
	jg	.L14
	cmp	DWORD PTR -4[rbp], 3
	je	.L15
	cmp	DWORD PTR -4[rbp], 3
	jg	.L14
	cmp	DWORD PTR -4[rbp], 1
	je	.L16
	cmp	DWORD PTR -4[rbp], 2
	je	.L17
	jmp	.L14
.L16:
	call	Addition
	jmp	.L18
.L17:
	call	Subtraction
	jmp	.L18
.L15:
	call	Multiplication
	jmp	.L18
.L13:
	call	Division
	jmp	.L18
.L14:
	call	Quit
	nop
.L18:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	Exercises, .-Exercises
	.section	.rodata
	.align 8
.LC16:
	.string	"Please enter the minimum value: "
.LC17:
	.string	"%i"
	.align 8
.LC18:
	.string	"Please enter the maximum value: "
	.align 8
.LC19:
	.string	"Welcome to the Math Fact Practice Program"
.LC20:
	.string	"Enter your choice: "
.LC21:
	.string	"Good Bye"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, min[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, max[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L21:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	call	Menu
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, choice[rip]
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR choice[rip]
	mov	edi, eax
	call	Exercises
	mov	eax, DWORD PTR choice[rip]
	test	eax, eax
	jle	.L20
	mov	eax, DWORD PTR choice[rip]
	cmp	eax, 4
	jle	.L21
.L20:
	lea	rdi, .LC21[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"473069.c"
	.text
	.comm	num1,4,4
	.comm	choice,4,4
	.global	min
	.data
	.align	2
	.type	min, %object
	.size	min, 4
min:
	.word	1
	.global	max
	.align	2
	.type	max, %object
	.size	max, 4
max:
	.word	10
	.section	.rodata
	.align	2
.LC0:
	.ascii	"          MENU\000"
	.align	2
.LC1:
	.ascii	"    1      -       Addition\000"
	.align	2
.LC2:
	.ascii	"    2      -       Subtraction\000"
	.align	2
.LC3:
	.ascii	"    3      -       Multiplication\000"
	.align	2
.LC4:
	.ascii	"    4      -       Division\000"
	.align	2
.LC5:
	.ascii	"    5      -       Quit\000"
	.text
	.align	2
	.global	Menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	Menu, %function
Menu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	ldr	r0, .L2+4
	bl	puts
	ldr	r0, .L2+8
	bl	puts
	ldr	r0, .L2+12
	bl	puts
	ldr	r0, .L2+16
	bl	puts
	ldr	r0, .L2+20
	bl	puts
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	Menu, .-Menu
	.global	__aeabi_idivmod
	.align	2
	.global	randint
	.syntax unified
	.arm
	.fpu softvfp
	.type	randint, %function
randint:
	@ 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]
	bl	rand
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	randint, .-randint
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Addition\000"
	.align	2
.LC7:
	.ascii	"The sum of %i and %i is %i\012\012\000"
	.text
	.align	2
	.global	Addition
	.syntax unified
	.arm
	.fpu softvfp
	.type	Addition, %function
Addition:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L7
	bl	puts
	ldr	r3, .L7+4
	ldr	r1, [r3]
	ldr	r3, .L7+8
	ldr	r0, [r3]
	ldr	r3, .L7+4
	ldr	r2, [r3]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r2, r0
	ldr	r0, .L7+12
	bl	printf
	nop
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC6
	.word	max
	.word	min
	.word	.LC7
	.size	Addition, .-Addition
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Subtraction\000"
	.align	2
.LC9:
	.ascii	"The difference between %i and %i is %i\012\012\000"
	.text
	.align	2
	.global	Subtraction
	.syntax unified
	.arm
	.fpu softvfp
	.type	Subtraction, %function
Subtraction:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L10
	bl	puts
	ldr	r3, .L10+4
	ldr	r1, [r3]
	ldr	r3, .L10+8
	ldr	r0, [r3]
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, .L10+8
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r2, r0
	ldr	r0, .L10+12
	bl	printf
	nop
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC8
	.word	max
	.word	min
	.word	.LC9
	.size	Subtraction, .-Subtraction
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Multiplication\000"
	.align	2
.LC11:
	.ascii	"The product of %i and %i is %i\012\012\000"
	.text
	.align	2
	.global	Multiplication
	.syntax unified
	.arm
	.fpu softvfp
	.type	Multiplication, %function
Multiplication:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L13
	bl	puts
	ldr	r3, .L13+4
	ldr	r1, [r3]
	ldr	r3, .L13+8
	ldr	r0, [r3]
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, .L13+8
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r2, r0
	ldr	r0, .L13+12
	bl	printf
	nop
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC10
	.word	max
	.word	min
	.word	.LC11
	.size	Multiplication, .-Multiplication
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Division\000"
	.global	__aeabi_idiv
	.align	2
.LC13:
	.ascii	"The quotient of %i divided by %i is %i with a remai"
	.ascii	"nder of %i\012\012\000"
	.align	2
.LC14:
	.ascii	"Error: Cannot Divide by Zero.\012\000"
	.text
	.align	2
	.global	Division
	.syntax unified
	.arm
	.fpu softvfp
	.type	Division, %function
Division:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	ldr	r0, .L19
	bl	puts
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L19+8
	ldr	r4, [r3]
	ldr	r3, .L19+4
	ldr	r5, [r3]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, .L19+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r6, r3
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, .L19+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L19+12
	bl	printf
	b	.L18
.L16:
	ldr	r0, .L19+16
	bl	puts
.L18:
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC12
	.word	min
	.word	max
	.word	.LC13
	.word	.LC14
	.size	Division, .-Division
	.section	.rodata
	.align	2
.LC15:
	.ascii	"End of Program\000"
	.text
	.align	2
	.global	Quit
	.syntax unified
	.arm
	.fpu softvfp
	.type	Quit, %function
Quit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L22
	bl	puts
	nop
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC15
	.size	Quit, .-Quit
	.align	2
	.global	Exercises
	.syntax unified
	.arm
	.fpu softvfp
	.type	Exercises, %function
Exercises:
	@ 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, [fp, #-8]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L25
.L27:
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L26
.L30:
	bl	Addition
	b	.L31
.L29:
	bl	Subtraction
	b	.L31
.L28:
	bl	Multiplication
	b	.L31
.L26:
	bl	Division
	b	.L31
.L25:
	bl	Quit
	nop
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	Exercises, .-Exercises
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Please enter the minimum value: \000"
	.align	2
.LC17:
	.ascii	"%i\000"
	.align	2
.LC18:
	.ascii	"Please enter the maximum value: \000"
	.align	2
.LC19:
	.ascii	"Welcome to the Math Fact Practice Program\000"
	.align	2
.LC20:
	.ascii	"Enter your choice: \000"
	.align	2
.LC21:
	.ascii	"Good Bye\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L35
	bl	printf
	ldr	r1, .L35+4
	ldr	r0, .L35+8
	bl	__isoc99_scanf
	ldr	r0, .L35+12
	bl	printf
	ldr	r1, .L35+16
	ldr	r0, .L35+8
	bl	__isoc99_scanf
.L34:
	ldr	r0, .L35+20
	bl	puts
	bl	Menu
	ldr	r0, .L35+24
	bl	printf
	ldr	r1, .L35+28
	ldr	r0, .L35+8
	bl	__isoc99_scanf
	ldr	r3, .L35+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	Exercises
	ldr	r3, .L35+28
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L33
	ldr	r3, .L35+28
	ldr	r3, [r3]
	cmp	r3, #4
	ble	.L34
.L33:
	ldr	r0, .L35+32
	bl	puts
	nop
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC16
	.word	min
	.word	.LC17
	.word	.LC18
	.word	max
	.word	.LC19
	.word	.LC20
	.word	choice
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
