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 "data174.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,952,"simplebuffer.bm");}while(r);
S_36225:;
if ((-(*_SUB_RECALCFINDS_LONG_CHANGE== 0 ))||is_error_pending()){
if(qbevent){evnt(25755,954,"simplebuffer.bm");if(r)goto S_36225;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25755,954,"simplebuffer.bm");}while(r);
}
do{
*_SUB_RECALCFINDS_LONG_BUF=*_SUB_RECALCFINDS_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(25755,956,"simplebuffer.bm");}while(r);
S_36229:;
fornext_value4249= 1 ;
fornext_finalvalue4249= 101 ;
fornext_step4249= 1 ;
if (fornext_step4249<0) fornext_step_negative4249=1; else fornext_step_negative4249=0;
if (is_error_pending()) goto fornext_error4249;
goto fornext_entrylabel4249;
while(1){
fornext_value4249=fornext_step4249+(*_SUB_RECALCFINDS_INTEGER_IDX);
fornext_entrylabel4249:
*_SUB_RECALCFINDS_INTEGER_IDX=fornext_value4249;
if (fornext_step_negative4249){
if (fornext_value4249<fornext_finalvalue4249) break;
}else{
if (fornext_value4249>fornext_finalvalue4249) break;
}
fornext_error4249:;
if(qbevent){evnt(25755,957,"simplebuffer.bm");if(r)goto S_36229;}
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(25755,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(25755,959,"simplebuffer.bm");}while(r);
S_36232:;
if (((-(*_SUB_RECALCFINDS_LONG_FOUND!= -889275714 ))&(-(*_SUB_RECALCFINDS_LONG_FOUND!= -559038737 )))||is_error_pending()){
if(qbevent){evnt(25755,960,"simplebuffer.bm");if(r)goto S_36232;}
S_36233:;
if(qbevent){evnt(25755,961,"simplebuffer.bm");if(r)goto S_36233;}
S_36234:;
if (((*_SUB_RECALCFINDS_LONG_CHANGE>( 0 )))||is_error_pending()){
if(qbevent){evnt(25755,962,"simplebuffer.bm");if(r)goto S_36234;}
S_36235:;
if ((-(*_SUB_RECALCFINDS_LONG_BUFPOS<=*_SUB_RECALCFINDS_LONG_FOUND))||is_error_pending()){
if(qbevent){evnt(25755,963,"simplebuffer.bm");if(r)goto S_36235;}
do{
*_SUB_RECALCFINDS_LONG_FOUND=*_SUB_RECALCFINDS_LONG_FOUND+*_SUB_RECALCFINDS_LONG_CHANGE;
if(!qbevent)break;evnt(25755,964,"simplebuffer.bm");}while(r);
S_36237:;
}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(25755,965,"simplebuffer.bm");if(r)goto S_36237;}
do{
*_SUB_RECALCFINDS_LONG_FOUND= -559038737 ;
if(!qbevent)break;evnt(25755,966,"simplebuffer.bm");}while(r);
}
}
sc_ec_140_end:;
goto sc_4250_end;
}
S_36240:;
if (((*_SUB_RECALCFINDS_LONG_CHANGE<( 0 )))||is_error_pending()){
if(qbevent){evnt(25755,968,"simplebuffer.bm");if(r)goto S_36240;}
S_36241:;
if ((-(*_SUB_RECALCFINDS_LONG_BUFPOS<*_SUB_RECALCFINDS_LONG_FOUND))||is_error_pending()){
if(qbevent){evnt(25755,969,"simplebuffer.bm");if(r)goto S_36241;}
do{
*_SUB_RECALCFINDS_LONG_ABSCHG=func_abs((int32)(*_SUB_RECALCFINDS_LONG_CHANGE));
if(!qbevent)break;evnt(25755,970,"simplebuffer.bm");}while(r);
S_36243:;
if ((-(*_SUB_RECALCFINDS_LONG_ABSCHG<=(*_SUB_RECALCFINDS_LONG_FOUND-*_SUB_RECALCFINDS_LONG_BUFPOS)))||is_error_pending()){
if(qbevent){evnt(25755,971,"simplebuffer.bm");if(r)goto S_36243;}
do{
*_SUB_RECALCFINDS_LONG_FOUND=*_SUB_RECALCFINDS_LONG_FOUND-*_SUB_RECALCFINDS_LONG_ABSCHG;
if(!qbevent)break;evnt(25755,972,"simplebuffer.bm");}while(r);
}else{
do{
*_SUB_RECALCFINDS_LONG_FOUND= -559038737 ;
if(!qbevent)break;evnt(25755,974,"simplebuffer.bm");}while(r);
}
S_36248:;
}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(25755,976,"simplebuffer.bm");if(r)goto S_36248;}
do{
*_SUB_RECALCFINDS_LONG_FOUND= -559038737 ;
if(!qbevent)break;evnt(25755,977,"simplebuffer.bm");}while(r);
}
}
sc_ec_141_end:;
goto sc_4250_end;
}
sc_4250_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(25755,980,"simplebuffer.bm");}while(r);
}
fornext_continue_4248:;
}
fornext_exit_4248:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free174.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;
}
