// File: /workspace/github_cpp_makefile_star2_O1/istellartech[P]OpenTsiolkovsky/src/main.cpp
// Function: main
int main(int argc, const char * argv[]) {
    std::chrono::system_clock::time_point  start, end; // calcuration time measurement
    start = std::chrono::system_clock::now(); // mesurement start time
    
    std::cout << "Hello, OpenTsiolkovsky! version:" + current_version + "\n";

    string input_file_name;
    string input_file_default = "param_sample.json";
    if (argc == 1) {
        input_file_name = input_file_default;
    } else if (argc == 2) {
        input_file_name = argv[1];
    } else {
        cout << "argument error";
        return 1;
    }

    Rocket rocket(input_file_name);
    rocket.flight_simulation();
    
    end = std::chrono::system_clock::now();  // mesurement end time
    double elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(end-start).count();
    std::cout << "Processing time: " << elapsed << "[ms]\n" << std::endl;
    
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rsi, %r14
movl %edi, %ebp
callq 0x5080
movq %rax, %rbx
leaq 0x208fb(%rip), %rsi     # 0x277f0
leaq 0x2c4c4(%rip), %rdx     # 0x333c0
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x722f
leaq 0x219f9(%rip), %rsi     # 0x28909
movq %r15, %rdi
callq 0x56a0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6f3f
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x6f48
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x2c03f(%rip), %rdi     # 0x32fb0
callq 0x5430
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x6f8d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x18(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x6fa8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53b0
movq %r13, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x20843(%rip), %rsi     # 0x27811
leaq 0x2084d(%rip), %rdx     # 0x27822
leaq 0x78(%rsp), %rdi
callq 0x7786
cmpl $0x2, %ebp
je 0x6ffe
cmpl $0x1, %ebp
jne 0x7124
leaq 0x8(%rsp), %rdi
leaq 0x78(%rsp), %rsi
callq 0x5220
jmp 0x702c
movq 0x8(%r14), %r14
movq %r15, %rbp
leaq 0x8(%rsp), %r15
movq 0x8(%r15), %r12
movq %r14, %rdi
callq 0x51a0
movq %r15, %rdi
movq %rbp, %r15
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %rcx
movq %rax, %r8
callq 0x5540
leaq 0x68(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rdi
callq 0x76f6
leaq 0x28(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x7e28
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x7072
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x53b0
leaq 0x28(%rsp), %rdi
callq 0xea40
callq 0x5080
movq %rax, %r14
movq 0x2bf25(%rip), %rdi     # 0x32fb0
leaq 0x207a0(%rip), %rsi     # 0x27832
movl $0x11, %edx
callq 0x5430
subq %rbx, %r14
movabsq $0x431bde82d7b634db, %rcx # imm = 0x431BDE82D7B634DB
movq %r14, %rax
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x12, %rdx
addq %rax, %rdx
cvtsi2sd %rdx, %xmm0
movq 0x2bee7(%rip), %rdi     # 0x32fb0
callq 0x5570
movq %rax, %rbx
leaq 0x2076c(%rip), %rsi     # 0x27844
movl $0x5, %edx
movq %rax, %rdi
callq 0x5430
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5370
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5050
movq %rax, %rdi
callq 0x5270
leaq 0x40(%rsp), %rdi
callq 0x7314
leaq 0x28(%rsp), %rdi
callq 0x7314
xorl %ebx, %ebx
jmp 0x7141
movl $0x1, %ebx
movq 0x2be80(%rip), %rdi     # 0x32fb0
leaq 0x206ec(%rip), %rsi     # 0x27823
movl $0xe, %edx
callq 0x5430
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x715b
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7172
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53b0
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x71df
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r14, %rdi
je 0x71f6
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x71f6
jmp 0x71a6
movq %rax, %rbx
jmp 0x71f6
movq %rax, %rbx
jmp 0x7210
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x71cf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x53b0
jmp 0x71cf
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x721a
jmp 0x7227
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x7314
leaq 0x28(%rsp), %rdi
callq 0x7314
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x7210
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x53b0
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7227
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x53b0
movq %rbx, %rdi
callq 0x5650