// File: /workspace/github_cpp_makefile_star2_O3/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 0x5897(%rip), %xmm0     # 0xe678
movsd 0x5a4f(%rip), %xmm1     # 0xe838
movq %r12, %rdi
movaps %xmm1, %xmm2
callq 0x61f4
leaq -0x88(%rbp), %rdi
movsd 0x5a35(%rip), %xmm0     # 0xe838
movaps %xmm0, %xmm1
movsd 0x586a(%rip), %xmm2     # 0xe678
callq 0x61f4
leaq -0x70(%rbp), %rdi
movsd 0x5a19(%rip), %xmm0     # 0xe838
movsd 0x5851(%rip), %xmm1     # 0xe678
movaps %xmm0, %xmm2
callq 0x61f4
leaq -0x58(%rbp), %rdi
movsd 0x583d(%rip), %xmm0     # 0xe678
movaps %xmm0, %xmm1
movaps %xmm0, %xmm2
callq 0x61f4
leaq -0x1c0(%rbp), %r13
movsd 0x5a4b(%rip), %xmm0     # 0xe8a0
movq %r13, %rdi
movq %r12, %rsi
callq 0x62a4
leaq -0x1d8(%rbp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x6208
movq 0x10(%r12), %rax
movq %rax, -0x30(%rbp)
movups (%r12), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x0, (%r14)
jle 0x8ea8
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 0x8e94
movq -0x30(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps -0x40(%rbp), %xmm0
movups %xmm0, (%rsp)
movsd 0x57b7(%rip), %xmm0     # 0xe678
callq 0x6930
leaq -0xa0(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
callq 0x62a4
leaq -0x178(%rbp), %r12
leaq -0x88(%rbp), %rsi
movsd 0x59b1(%rip), %xmm0     # 0xe8a0
movq %r12, %rdi
callq 0x62a4
leaq -0x190(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x6208
movq 0x10(%r13), %rax
movq %rax, -0x30(%rbp)
movups (%r13), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x0, (%r14)
jle 0x8f3e
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 0x8f2a
movq -0x30(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps -0x40(%rbp), %xmm0
movups %xmm0, (%rsp)
movsd 0x5721(%rip), %xmm0     # 0xe678
callq 0x6930
leaq -0x1a8(%rbp), %r12
leaq -0x88(%rbp), %rsi
movq %r12, %rdi
callq 0x62a4
leaq -0xb8(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
movq %r12, %rdx
callq 0x6208
leaq -0x130(%rbp), %r12
leaq -0x70(%rbp), %rsi
movsd 0x5905(%rip), %xmm0     # 0xe8a0
movq %r12, %rdi
callq 0x62a4
leaq -0x148(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x6208
movq 0x10(%r13), %rax
movq %rax, -0x30(%rbp)
movups (%r13), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x0, (%r14)
jle 0x8fea
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 0x8fd6
movq -0x30(%rbp), %rax
movq %rax, 0x10(%rsp)
movaps -0x40(%rbp), %xmm0
movups %xmm0, (%rsp)
movsd 0x5675(%rip), %xmm0     # 0xe678
callq 0x6930
leaq -0x160(%rbp), %r12
leaq -0x70(%rbp), %rsi
movq %r12, %rdi
callq 0x62a4
leaq -0xd0(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movq %r12, %rdx
callq 0x6208
leaq -0x100(%rbp), %r12
leaq -0x58(%rbp), %rsi
movsd 0x585c(%rip), %xmm0     # 0xe8a0
movq %r12, %rdi
callq 0x62a4
leaq -0x118(%rbp), %r13
movq %r13, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x6208
movq 0x10(%r13), %rax
movq %rax, -0x30(%rbp)
movups (%r13), %xmm0
movaps %xmm0, -0x40(%rbp)
cmpl $0x0, (%r14)
jle 0x9093
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 0x907f
leaq -0x40(%rbp), %r14
movq 0x10(%r14), %rax
movq %rax, 0x10(%rsp)
movaps (%r14), %xmm0
movups %xmm0, (%rsp)
movsd 0x55c8(%rip), %xmm0     # 0xe678
callq 0x6930
leaq -0x58(%rbp), %rsi
movq %r14, %rdi
callq 0x62a4
leaq -0x1f0(%rbp), %r15
leaq -0xd0(%rbp), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x6208
movq 0x10(%r15), %rax
movq %rax, 0x10(%rsp)
movups (%r15), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0x6590
movq %rbx, %rax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq