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 "data173.txt"
mem_lock *sf_mem_lock;
new_mem_lock();
sf_mem_lock=mem_lock_tmp;
sf_mem_lock->type=3;
if (is_error_pending()) goto exit_subfunc;
do{
if(!qbevent)break;evnt(25755,920,"simplebuffer.bm");}while(r);
S_36197:;
if ((-(*_SUB_RECALCMARKS_LONG_CHANGE== 0 ))||is_error_pending()){
if(qbevent){evnt(25755,922,"simplebuffer.bm");if(r)goto S_36197;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25755,922,"simplebuffer.bm");}while(r);
}
do{
*_SUB_RECALCMARKS_LONG_BUF=*_SUB_RECALCMARKS_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(25755,924,"simplebuffer.bm");}while(r);
S_36201:;
fornext_value4246= 1 ;
fornext_finalvalue4246= 101 ;
fornext_step4246= 1 ;
if (fornext_step4246<0) fornext_step_negative4246=1; else fornext_step_negative4246=0;
if (is_error_pending()) goto fornext_error4246;
goto fornext_entrylabel4246;
while(1){
fornext_value4246=fornext_step4246+(*_SUB_RECALCMARKS_INTEGER_IDX);
fornext_entrylabel4246:
*_SUB_RECALCMARKS_INTEGER_IDX=fornext_value4246;
if (fornext_step_negative4246){
if (fornext_value4246<fornext_finalvalue4246) break;
}else{
if (fornext_value4246>fornext_finalvalue4246) break;
}
fornext_error4246:;
if(qbevent){evnt(25755,925,"simplebuffer.bm");if(r)goto S_36201;}
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(25755,926,"simplebuffer.bm");}while(r);
S_36203:;
if (((-(*_SUB_RECALCMARKS_LONG_MARK!= -889275714 ))&(-(*_SUB_RECALCMARKS_LONG_MARK!= -559038737 )))||is_error_pending()){
if(qbevent){evnt(25755,927,"simplebuffer.bm");if(r)goto S_36203;}
S_36204:;
if(qbevent){evnt(25755,928,"simplebuffer.bm");if(r)goto S_36204;}
S_36205:;
if (((*_SUB_RECALCMARKS_LONG_CHANGE>( 0 )))||is_error_pending()){
if(qbevent){evnt(25755,929,"simplebuffer.bm");if(r)goto S_36205;}
S_36206:;
if ((-(*_SUB_RECALCMARKS_LONG_BUFPOS<=*_SUB_RECALCMARKS_LONG_MARK))||is_error_pending()){
if(qbevent){evnt(25755,930,"simplebuffer.bm");if(r)goto S_36206;}
do{
*_SUB_RECALCMARKS_LONG_MARK=*_SUB_RECALCMARKS_LONG_MARK+*_SUB_RECALCMARKS_LONG_CHANGE;
if(!qbevent)break;evnt(25755,930,"simplebuffer.bm");}while(r);
}
sc_ec_138_end:;
goto sc_4247_end;
}
S_36209:;
if (((*_SUB_RECALCMARKS_LONG_CHANGE<( 0 )))||is_error_pending()){
if(qbevent){evnt(25755,931,"simplebuffer.bm");if(r)goto S_36209;}
S_36210:;
if ((-(*_SUB_RECALCMARKS_LONG_BUFPOS<*_SUB_RECALCMARKS_LONG_MARK))||is_error_pending()){
if(qbevent){evnt(25755,932,"simplebuffer.bm");if(r)goto S_36210;}
do{
*_SUB_RECALCMARKS_LONG_ABSCHG=func_abs((int32)(*_SUB_RECALCMARKS_LONG_CHANGE));
if(!qbevent)break;evnt(25755,933,"simplebuffer.bm");}while(r);
S_36212:;
if ((-(*_SUB_RECALCMARKS_LONG_ABSCHG<=(*_SUB_RECALCMARKS_LONG_MARK-*_SUB_RECALCMARKS_LONG_BUFPOS)))||is_error_pending()){
if(qbevent){evnt(25755,934,"simplebuffer.bm");if(r)goto S_36212;}
do{
*_SUB_RECALCMARKS_LONG_MARK=*_SUB_RECALCMARKS_LONG_MARK-*_SUB_RECALCMARKS_LONG_ABSCHG;
if(!qbevent)break;evnt(25755,935,"simplebuffer.bm");}while(r);
}else{
do{
*_SUB_RECALCMARKS_LONG_MARK= -559038737 ;
if(!qbevent)break;evnt(25755,937,"simplebuffer.bm");}while(r);
}
S_36217:;
}else{
if (-(*_SUB_RECALCMARKS_LONG_BUFPOS==*_SUB_RECALCMARKS_LONG_MARK)){
if(qbevent){evnt(25755,939,"simplebuffer.bm");if(r)goto S_36217;}
do{
*_SUB_RECALCMARKS_LONG_MARK= -559038737 ;
if(!qbevent)break;evnt(25755,940,"simplebuffer.bm");}while(r);
}
}
sc_ec_139_end:;
goto sc_4247_end;
}
sc_4247_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(25755,943,"simplebuffer.bm");}while(r);
}
fornext_continue_4245:;
}
fornext_exit_4245:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free173.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;
}
