	.file	"100608.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC1:
	.string	"Please select a currency to convert."
	.align 8
.LC2:
	.string	"Press 1 for Euro conversion into Dollars."
	.align 8
.LC3:
	.string	"Press 2 for Dollar conversion into Euros."
.LC4:
	.string	"Press 3 to end the program."
.LC5:
	.string	"%d"
	.align 8
.LC6:
	.string	"Please enter three amounts in Euro."
.LC7:
	.string	"%f"
	.align 8
.LC8:
	.string	"The average of the three converted currencies is %.2f Dollars\n\n"
	.align 8
.LC9:
	.string	"Please enter three amounts in Dollar."
	.align 8
.LC10:
	.string	"The average of the three converted currencies is %.2f Euros\n\n"
	.align 8
.LC11:
	.string	"***Option not available. Please choose a valid option***\n"
	.align 8
.LC12:
	.string	"Thank you for using the currency converter!"
	.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
	pxor	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	mov	DWORD PTR -32[rbp], 0
.L11:
	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	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 1
	jne	.L2
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L3
.L4:
	lea	rdx, -20[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -28[rbp], 1
.L3:
	cmp	DWORD PTR -28[rbp], 2
	jle	.L4
	lea	rax, -20[rbp]
	mov	rdi, rax
	call	change_to_Dollar
	movd	eax, xmm0
	mov	DWORD PTR -24[rbp], eax
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -24[rbp]
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L5
.L2:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 2
	jne	.L6
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L7
.L8:
	lea	rdx, -20[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -28[rbp], 1
.L7:
	cmp	DWORD PTR -28[rbp], 2
	jle	.L8
	lea	rax, -20[rbp]
	mov	rdi, rax
	call	change_to_Euro
	movd	eax, xmm0
	mov	DWORD PTR -24[rbp], eax
	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
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 1
	je	.L9
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 2
	je	.L9
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 3
	je	.L9
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L5
.L9:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 3
	jne	.L5
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L12
.L5:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 3
	jne	.L11
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC14:
	.string	"%.2f Euros is converted to %.2f Dollars\n"
	.text
	.globl	change_to_Dollar
	.type	change_to_Dollar, @function
change_to_Dollar:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	movss	xmm0, DWORD PTR .LC13[rip]
	movss	DWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, DWORD PTR -8[rbp]
	cvtss2sd	xmm0, xmm0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC14[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L15:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L16
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm1, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movss	xmm0, DWORD PTR [rax]
	addss	xmm1, xmm0
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	movss	xmm0, DWORD PTR [rax]
	addss	xmm0, xmm1
	mulss	xmm0, DWORD PTR -8[rbp]
	movss	xmm1, DWORD PTR .LC15[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	change_to_Dollar, .-change_to_Dollar
	.section	.rodata
	.align 8
.LC17:
	.string	"%.2f Dollars is converted to %.2f Euros\n"
	.text
	.globl	change_to_Euro
	.type	change_to_Euro, @function
change_to_Euro:
.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	QWORD PTR -24[rbp], rdi
	movss	xmm0, DWORD PTR .LC16[rip]
	movss	DWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	mulss	xmm0, DWORD PTR -8[rbp]
	cvtss2sd	xmm0, xmm0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm1, DWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC17[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L19:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L20
	mov	rax, QWORD PTR -24[rbp]
	movss	xmm1, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movss	xmm0, DWORD PTR [rax]
	addss	xmm1, xmm0
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	movss	xmm0, DWORD PTR [rax]
	addss	xmm0, xmm1
	mulss	xmm0, DWORD PTR -8[rbp]
	movss	xmm1, DWORD PTR .LC15[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	change_to_Euro, .-change_to_Euro
	.section	.rodata
	.align 4
.LC13:
	.long	1066024305
	.align 4
.LC15:
	.long	1077936128
	.align 4
.LC16:
	.long	1064011039
	.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	"100608.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please select a currency to convert.\000"
	.align	2
.LC1:
	.ascii	"Press 1 for Euro conversion into Dollars.\000"
	.align	2
.LC2:
	.ascii	"Press 2 for Dollar conversion into Euros.\000"
	.align	2
.LC3:
	.ascii	"Press 3 to end the program.\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"Please enter three amounts in Euro.\000"
	.align	2
.LC6:
	.ascii	"%f\000"
	.global	__aeabi_f2d
	.align	2
.LC7:
	.ascii	"The average of the three converted currencies is %."
	.ascii	"2f Dollars\012\012\000"
	.align	2
.LC8:
	.ascii	"Please enter three amounts in Dollar.\000"
	.align	2
.LC9:
	.ascii	"The average of the three converted currencies is %."
	.ascii	"2f Euros\012\012\000"
	.align	2
.LC10:
	.ascii	"***Option not available. Please choose a valid opti"
	.ascii	"on***\012\000"
	.align	2
.LC11:
	.ascii	"Thank you for using the currency converter!\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]	@ float
	mov	r3, #0
	str	r3, [fp, #-32]
.L11:
	ldr	r0, .L14+4
	bl	puts
	ldr	r0, .L14+8
	bl	puts
	ldr	r0, .L14+12
	bl	puts
	ldr	r0, .L14+16
	bl	puts
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L14+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L2
	ldr	r0, .L14+24
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L3
.L4:
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L14+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L3:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L4
	sub	r3, fp, #20
	mov	r0, r3
	bl	change_to_Dollar
	str	r0, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14+32
	bl	printf
	b	.L5
.L2:
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L6
	ldr	r0, .L14+36
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L7
.L8:
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L14+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L7:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L8
	sub	r3, fp, #20
	mov	r0, r3
	bl	change_to_Euro
	str	r0, [fp, #-24]	@ float
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14+40
	bl	printf
	b	.L5
.L6:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	beq	.L9
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L9
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	beq	.L9
	ldr	r0, .L14+44
	bl	puts
	b	.L5
.L9:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bne	.L5
	ldr	r0, .L14+48
	bl	puts
	mov	r3, #0
	b	.L12
.L5:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bne	.L11
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.global	__aeabi_fmul
	.section	.rodata
	.align	2
.LC13:
	.ascii	"%.2f Euros is converted to %.2f Dollars\012\000"
	.global	__aeabi_fadd
	.global	__aeabi_fdiv
	.text
	.align	2
	.global	change_to_Dollar
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_to_Dollar, %function
change_to_Dollar:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L20
	str	r3, [fp, #-20]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L17
.L18:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L20+4
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L17:
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L18
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L20+8
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-16]	@ float
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L21:
	.align	2
.L20:
	.word	1066024305
	.word	.LC13
	.word	1077936128
	.size	change_to_Dollar, .-change_to_Dollar
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%.2f Dollars is converted to %.2f Euros\012\000"
	.text
	.align	2
	.global	change_to_Euro
	.syntax unified
	.arm
	.fpu softvfp
	.type	change_to_Euro, %function
change_to_Euro:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L26
	str	r3, [fp, #-20]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L23
.L24:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L26+4
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L23:
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	ble	.L24
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fadd
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, .L26+8
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-16]	@ float
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L27:
	.align	2
.L26:
	.word	1064011039
	.word	.LC14
	.word	1077936128
	.size	change_to_Euro, .-change_to_Euro
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
