void SUB_RECALCFINDS(int16*_SUB_RECALCFINDS_INTEGER_HANDLE,int32*_SUB_RECALCFINDS_LONG_BUFPOS,int32*_SUB_RECALCFINDS_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 "data201.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,952,"simplebuffer.bm");}while(r);
S_38944:;
if ((-(*_SUB_RECALCFINDS_LONG_CHANGE== 0 ))||is_error_pending()){
if(qbevent){evnt(28168,954,"simplebuffer.bm");if(r)goto S_38944;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,954,"simplebuffer.bm");}while(r);
}
do{
*_SUB_RECALCFINDS_LONG_BUF=*_SUB_RECALCFINDS_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(28168,956,"simplebuffer.bm");}while(r);
S_38948:;
fornext_value4679= 1 ;
fornext_finalvalue4679= 101 ;
fornext_step4679= 1 ;
if (fornext_step4679<0) fornext_step_negative4679=1; else fornext_step_negative4679=0;
if (is_error_pending()) goto fornext_error4679;
goto fornext_entrylabel4679;
while(1){
fornext_value4679=fornext_step4679+(*_SUB_RECALCFINDS_INTEGER_IDX);
fornext_entrylabel4679:
*_SUB_RECALCFINDS_INTEGER_IDX=fornext_value4679;
if (fornext_step_negative4679){
if (fornext_value4679<fornext_finalvalue4679) break;
}else{
if (fornext_value4679>fornext_finalvalue4679) break;
}
fornext_error4679:;
if(qbevent){evnt(28168,957,"simplebuffer.bm");if(r)goto S_38948;}
do{
*_SUB_RECALCFINDS_LONG_FOUND=string2l(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_RECALCFINDS_LONG_BUF+ 3 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_SUB_RECALCFINDS_INTEGER_IDX* 4 , 4 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,958,"simplebuffer.bm");}while(r);
do{
*_SUB_RECALCFINDS_LONG_LENGTH=string2l(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_RECALCFINDS_LONG_BUF+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_SUB_RECALCFINDS_INTEGER_IDX* 4 , 4 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,959,"simplebuffer.bm");}while(r);
S_38951:;
if (((-(*_SUB_RECALCFINDS_LONG_FOUND!= -889275714 ))&(-(*_SUB_RECALCFINDS_LONG_FOUND!= -559038737 )))||is_error_pending()){
if(qbevent){evnt(28168,960,"simplebuffer.bm");if(r)goto S_38951;}
S_38952:;
if(qbevent){evnt(28168,961,"simplebuffer.bm");if(r)goto S_38952;}
S_38953:;
if (((*_SUB_RECALCFINDS_LONG_CHANGE>( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,962,"simplebuffer.bm");if(r)goto S_38953;}
S_38954:;
if ((-(*_SUB_RECALCFINDS_LONG_BUFPOS<=*_SUB_RECALCFINDS_LONG_FOUND))||is_error_pending()){
if(qbevent){evnt(28168,963,"simplebuffer.bm");if(r)goto S_38954;}
do{
*_SUB_RECALCFINDS_LONG_FOUND=*_SUB_RECALCFINDS_LONG_FOUND+*_SUB_RECALCFINDS_LONG_CHANGE;
if(!qbevent)break;evnt(28168,964,"simplebuffer.bm");}while(r);
S_38956:;
}else{
if ((-(*_SUB_RECALCFINDS_LONG_BUFPOS>*_SUB_RECALCFINDS_LONG_FOUND))&(-(*_SUB_RECALCFINDS_LONG_BUFPOS<(*_SUB_RECALCFINDS_LONG_FOUND+*_SUB_RECALCFINDS_LONG_LENGTH)))){
if(qbevent){evnt(28168,965,"simplebuffer.bm");if(r)goto S_38956;}
do{
*_SUB_RECALCFINDS_LONG_FOUND= -559038737 ;
if(!qbevent)break;evnt(28168,966,"simplebuffer.bm");}while(r);
}
}
sc_ec_148_end:;
goto sc_4680_end;
}
S_38959:;
if (((*_SUB_RECALCFINDS_LONG_CHANGE<( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,968,"simplebuffer.bm");if(r)goto S_38959;}
S_38960:;
if ((-(*_SUB_RECALCFINDS_LONG_BUFPOS<*_SUB_RECALCFINDS_LONG_FOUND))||is_error_pending()){
if(qbevent){evnt(28168,969,"simplebuffer.bm");if(r)goto S_38960;}
do{
*_SUB_RECALCFINDS_LONG_ABSCHG=func_abs((int32)(*_SUB_RECALCFINDS_LONG_CHANGE));
if(!qbevent)break;evnt(28168,970,"simplebuffer.bm");}while(r);
S_38962:;
if ((-(*_SUB_RECALCFINDS_LONG_ABSCHG<=(*_SUB_RECALCFINDS_LONG_FOUND-*_SUB_RECALCFINDS_LONG_BUFPOS)))||is_error_pending()){
if(qbevent){evnt(28168,971,"simplebuffer.bm");if(r)goto S_38962;}
do{
*_SUB_RECALCFINDS_LONG_FOUND=*_SUB_RECALCFINDS_LONG_FOUND-*_SUB_RECALCFINDS_LONG_ABSCHG;
if(!qbevent)break;evnt(28168,972,"simplebuffer.bm");}while(r);
}else{
do{
*_SUB_RECALCFINDS_LONG_FOUND= -559038737 ;
if(!qbevent)break;evnt(28168,974,"simplebuffer.bm");}while(r);
}
S_38967:;
}else{
if ((-(*_SUB_RECALCFINDS_LONG_BUFPOS>=*_SUB_RECALCFINDS_LONG_FOUND))&(-(*_SUB_RECALCFINDS_LONG_BUFPOS<(*_SUB_RECALCFINDS_LONG_FOUND+*_SUB_RECALCFINDS_LONG_LENGTH)))){
if(qbevent){evnt(28168,976,"simplebuffer.bm");if(r)goto S_38967;}
do{
*_SUB_RECALCFINDS_LONG_FOUND= -559038737 ;
if(!qbevent)break;evnt(28168,977,"simplebuffer.bm");}while(r);
}
}
sc_ec_149_end:;
goto sc_4680_end;
}
sc_4680_end:;
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_RECALCFINDS_LONG_BUF+ 3 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_SUB_RECALCFINDS_INTEGER_IDX* 4 , 4 ,l2string(*_SUB_RECALCFINDS_LONG_FOUND),1);
if(!qbevent)break;evnt(28168,980,"simplebuffer.bm");}while(r);
}
fornext_continue_4678:;
}
fornext_exit_4678:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free201.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;
}
