	.file	"14201201.c"
	.intel_syntax noprefix
	.text
	.globl	RightInput
	.bss
	.align 4
	.type	RightInput, @object
	.size	RightInput, 4
RightInput:
	.zero	4
	.globl	LeftInput
	.align 4
	.type	LeftInput, @object
	.size	LeftInput, 4
LeftInput:
	.zero	4
	.globl	CentralInput
	.align 4
	.type	CentralInput, @object
	.size	CentralInput, 4
CentralInput:
	.zero	4
	.section	.rodata
.LC4:
	.string	"%"
.LC5:
	.string	"Error: "
.LC6:
	.string	"%s%lf%s\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
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	pxor	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -20[rbp], xmm0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L2
.L3:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -28[rbp]
	movsd	xmm0, QWORD PTR .LC1[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR CentralInput[rip]
	movss	DWORD PTR LeftInput[rip], xmm0
	movss	xmm0, DWORD PTR RightInput[rip]
	movss	DWORD PTR CentralInput[rip], xmm0
	mov	eax, DWORD PTR -24[rbp]
	movd	xmm0, eax
	call	simulation
	movd	eax, xmm0
	mov	DWORD PTR RightInput[rip], eax
	mov	eax, DWORD PTR -24[rbp]
	movd	xmm0, eax
	call	actual_derivative
	movd	ebx, xmm0
	movss	xmm0, DWORD PTR .LC2[rip]
	call	secondDerivative
	movd	xmm2, ebx
	subss	xmm2, xmm0
	movss	DWORD PTR -36[rbp], xmm2
	mov	eax, DWORD PTR -24[rbp]
	movd	xmm0, eax
	call	actual_derivative
	movaps	xmm1, xmm0
	movss	xmm0, DWORD PTR -36[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -20[rbp], xmm0
	movss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR .LC3[rip]
	mulss	xmm0, xmm1
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rax, xmm3
	lea	rdx, .LC4[rip]
	movq	xmm0, rax
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L2:
	cmp	DWORD PTR -28[rbp], 499
	jle	.L3
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	secondDerivative
	.type	secondDerivative, @function
secondDerivative:
.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	xmm1, DWORD PTR LeftInput[rip]
	movss	xmm0, DWORD PTR CentralInput[rip]
	addss	xmm0, xmm0
	subss	xmm1, xmm0
	movss	xmm0, DWORD PTR RightInput[rip]
	addss	xmm1, xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	mulss	xmm0, xmm0
	divss	xmm1, xmm0
	movaps	xmm0, xmm1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	secondDerivative, .-secondDerivative
	.globl	simulation
	.type	simulation, @function
simulation:
.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 -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	mulss	xmm0, xmm0
	movaps	xmm1, xmm0
	mulss	xmm1, DWORD PTR -4[rbp]
	movss	xmm2, DWORD PTR -4[rbp]
	movss	xmm0, DWORD PTR .LC7[rip]
	mulss	xmm0, xmm2
	addss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC8[rip]
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	simulation, .-simulation
	.globl	actual_derivative
	.type	actual_derivative, @function
actual_derivative:
.LFB3:
	.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	xmm1, DWORD PTR -4[rbp]
	movss	xmm0, DWORD PTR .LC9[rip]
	mulss	xmm0, xmm1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	actual_derivative, .-actual_derivative
	.section	.rodata
	.align 8
.LC1:
	.long	1202590843
	.long	1064598241
	.align 4
.LC2:
	.long	1000593162
	.align 4
.LC3:
	.long	1120403456
	.align 4
.LC7:
	.long	1077936128
	.align 8
.LC8:
	.long	-858993459
	.long	1076546764
	.align 4
.LC9:
	.long	1086324736
	.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	"14201201.c"
	.text
	.global	RightInput
	.bss
	.align	2
	.type	RightInput, %object
	.size	RightInput, 4
RightInput:
	.space	4
	.global	LeftInput
	.align	2
	.type	LeftInput, %object
	.size	LeftInput, 4
LeftInput:
	.space	4
	.global	CentralInput
	.align	2
	.type	CentralInput, %object
	.size	CentralInput, 4
CentralInput:
	.space	4
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.global	__aeabi_fsub
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: \000"
	.align	2
.LC1:
	.ascii	"%s%lf%s\012\000"
	.align	2
.LC2:
	.ascii	"%\000"
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	mov	r3, #0
	str	r3, [fp, #-20]	@ float
	mov	r3, #0
	str	r3, [fp, #-16]	@ float
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	ldr	r2, .L5
	ldr	r3, .L5+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r3, .L5+8
	ldr	r3, [r3]	@ float
	ldr	r2, .L5+12
	str	r3, [r2]	@ float
	ldr	r3, .L5+16
	ldr	r3, [r3]	@ float
	ldr	r2, .L5+8
	str	r3, [r2]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	simulation
	mov	r3, r0
	ldr	r2, .L5+16
	str	r3, [r2]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	actual_derivative
	mov	r4, r0
	ldr	r0, .L5+20
	bl	secondDerivative
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #-20]	@ float
	bl	actual_derivative
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r1, .L5+24
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L5+28
	str	r1, [sp]
	ldr	r1, .L5+32
	ldr	r0, .L5+36
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #500
	blt	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L6:
	.align	2
.L5:
	.word	1202590843
	.word	1064598241
	.word	CentralInput
	.word	LeftInput
	.word	RightInput
	.word	1000593162
	.word	1120403456
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.global	__aeabi_fadd
	.align	2
	.global	secondDerivative
	.syntax unified
	.arm
	.fpu softvfp
	.type	secondDerivative, %function
secondDerivative:
	@ 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]	@ float
	ldr	r3, .L9
	ldr	r4, [r3]	@ float
	ldr	r3, .L9+4
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L9+8
	ldr	r3, [r3]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-16]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L10:
	.align	2
.L9:
	.word	LeftInput
	.word	CentralInput
	.word	RightInput
	.size	secondDerivative, .-secondDerivative
	.global	__aeabi_dadd
	.align	2
	.global	simulation
	.syntax unified
	.arm
	.fpu softvfp
	.type	simulation, %function
simulation:
	@ 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]	@ float
	ldr	r1, [fp, #-16]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r1, .L13
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L13+4
	ldr	r3, .L13+8
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	1077936128
	.word	-858993459
	.word	1076546764
	.size	simulation, .-simulation
	.align	2
	.global	actual_derivative
	.syntax unified
	.arm
	.fpu softvfp
	.type	actual_derivative, %function
actual_derivative:
	@ 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
	ldr	r1, .L17
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	1086324736
	.size	actual_derivative, .-actual_derivative
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
