	.file	"648851.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter Initial Amount to be invested: "
.LC1:
	.string	"%f"
	.align 8
.LC2:
	.string	"Enter Annual interest Rate(in percentage): "
.LC3:
	.string	"Amount after year %d: %.2f\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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	testTotalAmount
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -12[rbp], 1
	jmp	.L2
.L3:
	movss	xmm0, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	findTotalAmount
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rdx, xmm2
	mov	eax, DWORD PTR -12[rbp]
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 1
	call	printf@PLT
	movss	xmm0, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -16[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	findTotalAmount
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L2:
	cmp	DWORD PTR -12[rbp], 5
	jle	.L3
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	calcAnnualInterest
	.type	calcAnnualInterest, @function
calcAnnualInterest:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movss	DWORD PTR -4[rbp], xmm0
	movss	DWORD PTR -8[rbp], xmm1
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR .LC4[rip]
	jbe	.L11
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -8[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -4[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm2
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	jmp	.L9
.L11:
	movss	xmm0, DWORD PTR -8[rbp]
	mulss	xmm0, DWORD PTR -4[rbp]
	movss	xmm1, DWORD PTR .LC7[rip]
	divss	xmm0, xmm1
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calcAnnualInterest, .-calcAnnualInterest
	.globl	findTotalAmount
	.type	findTotalAmount, @function
findTotalAmount:
.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, 8
	movss	DWORD PTR -4[rbp], xmm0
	movss	DWORD PTR -8[rbp], xmm1
	movss	xmm0, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	calcAnnualInterest
	movd	eax, xmm0
	movd	xmm0, eax
	addss	xmm0, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	findTotalAmount, .-findTotalAmount
	.section	.rodata
.LC11:
	.string	"the_stack_data/648851.c"
	.align 8
.LC12:
	.string	"calcAnnualInterest(10, 10000) + 10000 == 11000"
	.align 8
.LC14:
	.string	"calcAnnualInterest(10, 11000) + 11000 == 12100"
	.align 8
.LC16:
	.string	"calcAnnualInterest(10, 12100) + 12100 == 13310"
	.align 8
.LC17:
	.string	"testTotalAmount() unit tests passed."
	.text
	.globl	testTotalAmount
	.type	testTotalAmount, @function
testTotalAmount:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movss	xmm1, DWORD PTR .LC8[rip]
	movss	xmm0, DWORD PTR .LC9[rip]
	call	calcAnnualInterest
	movss	xmm1, DWORD PTR .LC8[rip]
	addss	xmm0, xmm1
	ucomiss	xmm0, DWORD PTR .LC10[rip]
	jp	.L21
	ucomiss	xmm0, DWORD PTR .LC10[rip]
	je	.L15
.L21:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 42
	lea	rsi, .LC11[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L15:
	movss	xmm1, DWORD PTR .LC10[rip]
	movss	xmm0, DWORD PTR .LC9[rip]
	call	calcAnnualInterest
	movss	xmm1, DWORD PTR .LC10[rip]
	addss	xmm0, xmm1
	ucomiss	xmm0, DWORD PTR .LC13[rip]
	jp	.L22
	ucomiss	xmm0, DWORD PTR .LC13[rip]
	je	.L17
.L22:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 43
	lea	rsi, .LC11[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L17:
	movss	xmm1, DWORD PTR .LC13[rip]
	movss	xmm0, DWORD PTR .LC9[rip]
	call	calcAnnualInterest
	movss	xmm1, DWORD PTR .LC13[rip]
	addss	xmm0, xmm1
	ucomiss	xmm0, DWORD PTR .LC15[rip]
	jp	.L23
	ucomiss	xmm0, DWORD PTR .LC15[rip]
	je	.L19
.L23:
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 44
	lea	rsi, .LC11[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L19:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	testTotalAmount, .-testTotalAmount
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 16
__PRETTY_FUNCTION__.0:
	.string	"testTotalAmount"
	.align 4
.LC4:
	.long	1232348160
	.align 8
.LC5:
	.long	0
	.long	1071644672
	.align 8
.LC6:
	.long	0
	.long	1079574528
	.align 4
.LC7:
	.long	1120403456
	.align 4
.LC8:
	.long	1176256512
	.align 4
.LC9:
	.long	1092616192
	.align 4
.LC10:
	.long	1177280512
	.align 4
.LC13:
	.long	1178406912
	.align 4
.LC15:
	.long	1179645952
	.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	"648851.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter Initial Amount to be invested: \000"
	.align	2
.LC1:
	.ascii	"%f\000"
	.align	2
.LC2:
	.ascii	"Enter Annual interest Rate(in percentage): \000"
	.global	__aeabi_f2d
	.align	2
.LC3:
	.ascii	"Amount after year %d: %.2f\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	testTotalAmount
	ldr	r0, .L6+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	ldr	r0, .L6+12
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L6+8
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]	@ float
	ldr	r2, [fp, #-20]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	findTotalAmount
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-12]
	ldr	r0, .L6+16
	bl	printf
	ldr	r3, [fp, #-16]	@ float
	ldr	r2, [fp, #-20]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	findTotalAmount
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	ble	.L3
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.global	__aeabi_fcmpgt
	.global	__aeabi_dadd
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_d2f
	.global	__aeabi_fmul
	.global	__aeabi_fdiv
	.align	2
	.global	calcAnnualInterest
	.syntax unified
	.arm
	.fpu softvfp
	.type	calcAnnualInterest, %function
calcAnnualInterest:
	@ 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]	@ float
	str	r1, [fp, #-20]	@ float
	ldr	r1, .L14
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L14+4
	bl	__aeabi_dadd
	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
	mov	r2, #0
	ldr	r3, .L14+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	b	.L11
.L13:
	ldr	r1, [fp, #-16]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L14+12
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	1232348160
	.word	1071644672
	.word	1079574528
	.word	1120403456
	.size	calcAnnualInterest, .-calcAnnualInterest
	.global	__aeabi_fadd
	.align	2
	.global	findTotalAmount
	.syntax unified
	.arm
	.fpu softvfp
	.type	findTotalAmount, %function
findTotalAmount:
	@ 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]	@ float
	str	r1, [fp, #-12]	@ float
	ldr	r1, [fp, #-12]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	calcAnnualInterest
	mov	r3, r0
	ldr	r1, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	findTotalAmount, .-findTotalAmount
	.global	__aeabi_fcmpeq
	.section	.rodata
	.align	2
.LC5:
	.ascii	"the_stack_data/648851.c\000"
	.align	2
.LC6:
	.ascii	"calcAnnualInterest(10, 10000) + 10000 == 11000\000"
	.align	2
.LC7:
	.ascii	"calcAnnualInterest(10, 11000) + 11000 == 12100\000"
	.align	2
.LC8:
	.ascii	"calcAnnualInterest(10, 12100) + 12100 == 13310\000"
	.align	2
.LC9:
	.ascii	"testTotalAmount() unit tests passed.\000"
	.text
	.align	2
	.global	testTotalAmount
	.syntax unified
	.arm
	.fpu softvfp
	.type	testTotalAmount, %function
testTotalAmount:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L22
	ldr	r0, .L22+4
	bl	calcAnnualInterest
	mov	r3, r0
	ldr	r1, .L22
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r1, .L22+8
	mov	r0, r3
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L22+12
	mov	r2, #42
	ldr	r1, .L22+16
	ldr	r0, .L22+20
	bl	__assert_fail
.L19:
	ldr	r1, .L22+8
	ldr	r0, .L22+4
	bl	calcAnnualInterest
	mov	r3, r0
	ldr	r1, .L22+8
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r1, .L22+24
	mov	r0, r3
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L22+12
	mov	r2, #43
	ldr	r1, .L22+16
	ldr	r0, .L22+28
	bl	__assert_fail
.L20:
	ldr	r1, .L22+24
	ldr	r0, .L22+4
	bl	calcAnnualInterest
	mov	r3, r0
	ldr	r1, .L22+24
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r1, .L22+32
	mov	r0, r3
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L22+12
	mov	r2, #44
	ldr	r1, .L22+16
	ldr	r0, .L22+36
	bl	__assert_fail
.L21:
	ldr	r0, .L22+40
	bl	puts
	nop
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	1176256512
	.word	1092616192
	.word	1177280512
	.word	__PRETTY_FUNCTION__.4637
	.word	.LC5
	.word	.LC6
	.word	1178406912
	.word	.LC7
	.word	1179645952
	.word	.LC8
	.word	.LC9
	.size	testTotalAmount, .-testTotalAmount
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.4637, %object
	.size	__PRETTY_FUNCTION__.4637, 16
__PRETTY_FUNCTION__.4637:
	.ascii	"testTotalAmount\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
