	.file	"51700692.c"
	.intel_syntax noprefix
	.text
	.globl	WL1
	.bss
	.align 32
	.type	WL1, @object
	.size	WL1, 32
WL1:
	.zero	32
	.globl	WL2
	.align 32
	.type	WL2, @object
	.size	WL2, 80
WL2:
	.zero	80
	.globl	DL1
	.align 16
	.type	DL1, @object
	.size	DL1, 16
DL1:
	.zero	16
	.globl	DL2
	.align 32
	.type	DL2, @object
	.size	DL2, 40
DL2:
	.zero	40
	.globl	OL1
	.align 16
	.type	OL1, @object
	.size	OL1, 16
OL1:
	.zero	16
	.globl	OL2
	.align 32
	.type	OL2, @object
	.size	OL2, 40
OL2:
	.zero	40
	.globl	EL1
	.align 16
	.type	EL1, @object
	.size	EL1, 16
EL1:
	.zero	16
	.globl	EL2
	.align 32
	.type	EL2, @object
	.size	EL2, 40
EL2:
	.zero	40
	.text
	.globl	NeuronOutputDerivative
	.type	NeuronOutputDerivative, @function
NeuronOutputDerivative:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC0[rip]
	subsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	NeuronOutputDerivative, .-NeuronOutputDerivative
	.globl	CalculateInnerStates
	.type	CalculateInnerStates, @function
