// File: /workspace/github_cpp_makefile_star2_O3/sus304[P]ForRocket/src/rocket/parameter/velocity.cpp
// Function: forrocket::Velocity::Initialize(forrocket::DateTime, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)
void forrocket::Velocity::Initialize(const DateTime datetime, const Eigen::Vector3d& NED, const Eigen::Vector3d& pos_LLH, const Eigen::Vector3d& pos_ECI) {
    SequenceClock clock(datetime);
    Coordinate coordinate;
    this->NED = NED;
    coordinate.setECEF2NED(pos_LLH);
    this->ECEF = coordinate.dcm.NED2ECEF * this->NED;
    coordinate.setECI2ECEF(clock.countup_time);
    this->ECI = coordinate.dcm.ECEF2ECI * this->ECEF + coordinate.dcm.EarthRotate * pos_ECI;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq %r8, %r14
movq %rcx, %r13
movq %rdx, %rbp
movq %rdi, %rbx
leaq 0x84(%rsp), %r12
movq %r12, %rdi
callq 0x1738e
leaq 0x108(%rsp), %rdi
movq %r12, %rsi
callq 0x17714
leaq 0x150(%rsp), %r15
movq %r15, %rdi
callq 0x150d4
leaq 0x30(%rbx), %r12
movups (%rbp), %xmm0
movups %xmm0, 0x30(%rbx)
movsd 0x10(%rbp), %xmm0
movsd %xmm0, 0x40(%rbx)
movq 0x10(%r13), %rax
leaq 0x60(%rsp), %rsi
movq %rax, 0x10(%rsi)
movups (%r13), %xmm0
movaps %xmm0, (%rsi)
movq %r15, %rdi
callq 0x1600e
leaq 0x2f8(%rsp), %rax
leaq 0x18(%rbx), %r15
movupd 0x30(%rbx), %xmm0
movupd 0x38(%rbx), %xmm4
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movupd (%rax), %xmm1
mulpd %xmm0, %xmm1
movupd 0x18(%rax), %xmm0
movupd 0x30(%rax), %xmm2
movapd %xmm4, %xmm3
unpcklpd %xmm4, %xmm3            # xmm3 = xmm3[0],xmm4[0]
mulpd %xmm0, %xmm3
addpd %xmm1, %xmm3
unpckhpd %xmm4, %xmm4            # xmm4 = xmm4[1,1]
mulpd %xmm2, %xmm4
addpd %xmm3, %xmm4
movapd %xmm4, 0x10(%rsp)
leaq 0x308(%rsp), %rcx
leaq 0xa0(%rsp), %r13
movq %rcx, (%r13)
movq %rax, 0x10(%r13)
movl $0x2, %eax
movq %rax, 0x18(%r13)
xorl %eax, %eax
movq %rax, 0x20(%r13)
movl $0x1, %ecx
movq %rcx, 0x28(%r13)
movq %r12, 0x30(%r13)
movq %r12, 0x40(%r13)
movq %rax, 0x48(%r13)
movl $0x3, %eax
movq %rax, 0x58(%r13)
movl $0x3, %r12d
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
callq 0x1a0a4
movq 0x10(%rbp), %rax
movq 0x20(%rbp), %rcx
movsd (%rax), %xmm0
movsd 0x18(%rax), %xmm1
mulsd (%rcx), %xmm0
mulsd 0x8(%rcx), %xmm1
movsd 0x30(%rax), %xmm2
mulsd 0x10(%rcx), %xmm2
addsd %xmm1, %xmm2
addsd %xmm0, %xmm2
movaps 0x10(%rsp), %xmm0
movups %xmm0, 0x18(%rbx)
movsd %xmm2, 0x28(%rbx)
leaq 0x108(%rsp), %rax
movsd 0x38(%rax), %xmm0
leaq 0x150(%rsp), %rdi
callq 0x15e12
leaq 0x340(%rsp), %rax
leaq 0x3d0(%rsp), %rbp
movupd 0x18(%rbx), %xmm0
movupd 0x20(%rbx), %xmm4
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movupd (%rax), %xmm1
mulpd %xmm0, %xmm1
movupd -0x78(%rbp), %xmm0
movupd -0x60(%rbp), %xmm2
movapd %xmm4, %xmm3
unpcklpd %xmm4, %xmm3            # xmm3 = xmm3[0],xmm4[0]
mulpd %xmm0, %xmm3
addpd %xmm1, %xmm3
unpckhpd %xmm4, %xmm4            # xmm4 = xmm4[1,1]
mulpd %xmm2, %xmm4
addpd %xmm3, %xmm4
movapd %xmm4, (%rsp)
leaq 0x350(%rsp), %rcx
movq %rcx, (%r13)
movq %rax, 0x10(%r13)
movl $0x2, %eax
movq %rax, 0x18(%r13)
xorl %eax, %eax
movq %rax, 0x20(%r13)
movl $0x1, %ecx
movq %rcx, 0x28(%r13)
movq %r15, 0x30(%r13)
movq %r15, 0x40(%r13)
movq %rax, 0x48(%r13)
movq %r12, 0x58(%r13)
movl $0x3, %r13d
leaq 0x28(%rsp), %r12
leaq 0xa0(%rsp), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x1a0a4
movq 0x10(%r12), %rax
movq 0x20(%r12), %rcx
movsd (%rax), %xmm0
movsd 0x18(%rax), %xmm1
mulsd (%rcx), %xmm0
mulsd 0x8(%rcx), %xmm1
movsd 0x30(%rax), %xmm2
mulsd 0x10(%rcx), %xmm2
addsd %xmm1, %xmm2
addsd %xmm0, %xmm2
movsd %xmm2, 0x10(%rsp)
movupd (%r14), %xmm0
movupd 0x8(%r14), %xmm4
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movupd (%rbp), %xmm1
mulpd %xmm0, %xmm1
movupd 0x18(%rbp), %xmm0
movupd 0x30(%rbp), %xmm2
movapd %xmm4, %xmm3
unpcklpd %xmm4, %xmm3            # xmm3 = xmm3[0],xmm4[0]
mulpd %xmm0, %xmm3
addpd %xmm1, %xmm3
unpckhpd %xmm4, %xmm4            # xmm4 = xmm4[1,1]
mulpd %xmm2, %xmm4
addpd %xmm3, %xmm4
addpd (%rsp), %xmm4
movapd %xmm4, (%rsp)
leaq 0x3e0(%rsp), %rax
movq %rax, (%r15)
movq %rbp, 0x10(%r15)
movl $0x2, %eax
movq %rax, 0x18(%r15)
xorl %eax, %eax
movq %rax, 0x20(%r15)
movl $0x1, %ecx
movq %rcx, 0x28(%r15)
movq %r14, 0x30(%r15)
movq %r14, 0x40(%r15)
movq %rax, 0x48(%r15)
movq %r13, 0x58(%r15)
leaq 0x28(%rsp), %r14
leaq 0xa0(%rsp), %rsi
movq %r14, %rdi
callq 0x1a0a4
movq 0x10(%r14), %rax
movq 0x20(%r14), %rcx
movsd (%rax), %xmm0
movsd 0x18(%rax), %xmm1
mulsd (%rcx), %xmm0
mulsd 0x8(%rcx), %xmm1
movsd 0x30(%rax), %xmm2
mulsd 0x10(%rcx), %xmm2
addsd %xmm1, %xmm2
addsd %xmm0, %xmm2
addsd 0x10(%rsp), %xmm2
movaps (%rsp), %xmm0
movups %xmm0, (%rbx)
movsd %xmm2, 0x10(%rbx)
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq