// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
movq %rdx, %rbp
movq %rdi, %rbx
leaq 0x84(%rsp), %r13
movq %r13, %rdi
callq 0x17896
leaq 0xa0(%rsp), %rdi
movq %r13, %rsi
callq 0x17c58
leaq 0xe8(%rsp), %r12
movq %r12, %rdi
callq 0x152d4
leaq 0x30(%rbx), %r13
movups (%rbp), %xmm0
movups %xmm0, 0x30(%rbx)
movsd 0x10(%rbp), %xmm0
movsd %xmm0, 0x40(%rbx)
movq 0x10(%r15), %rax
leaq 0x60(%rsp), %rsi
movq %rax, 0x10(%rsi)
movups (%r15), %xmm0
movaps %xmm0, (%rsi)
movq %r12, %rdi
callq 0x164e0
leaq 0x290(%rsp), %rax
leaq 0x18(%rbx), %r12
movupd 0x30(%rbx), %xmm0
movupd 0x38(%rbx), %xmm1
movupd 0x40(%rbx), %xmm4
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movupd (%rax), %xmm2
mulpd %xmm0, %xmm2
movupd 0x18(%rax), %xmm0
movupd 0x30(%rax), %xmm3
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
mulpd %xmm0, %xmm1
addpd %xmm2, %xmm1
unpcklpd %xmm4, %xmm4            # xmm4 = xmm4[0,0]
mulpd %xmm3, %xmm4
addpd %xmm1, %xmm4
movapd %xmm4, 0x10(%rsp)
leaq 0x2a0(%rsp), %rcx
leaq 0x3b0(%rsp), %r15
movq %rcx, (%r15)
movq %rax, 0x10(%r15)
movl $0x2, %eax
movq %rax, 0x18(%r15)
xorl %eax, %eax
movq %rax, 0x20(%r15)
movl $0x1, %ecx
movq %rcx, 0x28(%r15)
movq %r13, 0x30(%r15)
movq %r13, 0x40(%r15)
movq %rax, 0x48(%r15)
movl $0x3, %eax
movq %rax, 0x58(%r15)
leaq 0x28(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x1a6c6
movq %r15, 0x30(%rbp)
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 0xa0(%rsp), %rax
movsd 0x38(%rax), %xmm0
leaq 0xe8(%rsp), %rdi
callq 0x162e4
leaq 0x2d8(%rsp), %rax
leaq 0x368(%rsp), %rbp
movupd 0x18(%rbx), %xmm0
movupd 0x20(%rbx), %xmm1
movupd 0x28(%rbx), %xmm4
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movupd (%rax), %xmm2
mulpd %xmm0, %xmm2
movupd -0x78(%rbp), %xmm0
movupd -0x60(%rbp), %xmm3
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
mulpd %xmm0, %xmm1
addpd %xmm2, %xmm1
unpcklpd %xmm4, %xmm4            # xmm4 = xmm4[0,0]
mulpd %xmm3, %xmm4
addpd %xmm1, %xmm4
movapd %xmm4, (%rsp)
leaq 0x2e8(%rsp), %rcx
movq %rcx, (%r15)
movq %rax, 0x10(%r15)
movl $0x2, %eax
movq %rax, 0x18(%r15)
xorl %eax, %eax
movq %rax, 0x20(%r15)
movl $0x1, %ecx
movq %rcx, 0x28(%r15)
movq %r12, 0x30(%r15)
movq %r12, 0x40(%r15)
movq %rax, 0x48(%r15)
xorl %r13d, %r13d
movl $0x3, %eax
movq %rax, 0x58(%r15)
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x1a6c6
movq %r15, 0x30(%r12)
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), %xmm1
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
movupd (%rbp), %xmm2
mulpd %xmm0, %xmm2
movupd 0x18(%rbp), %xmm0
movupd 0x30(%rbp), %xmm3
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
mulpd %xmm0, %xmm1
addpd %xmm2, %xmm1
movsd 0x10(%r14), %xmm0
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
mulpd %xmm3, %xmm0
addpd %xmm1, %xmm0
addpd (%rsp), %xmm0
movapd %xmm0, (%rsp)
leaq 0x378(%rsp), %rax
movq %rax, (%r15)
movq %rbp, 0x10(%r15)
movl $0x2, %eax
movq %rax, 0x18(%r15)
movq %r13, 0x20(%r15)
movl $0x1, %eax
movq %rax, 0x28(%r15)
movq %r14, 0x30(%r15)
movq %r14, 0x40(%r15)
movq %r13, 0x48(%r15)
movl $0x3, %eax
movq %rax, 0x58(%r15)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x1a6c6
movq %r15, 0x30(%r14)
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