CalculateInnerStates:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -48[rbp], r8d
	mov	DWORD PTR -8[rbp], 0
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rax], xmm0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -44[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm2
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L6
	add	DWORD PTR -8[rbp], 1
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L7
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	CalculateInnerStates, .-CalculateInnerStates
	.globl	CalculateOuterStates
	.type	CalculateOuterStates, @function
CalculateOuterStates:
.LFB8:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	movq	xmm1, QWORD PTR .LC2[rip]
	xorpd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	call	exp@PLT
	movsd	xmm1, QWORD PTR .LC0[rip]
	addsd	xmm1, xmm0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L9:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L10
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	CalculateOuterStates, .-CalculateOuterStates
	.globl	ActivateLayer
	.type	ActivateLayer, @function
ActivateLayer:
.LFB9:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	DWORD PTR -36[rbp], r8d
	mov	DWORD PTR -40[rbp], r9d
	mov	edi, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	CalculateInnerStates
	mov	edx, DWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	CalculateOuterStates
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ActivateLayer, .-ActivateLayer
	.globl	ActivateNeuralNetwork
	.type	ActivateNeuralNetwork, @function
ActivateNeuralNetwork:
.LFB10:
	.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 2
	mov	r8d, 2
	lea	rcx, WL1[rip]
	lea	rdx, OL1[rip]
	lea	rsi, DL1[rip]
	mov	rdi, rax
	call	ActivateLayer
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, 5
	mov	r8d, 2
	lea	rcx, WL2[rip]
	lea	rdx, OL2[rip]
	lea	rsi, DL2[rip]
	mov	rdi, rax
	call	ActivateLayer
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ActivateNeuralNetwork, .-ActivateNeuralNetwork
	.globl	InitializeLayerWeights
	.type	InitializeLayerWeights, @function
InitializeLayerWeights:
.LFB11:
	.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
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L14
.L17:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L16
	add	DWORD PTR -8[rbp], 1
.L14:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L17
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	InitializeLayerWeights, .-InitializeLayerWeights
	.globl	InitializeAllWeights
	.type	InitializeAllWeights, @function
InitializeAllWeights:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 2
	mov	esi, 2
	lea	rdi, WL1[rip]
	call	InitializeLayerWeights
	mov	edx, 2
	mov	esi, 5
	lea	rdi, WL2[rip]
	call	InitializeLayerWeights
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	InitializeAllWeights, .-InitializeAllWeights
	.globl	OutputLayerErrors
	.type	OutputLayerErrors, @function
OutputLayerErrors:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 56
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	call	NeuronOutputDerivative
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mulsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L21
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	OutputLayerErrors, .-OutputLayerErrors
	.globl	InnerLayerErrors
	.type	InnerLayerErrors, @function
InnerLayerErrors:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 56
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -52[rbp], r8d
	mov	DWORD PTR -56[rbp], r9d
	mov	DWORD PTR -16[rbp], 0
	jmp	.L23
.L26:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L24:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L25
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	call	NeuronOutputDerivative
	movq	rax, xmm0
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rcx
	movq	xmm0, rax
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR [rdx], xmm0
	add	DWORD PTR -16[rbp], 1
.L23:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L26
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	InnerLayerErrors, .-InnerLayerErrors
	.globl	UpdateLayer
	.type	UpdateLayer, @function
UpdateLayer:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -44[rbp], ecx
	mov	DWORD PTR -48[rbp], r8d
	mov	DWORD PTR -8[rbp], 0
	jmp	.L28
.L31:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L29
.L30:
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movsd	xmm2, QWORD PTR [rax]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm2, xmm0
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mulsd	xmm0, xmm2
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, DWORD PTR -48[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	addsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L29:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L30
	add	DWORD PTR -8[rbp], 1
.L28:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L31
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	UpdateLayer, .-UpdateLayer
	.globl	UpdateLayers
	.type	UpdateLayers, @function
UpdateLayers:
.LFB16:
	.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
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, 2
	mov	ecx, 2
	mov	rdx, rax
	lea	rsi, EL1[rip]
	lea	rdi, WL1[rip]
	call	UpdateLayer
	mov	r8d, 2
	mov	ecx, 5
	lea	rdx, OL1[rip]
	lea	rsi, EL2[rip]
	lea	rdi, WL2[rip]
	call	UpdateLayer
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	UpdateLayers, .-UpdateLayers
	.globl	ErrorBackPropagation
	.type	ErrorBackPropagation, @function
ErrorBackPropagation:
.LFB17:
	.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
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 5
	lea	rdx, EL2[rip]
	mov	rsi, rax
	lea	rdi, OL2[rip]
	call	OutputLayerErrors
	mov	r9d, 5
	mov	r8d, 2
	lea	rcx, EL2[rip]
	lea	rdx, EL1[rip]
	lea	rsi, WL2[rip]
	lea	rdi, OL1[rip]
	call	InnerLayerErrors
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	ErrorBackPropagation, .-ErrorBackPropagation
	.globl	TrainNeuralNetwork
	.type	TrainNeuralNetwork, @function
TrainNeuralNetwork:
.LFB18:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ErrorBackPropagation
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	UpdateLayers
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	TrainNeuralNetwork, .-TrainNeuralNetwork
	.globl	AcquireInputs
	.type	AcquireInputs, @function
AcquireInputs:
.LFB19:
	.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
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L36
.L37:
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	addsd	xmm0, xmm0
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC0[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L36:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L37
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	AcquireInputs, .-AcquireInputs
	.globl	AcquireGoldenOutputs
	.type	AcquireGoldenOutputs, @function
AcquireGoldenOutputs:
.LFB20:
	.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
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L39
.L40:
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR [rax], xmm0
	add	DWORD PTR -4[rbp], 1
.L39:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L40
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	AcquireGoldenOutputs, .-AcquireGoldenOutputs
	.section	.rodata
	.align 8
.LC5:
	.string	"\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
	.align 8
.LC6:
	.string	"This program implements a Neural Network of %d Layers.\n"
	.align 8
.LC7:
	.string	"Inputs: %d, Hidden layer neurons: %d, Output layer neurons: %d\n"
	.align 8
.LC8:
	.string	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"
.LC9:
	.string	"Set number of steps: "
.LC10:
	.string	"%d"
.LC11:
	.string	"\nThe input was:"
.LC12:
	.string	"%.10lf\n"
.LC13:
	.string	">>>> STEP: %7d  <<<<\n"
	.align 8
.LC14:
	.string	"\nThe final output compared to the golden output is:"
	.align 8
.LC15:
	.string	"Golden: %.10lf  <>  Real: %.10lf  \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB21:
	.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
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	esi, 2
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	ecx, 5
	mov	edx, 2
	mov	esi, 2
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edi, eax
	call	srand@PLT
	mov	esi, 8
	mov	edi, 2
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	esi, 8
	mov	edi, 5
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -48[rbp], 5
	mov	eax, 0
	call	InitializeAllWeights
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	AcquireInputs
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 5
	mov	rdi, rax
	call	AcquireGoldenOutputs
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L42
.L43:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	add	DWORD PTR -40[rbp], 1
.L42:
	cmp	DWORD PTR -40[rbp], 1
	jle	.L43
.L44:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ActivateNeuralNetwork
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	TrainNeuralNetwork
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -36[rbp], edx
	mov	edx, DWORD PTR -48[rbp]
	cmp	eax, edx
	jl	.L44
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L45
.L46:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, OL2[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC15[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -44[rbp], 1
.L45:
	cmp	DWORD PTR -44[rbp], 4
	jle	.L46
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 16
.LC2:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.align 8
.LC3:
	.long	-4194304
	.long	1105199103
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.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	"51700692.c"
	.text
	.comm	WL1,32,8
	.comm	WL2,80,8
	.comm	DL1,16,8
	.comm	DL2,40,8
	.comm	OL1,16,8
	.comm	OL2,40,8
	.comm	EL1,16,8
	.comm	EL2,40,8
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.align	2
	.global	NeuronOutputDerivative
	.syntax unified
	.arm
	.fpu softvfp
	.type	NeuronOutputDerivative, %function
NeuronOutputDerivative:
	@ 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, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L3
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	1072693248
	.size	NeuronOutputDerivative, .-NeuronOutputDerivative
	.global	__aeabi_dadd
	.align	2
	.global	CalculateInnerStates
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateInnerStates, %function
CalculateInnerStates:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L6
.L9:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L7
.L8:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r6, r2, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L7:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L6:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L9
	nop
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
	.size	CalculateInnerStates, .-CalculateInnerStates
	.global	__aeabi_ddiv
	.align	2
	.global	CalculateOuterStates
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateOuterStates, %function
CalculateOuterStates:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L11
.L12:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r4, r2
	eor	r5, r3, #-2147483648
	mov	r0, r4
	mov	r1, r5
	bl	exp
	mov	r2, #0
	ldr	r3, .L13
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r6, r2, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L13
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L11:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L12
	nop
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L14:
	.align	2
.L13:
	.word	1072693248
	.size	CalculateOuterStates, .-CalculateOuterStates
	.align	2
	.global	ActivateLayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	ActivateLayer, %function
ActivateLayer:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #8]
	str	r3, [sp]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	CalculateInnerStates
	ldr	r2, [fp, #8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	CalculateOuterStates
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ActivateLayer, .-ActivateLayer
	.align	2
	.global	ActivateNeuralNetwork
	.syntax unified
	.arm
	.fpu softvfp
	.type	ActivateNeuralNetwork, %function
ActivateNeuralNetwork:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	mov	r3, #2
	str	r3, [sp, #4]
	mov	r3, #2
	str	r3, [sp]
	ldr	r3, .L17
	ldr	r2, .L17+4
	ldr	r1, .L17+8
	ldr	r0, [fp, #-8]
	bl	ActivateLayer
	mov	r3, #5
	str	r3, [sp, #4]
	mov	r3, #2
	str	r3, [sp]
	ldr	r3, .L17+12
	ldr	r2, .L17+16
	ldr	r1, .L17+20
	ldr	r0, [fp, #-8]
	bl	ActivateLayer
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	WL1
	.word	OL1
	.word	DL1
	.word	WL2
	.word	OL2
	.word	DL2
	.size	ActivateNeuralNetwork, .-ActivateNeuralNetwork
	.global	__aeabi_i2d
	.align	2
	.global	InitializeLayerWeights
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitializeLayerWeights, %function
InitializeLayerWeights:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L20
.L23:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L21
.L22:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	ldr	r2, .L24
	ldr	r3, .L24+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L21:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L20:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L23
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	-4194304
	.word	1105199103
	.size	InitializeLayerWeights, .-InitializeLayerWeights
	.align	2
	.global	InitializeAllWeights
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitializeAllWeights, %function
InitializeAllWeights:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #2
	mov	r1, #2
	ldr	r0, .L27
	bl	InitializeLayerWeights
	mov	r2, #2
	mov	r1, #5
	ldr	r0, .L27+4
	bl	InitializeLayerWeights
	nop
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	WL1
	.word	WL2
	.size	InitializeAllWeights, .-InitializeAllWeights
	.align	2
	.global	OutputLayerErrors
	.syntax unified
	.arm
	.fpu softvfp
	.type	OutputLayerErrors, %function
OutputLayerErrors:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L30
.L31:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	NeuronOutputDerivative
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-24]
	lsl	r1, r1, #3
	ldr	r0, [fp, #-40]
	add	r4, r0, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L30:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L31
	nop
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r6, r7, fp, pc}
	.size	OutputLayerErrors, .-OutputLayerErrors
	.align	2
	.global	InnerLayerErrors
	.syntax unified
	.arm
	.fpu softvfp
	.type	InnerLayerErrors, %function
InnerLayerErrors:
	@ args = 8, 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, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L33
.L36:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L34
.L35:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L34:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #8]
	cmp	r2, r3
	blt	.L35
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	NeuronOutputDerivative
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r4, r2, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L33:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L36
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	InnerLayerErrors, .-InnerLayerErrors
	.align	2
	.global	UpdateLayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateLayer, %function
UpdateLayer:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L38
.L41:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L39
.L40:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldmia	r3, {r4-r5}
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L42
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #-32]
	add	r6, r2, r3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L39:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L40
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L38:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	blt	.L41
	nop
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L43:
	.align	2
.L42:
	.word	1071644672
	.size	UpdateLayer, .-UpdateLayer
	.align	2
	.global	UpdateLayers
	.syntax unified
	.arm
	.fpu softvfp
	.type	UpdateLayers, %function
UpdateLayers:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	mov	r3, #2
	str	r3, [sp]
	mov	r3, #2
	ldr	r2, [fp, #-8]
	ldr	r1, .L45
	ldr	r0, .L45+4
	bl	UpdateLayer
	mov	r3, #2
	str	r3, [sp]
	mov	r3, #5
	ldr	r2, .L45+8
	ldr	r1, .L45+12
	ldr	r0, .L45+16
	bl	UpdateLayer
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	EL1
	.word	WL1
	.word	OL1
	.word	EL2
	.word	WL2
	.size	UpdateLayers, .-UpdateLayers
	.align	2
	.global	ErrorBackPropagation
	.syntax unified
	.arm
	.fpu softvfp
	.type	ErrorBackPropagation, %function
ErrorBackPropagation:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	mov	r3, #5
	ldr	r2, .L48
	ldr	r1, [fp, #-8]
	ldr	r0, .L48+4
	bl	OutputLayerErrors
	mov	r3, #5
	str	r3, [sp, #4]
	mov	r3, #2
	str	r3, [sp]
	ldr	r3, .L48
	ldr	r2, .L48+8
	ldr	r1, .L48+12
	ldr	r0, .L48+16
	bl	InnerLayerErrors
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	EL2
	.word	OL2
	.word	EL1
	.word	WL2
	.word	OL1
	.size	ErrorBackPropagation, .-ErrorBackPropagation
	.align	2
	.global	TrainNeuralNetwork
	.syntax unified
	.arm
	.fpu softvfp
	.type	TrainNeuralNetwork, %function
TrainNeuralNetwork:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	ErrorBackPropagation
	ldr	r0, [fp, #-8]
	bl	UpdateLayers
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	TrainNeuralNetwork, .-TrainNeuralNetwork
	.align	2
	.global	AcquireInputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcquireInputs, %function
AcquireInputs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L52
.L53:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L54
	ldr	r3, .L54+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	mov	r2, #0
	ldr	r3, .L54+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L52:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L53
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L55:
	.align	2
.L54:
	.word	-4194304
	.word	1105199103
	.word	1072693248
	.size	AcquireInputs, .-AcquireInputs
	.align	2
	.global	AcquireGoldenOutputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	AcquireGoldenOutputs, %function
AcquireGoldenOutputs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L57
.L58:
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	ldr	r2, .L59
	ldr	r3, .L59+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	r4, {r2-r3}
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L57:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L58
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	-4194304
	.word	1105199103
	.size	AcquireGoldenOutputs, .-AcquireGoldenOutputs
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
	.ascii	"~~~~~~~~~~~~~~~~~\000"
	.align	2
.LC1:
	.ascii	"This program implements a Neural Network of %d Laye"
	.ascii	"rs.\012\000"
	.align	2
.LC2:
	.ascii	"Inputs: %d, Hidden layer neurons: %d, Output layer "
	.ascii	"neurons: %d\012\000"
	.align	2
.LC3:
	.ascii	"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
	.ascii	"~~~~~~~~~~~~~\012\000"
	.align	2
.LC4:
	.ascii	"Set number of steps: \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"\012The input was:\000"
	.align	2
.LC7:
	.ascii	"%.10lf\012\000"
	.align	2
.LC8:
	.ascii	">>>> STEP: %7d  <<<<\012\000"
	.align	2
.LC9:
	.ascii	"\012The final output compared to the golden output "
	.ascii	"is:\000"
	.align	2
.LC10:
	.ascii	"Golden: %.10lf  <>  Real: %.10lf  \012\000"
	.align	2
.LC11:
	.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, #40
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L69+4
	bl	puts
	mov	r1, #2
	ldr	r0, .L69+8
	bl	printf
	mov	r3, #5
	mov	r2, #2
	mov	r1, #2
	ldr	r0, .L69+12
	bl	printf
	ldr	r0, .L69+16
	bl	puts
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	srand
	mov	r1, #8
	mov	r0, #2
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r1, #8
	mov	r0, #5
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #5
	str	r3, [fp, #-36]
	bl	InitializeAllWeights
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	AcquireInputs
	mov	r1, #5
	ldr	r0, [fp, #-12]
	bl	AcquireGoldenOutputs
	ldr	r0, .L69+20
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L69+24
	bl	__isoc99_scanf
	ldr	r0, .L69+28
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L62
.L63:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L69+32
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L62:
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	ble	.L63
.L64:
	ldr	r1, [fp, #-24]
	ldr	r0, .L69+36
	bl	printf
	ldr	r0, [fp, #-16]
	bl	ActivateNeuralNetwork
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	TrainNeuralNetwork
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-36]
	cmp	r3, r2
	blt	.L64
	ldr	r0, .L69+40
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L65
.L66:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r2, .L69+44
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L69+48
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L65:
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	ble	.L66
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	ldr	r2, .L69
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	OL2
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
