void replay_save_instructions(void)
{
    if (replay_file && replay_mode == REPLAY_MODE_RECORD) {
        replay_mutex_lock();
        int diff = (int)(replay_get_current_step() - replay_state.current_step);
        if (diff > 0) {
            replay_put_event(EVENT_INSTRUCTION);
            replay_put_dword(diff);
            replay_state.current_step += diff;
        }
        replay_mutex_unlock();
    }
}
void replay_save_instructions(void)
{
    if (replay_file && replay_mode == REPLAY_MODE_RECORD) {
        replay_mutex_lock();
        int diff = (int)(replay_get_current_step() - replay_state.current_step);
        if (diff > 0) {
            replay_put_event(EVENT_INSTRUCTION);
            replay_put_dword(diff);
            replay_state.current_step += diff;
        }
        replay_mutex_unlock();
    }
}
void FUNC_0(void)
{
    if (replay_file && replay_mode == REPLAY_MODE_RECORD) {
        replay_mutex_lock();
        int VAR_0 = (int)(replay_get_current_step() - replay_state.current_step);
        if (VAR_0 > 0) {
            replay_put_event(EVENT_INSTRUCTION);
            replay_put_dword(VAR_0);
            replay_state.current_step += VAR_0;
        }
        replay_mutex_unlock();
    }
}
void FUNC_0(void)
{ if (replay_file && replay_mode == REPLAY_MODE_RECORD) { replay_mutex_lock(); int VAR_0 = (int)(replay_get_current_step() - replay_state.current_step); if (VAR_0 > 0) { replay_put_event(EVENT_INSTRUCTION); replay_put_dword(VAR_0); replay_state.current_step += VAR_0; } replay_mutex_unlock(); } }