	.file	"342282.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC2:
	.string	"Enter loan amount: "
.LC3:
	.string	"%lf"
.LC4:
	.string	"Enter interest rate on loan: "
.LC5:
	.string	"%f"
	.align 8
.LC6:
	.string	"Enter term (in years) for the loan payment: "
.LC7:
	.string	"%d"
	.align 8
.LC8:
	.string	"\n---------------------------------------------"
.LC10:
	.string	"Amount owed to bank : %.2f\n"
	.align 8
.LC11:
	.string	"Minimum monthly payment : %.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -36[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	mov	DWORD PTR -20[rbp], 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -32[rbp]
	movss	xmm0, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edi, edx
	movaps	xmm1, xmm0
	movq	xmm0, rax
	call	computeMonthlyPayment
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -28[rbp], xmm0
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mulss	xmm0, DWORD PTR -28[rbp]
	movss	xmm1, DWORD PTR .LC9[rip]
	xorps	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -24[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -28[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	computeMonthlyPayment
	.type	computeMonthlyPayment, @function
computeMonthlyPayment:
.LFB1:
	.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
	movsd	QWORD PTR -24[rbp], xmm0
	movss	DWORD PTR -28[rbp], xmm1
	mov	DWORD PTR -32[rbp], edi
	movss	xmm0, DWORD PTR -28[rbp]
	movss	xmm1, DWORD PTR .LC12[rip]
	divss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC13[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -16[rbp], xmm0
	movss	xmm1, DWORD PTR -16[rbp]
	movss	xmm0, DWORD PTR .LC14[rip]
	addss	xmm0, xmm1
	movss	DWORD PTR -12[rbp], xmm0
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	sal	eax, 2
	mov	DWORD PTR -8[rbp], eax
	pxor	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	pxor	xmm2, xmm2
	cvtsd2ss	xmm2, QWORD PTR -24[rbp]
	movss	DWORD PTR -36[rbp], xmm2
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, edx
	movd	xmm0, eax
	call	exponentialFunction
	movd	eax, xmm0
	movd	xmm0, eax
	mulss	xmm0, DWORD PTR -16[rbp]
	mulss	xmm0, DWORD PTR -36[rbp]
	movss	DWORD PTR -36[rbp], xmm0
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, edx
	movd	xmm0, eax
	call	exponentialFunction
	movd	eax, xmm0
	movss	xmm0, DWORD PTR .LC14[rip]
	movd	xmm1, eax
	subss	xmm1, xmm0
	movss	xmm0, DWORD PTR -36[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -4[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	computeMonthlyPayment, .-computeMonthlyPayment
	.globl	exponentialFunction
	.type	exponentialFunction, @function
exponentialFunction:
.LFB2:
	.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 -20[rbp], xmm0
	mov	DWORD PTR -24[rbp], edi
	movss	xmm0, DWORD PTR .LC14[rip]
	movss	DWORD PTR -4[rbp], xmm0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L7:
	movss	xmm0, DWORD PTR -4[rbp]
	mulss	xmm0, DWORD PTR -20[rbp]
	movss	DWORD PTR -4[rbp], xmm0
	add	DWORD PTR -8[rbp], 1
.L6:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L7
	movss	xmm0, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	exponentialFunction, .-exponentialFunction
	.section	.rodata
	.align 16
.LC9:
	.long	-2147483648
	.long	0
	.long	0
	.long	0
	.align 4
.LC12:
	.long	1120403456
	.align 4
.LC13:
	.long	1094713344
	.align 4
.LC14:
	.long	1065353216
	.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	"342282.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter loan amount: \000"
	.align	2
.LC1:
	.ascii	"%lf\000"
	.align	2
.LC2:
	.ascii	"Enter interest rate on loan: \000"
	.align	2
.LC3:
	.ascii	"%f\000"
	.align	2
.LC4:
	.ascii	"Enter term (in years) for the loan payment: \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"\012---------------------------------------------\000"
	.global	__aeabi_d2f
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.align	2
.LC7:
	.ascii	"Amount owed to bank : %.2f\012\000"
	.align	2
.LC8:
	.ascii	"Minimum monthly payment : %.2f\012\000"
	.align	2
.LC9:
	.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, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-40]	@ float
	mov	r3, #0
	str	r3, [fp, #-32]	@ float
	mov	r3, #0
	str	r3, [fp, #-28]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r0, .L3+4
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L3+8
	bl	__isoc99_scanf
	ldr	r0, .L3+12
	bl	printf
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, .L3+16
	bl	__isoc99_scanf
	ldr	r0, .L3+20
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L3+24
	bl	__isoc99_scanf
	ldr	r0, .L3+28
	bl	puts
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-40]	@ float
	ldr	r3, [fp, #-36]
	bl	computeMonthlyPayment
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-32]	@ float
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-32]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	eor	r3, r3, #-2147483648
	str	r3, [fp, #-28]	@ float
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L3+32
	bl	printf
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L3+36
	bl	printf
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.global	__aeabi_fdiv
	.global	__aeabi_fadd
	.global	__aeabi_fsub
	.align	2
	.global	computeMonthlyPayment
	.syntax unified
	.arm
	.fpu softvfp
	.type	computeMonthlyPayment, %function
computeMonthlyPayment:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	str	r2, [fp, #-40]	@ float
	str	r3, [fp, #-44]
	ldr	r1, .L7
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L7+4
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-28]	@ float
	mov	r1, #1065353216
	ldr	r0, [fp, #-28]	@ float
	bl	__aeabi_fadd
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2f
	mov	r4, r0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]	@ float
	bl	exponentialFunction
	mov	r3, r0
	ldr	r1, [fp, #-28]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]	@ float
	bl	exponentialFunction
	mov	r3, r0
	mov	r1, #1065353216
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	1120403456
	.word	1094713344
	.size	computeMonthlyPayment, .-computeMonthlyPayment
	.align	2
	.global	exponentialFunction
	.syntax unified
	.arm
	.fpu softvfp
	.type	exponentialFunction, %function
exponentialFunction:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]	@ float
	str	r1, [fp, #-20]
	mov	r3, #1065353216
	str	r3, [fp, #-8]	@ float
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L10
.L11:
	ldr	r1, [fp, #-16]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L10:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-8]	@ float
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	exponentialFunction, .-exponentialFunction
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
