// File: /workspace/github_cpp_makefile_star2_O1/soybin[P]idyll/src/fractal.cpp
// Function: fractal::calculateNormal(math::vec3)
math::vec3 fractal::calculateNormal(math::vec3 point) {
	double e = 0.00001;
	math::vec3 xyy(1.0, -1.0, -1.0);
	math::vec3 yyx(-1.0, -1.0, 1.0);
	math::vec3 yxy(-1.0, 1.0, -1.0);
	math::vec3 xxx(1.0, 1.0, 1.0);
	return math::normalize(
				xyy * de(point + xyy * e) +
				yyx * de(point + yyx * e) +
				yxy * de(point + yxy * e) +
				xxx * de(point + xxx * e)
				);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rbp), %r15
leaq -0xe8(%rbp), %r12
movsd 0x56cd(%rip), %xmm0     # 0xe678
movsd 0x5885(%rip), %xmm1     # 0xe838
movq %r12, %rdi
movaps %xmm1, %xmm2
callq 0x61cc
leaq -0x88(%rbp), %rdi
movsd 0x586b(%rip), %xmm0     # 0xe838
movaps %xmm0, %xmm1
movsd 0x56a0(%rip), %xmm2     # 0xe678
callq 0x61cc
leaq -0x70(%rbp), %rdi
movsd 0x584f(%rip), %xmm0     # 0xe838
movsd 0x5687(%rip), %xmm1     # 0xe678
movaps %xmm0, %xmm2
callq 0x61cc
leaq -0x58(%rbp), %rdi
movsd 0x5673(%rip), %xmm0     # 0xe678
movaps %xmm0, %xmm1
movaps %xmm0, %xmm2
callq 0x61cc
leaq -0x1c0(%rbp), %r13
movsd 0x5891(%rip), %xmm0     # 0xe8b0
movq %r13, %rdi
movq %r12, %rsi
callq 0x627c
leaq -0x1d8(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x61e0
movq 0x10(%r12), %rax
movq %rax, -0x30(%rbp)
movups (%r12), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x0, (%r14)
jle 0x9072
xorl %r13d, %r13d
leaq -0x40(%rbp), %r12
movq 0x70(%r14), %rdi
movq (%rdi), %rax
movq %r12, %rsi
callq *(%rax)
incl %r13d
cmpl (%r14), %r13d
jl 0x905e
movq -0x30(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps -0x40(%rbp), %xmm0
movups %xmm0, (%rsp)
movsd 0x55ed(%rip), %xmm0     # 0xe678
callq 0x6971
leaq -0xa0(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x627c
leaq -0x178(%rbp), %r12
leaq -0x88(%rbp), %rsi
movsd 0x57f7(%rip), %xmm0     # 0xe8b0
movq %r12, %rdi
callq 0x627c
leaq -0x190(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x61e0
movq 0x10(%r13), %rax
movq %rax, -0x30(%rbp)
movups (%r13), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x0, (%r14)
jle 0x9108
xorl %r13d, %r13d
leaq -0x40(%rbp), %r12
movq 0x70(%r14), %rdi
movq (%rdi), %rax
movq %r12, %rsi
callq *(%rax)
incl %r13d
cmpl (%r14), %r13d
jl 0x90f4
movq -0x30(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps -0x40(%rbp), %xmm0
movups %xmm0, (%rsp)
movsd 0x5557(%rip), %xmm0     # 0xe678
callq 0x6971
leaq -0x1a8(%rbp), %r12
leaq -0x88(%rbp), %rsi
movq %r12, %rdi
callq 0x627c
leaq -0xb8(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movq %r12, %rdx
callq 0x61e0
leaq -0x130(%rbp), %r12
leaq -0x70(%rbp), %rsi
movsd 0x574b(%rip), %xmm0     # 0xe8b0
movq %r12, %rdi
callq 0x627c
leaq -0x148(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x61e0
movq 0x10(%r13), %rax
movq %rax, -0x30(%rbp)
movups (%r13), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x0, (%r14)
jle 0x91b4
xorl %r13d, %r13d
leaq -0x40(%rbp), %r12
movq 0x70(%r14), %rdi
movq (%rdi), %rax
movq %r12, %rsi
callq *(%rax)
incl %r13d
cmpl (%r14), %r13d
jl 0x91a0
movq -0x30(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps -0x40(%rbp), %xmm0
movups %xmm0, (%rsp)
movsd 0x54ab(%rip), %xmm0     # 0xe678
callq 0x6971
leaq -0x160(%rbp), %r12
leaq -0x70(%rbp), %rsi
movq %r12, %rdi
callq 0x627c
leaq -0xd0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movq %r12, %rdx
callq 0x61e0
leaq -0x100(%rbp), %r12
leaq -0x58(%rbp), %rsi
movsd 0x56a2(%rip), %xmm0     # 0xe8b0
movq %r12, %rdi
callq 0x627c
leaq -0x118(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x61e0
movq 0x10(%r13), %rax
movq %rax, -0x30(%rbp)
movups (%r13), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x0, (%r14)
jle 0x925d
xorl %r12d, %r12d
leaq -0x40(%rbp), %r15
movq 0x70(%r14), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *(%rax)
incl %r12d
cmpl (%r14), %r12d
jl 0x9249
leaq -0x40(%rbp), %r14
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movaps (%r14), %xmm0
movups %xmm0, (%rsp)
movsd 0x53fe(%rip), %xmm0     # 0xe678
callq 0x6971
leaq -0x58(%rbp), %rsi
movq %r14, %rdi
callq 0x627c
leaq -0x1f0(%rbp), %r15
leaq -0xd0(%rbp), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x61e0
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x6575
movq %rbx, %rax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq