	.file	"936435.c"
	.intel_syntax noprefix
	.text
	.globl	areaCircle
	.type	areaCircle, @function
areaCircle:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	mov	rax, QWORD PTR -8[rbp]
	movss	DWORD PTR 12[rax], xmm0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	areaCircle, .-areaCircle
	.globl	areaSquare
	.type	areaSquare, @function
areaSquare:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	imul	eax, edx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	rax, QWORD PTR -8[rbp]
	movss	DWORD PTR 12[rax], xmm0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	areaSquare, .-areaSquare
	.section	.rodata
.LC1:
	.string	"It is a circle with area %f\n"
.LC2:
	.string	"It is a square with area %f\n"
	.text
	.globl	handleShape
	.type	handleShape, @function
handleShape:
.LFB2:
	.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	eax, edi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR -32[rbp]
	test	eax, eax
	je	.L4
	cmp	eax, 1
	je	.L5
	jmp	.L7
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	areaCircle
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR 12[rax]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	areaSquare
	mov	rax, QWORD PTR -16[rbp]
	movss	xmm0, DWORD PTR 12[rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 1
	call	printf@PLT
	nop
.L6:
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	handleShape, .-handleShape
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -88[rbp], 1
	mov	DWORD PTR -84[rbp], 2
	mov	DWORD PTR -80[rbp], 5
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -76[rbp], rax
	mov	DWORD PTR -64[rbp], 0
	lea	rax, -80[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	edx, DWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edi, edx
	mov	rsi, rax
	call	handleShape
	mov	DWORD PTR -48[rbp], 5
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -44[rbp], rax
	mov	DWORD PTR -32[rbp], 1
	lea	rax, -48[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edi, edx
	mov	rsi, rax
	call	handleShape
	call	getchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	1374389535
	.long	1074339512
	.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	"936435.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.align	2
	.global	areaCircle
	.syntax unified
	.arm
	.fpu softvfp
	.type	areaCircle, %function
areaCircle:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L2
	ldr	r3, .L2+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]	@ float
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L3:
	.align	2
.L2:
	.word	1374389535
	.word	1074339512
	.size	areaCircle, .-areaCircle
	.global	__aeabi_i2f
	.align	2
	.global	areaSquare
	.syntax unified
	.arm
	.fpu softvfp
	.type	areaSquare, %function
areaSquare:
	@ 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]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]	@ float
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	areaSquare, .-areaSquare
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC1:
	.ascii	"It is a circle with area %f\012\000"
	.align	2
.LC2:
	.ascii	"It is a square with area %f\012\000"
	.text
	.align	2
	.global	handleShape
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleShape, %function
handleShape:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	sub	r3, fp, #20
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L6
	cmp	r3, #1
	beq	.L7
	b	.L9
.L6:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	areaCircle
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L10
	bl	printf
	b	.L8
.L7:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	areaSquare
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L10+4
	bl	printf
	nop
.L8:
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	.LC2
	.size	handleShape, .-handleShape
	.section	.rodata
	.align	2
.LC0:
	.word	1
	.word	2
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L15+4
	sub	r3, fp, #64
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r3, #5
	str	r3, [fp, #-40]
	sub	r3, fp, #36
	sub	r2, fp, #64
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-56]
	sub	r3, fp, #40
	str	r3, [fp, #-52]
	sub	r3, fp, #56
	ldm	r3, {r0, r1}
	bl	handleShape
	mov	r3, #5
	str	r3, [fp, #-24]
	sub	r3, fp, #20
	sub	r2, fp, #64
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r3, #1
	str	r3, [fp, #-48]
	sub	r3, fp, #24
	str	r3, [fp, #-44]
	sub	r3, fp, #48
	ldm	r3, {r0, r1}
	bl	handleShape
	bl	getchar
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
