// File: /workspace/github_cpp_makefile_star2_O1/istellartech[P]OpenTsiolkovsky/src/rocket.cpp
// Function: CsvObserver::operator()(std::array<double, 14ul> const&, double)
void CsvObserver::operator()(const state& x, double t){
    posECI_ << x[1], x[2], x[3];
    velECI_ << x[4], x[5], x[6];

    dcmECI2ECEF_ = dcmECI2ECEF(t);
    posECEF_ = posECEF(dcmECI2ECEF_, posECI_);
    posLLH_ = posLLH(posECEF_);

    /*
    //    It does not calculate after the rocket falls to the ground
    if ( posLLH_[2] < 0) {
        if ((int)t % 10 == 0 && (int)(t*10) % 10 == 0 ){ // progress
            progress(t);
        }
        return;
    }
    */

    //    update rocket variables
    update_from_time_and_altitude(t, posLLH_[2]);

    //    transform coordinate
    dcmECEF2NED_ = dcmECEF2NED(posLLH_);
    dcmNED2ECEF_ = dcmECEF2NED_.transpose();
    dcmECI2NED_ = dcmECI2NED(dcmECEF2NED_, dcmECI2ECEF_);
    dcmNED2ECI_ = dcmECI2NED_.transpose();
    dcmECEF2NED_init_ = dcmECEF2NED(launch_pos_LLH);
    dcmECI2NED_init_ = dcmECI2NED(dcmECEF2NED_init_, dcmECI2ECEF(0.0));
    vel_ECEF_NEDframe_ = vel_ECEF_NEDframe(dcmECI2NED_, velECI_, posECI_);
    vel_wind_NEDframe_ = vel_wind_NEDframe(wind_speed, wind_direction);
    //    air = air.altitude(posLLH_[2]);
    if (air_density_file_exist){
        air = air.altitude_with_variation_table(posLLH_[2], air_density_mat);
    } else{
        air = air.altitude_with_variation(posLLH_[2], variation_ratio_of_air_density);
    }
    //    gravity term : gravity acceleration in the north direction is not considered
    gravityECI_ = gravityECI(posECI_);

    if (is_powered){  // ---- powered flight ----
        switch (power_flight_mode) {
            case _3DoF:
                power_flight_3dof(x,t);
                break;
            case _3DoF_with_delay:  // Unimplemented
                power_flight_3dof_with_delay(x, t);
                break;
            case _6DoF:  // Unimplemented
                power_flight_6dof(x, t);
                break;
            case _6DoF_aerodynamic_stable:  // Unimplemented
                power_flight_6dof_aerodynamic_stable(x, t);
                break;
            default:
                m_dot = 0;
                accECI_ << 0.0, 0.0, 0.0;
                break;
        }
    } else {  // ---- free flight ----
        switch (free_flight_mode) {
            case aerodynamic_stable:
                free_flight_aerodynamic_stable(x, t);
                break;
            case _3DoF_defined:
                free_flight_3dof_defined(x, t);
                break;
            case ballistic_flight:
                free_flight_ballistic(x, t);
                break;
            default:
                m_dot = 0;
                accECI_ << 0.0, 0.0, 0.0;
                break;
        }
    }

    // === following code is different from RocketStage::operator() ===
    accBODY_ = dcmECI2BODY_ * (accECI_ -  gravityECI_);
    downrange = distance_surface(launch_pos_LLH, posLLH_);
    Vector3d posECEF_ = dcmECI2ECEF_ * posECI_;
    Vector3d vel_ECEF_ECEFframe_ = dcmNED2ECEF_ * vel_ECEF_NEDframe_;
    posLLH_IIP_ = posLLH_IIP(posECEF_, vel_ECEF_ECEFframe_);
    kinematic_energy = 0.5 * x[0] * vel_ECEF_NEDframe_.norm() * vel_ECEF_NEDframe_.norm();
    gravity_vector = dcmECI2NED_ * gravityECI_;

    //   ==== Calculte loss velocisy ====
    if (thrust > 0.1 || is_separated == false){
        double vel_ECEF_NEDframe_XY = sqrt(vel_ECEF_NEDframe_[0] * vel_ECEF_NEDframe_[0] +
                                           vel_ECEF_NEDframe_[1] * vel_ECEF_NEDframe_[1]);
        double path_angle_rad = atan2(-vel_ECEF_NEDframe_[2], vel_ECEF_NEDframe_XY);
        loss_gravity = gravity_vector[2] * sin(path_angle_rad);
    } else {
        loss_gravity = 0;
    }
    if (thrust > 0.1){
        loss_thrust = air.pressure * nozzle_exhaust_area / x[0];
    } else {
        loss_thrust = 0;
    }
    loss_aerodynamics = force_axial / x[0];
    loss_total = loss_gravity + loss_aerodynamics + loss_thrust;

    // ==== OUTPUT to CSV ====
    // if rocket was already impacted on the earth, NOT OUTPUT.
    if ( posLLH_[2] > 0 && !flag_duplicate) {
        fout << t << "," << x[0] << "," << thrust << ",";
        fout.precision(8);
        fout << posLLH_[0] << "," << posLLH_[1] << "," << posLLH_[2] << ","
            << x[1] << "," << x[2] << "," << x[3] << ","
            << x[4] << "," << x[5] << "," << x[6] << ","
            << vel_ECEF_NEDframe_[0] << "," << vel_ECEF_NEDframe_[1] << ","
            << vel_ECEF_NEDframe_[2] << ","
            << accECI_[0] << "," << accECI_[1] << "," << accECI_[2] << ","
            << accBODY_[0] << "," << accBODY_[1] << "," << accBODY_[2] << ","
            << Isp << "," << mach_number << ","
            << rad2deg(azimuth) << "," << rad2deg(elevation) << "," << rad2deg(roll) << ","
            << rad2deg(angle_of_attack_[0]) << "," << rad2deg(angle_of_attack_[1]) << ","
            << rad2deg(angle_of_attack_[2]) << ","
            << dynamic_pressure << ","
            << force_air_vector_BODYframe[0] << "," << force_air_vector_BODYframe[1] << ","
            << force_air_vector_BODYframe[2] << "," << force_thrust_vector[0] << ","
            << force_thrust_vector[1] << "," << force_thrust_vector[2] << ","
            << rad2deg(gimbal_angle_pitch) << "," << rad2deg(gimbal_angle_yaw) << ","
            << wind_speed << "," << wind_direction << ","
            << downrange << "," << posLLH_IIP_[0] << "," << posLLH_IIP_[1] << ","
            << dcmBODY2ECI_(0, 0) << "," << dcmBODY2ECI_(0, 1) << "," << dcmBODY2ECI_(0, 2) << ","
            << dcmBODY2ECI_(1, 0) << "," << dcmBODY2ECI_(1, 1) << "," << dcmBODY2ECI_(1, 2) << ","
            << dcmBODY2ECI_(2, 0) << "," << dcmBODY2ECI_(2, 1) << "," << dcmBODY2ECI_(2, 2) << ","
            << int(velECI_.norm()) << "," << kinematic_energy << ","
            << loss_gravity << "," << loss_aerodynamics << "," << loss_thrust << ","
            << is_powered << "," << is_separated 
            << endl;
    }
    flag_duplicate = false;

    if ((int)t % 10 == 0 && (int)(t*10) % 10 == 0 ){ // progress
       progress(t);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x410, %rsp            # imm = 0x410
movsd %xmm0, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x9c0(%rdi), %rax
leaq 0x38(%rsp), %rdi
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movl $0x1, %eax
movq %rax, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movsd 0x8(%rsi), %xmm0
movsd %xmm0, 0x9c0(%rbx)
addq $0x10, %rsi
callq 0x16f1a
leaq 0x18(%r14), %rsi
movq %rax, %rdi
callq 0x16f1a
movq 0x50(%rsp), %rax
addq 0x40(%rsp), %rax
cmpq $0x3, %rax
jne 0x16c75
cmpq $0x1, 0x48(%rsp)
jne 0x16c75
leaq 0x9d8(%rbx), %rax
leaq 0x38(%rsp), %rdi
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movl $0x1, %eax
movq %rax, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movsd 0x20(%r14), %xmm0
movsd %xmm0, 0x9d8(%rbx)
leaq 0x28(%r14), %rsi
callq 0x16f1a
leaq 0x30(%r14), %rsi
movq %rax, %rdi
callq 0x16f1a
movq 0x50(%rsp), %rax
addq 0x40(%rsp), %rax
cmpq $0x3, %rax
jne 0x16c75
cmpq $0x1, 0x48(%rsp)
jne 0x16c75
leaq 0x38(%rsp), %r15
movq %r15, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x24638
movsd (%r15), %xmm0
movsd 0xa20(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xa20(%rbx)
movsd 0x8(%r15), %xmm1
movsd 0xa28(%rbx), %xmm2
movsd %xmm2, 0x8(%r15)
movsd %xmm1, 0xa28(%rbx)
movsd 0x10(%r15), %xmm2
movsd 0xa30(%rbx), %xmm3
movsd %xmm3, 0x10(%r15)
movsd %xmm2, 0xa30(%rbx)
movsd 0x18(%r15), %xmm3
movsd 0xa38(%rbx), %xmm4
movsd %xmm4, 0x18(%r15)
movsd %xmm3, 0xa38(%rbx)
movsd 0x20(%r15), %xmm4
movsd 0xa40(%rbx), %xmm5
movsd %xmm5, 0x20(%r15)
movsd %xmm4, 0xa40(%rbx)
movsd 0x28(%r15), %xmm5
movsd 0xa48(%rbx), %xmm6
movsd %xmm6, 0x28(%r15)
movsd %xmm5, 0xa48(%rbx)
movsd 0x30(%r15), %xmm6
movsd 0xa50(%rbx), %xmm7
movsd %xmm7, 0x30(%r15)
movsd %xmm6, 0xa50(%rbx)
movsd 0x38(%r15), %xmm7
movsd 0xa58(%rbx), %xmm8
movsd %xmm8, 0x38(%r15)
movsd %xmm7, 0xa58(%rbx)
movsd 0x40(%r15), %xmm8
movsd 0xa60(%rbx), %xmm9
movsd %xmm9, 0x40(%r15)
movsd %xmm8, 0xa60(%rbx)
leaq 0x3c8(%rsp), %rsi
movsd %xmm0, (%rsi)
movsd %xmm1, 0x8(%rsi)
movsd %xmm2, 0x10(%rsi)
movsd %xmm3, 0x18(%rsi)
movsd %xmm4, 0x20(%rsi)
movsd %xmm5, 0x28(%rsi)
movsd %xmm6, 0x30(%rsi)
movsd %xmm7, 0x38(%rsi)
movsd %xmm8, 0x40(%rsi)
movsd 0x9c0(%rbx), %xmm0
leaq 0x248(%rsp), %rdx
movsd %xmm0, (%rdx)
movsd 0x9c8(%rbx), %xmm0
movsd %xmm0, 0x8(%rdx)
movsd 0x9d0(%rbx), %xmm0
movsd %xmm0, 0x10(%rdx)
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x247ac
movsd (%r15), %xmm0
movsd 0xa68(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xa68(%rbx)
movsd 0x8(%r15), %xmm1
movsd 0xa70(%rbx), %xmm2
movsd %xmm2, 0x8(%r15)
movsd %xmm1, 0xa70(%rbx)
movsd 0x10(%r15), %xmm2
movsd 0xa78(%rbx), %xmm3
movsd %xmm3, 0x10(%r15)
movsd %xmm2, 0xa78(%rbx)
leaq 0x230(%rsp), %rsi
movsd %xmm0, (%rsi)
movsd %xmm1, 0x8(%rsi)
movsd %xmm2, 0x10(%rsi)
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x248a8
movsd (%r15), %xmm0
movsd 0xa80(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xa80(%rbx)
movsd 0x8(%r15), %xmm0
movsd 0xa88(%rbx), %xmm1
movsd %xmm1, 0x8(%r15)
movsd %xmm0, 0xa88(%rbx)
movsd 0x10(%r15), %xmm1
movsd 0xa90(%rbx), %xmm0
movsd %xmm0, 0x10(%r15)
movsd %xmm1, 0xa90(%rbx)
movq %rbx, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x11a94
movsd 0xa80(%rbx), %xmm0
leaq 0x218(%rsp), %rsi
movsd %xmm0, (%rsi)
movsd 0xa88(%rbx), %xmm0
movsd %xmm0, 0x8(%rsi)
movsd 0xa90(%rbx), %xmm0
movsd %xmm0, 0x10(%rsi)
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x24a51
movsd (%r15), %xmm0
movsd 0xa98(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xa98(%rbx)
movsd 0x8(%r15), %xmm1
movsd 0xaa0(%rbx), %xmm2
movsd %xmm2, 0x8(%r15)
movsd %xmm1, 0xaa0(%rbx)
movsd 0x10(%r15), %xmm2
movsd 0xaa8(%rbx), %xmm3
movsd %xmm3, 0x10(%r15)
movsd %xmm2, 0xaa8(%rbx)
movsd 0x18(%r15), %xmm3
movsd 0xab0(%rbx), %xmm4
movsd %xmm4, 0x18(%r15)
movsd %xmm3, 0xab0(%rbx)
movsd 0x20(%r15), %xmm4
movsd 0xab8(%rbx), %xmm5
movsd %xmm5, 0x20(%r15)
movsd %xmm4, 0xab8(%rbx)
movsd 0x28(%r15), %xmm5
movsd 0xac0(%rbx), %xmm6
movsd %xmm6, 0x28(%r15)
movsd %xmm5, 0xac0(%rbx)
movsd 0x30(%r15), %xmm6
movsd 0xac8(%rbx), %xmm7
movsd %xmm7, 0x30(%r15)
movsd %xmm6, 0xac8(%rbx)
movsd 0x38(%r15), %xmm7
movsd 0xad0(%rbx), %xmm8
movsd %xmm8, 0x38(%r15)
movsd %xmm7, 0xad0(%rbx)
movsd 0x40(%r15), %xmm8
movsd 0xad8(%rbx), %xmm9
movsd %xmm9, 0x40(%r15)
movsd %xmm8, 0xad8(%rbx)
movsd %xmm0, 0xae0(%rbx)
movsd %xmm3, 0xae8(%rbx)
movsd %xmm6, 0xaf0(%rbx)
movsd %xmm1, 0xaf8(%rbx)
movsd %xmm4, 0xb00(%rbx)
movsd %xmm7, 0xb08(%rbx)
movsd %xmm2, 0xb10(%rbx)
movsd %xmm5, 0xb18(%rbx)
movsd %xmm8, 0xb20(%rbx)
leaq 0x380(%rsp), %rsi
movsd %xmm0, (%rsi)
movsd %xmm1, 0x8(%rsi)
movsd %xmm2, 0x10(%rsi)
movsd %xmm3, 0x18(%rsi)
movsd %xmm4, 0x20(%rsi)
movsd %xmm5, 0x28(%rsi)
movsd %xmm6, 0x30(%rsi)
movsd %xmm7, 0x38(%rsi)
movsd %xmm8, 0x40(%rsi)
movsd 0xa20(%rbx), %xmm0
leaq 0x338(%rsp), %rdx
movsd %xmm0, (%rdx)
movsd 0xa28(%rbx), %xmm0
movsd %xmm0, 0x8(%rdx)
movsd 0xa30(%rbx), %xmm0
movsd %xmm0, 0x10(%rdx)
movsd 0xa38(%rbx), %xmm0
movsd %xmm0, 0x18(%rdx)
movsd 0xa40(%rbx), %xmm0
movsd %xmm0, 0x20(%rdx)
movsd 0xa48(%rbx), %xmm0
movsd %xmm0, 0x28(%rdx)
movsd 0xa50(%rbx), %xmm0
movsd %xmm0, 0x30(%rdx)
movsd 0xa58(%rbx), %xmm0
movsd %xmm0, 0x38(%rdx)
movsd 0xa60(%rbx), %xmm0
movsd %xmm0, 0x40(%rdx)
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x24c98
movsd (%r15), %xmm0
movsd 0xb28(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xb28(%rbx)
movsd 0x8(%r15), %xmm1
movsd 0xb30(%rbx), %xmm2
movsd %xmm2, 0x8(%r15)
movsd %xmm1, 0xb30(%rbx)
movsd 0x10(%r15), %xmm2
movsd 0xb38(%rbx), %xmm3
movsd %xmm3, 0x10(%r15)
movsd %xmm2, 0xb38(%rbx)
movsd 0x18(%r15), %xmm3
movsd 0xb40(%rbx), %xmm4
movsd %xmm4, 0x18(%r15)
movsd %xmm3, 0xb40(%rbx)
movsd 0x20(%r15), %xmm4
movsd 0xb48(%rbx), %xmm5
movsd %xmm5, 0x20(%r15)
movsd %xmm4, 0xb48(%rbx)
movsd 0x28(%r15), %xmm5
movsd 0xb50(%rbx), %xmm6
movsd %xmm6, 0x28(%r15)
movsd %xmm5, 0xb50(%rbx)
movsd 0x30(%r15), %xmm6
movsd 0xb58(%rbx), %xmm7
movsd %xmm7, 0x30(%r15)
movsd %xmm6, 0xb58(%rbx)
movsd 0x38(%r15), %xmm7
movsd 0xb60(%rbx), %xmm8
movsd %xmm8, 0x38(%r15)
movsd %xmm7, 0xb60(%rbx)
movsd 0x40(%r15), %xmm8
movsd 0xb68(%rbx), %xmm9
movsd %xmm9, 0x40(%r15)
movsd %xmm8, 0xb68(%rbx)
movsd %xmm0, 0xb70(%rbx)
movsd %xmm3, 0xb78(%rbx)
movsd %xmm6, 0xb80(%rbx)
movsd %xmm1, 0xb88(%rbx)
movsd %xmm4, 0xb90(%rbx)
movsd %xmm7, 0xb98(%rbx)
movsd %xmm2, 0xba0(%rbx)
movsd %xmm5, 0xba8(%rbx)
movsd %xmm8, 0xbb0(%rbx)
movsd 0x340(%rbx), %xmm0
leaq 0x200(%rsp), %rsi
movsd %xmm0, (%rsi)
movsd 0x348(%rbx), %xmm0
movsd %xmm0, 0x8(%rsi)
movsd 0x350(%rbx), %xmm0
movsd %xmm0, 0x10(%rsi)
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x24a51
movsd (%r15), %xmm0
movsd 0xd68(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xd68(%rbx)
movsd 0x8(%r15), %xmm1
movsd 0xd70(%rbx), %xmm2
movsd %xmm2, 0x8(%r15)
movsd %xmm1, 0xd70(%rbx)
movsd 0x10(%r15), %xmm2
movsd 0xd78(%rbx), %xmm3
movsd %xmm3, 0x10(%r15)
movsd %xmm2, 0xd78(%rbx)
movsd 0x18(%r15), %xmm3
movsd 0xd80(%rbx), %xmm4
movsd %xmm4, 0x18(%r15)
movsd %xmm3, 0xd80(%rbx)
movsd 0x20(%r15), %xmm4
movsd 0xd88(%rbx), %xmm5
movsd %xmm5, 0x20(%r15)
movsd %xmm4, 0xd88(%rbx)
movsd 0x28(%r15), %xmm5
movsd 0xd90(%rbx), %xmm6
movsd %xmm6, 0x28(%r15)
movsd %xmm5, 0xd90(%rbx)
movsd 0x30(%r15), %xmm6
movsd 0xd98(%rbx), %xmm7
movsd %xmm7, 0x30(%r15)
movsd %xmm6, 0xd98(%rbx)
movsd 0x38(%r15), %xmm7
movsd 0xda0(%rbx), %xmm8
movsd %xmm8, 0x38(%r15)
movsd %xmm7, 0xda0(%rbx)
movsd 0x40(%r15), %xmm8
movsd 0xda8(%rbx), %xmm9
movsd %xmm9, 0x40(%r15)
movsd %xmm8, 0xda8(%rbx)
leaq 0x2f0(%rsp), %r12
movsd %xmm0, (%r12)
movsd %xmm1, 0x8(%r12)
movsd %xmm2, 0x10(%r12)
movsd %xmm3, 0x18(%r12)
movsd %xmm4, 0x20(%r12)
movsd %xmm5, 0x28(%r12)
movsd %xmm6, 0x30(%r12)
movsd %xmm7, 0x38(%r12)
movsd %xmm8, 0x40(%r12)
leaq 0x2a8(%rsp), %r13
xorps %xmm0, %xmm0
movq %r13, %rdi
callq 0x24638
leaq 0x38(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x24c98
movsd (%r15), %xmm0
movsd 0xdb0(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xdb0(%rbx)
movsd 0x8(%r15), %xmm0
movsd 0xdb8(%rbx), %xmm1
movsd %xmm1, 0x8(%r15)
movsd %xmm0, 0xdb8(%rbx)
movsd 0x10(%r15), %xmm0
movsd 0xdc0(%rbx), %xmm1
movsd %xmm1, 0x10(%r15)
movsd %xmm0, 0xdc0(%rbx)
movsd 0x18(%r15), %xmm0
movsd 0xdc8(%rbx), %xmm1
movsd %xmm1, 0x18(%r15)
movsd %xmm0, 0xdc8(%rbx)
movsd 0x20(%r15), %xmm0
movsd 0xdd0(%rbx), %xmm1
movsd %xmm1, 0x20(%r15)
movsd %xmm0, 0xdd0(%rbx)
movsd 0x28(%r15), %xmm0
movsd 0xdd8(%rbx), %xmm1
movsd %xmm1, 0x28(%r15)
movsd %xmm0, 0xdd8(%rbx)
movsd 0x30(%r15), %xmm0
movsd 0xde0(%rbx), %xmm1
movsd %xmm1, 0x30(%r15)
movsd %xmm0, 0xde0(%rbx)
movsd 0x38(%r15), %xmm0
movsd 0xde8(%rbx), %xmm1
movsd %xmm1, 0x38(%r15)
movsd %xmm0, 0xde8(%rbx)
movsd 0x40(%r15), %xmm0
movsd 0xdf0(%rbx), %xmm1
movsd %xmm1, 0x40(%r15)
movsd %xmm0, 0xdf0(%rbx)
movsd 0xb28(%rbx), %xmm0
leaq 0x260(%rsp), %rsi
movsd %xmm0, (%rsi)
movsd 0xb30(%rbx), %xmm0
movsd %xmm0, 0x8(%rsi)
movsd 0xb38(%rbx), %xmm0
movsd %xmm0, 0x10(%rsi)
movsd 0xb40(%rbx), %xmm0
movsd %xmm0, 0x18(%rsi)
movsd 0xb48(%rbx), %xmm0
movsd %xmm0, 0x20(%rsi)
movsd 0xb50(%rbx), %xmm0
movsd %xmm0, 0x28(%rsi)
movsd 0xb58(%rbx), %xmm0
movsd %xmm0, 0x30(%rsi)
movsd 0xb60(%rbx), %xmm0
movsd %xmm0, 0x38(%rsi)
movsd 0xb68(%rbx), %xmm0
movsd %xmm0, 0x40(%rsi)
movsd 0x9d8(%rbx), %xmm0
leaq 0x1e8(%rsp), %rdx
movsd %xmm0, (%rdx)
movsd 0x9e0(%rbx), %xmm0
movsd %xmm0, 0x8(%rdx)
movsd 0x9e8(%rbx), %xmm0
movsd %xmm0, 0x10(%rdx)
movsd 0x9c0(%rbx), %xmm0
leaq 0x1d0(%rsp), %rcx
movsd %xmm0, (%rcx)
movsd 0x9c8(%rbx), %xmm0
movsd %xmm0, 0x8(%rcx)
movsd 0x9d0(%rbx), %xmm0
movsd %xmm0, 0x10(%rcx)
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x24e55
movsd (%r15), %xmm0
movsd 0xbb8(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xbb8(%rbx)
movsd 0x8(%r15), %xmm0
movsd 0xbc0(%rbx), %xmm1
movsd %xmm1, 0x8(%r15)
movsd %xmm0, 0xbc0(%rbx)
movsd 0x10(%r15), %xmm0
movsd 0xbc8(%rbx), %xmm1
movsd %xmm1, 0x10(%r15)
movsd %xmm0, 0xbc8(%rbx)
movsd 0x918(%rbx), %xmm0
movsd 0x920(%rbx), %xmm1
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x250d0
movsd (%r15), %xmm0
movsd 0xbd0(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xbd0(%rbx)
movsd 0x8(%r15), %xmm0
movsd 0xbd8(%rbx), %xmm1
movsd %xmm1, 0x8(%r15)
movsd %xmm0, 0xbd8(%rbx)
movsd 0x10(%r15), %xmm0
movsd 0xbe0(%rbx), %xmm1
movsd %xmm1, 0x10(%r15)
movsd %xmm0, 0xbe0(%rbx)
leaq 0x7f8(%rbx), %r15
cmpb $0x1, 0x290(%rbx)
jne 0x15b59
movsd 0xa90(%rbx), %xmm0
movsd %xmm0, (%rsp)
leaq 0x2b8(%rbx), %r12
movq 0x2c0(%rbx), %rdx
movq 0x2c8(%rbx), %rcx
movq %rcx, %rsi
imulq %rdx, %rsi
leaq 0x20(%rsp), %r13
movq %r13, %rdi
callq 0x6a8e
movq %r13, %rdi
movq %r12, %rsi
callq 0x6afc
leaq 0x38(%rsp), %rdi
leaq 0x20(%rsp), %rdx
movq %r15, %rsi
movsd (%rsp), %xmm0
callq 0x6296
leaq 0x38(%rsp), %rsi
movl $0x120, %edx            # imm = 0x120
movq %r15, %rdi
callq 0x52f0
movq 0x20(%rsp), %rdi
callq 0x5460
jmp 0x15b89
movsd 0xa90(%rbx), %xmm0
movsd 0x270(%rbx), %xmm1
leaq 0x38(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x5f08
movl $0x120, %edx            # imm = 0x120
movq %r15, %rdi
movq %r12, %rsi
callq 0x52f0
movsd 0x9c0(%rbx), %xmm0
leaq 0x1b8(%rsp), %rsi
movsd %xmm0, (%rsi)
movsd 0x9c8(%rbx), %xmm0
movsd %xmm0, 0x8(%rsi)
movsd 0x9d0(%rbx), %xmm0
movsd %xmm0, 0x10(%rsi)
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x237d0
movsd (%r15), %xmm0
movsd 0xe58(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xe58(%rbx)
movsd 0x8(%r15), %xmm0
movsd 0xe60(%rbx), %xmm1
movsd %xmm1, 0x8(%r15)
movsd %xmm0, 0xe60(%rbx)
movsd 0x10(%r15), %xmm0
movsd 0xe68(%rbx), %xmm1
movsd %xmm1, 0x10(%r15)
movsd %xmm0, 0xe68(%rbx)
cmpb $0x1, 0x254(%rbx)
jne 0x15c55
movl 0x278(%rbx), %eax
cmpq $0x3, %rax
movsd 0x8(%rsp), %xmm0
ja 0x15d50
leaq 0x122d4(%rip), %rcx     # 0x27f10
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %rbx, %rdi
movq %r14, %rsi
callq 0x12456
jmp 0x15dc1
movl 0x27c(%rbx), %eax
cmpl $0x2, %eax
movsd 0x8(%rsp), %xmm0
je 0x15c8f
cmpl $0x1, %eax
je 0x15c7f
testl %eax, %eax
jne 0x15c9c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x133d4
jmp 0x15dc1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13b76
jmp 0x15dc1
movq %rbx, %rdi
callq 0x146ae
jmp 0x15dc1
xorl %eax, %eax
movq %rax, 0x790(%rbx)
leaq 0x9f0(%rbx), %rcx
leaq 0x38(%rsp), %rdi
movq %rcx, (%rdi)
movq %rax, 0x8(%rdi)
movl $0x1, %ecx
movq %rcx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %rax, 0x9f0(%rbx)
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
callq 0x16f1a
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq %rax, %rdi
callq 0x16f1a
jmp 0x15da1
leaq 0x230(%rbx), %rdi
movq 0x238(%rbx), %rdx
leaq 0x12c20(%rip), %rcx     # 0x28927
movl $0xa, %r8d
jmp 0x15d47
leaq 0x230(%rbx), %rdi
movq 0x238(%rbx), %rdx
leaq 0x12c0e(%rip), %rcx     # 0x28932
movl $0x16, %r8d
jmp 0x15d47
leaq 0x230(%rbx), %rdi
movq 0x238(%rbx), %rdx
leaq 0x12bd5(%rip), %rcx     # 0x28916
movl $0x10, %r8d
xorl %esi, %esi
callq 0x5540
jmp 0x15dc1
xorl %eax, %eax
movq %rax, 0x790(%rbx)
leaq 0x9f0(%rbx), %rcx
leaq 0x38(%rsp), %rdi
movq %rcx, (%rdi)
movq %rax, 0x8(%rdi)
movl $0x1, %ecx
movq %rcx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %rax, 0x9f0(%rbx)
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
callq 0x16f1a
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
movq %rax, %rdi
callq 0x16f1a
movq 0x50(%rsp), %rax
addq 0x40(%rsp), %rax
cmpq $0x3, %rax
jne 0x16c75
cmpq $0x1, 0x48(%rsp)
jne 0x16c75
movsd 0x9f0(%rbx), %xmm2
movsd 0x9f8(%rbx), %xmm0
subsd 0xe58(%rbx), %xmm2
subsd 0xe60(%rbx), %xmm0
movsd 0xa00(%rbx), %xmm1
subsd 0xe68(%rbx), %xmm1
movsd 0xcd8(%rbx), %xmm3
mulsd %xmm2, %xmm3
movsd 0xcf0(%rbx), %xmm4
mulsd %xmm0, %xmm4
addsd %xmm3, %xmm4
movsd 0xd08(%rbx), %xmm3
mulsd %xmm1, %xmm3
addsd %xmm4, %xmm3
movsd 0xce0(%rbx), %xmm4
mulsd %xmm2, %xmm4
movsd 0xcf8(%rbx), %xmm5
mulsd %xmm0, %xmm5
addsd %xmm4, %xmm5
movsd 0xd10(%rbx), %xmm4
mulsd %xmm1, %xmm4
mulsd 0xce8(%rbx), %xmm2
addsd %xmm5, %xmm4
mulsd 0xd00(%rbx), %xmm0
addsd %xmm2, %xmm0
mulsd 0xd18(%rbx), %xmm1
addsd %xmm0, %xmm1
movsd %xmm3, 0xa08(%rbx)
movsd %xmm4, 0xa10(%rbx)
movsd %xmm1, 0xa18(%rbx)
movsd 0x340(%rbx), %xmm0
leaq 0x1a0(%rsp), %rdi
movsd %xmm0, (%rdi)
movsd 0x348(%rbx), %xmm0
movsd %xmm0, 0x8(%rdi)
movsd 0x350(%rbx), %xmm0
movsd %xmm0, 0x10(%rdi)
movsd 0xa80(%rbx), %xmm0
leaq 0x188(%rsp), %rsi
movsd %xmm0, (%rsi)
movsd 0xa88(%rbx), %xmm0
movsd %xmm0, 0x8(%rsi)
movsd 0xa90(%rbx), %xmm0
movsd %xmm0, 0x10(%rsi)
callq 0x26333
movsd %xmm0, 0xe88(%rbx)
movsd 0x9c0(%rbx), %xmm4
movsd 0x9c8(%rbx), %xmm3
movsd 0xa20(%rbx), %xmm0
mulsd %xmm4, %xmm0
movsd 0xa38(%rbx), %xmm2
mulsd %xmm3, %xmm2
addsd %xmm0, %xmm2
movsd 0x9d0(%rbx), %xmm0
movsd 0xa50(%rbx), %xmm1
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
movsd 0xa28(%rbx), %xmm2
mulsd %xmm4, %xmm2
movsd 0xa40(%rbx), %xmm5
mulsd %xmm3, %xmm5
addsd %xmm2, %xmm5
movsd 0xa58(%rbx), %xmm2
mulsd %xmm0, %xmm2
mulsd 0xa30(%rbx), %xmm4
mulsd 0xa48(%rbx), %xmm3
addsd %xmm5, %xmm2
addsd %xmm4, %xmm3
mulsd 0xa60(%rbx), %xmm0
addsd %xmm3, %xmm0
movsd 0xbb8(%rbx), %xmm4
movsd 0xae0(%rbx), %xmm3
mulsd %xmm4, %xmm3
movsd 0xbc0(%rbx), %xmm5
movsd 0xaf8(%rbx), %xmm7
mulsd %xmm5, %xmm7
addsd %xmm3, %xmm7
movsd 0xbc8(%rbx), %xmm3
movsd 0xb10(%rbx), %xmm6
mulsd %xmm3, %xmm6
addsd %xmm7, %xmm6
movsd 0xae8(%rbx), %xmm7
mulsd %xmm4, %xmm7
movsd 0xb00(%rbx), %xmm8
mulsd %xmm5, %xmm8
addsd %xmm7, %xmm8
movsd 0xb18(%rbx), %xmm7
mulsd %xmm3, %xmm7
addsd %xmm8, %xmm7
mulsd 0xaf0(%rbx), %xmm4
mulsd 0xb08(%rbx), %xmm5
addsd %xmm4, %xmm5
mulsd 0xb20(%rbx), %xmm3
addsd %xmm5, %xmm3
leaq 0x170(%rsp), %rsi
movsd %xmm1, (%rsi)
movsd %xmm2, 0x8(%rsi)
movsd %xmm0, 0x10(%rsi)
leaq 0x158(%rsp), %rdx
movsd %xmm6, (%rdx)
movsd %xmm7, 0x8(%rdx)
movsd %xmm3, 0x10(%rdx)
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x2668f
movsd (%r15), %xmm0
movsd 0xe70(%rbx), %xmm1
movsd %xmm1, (%r15)
movsd %xmm0, 0xe70(%rbx)
movsd 0x8(%r15), %xmm0
movsd 0xe78(%rbx), %xmm1
movsd %xmm1, 0x8(%r15)
movsd %xmm0, 0xe78(%rbx)
movsd 0x10(%r15), %xmm0
movsd 0xe80(%rbx), %xmm1
movsd %xmm1, 0x10(%r15)
movsd %xmm0, 0xe80(%rbx)
movsd (%r14), %xmm3
mulsd 0x11c4a(%rip), %xmm3    # 0x27cf0
movsd 0xbb8(%rbx), %xmm1
movsd 0xbc0(%rbx), %xmm2
mulsd %xmm1, %xmm1
mulsd %xmm2, %xmm2
movsd 0xbc8(%rbx), %xmm0
mulsd %xmm0, %xmm0
addsd %xmm2, %xmm0
addsd %xmm1, %xmm0
xorpd %xmm4, %xmm4
ucomisd %xmm4, %xmm0
jb 0x160e2
sqrtsd %xmm0, %xmm0
jmp 0x160f5
movsd %xmm3, (%rsp)
callq 0x52e0
xorpd %xmm4, %xmm4
movsd (%rsp), %xmm3
mulsd %xmm0, %xmm3
movsd 0xbb8(%rbx), %xmm1
movsd 0xbc0(%rbx), %xmm2
mulsd %xmm1, %xmm1
mulsd %xmm2, %xmm2
movsd 0xbc8(%rbx), %xmm0
mulsd %xmm0, %xmm0
addsd %xmm2, %xmm0
addsd %xmm1, %xmm0
ucomisd %xmm4, %xmm0
jb 0x16131
sqrtsd %xmm0, %xmm0
jmp 0x16140
movsd %xmm3, (%rsp)
callq 0x52e0
movsd (%rsp), %xmm3
mulsd %xmm0, %xmm3
movsd %xmm3, 0x960(%rbx)
movsd 0xe58(%rbx), %xmm0
movsd 0xb28(%rbx), %xmm2
mulsd %xmm0, %xmm2
movsd 0xe60(%rbx), %xmm1
movsd 0xb40(%rbx), %xmm3
mulsd %xmm1, %xmm3
addsd %xmm2, %xmm3
movsd 0xe68(%rbx), %xmm2
movsd 0xb58(%rbx), %xmm4
mulsd %xmm2, %xmm4
addsd %xmm3, %xmm4
movsd 0xb30(%rbx), %xmm3
mulsd %xmm0, %xmm3
movsd 0xb48(%rbx), %xmm5
mulsd %xmm1, %xmm5
addsd %xmm3, %xmm5
movsd 0xb60(%rbx), %xmm3
mulsd %xmm2, %xmm3
mulsd 0xb38(%rbx), %xmm0
mulsd 0xb50(%rbx), %xmm1
addsd %xmm5, %xmm3
addsd %xmm0, %xmm1
mulsd 0xb68(%rbx), %xmm2
addsd %xmm1, %xmm2
movsd %xmm4, 0xe40(%rbx)
movsd %xmm3, 0xe48(%rbx)
movsd %xmm2, 0xe50(%rbx)
movsd 0x760(%rbx), %xmm0
ucomisd 0x11b24(%rip), %xmm0    # 0x27d28
ja 0x16213
xorpd %xmm0, %xmm0
cmpb $0x0, 0x255(%rbx)
jne 0x16277
movsd 0xbb8(%rbx), %xmm0
movsd 0xbc0(%rbx), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x16242
xorps %xmm1, %xmm1
sqrtsd %xmm0, %xmm1
jmp 0x1624b
callq 0x52e0
movapd %xmm0, %xmm1
movsd 0xbc8(%rbx), %xmm0
xorpd 0x10dc5(%rip), %xmm0    # 0x27020
callq 0x50a0
movsd 0xe50(%rbx), %xmm1
movsd %xmm1, (%rsp)
callq 0x50f0
mulsd (%rsp), %xmm0
movsd %xmm0, 0x998(%rbx)
movsd 0x760(%rbx), %xmm1
xorpd %xmm0, %xmm0
ucomisd 0x11a95(%rip), %xmm1    # 0x27d28
xorpd %xmm1, %xmm1
jbe 0x162ae
movsd 0x908(%rbx), %xmm1
mulsd 0x798(%rbx), %xmm1
divsd (%r14), %xmm1
movsd %xmm1, 0x9a8(%rbx)
movsd 0x7e0(%rbx), %xmm2
divsd (%r14), %xmm2
movsd %xmm2, 0x9a0(%rbx)
addsd 0x998(%rbx), %xmm2
addsd %xmm1, %xmm2
movsd %xmm2, 0x9b8(%rbx)
movsd 0xa90(%rbx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x16bf9
cmpb $0x0, 0x1d1e8(%rip)     # 0x334e0
jne 0x16bf9
leaq 0xec0(%rbx), %r12
movq %r12, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x5570
movq %rax, %r13
leaq 0x12669(%rip), %r15     # 0x28986
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd (%r14), %xmm0
movq %r13, %rdi
callq 0x5570
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x760(%rbx), %xmm0
movq %r13, %rdi
callq 0x5570
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movq 0xec0(%rbx), %rax
movq -0x18(%rax), %rax
movq $0x8, 0xec8(%rbx,%rax)
movsd 0xa80(%rbx), %xmm0
movq %r12, %rdi
callq 0x5570
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xa88(%rbx), %xmm0
movq %r12, %rdi
callq 0x5570
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xa90(%rbx), %xmm0
movq %r12, %rdi
callq 0x5570
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x8(%r14), %xmm0
movq %r12, %rdi
callq 0x5570
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x10(%r14), %xmm0
movq %r12, %rdi
callq 0x5570
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x18(%r14), %xmm0
movq %r12, %rdi
callq 0x5570
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x20(%r14), %xmm0
movq %r12, %rdi
callq 0x5570
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x28(%r14), %xmm0
movq %r12, %rdi
callq 0x5570
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x30(%r14), %xmm0
movq %r12, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xbb8(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xbc0(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xbc8(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x9f0(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x9f8(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xa00(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xa08(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xa10(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xa18(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x780(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x958(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x928(%rbx), %xmm0
mulsd 0x1169c(%rip), %xmm0    # 0x27ce0
divsd 0x1169c(%rip), %xmm0    # 0x27ce8
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x930(%rbx), %xmm0
mulsd 0x11669(%rip), %xmm0    # 0x27ce0
divsd 0x11669(%rip), %xmm0    # 0x27ce8
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x938(%rbx), %xmm0
mulsd 0x11636(%rip), %xmm0    # 0x27ce0
divsd 0x11636(%rip), %xmm0    # 0x27ce8
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xc30(%rbx), %xmm0
mulsd 0x11603(%rip), %xmm0    # 0x27ce0
divsd 0x11603(%rip), %xmm0    # 0x27ce8
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xc38(%rbx), %xmm0
mulsd 0x115d0(%rip), %xmm0    # 0x27ce0
divsd 0x115d0(%rip), %xmm0    # 0x27ce8
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xc40(%rbx), %xmm0
mulsd 0x1159d(%rip), %xmm0    # 0x27ce0
divsd 0x1159d(%rip), %xmm0    # 0x27ce8
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x7d8(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xdf8(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xe00(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xe08(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xe28(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xe30(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xe38(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x968(%rbx), %xmm0
mulsd 0x11475(%rip), %xmm0    # 0x27ce0
divsd 0x11475(%rip), %xmm0    # 0x27ce8
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x1144a(%rip), %xmm0    # 0x27ce0
mulsd 0x970(%rbx), %xmm0
divsd 0x11442(%rip), %xmm0    # 0x27ce8
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x918(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x920(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xe88(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xe70(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xe78(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xd20(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xd38(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xd50(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xd28(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xd40(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xd58(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xd30(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xd48(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0xd60(%rbx), %xmm0
movq %r14, %rdi
callq 0x5570
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x5430
movsd 0x9d8(%rbx), %xmm1
movsd 0x9e0(%rbx), %xmm2
mulsd %xmm1, %xmm1
mulsd %xmm2, %xmm2
movsd 0x9e8(%rbx), %xmm0
mulsd %xmm0, %xmm0
addsd %xmm2, %xmm0
addsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x16ae7
sqrtsd %xmm0, %xmm0
jmp 0x16aec
callq 0x52e0
cvttsd2si %xmm0, %esi
movq %r14, %rdi
callq 0x5630
movq %rax, %r15
leaq 0x11e84(%rip), %r14     # 0x28986
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x5430
movsd 0x960(%rbx), %xmm0
movq %r15, %rdi
callq 0x5570
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x5430
movsd 0x998(%rbx), %xmm0
movq %r15, %rdi
callq 0x5570
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x5430
movsd 0x9a0(%rbx), %xmm0
movq %r15, %rdi
callq 0x5570
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x5430
movsd 0x9a8(%rbx), %xmm0
movq %r15, %rdi
callq 0x5570
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x5430
movzbl 0x254(%rbx), %esi
movq %r15, %rdi
callq 0x55c0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x5430
movzbl 0x255(%rbx), %esi
movq %r15, %rdi
callq 0x55c0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5370
movsbl %al, %esi
movq %r14, %rdi
callq 0x5050
movq %rax, %rdi
callq 0x5270
movb $0x0, 0x1c8e0(%rip)     # 0x334e0
movsd 0x8(%rsp), %xmm0
cvttsd2si %xmm0, %eax
imull $0xcccccccd, %eax, %ecx # imm = 0xCCCCCCCD
movl $0x19999998, %eax       # imm = 0x19999998
addl %eax, %ecx
rorl %ecx
cmpl %eax, %ecx
ja 0x16c43
movsd 0x1110b(%rip), %xmm1    # 0x27d30
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %ecx
imull $0xcccccccd, %ecx, %ecx # imm = 0xCCCCCCCD
addl %eax, %ecx
rorl %ecx
cmpl %eax, %ecx
ja 0x16c43
movq %rbx, %rdi
callq 0x14f18
addq $0x410, %rsp            # imm = 0x410
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x16c5a
jmp 0x16c5a
jmp 0x16c5a
movq %rax, %rbx
movq 0x50(%rsp), %rax
addq 0x40(%rsp), %rax
cmpq $0x3, %rax
jne 0x16c75
cmpq $0x1, 0x48(%rsp)
je 0x16ce0
leaq 0x12558(%rip), %rdi     # 0x291d4
leaq 0x125d8(%rip), %rsi     # 0x2925b
leaq 0x125fe(%rip), %rcx     # 0x29288
movl $0x6a, %edx
callq 0x5250
jmp 0x16c96
movq %rax, %rbx
movq 0x20(%rsp), %rdi
callq 0x5460
jmp 0x16ce0
movq %rax, %rbx
movq 0x50(%rsp), %rax
addq 0x40(%rsp), %rax
cmpq $0x3, %rax
jne 0x16cc0
cmpq $0x1, 0x48(%rsp)
je 0x16ce0
callq 0x57c6
movq %rax, %rbx
movq 0x50(%rsp), %rax
addq 0x40(%rsp), %rax
cmpq $0x3, %rax
jne 0x16ce8
cmpq $0x1, 0x48(%rsp)
jne 0x16ce8
movq %rbx, %rdi
callq 0x5650
callq 0x57a8