// File: istellartech[P]OpenTsiolkovsky/./boost/numeric/odeint/stepper/controlled_runge_kutta.hpp
// Function: boost::numeric::odeint::controlled_step_result boost::numeric::odeint::controlled_runge_kutta<boost::numeric::odeint::runge_kutta_dopri5<std::array<double, 14ul>, double, std::array<double, 14ul>, double, boost::numeric::odeint::array_algebra, boost::numeric::odeint::default_operations, boost::numeric::odeint::initially_resizer>, boost::numeric::odeint::default_error_checker<double, boost::numeric::odeint::array_algebra, boost::numeric::odeint::default_operations>, boost::numeric::odeint::default_step_adjuster<double, double>, boost::numeric::odeint::initially_resizer, boost::numeric::odeint::explicit_error_stepper_fsal_tag>::try_step<RocketStage, std::array<double, 14ul>, std::array<double, 14ul>, std::array<double, 14ul>, std::array<double, 14ul>>(RocketStage, std::array<double, 14ul> const&, std::array<double, 14ul> const&, double&, std::array<double, 14ul>&, std::array<double, 14ul>&, double&)
controlled_step_result try_step( System system , const StateIn &in , const DerivIn &dxdt_in , time_type &t ,
            StateOut &out , DerivOut &dxdt_out , time_type &dt )
    {
        if( !m_step_adjuster.check_step_size_limit(dt) )
        {
            // given dt was above step size limit - adjust and return fail;
            dt = m_step_adjuster.get_max_dt();
            return fail;
        }

        m_xerr_resizer.adjust_size( in , detail::bind( &controlled_runge_kutta::template resize_m_xerr_impl< StateIn > , detail::ref( *this ) , detail::_1 ) );

        //fsal: m_stepper.get_dxdt( dxdt );
        //fsal: m_stepper.do_step( sys , x , dxdt , t , dt , m_x_err );
        m_stepper.do_step( system , in , dxdt_in , t , out , dxdt_out , dt , m_xerr.m_v );

        // this potentially overwrites m_x_err! (standard_error_checker does, at least)
        value_type max_rel_err = m_error_checker.error( m_stepper.algebra() , in , dxdt_in , m_xerr.m_v , dt );

        if( max_rel_err > 1.0 )
        {
            // error too big, decrease step size and reject this step
            dt = m_step_adjuster.decrease_step(dt, max_rel_err, m_stepper.error_order());
            return fail;
        }
        // otherwise, increase step size and accept
        t += dt;
        dt = m_step_adjuster.increase_step(dt, max_rel_err, m_stepper.stepper_order());
        return success;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xfc0, %rsp            # imm = 0xFC0
movq %rsi, -0xf58(%rbp)
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0xf50(%rbp)
addq $0x3b0, %rdi            # imm = 0x3B0
movq 0x18(%rbp), %rax
movsd (%rax), %xmm0
callq 0x2eaa0
testb $0x1, %al
jne 0x2e59c
movq -0xf50(%rbp), %rdi
addq $0x3b0, %rdi            # imm = 0x3B0
callq 0x2eb00
movq 0x18(%rbp), %rax
movsd %xmm0, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x2e7f9
movq -0xf50(%rbp), %rdi
movq %rdi, %rax
addq $0x3b9, %rax            # imm = 0x3B9
movq %rax, -0xf78(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0xf70(%rbp)
leaq 0x5eb(%rip), %rax       # 0x2ebb0
movq %rax, -0x60(%rbp)
movq $0x0, -0x58(%rbp)
callq 0x2ebe0
movq %rax, -0x68(%rbp)
movq 0x4a9b7(%rip), %rcx     # 0x78f98
leaq -0x50(%rbp), %rdi
movq %rdi, -0xf68(%rbp)
leaq -0x60(%rbp), %rsi
leaq -0x68(%rbp), %rdx
callq 0x2eb70
movq -0xf78(%rbp), %rdi
movq -0xf70(%rbp), %rsi
movq -0xf68(%rbp), %rdx
callq 0x2eb20
movq -0xf58(%rbp), %rsi
leaq -0xf30(%rbp), %rdi
movq %rdi, -0xf60(%rbp)
callq 0x1f580
movq -0xf50(%rbp), %rdi
movq -0xf60(%rbp), %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
movsd (%rax), %xmm0
movq -0x38(%rbp), %r8
movq 0x10(%rbp), %r9
movq 0x18(%rbp), %rax
movsd (%rax), %xmm1
movq %rdi, %r10
addq $0x430, %r10            # imm = 0x430
movq %rsp, %rax
movq %r10, (%rax)
callq 0x2ec10
jmp 0x2e672
leaq -0xf30(%rbp), %rdi
callq 0xb260
movq -0xf50(%rbp), %rdi
movq %rdi, %rax
addq $0x390, %rax            # imm = 0x390
movq %rax, -0xf80(%rbp)
callq 0x2ede0
movq -0xf50(%rbp), %r8
movq -0xf80(%rbp), %rdi
movq %rax, %rsi
movq -0x20(%rbp), %rdx
movq -0x28(%rbp), %rcx
addq $0x430, %r8             # imm = 0x430
movq 0x18(%rbp), %rax
movsd (%rax), %xmm0
callq 0x2ecf0
movsd %xmm0, -0xf48(%rbp)
movsd -0xf48(%rbp), %xmm0
movsd 0x23961(%rip), %xmm1    # 0x52040
ucomisd %xmm1, %xmm0
jbe 0x2e77b
movq -0xf50(%rbp), %rdi
movq %rdi, %rax
addq $0x3b0, %rax            # imm = 0x3B0
movq %rax, -0xf98(%rbp)
movq 0x18(%rbp), %rax
movsd (%rax), %xmm0
movsd %xmm0, -0xf90(%rbp)
movsd -0xf48(%rbp), %xmm0
movsd %xmm0, -0xf88(%rbp)
callq 0x2eeb0
movq -0xf98(%rbp), %rdi
movsd -0xf90(%rbp), %xmm0
movsd -0xf88(%rbp), %xmm1
movzwl %ax, %esi
callq 0x2edf0
movq 0x18(%rbp), %rax
movsd %xmm0, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x2e7f9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xf38(%rbp)
movl %eax, -0xf3c(%rbp)
leaq -0xf30(%rbp), %rdi
callq 0xb260
jmp 0x2e805
movq -0xf50(%rbp), %rdi
movq 0x18(%rbp), %rax
movsd (%rax), %xmm0
movq -0x30(%rbp), %rax
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
movq %rdi, %rax
addq $0x3b0, %rax            # imm = 0x3B0
movq %rax, -0xfb0(%rbp)
movq 0x18(%rbp), %rax
movsd (%rax), %xmm0
movsd %xmm0, -0xfa8(%rbp)
movsd -0xf48(%rbp), %xmm0
movsd %xmm0, -0xfa0(%rbp)
callq 0x2efb0
movq -0xfb0(%rbp), %rdi
movsd -0xfa8(%rbp), %xmm0
movsd -0xfa0(%rbp), %xmm1
movzwl %ax, %esi
callq 0x2eec0
movq 0x18(%rbp), %rax
movsd %xmm0, (%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xfc0, %rsp            # imm = 0xFC0
popq %rbp
retq
movq -0xf38(%rbp), %rdi
callq 0x67a0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)