// File: /workspace/github_cpp_makefile_star2_O2/sus304[P]ForRocket/src/rocket/engine.cpp
// Function: forrocket::Engine::Engine(std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>, double)
forrocket::Engine::Engine(const std::vector<double> time_vector, const std::vector<double> thrust_vacuum_vector, const std::vector<double> mdot_prop_vector, const double area_exit) {
    Reset();
    enable_gimbal = false;

    this->area_exit = area_exit;
    this->burn_duration = time_vector[time_vector.size()-1];
    thrust_vacuum_src = InterpolateParameter(time_vector, thrust_vacuum_vector, "zero");
    mdot_prop_src = InterpolateParameter(time_vector, mdot_prop_vector, "zero");

    getTotalImpulse(thrust_vacuum_vector, time_vector.back());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movsd %xmm0, 0x8(%rsp)
movq %rcx, %rbp
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %r15
movb $0x0, (%rdi)
leaq 0x58(%rdi), %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movups %xmm0, 0x18(%rdi)
movups %xmm0, 0x28(%rdi)
movups %xmm0, 0x38(%rdi)
movups %xmm0, 0x41(%rdi)
movq %rbx, %rdi
callq 0x14f9c
leaq 0xf8(%r15), %r14
movq %r14, %rdi
callq 0x14f9c
leaq 0x8(%r15), %rax
movb $0x0, (%r15)
andq $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x38(%r15)
movups %xmm0, 0x41(%r15)
movups %xmm0, 0x28(%r15)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x38(%r15)
movq 0x8(%r12), %rax
movsd -0x8(%rax), %xmm0
movsd %xmm0, 0x8(%r15)
leaq 0x58(%rsp), %rdi
movq %r12, %rsi
callq 0x614a
leaq 0x40(%rsp), %rdi
movq %r13, %rsi
callq 0x614a
leaq 0x1aa8c(%rip), %rsi     # 0x31465
leaq 0x90(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x72de
leaq 0xc8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x90(%rsp), %rcx
callq 0x15004
leaq 0xc8(%rsp), %rsi
movq %rbx, %rdi
callq 0x15220
leaq 0xc8(%rsp), %rdi
callq 0x13f1a
leaq 0x90(%rsp), %rdi
callq 0x5688
leaq 0x40(%rsp), %rdi
callq 0x6002
leaq 0x58(%rsp), %rdi
callq 0x6002
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x614a
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x614a
leaq 0x1a9fc(%rip), %rsi     # 0x31465
leaq 0x70(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x72de
leaq 0xc8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x70(%rsp), %rcx
callq 0x15004
leaq 0xc8(%rsp), %rsi
movq %r14, %rdi
callq 0x15220
leaq 0xc8(%rsp), %rdi
callq 0x13f1a
leaq 0x70(%rsp), %rdi
callq 0x5688
leaq 0x10(%rsp), %rdi
callq 0x6002
leaq 0x28(%rsp), %rdi
callq 0x6002
leaq 0xb0(%rsp), %rdi
movq %r13, %rsi
callq 0x614a
movq 0x8(%r12), %rax
movsd -0x8(%rax), %xmm0
leaq 0xb0(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x16652
movq %rbx, %rdi
callq 0x6002
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x16b96
movq %rax, %r15
leaq 0xc8(%rsp), %rdi
callq 0x13f1a
jmp 0x16b2d
movq %rax, %r15
leaq 0x70(%rsp), %rdi
callq 0x5688
jmp 0x16b3c
movq %rax, %r15
leaq 0x10(%rsp), %rdi
callq 0x6002
jmp 0x16b4b
movq %rax, %r15
leaq 0x28(%rsp), %rdi
jmp 0x16b8f
jmp 0x16b96
movq %rax, %r15
leaq 0xc8(%rsp), %rdi
callq 0x13f1a
jmp 0x16b69
movq %rax, %r15
leaq 0x90(%rsp), %rdi
callq 0x5688
jmp 0x16b7b
movq %rax, %r15
leaq 0x40(%rsp), %rdi
callq 0x6002
jmp 0x16b8a
movq %rax, %r15
leaq 0x58(%rsp), %rdi
callq 0x6002
jmp 0x16b99
movq %rax, %r15
movq %r14, %rdi
callq 0x13f1a
movq %rbx, %rdi
callq 0x13f1a
movq %r15, %rdi
callq 0x55b0
movq %rax, %r15
jmp 0x16ba1