	.file	"410716.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Calculatorv4/n"
.LC1:
	.string	"----------"
.LC2:
	.string	"1.Add"
.LC3:
	.string	"2. subtract"
.LC4:
	.string	"3.multiply"
.LC5:
	.string	"4.divide"
.LC6:
	.string	"5. remainders"
.LC7:
	.string	"--------"
.LC8:
	.string	"selection:"
.LC9:
	.string	"%d"
.LC10:
	.string	"enter the first number:"
.LC11:
	.string	"enter the second number:"
	.align 8
.LC12:
	.string	"%d added to %d is equal to %d\n"
	.align 8
.LC13:
	.string	"%d subtracted from %d is equal to %d\n"
	.align 8
.LC14:
	.string	" Error: Select a value from 1 -5"
	.align 8
.LC15:
	.string	"Do you want to do another calculation (y/n):"
.LC16:
	.string	"%s"
	.align 8
.LC17:
	.string	"Thankyou for using the calculatior"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
.L8:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@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
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L2
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, [rdx+rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2
	jne	.L4
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L4:
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L3:
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -21[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 110
	je	.L5
	movzx	eax, BYTE PTR -21[rbp]
	cmp	al, 78
	jne	.L8
.L5:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"410716.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Calculatorv4/n\000"
	.align	2
.LC1:
	.ascii	"----------\000"
	.align	2
.LC2:
	.ascii	"1.Add\000"
	.align	2
.LC3:
	.ascii	"2. subtract\000"
	.align	2
.LC4:
	.ascii	"3.multiply\000"
	.align	2
.LC5:
	.ascii	"4.divide\000"
	.align	2
.LC6:
	.ascii	"5. remainders\000"
	.align	2
.LC7:
	.ascii	"--------\000"
	.align	2
.LC8:
	.ascii	"selection:\000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.ascii	"enter the first number:\000"
	.align	2
.LC11:
	.ascii	"enter the second number:\000"
	.align	2
.LC12:
	.ascii	"%d added to %d is equal to %d\012\000"
	.align	2
.LC13:
	.ascii	"%d subtracted from %d is equal to %d\012\000"
	.align	2
.LC14:
	.ascii	" Error: Select a value from 1 -5\000"
	.align	2
.LC15:
	.ascii	"Do you want to do another calculation (y/n):\000"
	.align	2
.LC16:
	.ascii	"%s\000"
	.align	2
.LC17:
	.ascii	"Thankyou for using the calculatior\000"
	.align	2
.LC18:
	.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, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
.L8:
	ldr	r0, .L11+4
	bl	printf
	ldr	r0, .L11+8
	bl	puts
	ldr	r0, .L11+12
	bl	puts
	ldr	r0, .L11+16
	bl	puts
	ldr	r0, .L11+20
	bl	puts
	ldr	r0, .L11+24
	bl	puts
	ldr	r0, .L11+28
	bl	puts
	ldr	r0, .L11+32
	bl	puts
	ldr	r0, .L11+36
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L11+40
	bl	__isoc99_scanf
	ldr	r0, .L11+44
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L11+40
	bl	__isoc99_scanf
	ldr	r0, .L11+48
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L11+40
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L2
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r0
	ldr	r0, .L11+52
	bl	printf
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L4
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r2, r0
	ldr	r0, .L11+56
	bl	printf
	b	.L3
.L4:
	ldr	r0, .L11+60
	bl	puts
.L3:
	ldr	r0, .L11+64
	bl	printf
	sub	r3, fp, #21
	mov	r1, r3
	ldr	r0, .L11+68
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L5
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #78
	bne	.L8
.L5:
	ldr	r0, .L11+72
	bl	puts
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC18
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
