void SUB_RECALCMARKS(int16*_SUB_RECALCMARKS_INTEGER_HANDLE,int32*_SUB_RECALCMARKS_LONG_BUFPOS,int32*_SUB_RECALCMARKS_LONG_CHANGE){
qbs *tqbs;
ptrszint tmp_long;
int32 tmp_fileno;
uint32 qbs_tmp_base=qbs_tmp_list_nexti;
uint8 *tmp_mem_static_pointer=mem_static_pointer;
uint32 tmp_cmem_sp=cmem_sp;
#include "data200.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
libqb_check_stack();
if (is_error_pending()) goto exit_subfunc;
do{
if(!qbevent)break;evnt(28168,920,"simplebuffer.bm");}while(r);
S_38916:;
if ((-(*_SUB_RECALCMARKS_LONG_CHANGE== 0 ))||is_error_pending()){
if(qbevent){evnt(28168,922,"simplebuffer.bm");if(r)goto S_38916;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,922,"simplebuffer.bm");}while(r);
}
do{
*_SUB_RECALCMARKS_LONG_BUF=*_SUB_RECALCMARKS_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(28168,924,"simplebuffer.bm");}while(r);
S_38920:;
fornext_value4676= 1 ;
fornext_finalvalue4676= 101 ;
fornext_step4676= 1 ;
if (fornext_step4676<0) fornext_step_negative4676=1; else fornext_step_negative4676=0;
if (is_error_pending()) goto fornext_error4676;
goto fornext_entrylabel4676;
while(1){
fornext_value4676=fornext_step4676+(*_SUB_RECALCMARKS_INTEGER_IDX);
fornext_entrylabel4676:
*_SUB_RECALCMARKS_INTEGER_IDX=fornext_value4676;
if (fornext_step_negative4676){
if (fornext_value4676<fornext_finalvalue4676) break;
}else{
if (fornext_value4676>fornext_finalvalue4676) break;
}
fornext_error4676:;
if(qbevent){evnt(28168,925,"simplebuffer.bm");if(r)goto S_38920;}
do{
*_SUB_RECALCMARKS_LONG_MARK=string2l(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_RECALCMARKS_LONG_BUF+ 2 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_SUB_RECALCMARKS_INTEGER_IDX* 4 , 4 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,926,"simplebuffer.bm");}while(r);
S_38922:;
if (((-(*_SUB_RECALCMARKS_LONG_MARK!= -889275714 ))&(-(*_SUB_RECALCMARKS_LONG_MARK!= -559038737 )))||is_error_pending()){
if(qbevent){evnt(28168,927,"simplebuffer.bm");if(r)goto S_38922;}
S_38923:;
if(qbevent){evnt(28168,928,"simplebuffer.bm");if(r)goto S_38923;}
S_38924:;
if (((*_SUB_RECALCMARKS_LONG_CHANGE>( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,929,"simplebuffer.bm");if(r)goto S_38924;}
S_38925:;
if ((-(*_SUB_RECALCMARKS_LONG_BUFPOS<=*_SUB_RECALCMARKS_LONG_MARK))||is_error_pending()){
if(qbevent){evnt(28168,930,"simplebuffer.bm");if(r)goto S_38925;}
do{
*_SUB_RECALCMARKS_LONG_MARK=*_SUB_RECALCMARKS_LONG_MARK+*_SUB_RECALCMARKS_LONG_CHANGE;
if(!qbevent)break;evnt(28168,930,"simplebuffer.bm");}while(r);
}
sc_ec_146_end:;
goto sc_4677_end;
}
S_38928:;
if (((*_SUB_RECALCMARKS_LONG_CHANGE<( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,931,"simplebuffer.bm");if(r)goto S_38928;}
S_38929:;
if ((-(*_SUB_RECALCMARKS_LONG_BUFPOS<*_SUB_RECALCMARKS_LONG_MARK))||is_error_pending()){
if(qbevent){evnt(28168,932,"simplebuffer.bm");if(r)goto S_38929;}
do{
*_SUB_RECALCMARKS_LONG_ABSCHG=func_abs((int32)(*_SUB_RECALCMARKS_LONG_CHANGE));
if(!qbevent)break;evnt(28168,933,"simplebuffer.bm");}while(r);
S_38931:;
if ((-(*_SUB_RECALCMARKS_LONG_ABSCHG<=(*_SUB_RECALCMARKS_LONG_MARK-*_SUB_RECALCMARKS_LONG_BUFPOS)))||is_error_pending()){
if(qbevent){evnt(28168,934,"simplebuffer.bm");if(r)goto S_38931;}
do{
*_SUB_RECALCMARKS_LONG_MARK=*_SUB_RECALCMARKS_LONG_MARK-*_SUB_RECALCMARKS_LONG_ABSCHG;
if(!qbevent)break;evnt(28168,935,"simplebuffer.bm");}while(r);
}else{
do{
*_SUB_RECALCMARKS_LONG_MARK= -559038737 ;
if(!qbevent)break;evnt(28168,937,"simplebuffer.bm");}while(r);
}
S_38936:;
}else{
if (-(*_SUB_RECALCMARKS_LONG_BUFPOS==*_SUB_RECALCMARKS_LONG_MARK)){
if(qbevent){evnt(28168,939,"simplebuffer.bm");if(r)goto S_38936;}
do{
*_SUB_RECALCMARKS_LONG_MARK= -559038737 ;
if(!qbevent)break;evnt(28168,940,"simplebuffer.bm");}while(r);
}
}
sc_ec_147_end:;
goto sc_4677_end;
}
sc_4677_end:;
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_RECALCMARKS_LONG_BUF+ 2 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_SUB_RECALCMARKS_INTEGER_IDX* 4 , 4 ,l2string(*_SUB_RECALCMARKS_LONG_MARK),1);
if(!qbevent)break;evnt(28168,943,"simplebuffer.bm");}while(r);
}
fornext_continue_4675:;
}
fornext_exit_4675:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free200.txt"
if ((tmp_mem_static_pointer>=mem_static)&&(tmp_mem_static_pointer<=mem_static_limit)) mem_static_pointer=tmp_mem_static_pointer; else mem_static_pointer=mem_static;
cmem_sp=tmp_cmem_sp;
}
