	.file	"187643588.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter 'c' for Circle \nEnter 'r' for Rectangle \nEnter 't' for Triangle"
.LC1:
	.string	" %c"
	.align 8
.LC2:
	.string	"Enter width and length of the rectangle "
.LC3:
	.string	"%f%f"
	.align 8
.LC4:
	.string	"Perimeter of rectangle is: %.3f\n"
	.align 8
.LC5:
	.string	"Enter the size of all sides of the triangle "
.LC6:
	.string	"%f%f%f"
	.align 8
.LC7:
	.string	"Perimeter of triangle is: %.3f\n"
	.align 8
.LC8:
	.string	"Enter the radius of the circle "
.LC9:
	.string	"%f"
.LC11:
	.string	"Perimeter of circle is: %.3f\n"
.LC12:
	.string	"Invalid Choice"
	.align 8
.LC13:
	.string	"Do you want to continue?(y/n):"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -38[rbp], 121
.L6:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -37[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -37[rbp]
	movsx	eax, al
	cmp	eax, 116
	je	.L2
	cmp	eax, 116
	jg	.L3
	cmp	eax, 99
	je	.L4
	cmp	eax, 114
	jne	.L3
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdx, -32[rbp]
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm1, DWORD PTR -28[rbp]
	movss	xmm0, DWORD PTR -32[rbp]
	addss	xmm0, xmm1
	addss	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -12[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L5
.L2:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rcx, -16[rbp]
	lea	rdx, -20[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm1, DWORD PTR -24[rbp]
	movss	xmm0, DWORD PTR -20[rbp]
	addss	xmm1, xmm0
	movss	xmm0, DWORD PTR -16[rbp]
	addss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -12[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movss	xmm0, DWORD PTR -36[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC10[rip]
	mulsd	xmm0, xmm1
	addsd	xmm0, xmm0
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, DWORD PTR -12[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L5
.L3:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
.L5:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -38[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -38[rbp]
	cmp	al, 89
	je	.L6
	movzx	eax, BYTE PTR -38[rbp]
	cmp	al, 121
	je	.L6
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC10:
	.long	1413754136
	.long	1074340347
	.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	"187643588.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter 'c' for Circle \012Enter 'r' for Rectangle \012"
	.ascii	"Enter 't' for Triangle\000"
	.align	2
.LC1:
	.ascii	" %c\000"
	.align	2
.LC2:
	.ascii	"Enter width and length of the rectangle \000"
	.align	2
.LC3:
	.ascii	"%f%f\000"
	.global	__aeabi_fadd
	.global	__aeabi_f2d
	.align	2
.LC4:
	.ascii	"Perimeter of rectangle is: %.3f\012\000"
	.align	2
.LC5:
	.ascii	"Enter the size of all sides of the triangle \000"
	.align	2
.LC6:
	.ascii	"%f%f%f\000"
	.align	2
.LC7:
	.ascii	"Perimeter of triangle is: %.3f\012\000"
	.align	2
.LC8:
	.ascii	"Enter the radius of the circle \000"
	.align	2
.LC9:
	.ascii	"%f\000"
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2f
	.align	2
.LC10:
	.ascii	"Perimeter of circle is: %.3f\012\000"
	.align	2
.LC11:
	.ascii	"Invalid Choice\000"
	.align	2
.LC12:
	.ascii	"Do you want to continue?(y/n):\000"
	.align	2
.LC13:
	.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, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #121
	strb	r3, [fp, #-38]
.L6:
	ldr	r0, .L8+4
	bl	puts
	sub	r3, fp, #37
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #116
	beq	.L2
	cmp	r3, #116
	bgt	.L3
	cmp	r3, #99
	beq	.L4
	cmp	r3, #114
	bne	.L3
	ldr	r0, .L8+12
	bl	puts
	sub	r2, fp, #32
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L8+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]	@ float
	ldr	r2, [fp, #-32]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L8+20
	bl	printf
	b	.L5
.L2:
	ldr	r0, .L8+24
	bl	puts
	sub	r3, fp, #16
	sub	r2, fp, #20
	sub	r1, fp, #24
	ldr	r0, .L8+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-24]	@ float
	ldr	r2, [fp, #-20]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L8+32
	bl	printf
	b	.L5
.L4:
	ldr	r0, .L8+36
	bl	puts
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L8+40
	bl	__isoc99_scanf
	ldr	r3, [fp, #-36]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L8+44
	ldr	r3, .L8+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r0, [fp, #-12]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L8+52
	bl	printf
	b	.L5
.L3:
	ldr	r0, .L8+56
	bl	puts
	nop
.L5:
	ldr	r0, .L8+60
	bl	printf
	sub	r3, fp, #38
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #89
	beq	.L6
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L6
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	1413754136
	.word	1074340347
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
