	.file	"878658.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"Please enter a number."
.LC2:
	.string	"%i"
.LC3:
	.string	"Please enter another number."
.LC4:
	.string	"Please choose an option."
	.align 8
.LC5:
	.string	"press 1 to View smallest number."
	.align 8
.LC6:
	.string	"press 2 to View largest number."
.LC7:
	.string	"press 3 to View the sum."
.LC8:
	.string	"press 4 to View the average."
.LC9:
	.string	" press 5 to Quit program"
.LC10:
	.string	"%i\n\n"
.LC12:
	.string	"%.2lf\n\n"
.LC13:
	.string	"END OF SWITCH PROGRAM."
.LC14:
	.string	"INVALID NUMBER!!!.\n"
.LC15:
	.string	"pause"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L2
.L6:
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	add	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -24[rbp], eax
	jle	.L3
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L5
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -36[rbp], eax
.L4:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	scanf_s@PLT
.L2:
	cmp	DWORD PTR -28[rbp], 3
	jle	.L6
	mov	eax, DWORD PTR -36[rbp]
	add	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -24[rbp], eax
	jle	.L7
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L10
.L7:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L9
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L10
.L18:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	scanf_s@PLT
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 5
	ja	.L11
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L13[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L13[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L13:
	.long	.L11-.L13
	.long	.L17-.L13
	.long	.L16-.L13
	.long	.L15-.L13
	.long	.L14-.L13
	.long	.L12-.L13
	.text
.L17:
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L16:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L15:
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L14:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -32[rbp]
	movsd	xmm1, QWORD PTR .LC11[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L10
.L12:
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L10
.L11:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	nop
.L10:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 5
	jne	.L18
	lea	rdi, .LC15[rip]
	call	system@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC11:
	.long	0
	.long	1075052544
	.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	"878658.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please enter a number.\000"
	.align	2
.LC1:
	.ascii	"%i\000"
	.align	2
.LC2:
	.ascii	"Please enter another number.\000"
	.align	2
.LC3:
	.ascii	"Please choose an option.\000"
	.align	2
.LC4:
	.ascii	"press 1 to View smallest number.\000"
	.align	2
.LC5:
	.ascii	"press 2 to View largest number.\000"
	.align	2
.LC6:
	.ascii	"press 3 to View the sum.\000"
	.align	2
.LC7:
	.ascii	"press 4 to View the average.\000"
	.align	2
.LC8:
	.ascii	" press 5 to Quit program\000"
	.align	2
.LC9:
	.ascii	"%i\012\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC10:
	.ascii	"%.2lf\012\012\000"
	.align	2
.LC11:
	.ascii	"END OF SWITCH PROGRAM.\000"
	.align	2
.LC12:
	.ascii	"INVALID NUMBER!!!.\012\000"
	.align	2
.LC13:
	.ascii	"pause\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r0, .L21+4
	bl	puts
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L21+8
	bl	scanf_s
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	b	.L2
.L6:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L3
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	b	.L4
.L3:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L5
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	b	.L4
.L5:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-40]
.L4:
	ldr	r0, .L21+12
	bl	puts
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L21+8
	bl	scanf_s
.L2:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	ble	.L6
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L7
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	b	.L10
.L7:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bge	.L9
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	b	.L10
.L9:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-40]
	b	.L10
.L18:
	ldr	r0, .L21+16
	bl	puts
	ldr	r0, .L21+20
	bl	puts
	ldr	r0, .L21+24
	bl	puts
	ldr	r0, .L21+28
	bl	puts
	ldr	r0, .L21+32
	bl	puts
	ldr	r0, .L21+36
	bl	puts
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L21+8
	bl	scanf_s
	ldr	r3, [fp, #-44]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L11
.L13:
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L12
.L17:
	ldr	r1, [fp, #-28]
	ldr	r0, .L21+40
	bl	printf
	b	.L10
.L16:
	ldr	r1, [fp, #-24]
	ldr	r0, .L21+40
	bl	printf
	b	.L10
.L15:
	ldr	r1, [fp, #-36]
	ldr	r0, .L21+40
	bl	printf
	b	.L10
.L14:
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L21+44
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L21+48
	bl	printf
	b	.L10
.L12:
	ldr	r0, .L21+52
	bl	puts
	b	.L10
.L11:
	ldr	r0, .L21+56
	bl	puts
	nop
.L10:
	ldr	r3, [fp, #-44]
	cmp	r3, #5
	bne	.L18
	ldr	r0, .L21+60
	bl	system
	mov	r3, #0
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	1075052544
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
