	.file	"548082.c"
	.intel_syntax noprefix
	.text
	.globl	calculateEulerDouble
	.type	calculateEulerDouble, @function
calculateEulerDouble:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, DWORD PTR -4[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -4[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC0[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movapd	xmm1, xmm3
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	calculateEulerDouble, .-calculateEulerDouble
	.globl	calculateEulerFloat
	.type	calculateEulerFloat, @function
calculateEulerFloat:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	pxor	xmm3, xmm3
	cvtsi2ss	xmm3, DWORD PTR -4[rbp]
	pxor	xmm2, xmm2
	cvtsi2ss	xmm2, DWORD PTR -4[rbp]
	movss	xmm0, DWORD PTR .LC1[rip]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	movss	xmm0, DWORD PTR .LC1[rip]
	addss	xmm1, xmm0
	movd	eax, xmm1
	movaps	xmm1, xmm3
	movd	xmm0, eax
	call	powf@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calculateEulerFloat, .-calculateEulerFloat
	.section	.rodata
.LC2:
	.string	"%d\n"
	.text
	.globl	someFunction
	.type	someFunction, @function
someFunction:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	someFunction, .-someFunction
	.section	.rodata
	.align 8
.LC3:
	.string	"Braces used to force precendence of operaitions: "
.LC4:
	.string	"a+++b = %d\n"
.LC5:
	.string	"a+(++b) = %d\n\n"
	.align 8
.LC8:
	.string	"Double vs Float precision: \n2/9 as double: %1.55g \n2/9 as float: %1.55f \n"
	.align 8
.LC10:
	.string	"\nExplicit type conversion: casting double to int - %1.10g -> %d\n"
	.align 8
.LC11:
	.string	"Implicit type conversion: passing double to function argument declared as int: "
.LC12:
	.string	"void someFunction(int) "
.LC13:
	.string	"f = %g\n"
.LC14:
	.string	"someFunction(f): "
	.align 8
.LC15:
	.string	"\nCalculating Euler number using float and double types in calculation: "
	.align 8
.LC16:
	.string	"Series element number   double value    float value     error compared to math.h E value: dobule    float"
	.align 8
.LC19:
	.string	"%4d:    %30.55f    %30.55f      %30.20f    %30.20f\n"
	.text
	.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, 48
	mov	DWORD PTR -40[rbp], 1
	mov	DWORD PTR -36[rbp], 2
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -40[rbp], edx
	mov	edx, DWORD PTR -36[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR .LC7[rip]
	movss	DWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 2
	call	printf@PLT
	movsd	xmm0, QWORD PTR .LC9[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	cvttsd2si	edx, xmm0
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	movsd	xmm0, QWORD PTR -16[rbp]
	cvttsd2si	eax, xmm0
	mov	edi, eax
	call	someFunction
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	DWORD PTR -44[rbp], 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	calculateEulerFloat
	movd	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	calculateEulerDouble
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -28[rbp]
	movsd	xmm0, QWORD PTR .LC17[rip]
	subsd	xmm0, xmm1
	movq	xmm1, QWORD PTR .LC18[rip]
	movapd	xmm2, xmm0
	andpd	xmm2, xmm1
	movsd	xmm0, QWORD PTR .LC17[rip]
	subsd	xmm0, QWORD PTR -8[rbp]
	movq	xmm1, QWORD PTR .LC18[rip]
	andpd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -28[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -44[rbp]
	movapd	xmm3, xmm2
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 4
	call	printf@PLT
	add	DWORD PTR -44[rbp], 10
.L7:
	cmp	DWORD PTR -44[rbp], 300
	jle	.L8
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 4
.LC1:
	.long	1065353216
	.align 8
.LC6:
	.long	477218588
	.long	1070363079
	.align 4
.LC7:
	.long	1046711865
	.align 8
.LC9:
	.long	-426498977
	.long	1072717835
	.align 8
.LC17:
	.long	-1961601175
	.long	1074118410
	.align 16
.LC18:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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	"548082.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
	.global	calculateEulerDouble
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateEulerDouble, %function
calculateEulerDouble:
	@ 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	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L3
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L4:
	.align	2
.L3:
	.word	1072693248
	.size	calculateEulerDouble, .-calculateEulerDouble
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fadd
	.align	2
	.global	calculateEulerFloat
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculateEulerFloat, %function
calculateEulerFloat:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, #1065353216
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #-16]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	powf
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	calculateEulerFloat, .-calculateEulerFloat
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	someFunction
	.syntax unified
	.arm
	.fpu softvfp
	.type	someFunction, %function
someFunction:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	someFunction, .-someFunction
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Braces used to force precendence of operaitions: \000"
	.align	2
.LC2:
	.ascii	"a+++b = %d\012\000"
	.align	2
.LC3:
	.ascii	"a+(++b) = %d\012\012\000"
	.global	__aeabi_f2d
	.align	2
.LC4:
	.ascii	"Double vs Float precision: \0122/9 as double: %1.55"
	.ascii	"g \0122/9 as float: %1.55f \012\000"
	.global	__aeabi_d2iz
	.align	2
.LC5:
	.ascii	"\012Explicit type conversion: casting double to int"
	.ascii	" - %1.10g -> %d\012\000"
	.align	2
.LC6:
	.ascii	"Implicit type conversion: passing double to functio"
	.ascii	"n argument declared as int: \000"
	.align	2
.LC7:
	.ascii	"void someFunction(int) \000"
	.align	2
.LC8:
	.ascii	"f = %g\012\000"
	.align	2
.LC9:
	.ascii	"someFunction(f): \000"
	.align	2
.LC10:
	.ascii	"\012Calculating Euler number using float and double"
	.ascii	" types in calculation: \000"
	.align	2
.LC11:
	.ascii	"Series element number   double value    float value"
	.ascii	"     error compared to math.h E value: dobule    fl"
	.ascii	"oat\000"
	.global	__aeabi_dsub
	.align	2
.LC12:
	.ascii	"%4d:    %30.55f    %30.55f      %30.20f    %30.20f\012"
	.ascii	"\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #72
	mov	r3, #1
	str	r3, [fp, #-68]
	mov	r3, #2
	str	r3, [fp, #-64]
	ldr	r0, .L14
	bl	puts
	ldr	r3, [fp, #-68]
	add	r2, r3, #1
	str	r2, [fp, #-68]
	ldr	r2, [fp, #-64]
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L14+4
	bl	printf
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
	ldr	r2, .L14+12
	ldr	r3, .L14+16
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, .L14+20
	str	r3, [fp, #-60]	@ float
	ldr	r0, [fp, #-60]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+24
	bl	printf
	ldr	r2, .L14+28
	ldr	r3, .L14+32
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [sp]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+36
	bl	printf
	ldr	r0, .L14+40
	bl	puts
	ldr	r0, .L14+44
	bl	puts
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+48
	bl	printf
	ldr	r0, .L14+52
	bl	printf
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r0, r3
	bl	someFunction
	ldr	r0, .L14+56
	bl	puts
	ldr	r0, .L14+60
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L11
.L12:
	ldr	r0, [fp, #-72]
	bl	calculateEulerFloat
	str	r0, [fp, #-56]	@ float
	ldr	r0, [fp, #-72]
	bl	calculateEulerDouble
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_f2d
	mov	r8, r0
	mov	r9, r1
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+64
	ldr	r1, .L14+68
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	bic	r5, r3, #-2147483648
	ldr	r0, [fp, #-56]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14+64
	ldr	r1, .L14+68
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	bic	r7, r3, #-2147483648
	str	r6, [sp, #16]
	str	r7, [sp, #20]
	str	r4, [sp, #8]
	str	r5, [sp, #12]
	stm	sp, {r8-r9}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-72]
	ldr	r0, .L14+72
	bl	printf
	ldr	r3, [fp, #-72]
	add	r3, r3, #10
	str	r3, [fp, #-72]
.L11:
	ldr	r3, [fp, #-72]
	cmp	r3, #300
	ble	.L12
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	477218588
	.word	1070363079
	.word	1046711865
	.word	.LC4
	.word	-426498977
	.word	1072717835
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	-1961601175
	.word	1074118410
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
