// File: /workspace/github_cpp_makefile_star2_O3/sus304[P]ForRocket/src/solver/trajectory_solver.cpp
// Function: forrocket::TrajectorySolver::TrajectorySolver(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
forrocket::TrajectorySolver::TrajectorySolver(std::string solver_config_json_file) {
    JsonControl jc_solver_config(solver_config_json_file);
    
    model_id = jc_solver_config.getString("Model ID");
    number_stage = jc_solver_config.getInt("Number of Stage");

    // Making Stage instance
    RocketStageFactory stage_factory;
    for (int i=1; i <= number_stage; ++i) {
        auto jc_stage = JsonControl(jc_solver_config.getString("Stage"+std::to_string(i)+" Config File List"));
        stage_vector.push_back(stage_factory.Create(i, 
                                                jc_stage.getString("Rocket Configuration File Path"),
                                                jc_stage.getString("Engine Configuration File Path"),
                                                jc_stage.getString("Sequence of Event File Path")));
    }

    for (auto& stage : stage_vector) {
        stage.fdr = FlightDataRecorder(&stage.rocket);
    }

    // Prepare Launch - Master Clock
    DateTime launch_date(jc_solver_config.getString("Launch DateTime"));
    master_clock = SequenceClock(launch_date, 0.0);

    // Prepare Launch - Position Velocity Attitude
    Rocket& rocket_first_stage = stage_vector[0].rocket;
    auto jc_launch = jc_solver_config.getSubItem("Launch Condition");

    Eigen::Vector3d pos_init_LLH;
    pos_init_LLH << jc_launch.getDouble("Latitude [deg]"), jc_launch.getDouble("Longitude [deg]"), jc_launch.getDouble("Height for WGS84 [deg]");

    rocket_first_stage.position.Initialize(master_clock.UTC_date_init, pos_init_LLH);

    Eigen::Vector3d vel_init_NED;
    vel_init_NED << jc_launch.getDouble("North Velocity [m/s]"), jc_launch.getDouble("East Velocity [m/s]"), jc_launch.getDouble("Down Velocity [m/s]");
    rocket_first_stage.velocity.Initialize(master_clock.UTC_date_init, vel_init_NED, pos_init_LLH, rocket_first_stage.position.ECI);

    Eigen::Vector3d euler;
    euler << jc_launch.getDouble("Azimuth [deg]"), jc_launch.getDouble("Elevation [deg]"), 0.0;
    euler = euler / 180.0 * 3.14159265;
    rocket_first_stage.attitude.Initialize(euler);

    rocket_first_stage.angular_velocity << 0.0, 0.0, 0.0;

    // Prepare Launch - Wind
    auto jc_wind = jc_solver_config.getSubItem("Wind Condition");
    if (jc_wind.getBool("Enable Wind")) {
        wind = EnvironmentWind(jc_wind.getString("Wind File Path"));
    } else {
        wind = EnvironmentWind(false);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1688, %rsp           # imm = 0x1688
movq %rsi, %rbx
movq %rdi, %r13
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
leaq 0x28(%rdi), %rcx
movq %rcx, 0x78(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x28(%rdi)
movq %rax, 0x38(%rdi)
leaq 0x40(%rdi), %r15
movq %r15, %rdi
callq 0x176ca
leaq 0x88(%r13), %rdi
movq %rdi, 0x50(%rsp)
callq 0x3333a
leaq 0x390(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x380(%rsp), %rdi
callq 0x7fae
leaq 0x30(%rsp), %rdi
leaq 0x380(%rsp), %rsi
movq %r13, (%rsp)
callq 0x80a4
movq 0x380(%rsp), %rdi
cmpq %r14, %rdi
je 0x31821
movq 0x390(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x370(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xbe4c(%rip), %rsi      # 0x3d680
leaq 0xbe4d(%rip), %rdx      # 0x3d688
leaq 0x360(%rsp), %rdi
callq 0x9382
leaq 0x470(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x360(%rsp), %rdx
callq 0x8202
leaq 0x470(%rsp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x53f0
movq (%rbx), %rdi
leaq 0x480(%rsp), %rax
cmpq %rax, %rdi
je 0x31895
movq 0x480(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x360(%rsp), %rdi
cmpq %r14, %rdi
je 0x318b2
movq 0x370(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x350(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xbdc4(%rip), %rsi      # 0x3d689
leaq 0xbdcc(%rip), %rdx      # 0x3d698
leaq 0x340(%rsp), %rdi
callq 0x9382
leaq 0x30(%rsp), %rdi
leaq 0x340(%rsp), %rsi
callq 0x8222
movq %r15, 0x28(%rsp)
movq %r12, 0x8(%rsp)
movl %eax, 0x20(%r13)
movq 0x340(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3191a
movq 0x350(%rsp), %rsi
incq %rsi
callq 0x5350
movl 0x20(%r13), %eax
testl %eax, %eax
jle 0x31d80
leaq 0x68(%rsp), %r15
movl $0x1, %r12d
leaq 0x80(%rsp), %r14
leaq 0x320(%rsp), %rbx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
movl $0x1, %r13d
cmpl $0xa, %r12d
jb 0x31990
movl $0x4, %r13d
movl %r12d, %eax
cmpl $0x63, %eax
jbe 0x31987
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x3198d
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x31990
movl %eax, %ecx
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r13d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x31957
addl $-0x3, %r13d
jmp 0x31990
addl $-0x2, %r13d
jmp 0x31990
decl %r13d
movl %r13d, %esi
leaq 0x90(%rsp), %rax
movq %rax, 0x80(%rsp)
movq %r14, %rdi
movl $0x2d, %edx
callq 0x53c0
movq 0x80(%rsp), %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x9272
movl $0x5, %r8d
movq %r14, %rbp
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
leaq 0xbcb9(%rip), %rcx      # 0x3d693
callq 0x53a0
leaq 0x480(%rsp), %rsi
movq %rsi, 0x470(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x31a13
movq %rdx, 0x470(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x480(%rsp)
jmp 0x31a1b
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x478(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x470(%rsp), %rdi
leaq 0xbc54(%rip), %rsi      # 0x3d699
callq 0x5650
leaq 0x68(%rsp), %rsi
movq %rsi, 0x58(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq %rbx, %r13
je 0x31a75
movq %rdx, 0x58(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x68(%rsp)
jmp 0x31a7d
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x60(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r13, %rdi
leaq 0x30(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x8202
leaq 0xa0(%rsp), %rdi
movq %r13, %rsi
callq 0x80a4
movq 0x320(%rsp), %rdi
leaq 0x330(%rsp), %rax
cmpq %rax, %rdi
je 0x31adc
movq 0x330(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
leaq 0xa0(%rsp), %r13
je 0x31b00
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x470(%rsp), %rdi
leaq 0x480(%rsp), %rax
cmpq %rax, %rdi
je 0x31b25
movq 0x480(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x31b4a
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
leaq 0x118(%rsp), %r15
movq %r15, %rdi
leaq 0xbb3f(%rip), %rsi      # 0x3d6ab
leaq 0xbb56(%rip), %rdx      # 0x3d6c9
callq 0x9382
leaq 0x160(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x8202
leaq 0x108(%rsp), %rax
movq %rax, 0xf8(%rsp)
leaq 0xf8(%rsp), %r15
movq %r15, %rdi
leaq 0xbb1d(%rip), %rsi      # 0x3d6ca
leaq 0xbb34(%rip), %rdx      # 0x3d6e8
callq 0x9382
leaq 0x140(%rsp), %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x8202
leaq 0xe8(%rsp), %rax
movq %rax, 0xd8(%rsp)
leaq 0xd8(%rsp), %r15
movq %r15, %rdi
leaq 0xbafb(%rip), %rsi      # 0x3d6e9
leaq 0xbb0f(%rip), %rdx      # 0x3d704
callq 0x9382
leaq 0x300(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x8202
leaq 0x470(%rsp), %r15
movq %r15, %rdi
leaq 0x17(%rsp), %rsi
movl %r12d, %edx
leaq 0x160(%rsp), %rcx
leaq 0x140(%rsp), %r8
movq %r14, %r9
callq 0x2cbb4
movq 0x78(%rsp), %rdi
movq %r15, %rsi
callq 0x3392e
leaq 0x12f0(%rsp), %rdi
callq 0x2e016
leaq 0x480(%rsp), %rdi
callq 0x2c480
movq 0x300(%rsp), %rdi
leaq 0x310(%rsp), %rax
cmpq %rax, %rdi
je 0x31c87
movq 0x310(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x31cac
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x31cd1
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x31cf6
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x31d1b
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x31d40
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x5350
movq %r13, %rdi
callq 0x86a0
movzbl 0xa0(%rsp), %esi
leaq 0xa8(%rsp), %rdi
callq 0x8742
leal 0x1(%r12), %eax
movq (%rsp), %r13
cmpl 0x20(%r13), %r12d
movl %eax, %r12d
movq %rbp, %r14
movl $0xd1b71759, %edx       # imm = 0xD1B71759
leaq 0x68(%rsp), %r15
jl 0x31942
movq 0x28(%r13), %r14
movq 0x30(%r13), %r15
cmpq %r15, %r14
je 0x31dc4
leaq 0x470(%rsp), %rbx
leaq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0x1b7c4
leaq 0xe80(%r14), %rdi
movq %rbx, %rsi
callq 0x3336e
movq %rbx, %rdi
callq 0x2e016
addq $0x1210, %r14           # imm = 0x1210
cmpq %r15, %r14
jne 0x31d95
leaq 0x2f0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb92e(%rip), %rsi      # 0x3d705
leaq 0xb936(%rip), %rdx      # 0x3d714
leaq 0x2e0(%rsp), %rdi
callq 0x9382
leaq 0x3c0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x2e0(%rsp), %rdx
callq 0x8202
movq 0x28(%rsp), %r14
leaq 0x80(%rsp), %rdi
leaq 0x3c0(%rsp), %rsi
callq 0x16eb2
leaq 0x3d0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31e40
movq 0x3d0(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x2e0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x31e5d
movq 0x2f0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x454(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x1738e
leaq 0x470(%rsp), %rdi
leaq 0x454(%rsp), %rsi
xorpd %xmm0, %xmm0
callq 0x1774c
leaq 0x488(%rsp), %rsi
movq -0x8(%rsi), %rax
movq %rax, 0x10(%r14)
movupd -0x18(%rsi), %xmm0
movupd %xmm0, (%r14)
leaq 0x58(%r13), %rdi
movq %rdi, 0x28(%rsp)
callq 0x173a4
movupd 0x4a8(%rsp), %xmm0
movupd %xmm0, 0x78(%r13)
movq 0x28(%r13), %r13
leaq 0x2d0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb83c(%rip), %rsi      # 0x3d715
leaq 0xb845(%rip), %rdx      # 0x3d725
leaq 0x2c0(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x2c0(%rsp), %rdx
callq 0x828a
movq 0x2c0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x31f21
movq 0x2d0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x2b0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb7f2(%rip), %rsi      # 0x3d726
leaq 0xb7f9(%rip), %rdx      # 0x3d734
leaq 0x2a0(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x2a0(%rsp), %rsi
callq 0x8244
leaq 0xa0(%rsp), %rax
movq %rax, 0x470(%rsp)
movq $0x0, 0x478(%rsp)
movl $0x1, %ecx
movq %rcx, 0x480(%rsp)
movq %rcx, 0x488(%rsp)
movsd %xmm0, (%rax)
leaq 0x290(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xb792(%rip), %rsi      # 0x3d735
leaq 0xb79a(%rip), %rdx      # 0x3d744
leaq 0x280(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x280(%rsp), %rsi
callq 0x8244
leaq 0x400(%rsp), %r15
movsd %xmm0, (%r15)
leaq 0x470(%rsp), %rdi
movq %r15, %rsi
callq 0x16d64
movq %rax, %r14
leaq 0x270(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xb749(%rip), %rsi      # 0x3d745
leaq 0xb758(%rip), %rdx      # 0x3d75b
leaq 0x260(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x260(%rsp), %rsi
callq 0x8244
leaq 0x3e0(%rsp), %rsi
movsd %xmm0, (%rsi)
movq %r14, %rdi
callq 0x16d64
movq 0x260(%rsp), %rdi
cmpq %rbp, %rdi
je 0x32053
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x280(%rsp), %rdi
cmpq %r12, %rdi
je 0x32070
movq 0x290(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x488(%rsp), %rax
addq 0x478(%rsp), %rax
cmpq $0x3, %rax
jne 0x32ac2
cmpq $0x1, 0x480(%rsp)
jne 0x32ac2
movq 0x2a0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x320b6
movq 0x2b0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x438(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x1738e
leaq 0x2b0(%r13), %r14
leaq 0x438(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
movq %r14, %rdi
callq 0x19df6
leaq 0x250(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0xb662(%rip), %rsi      # 0x3d75c
leaq 0xb66f(%rip), %rdx      # 0x3d770
leaq 0x240(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x240(%rsp), %rsi
callq 0x8244
movq %r15, 0x470(%rsp)
movq $0x0, 0x478(%rsp)
movl $0x1, %eax
movq %rax, 0x480(%rsp)
movq %rax, 0x488(%rsp)
movsd %xmm0, 0x400(%rsp)
leaq 0xc8(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb60c(%rip), %rsi      # 0x3d771
leaq 0xb618(%rip), %rdx      # 0x3d784
leaq 0xb8(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x8244
leaq 0x3e0(%rsp), %r15
movsd %xmm0, (%r15)
leaq 0x470(%rsp), %rdi
movq %r15, %rsi
callq 0x16d64
movq %rax, %r12
leaq 0x230(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb5c7(%rip), %rsi      # 0x3d785
leaq 0xb5d3(%rip), %rdx      # 0x3d798
leaq 0x220(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x220(%rsp), %rsi
callq 0x8244
leaq 0x40(%rsp), %rsi
movsd %xmm0, (%rsi)
movq %r12, %rdi
callq 0x16d64
movq 0x220(%rsp), %rdi
cmpq %rbx, %rdi
je 0x32212
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x32237
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x488(%rsp), %rax
addq 0x478(%rsp), %rax
cmpq $0x3, %rax
jne 0x32ac2
cmpq $0x1, 0x480(%rsp)
jne 0x32ac2
movq 0x240(%rsp), %rdi
cmpq %rbp, %rdi
je 0x3227d
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x41c(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x1738e
leaq 0x2f8(%r13), %rdi
leaq 0x41c(%rsp), %rsi
leaq 0x400(%rsp), %rdx
leaq 0xa0(%rsp), %rcx
movq %r14, %r8
callq 0x1a2f2
leaq 0x210(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb4d0(%rip), %rsi      # 0x3d799
leaq 0xb4d6(%rip), %rdx      # 0x3d7a6
leaq 0x200(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x8244
movq %r15, 0x470(%rsp)
movq $0x0, 0x478(%rsp)
movl $0x1, %eax
movq %rax, 0x480(%rsp)
movq %rax, 0x488(%rsp)
movsd %xmm0, 0x3e0(%rsp)
leaq 0x1f0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xb473(%rip), %rsi      # 0x3d7a7
leaq 0xb47b(%rip), %rdx      # 0x3d7b6
leaq 0x1e0(%rsp), %rdi
callq 0x9382
leaq 0x18(%rsp), %rdi
leaq 0x1e0(%rsp), %rsi
callq 0x8244
leaq 0x40(%rsp), %rsi
movsd %xmm0, (%rsi)
leaq 0x470(%rsp), %rdi
callq 0x16d64
leaq 0x138(%rsp), %rsi
movq $0x0, (%rsi)
movq %rax, %rdi
callq 0x16d64
movq 0x1e0(%rsp), %rdi
cmpq %r14, %rdi
je 0x323a4
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x488(%rsp), %rax
addq 0x478(%rsp), %rax
cmpq $0x3, %rax
jne 0x32ac2
cmpq $0x1, 0x480(%rsp)
jne 0x32ac2
movq 0x200(%rsp), %rdi
cmpq %rbx, %rdi
je 0x323ea
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x3e0(%rsp), %rsi
movapd (%rsi), %xmm0
divpd 0xb262(%rip), %xmm0     # 0x3d660
mulpd 0xb26a(%rip), %xmm0     # 0x3d670
movapd %xmm0, (%rsi)
movsd 0x10(%rsi), %xmm0
divsd 0x4bf9(%rip), %xmm0     # 0x37010
mulsd 0x4be9(%rip), %xmm0     # 0x37008
movsd %xmm0, 0x10(%rsi)
leaq 0x3e0(%r13), %rdi
callq 0x18ff8
leaq 0x440(%r13), %rax
leaq 0x470(%rsp), %rdi
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movl $0x1, %ecx
movq %rcx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %rax, 0x440(%r13)
leaq 0x40(%rsp), %rsi
movq %rax, (%rsi)
callq 0x16d64
leaq 0x138(%rsp), %rsi
movq $0x0, (%rsi)
movq %rax, %rdi
movq (%rsp), %r15
callq 0x16d64
movq 0x488(%rsp), %rax
addq 0x478(%rsp), %rax
cmpq $0x3, %rax
jne 0x32ac2
cmpq $0x1, 0x480(%rsp)
jne 0x32ac2
leaq 0x1d0(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb2f7(%rip), %rsi      # 0x3d7b7
leaq 0xb2fe(%rip), %rdx      # 0x3d7c5
leaq 0x1c0(%rsp), %rdi
callq 0x9382
leaq 0x40(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x1c0(%rsp), %rdx
callq 0x828a
movq 0x1c0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x32508
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x1b0(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0xb2ab(%rip), %rsi      # 0x3d7c6
leaq 0xb2af(%rip), %rdx      # 0x3d7d1
leaq 0x1a0(%rsp), %rdi
callq 0x9382
leaq 0x40(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
callq 0x8268
movl %eax, %ebx
movq 0x1a0(%rsp), %rdi
cmpq %r14, %rdi
je 0x32560
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x5350
testb %bl, %bl
je 0x32631
leaq 0x190(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0xb257(%rip), %rsi      # 0x3d7d2
leaq 0xb25e(%rip), %rdx      # 0x3d7e0
leaq 0x180(%rsp), %rdi
callq 0x9382
leaq 0x3a0(%rsp), %rdi
leaq 0x40(%rsp), %rsi
leaq 0x180(%rsp), %rdx
callq 0x8202
leaq 0x470(%rsp), %rdi
leaq 0x3a0(%rsp), %rsi
callq 0x181f8
leaq 0x470(%rsp), %rsi
movq 0x50(%rsp), %rdi
callq 0x196d2
leaq 0x128(%r15), %rdi
leaq 0x510(%rsp), %rsi
callq 0x196d2
leaq 0x470(%rsp), %rdi
callq 0x33566
leaq 0x3b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x32612
movq 0x3b0(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x180(%rsp), %rdi
cmpq %rbx, %rdi
je 0x32673
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x32673
leaq 0x470(%rsp), %rdi
xorl %esi, %esi
callq 0x18098
leaq 0x470(%rsp), %rsi
movq 0x50(%rsp), %rdi
callq 0x196d2
leaq 0x128(%r15), %rdi
leaq 0x510(%rsp), %rsi
callq 0x196d2
leaq 0x470(%rsp), %rdi
callq 0x33566
leaq 0x40(%rsp), %rdi
callq 0x86a0
leaq 0x48(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
leaq 0x18(%rsp), %rdi
callq 0x86a0
leaq 0x20(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
leaq 0x30(%rsp), %rdi
callq 0x86a0
leaq 0x38(%rsp), %rdi
movzbl -0x8(%rdi), %esi
callq 0x8742
addq $0x1688, %rsp           # imm = 0x1688
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
jmp 0x326eb
movq %rax, %r15
jmp 0x3270c
jmp 0x32757
jmp 0x32757
movq %rax, %r15
leaq 0x470(%rsp), %rdi
callq 0x33566
leaq 0x3b0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3270c
movq 0x3b0(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x180(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3275a
movq 0x190(%rsp), %rsi
jmp 0x3274d
movq %rax, %r15
leaq 0x470(%rsp), %rdi
callq 0x33566
jmp 0x3275a
movq %rax, %r15
movq 0x1a0(%rsp), %rdi
cmpq %r14, %rdi
je 0x3275a
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x3275a
movq %rax, %r15
leaq 0x40(%rsp), %rdi
callq 0x27080
jmp 0x32aa7
movq %rax, %r15
movq 0x1c0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x32aa7
movq 0x1d0(%rsp), %rsi
jmp 0x32a9f
jmp 0x32a1f
jmp 0x32791
movq %rax, %r15
movq 0x488(%rsp), %rax
addq 0x478(%rsp), %rax
cmpq $0x3, %rax
jne 0x32ac2
cmpq $0x1, 0x480(%rsp)
je 0x32aa7
jmp 0x32ac2
jmp 0x32a1f
jmp 0x32922
movq %rax, %r15
jmp 0x32942
movq %rax, %r15
jmp 0x3296b
jmp 0x32a1f
jmp 0x329b0
movq %rax, %r15
jmp 0x329d8
movq %rax, %r15
jmp 0x32a01
jmp 0x32a1f
jmp 0x32a49
movq %rax, %r15
jmp 0x32a69
movq %rax, %r15
jmp 0x32a8a
jmp 0x32a1f
movq %rax, %r15
movq 0x2c0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x32ab1
movq 0x2d0(%rsp), %rsi
jmp 0x3287a
jmp 0x32ae9
movq %rax, %r15
leaq 0x3d0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x32861
movq 0x3d0(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x32861
movq %rax, %r15
movq 0x2e0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x32ab1
movq 0x2f0(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x32ab1
jmp 0x32ae9
movq %rax, %r14
movq 0x340(%rsp), %rdi
cmpq %rbx, %rdi
je 0x328ac
movq 0x350(%rsp), %rsi
incq %rsi
callq 0x5350
movq (%rsp), %r13
movq %r14, %rbx
jmp 0x32ce5
movq %rax, %rbx
jmp 0x32ce5
movq %rax, %rbx
movq 0x360(%rsp), %rdi
cmpq %r14, %rdi
je 0x32b93
movq 0x370(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x32b93
movq %rax, %rbx
jmp 0x32b93
movq %rax, %rbx
movq 0x380(%rsp), %rdi
cmpq %r14, %rdi
je 0x32911
movq 0x390(%rsp), %rsi
incq %rsi
callq 0x5350
movq (%rsp), %r13
jmp 0x32cef
movq %rax, %rbx
jmp 0x32cef
movq %rax, %r15
movq 0x1e0(%rsp), %rdi
cmpq %r14, %rdi
je 0x32942
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x488(%rsp), %rax
addq 0x478(%rsp), %rax
cmpq $0x3, %rax
jne 0x32ac2
cmpq $0x1, 0x480(%rsp)
jne 0x32ac2
movq 0x200(%rsp), %rdi
cmpq %rbx, %rdi
je 0x32aa7
movq 0x210(%rsp), %rsi
jmp 0x32a9f
jmp 0x32a1f
movq %rax, %r15
movq 0x220(%rsp), %rdi
cmpq %rbx, %rdi
je 0x329b3
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x329b3
movq %rax, %r15
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x329d8
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x488(%rsp), %rax
addq 0x478(%rsp), %rax
cmpq $0x3, %rax
jne 0x32ac2
cmpq $0x1, 0x480(%rsp)
jne 0x32ac2
movq 0x240(%rsp), %rdi
cmpq %rbp, %rdi
je 0x32aa7
movq 0x250(%rsp), %rsi
jmp 0x32a9f
movq %rax, %r15
jmp 0x32aa7
movq %rax, %r15
movq 0x260(%rsp), %rdi
cmpq %rbp, %rdi
je 0x32a4c
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x5350
jmp 0x32a4c
movq %rax, %r15
movq 0x280(%rsp), %rdi
cmpq %r12, %rdi
je 0x32a69
movq 0x290(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x488(%rsp), %rax
addq 0x478(%rsp), %rax
cmpq $0x3, %rax
jne 0x32ac2
cmpq $0x1, 0x480(%rsp)
jne 0x32ac2
movq 0x2a0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x32aa7
movq 0x2b0(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0x18(%rsp), %rdi
callq 0x27080
movq 0x8(%rsp), %r12
movq (%rsp), %r13
movq %r15, %rbx
jmp 0x32ce5
leaq 0x7c7f(%rip), %rdi      # 0x3a748
leaq 0x7d16(%rip), %rsi      # 0x3a7e6
leaq 0x7f01(%rip), %rcx      # 0x3a9d8
movl $0x78, %edx
callq 0x5230
movq %rax, %rbx
jmp 0x32cf9
movq %rax, %r15
jmp 0x32ab1
movq %rax, %rbx
jmp 0x32b8e
movq %rax, %rbx
jmp 0x32b69
movq %rax, %rbx
jmp 0x32b44
movq %rax, %rbx
jmp 0x32b2d
movq %rax, %rbx
movq 0x320(%rsp), %rdi
leaq 0x330(%rsp), %rax
cmpq %rax, %rdi
je 0x32b2d
movq 0x330(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x58(%rsp), %rdi
cmpq %r15, %rdi
je 0x32b44
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x470(%rsp), %rdi
leaq 0x480(%rsp), %rax
cmpq %rax, %rdi
je 0x32b69
movq 0x480(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x32b8e
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x8(%rsp), %r12
movq (%rsp), %r13
jmp 0x32ce5
movq %rax, %rbx
movq 0x8(%rsp), %r12
movq (%rsp), %r13
jmp 0x32cd8
movq %rax, %rbx
jmp 0x32caa
movq %rax, %rbx
jmp 0x32c85
movq %rax, %rbx
jmp 0x32c60
movq %rax, %rbx
jmp 0x32c3b
movq %rax, %rbx
jmp 0x32c16
movq %rax, %rbx
jmp 0x32bf1
movq %rax, %rbx
leaq 0x12f0(%rsp), %rdi
callq 0x2e016
leaq 0x480(%rsp), %rdi
callq 0x2c480
movq 0x300(%rsp), %rdi
leaq 0x310(%rsp), %rax
cmpq %rax, %rdi
je 0x32c16
movq 0x310(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x32c3b
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x32c60
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x32c85
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x32caa
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x5350
movq 0x8(%rsp), %r12
movq (%rsp), %r13
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x32cd8
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x5350
leaq 0xa0(%rsp), %rdi
callq 0x27080
leaq 0x30(%rsp), %rdi
callq 0x27080
movq 0x50(%rsp), %rdi
callq 0x33566
movq 0x78(%rsp), %rdi
callq 0x33646
movq (%r13), %rdi
cmpq %r12, %rdi
je 0x32d18
movq (%r12), %rsi
incq %rsi
callq 0x5350
movq %rbx, %rdi
callq 0x55e0
movq %rax, %rbx
movq 0x8(%rsp), %r12
jmp 0x32ce5