int32 FUNC_FINDBUFREV(int16*_FUNC_FINDBUFREV_INTEGER_HANDLE,int16*_FUNC_FINDBUFREV_INTEGER_SBFINDID,int16*_FUNC_FINDBUFREV_INTEGER_METHOD,int16*_FUNC_FINDBUFREV_INTEGER_TREAT){
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 "data161.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,571,"simplebuffer.bm");}while(r);
S_35908:;
if ((~(FUNC_CHECKHANDLE(_FUNC_FINDBUFREV_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(25755,573,"simplebuffer.bm");if(r)goto S_35908;}
do{
error( 258 );
if(!qbevent)break;evnt(25755,573,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(25755,573,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_LONG_BUF=*_FUNC_FINDBUFREV_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(25755,574,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_FINDBUFREV= -13ll ;
if(!qbevent)break;evnt(25755,576,"simplebuffer.bm");}while(r);
S_35914:;
if ((qbs_cleanup(qbs_tmp_base,((-(*_FUNC_FINDBUFREV_INTEGER_SBFINDID< 1 ))|(-(*_FUNC_FINDBUFREV_INTEGER_SBFINDID> 100 )))&(-(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])]))->len== 16 ))))||is_error_pending()){
if(qbevent){evnt(25755,577,"simplebuffer.bm");if(r)goto S_35914;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25755,577,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_LONG_CPOS=FUNC_GETBUFPOS(_FUNC_FINDBUFREV_INTEGER_HANDLE);
if(!qbevent)break;evnt(25755,579,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_EOB=FUNC_GETBUFLEN(_FUNC_FINDBUFREV_INTEGER_HANDLE)+ 1 ;
if(!qbevent)break;evnt(25755,579,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_FPOS=string2l(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 3 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFREV_INTEGER_SBFINDID* 4 , 4 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25755,580,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_FLEN=string2l(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFREV_INTEGER_SBFINDID* 4 , 4 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25755,581,"simplebuffer.bm");}while(r);
S_35921:;
if (((-(*_FUNC_FINDBUFREV_LONG_FPOS> 0 ))&(-(*_FUNC_FINDBUFREV_LONG_FPOS<*_FUNC_FINDBUFREV_LONG_EOB))&(-(*_FUNC_FINDBUFREV_LONG_CPOS==*_FUNC_FINDBUFREV_LONG_FPOS)))||is_error_pending()){
if(qbevent){evnt(25755,582,"simplebuffer.bm");if(r)goto S_35921;}
do{
*_FUNC_FINDBUFREV_LONG_CPOS=*_FUNC_FINDBUFREV_LONG_CPOS- 1 ;
if(!qbevent)break;evnt(25755,582,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_LONG_FINDBUFREV= -14ll ;
if(!qbevent)break;evnt(25755,583,"simplebuffer.bm");}while(r);
S_35925:;
if ((-(*_FUNC_FINDBUFREV_LONG_FLEN== -889275714 ))||is_error_pending()){
if(qbevent){evnt(25755,583,"simplebuffer.bm");if(r)goto S_35925;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25755,583,"simplebuffer.bm");}while(r);
}
S_35928:;
if ((-(*_FUNC_FINDBUFREV_INTEGER_TREAT== 0 ))||is_error_pending()){
if(qbevent){evnt(25755,585,"simplebuffer.bm");if(r)goto S_35928;}
do{
qbs_set(_FUNC_FINDBUFREV_STRING_FIND,((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+*_FUNC_FINDBUFREV_INTEGER_SBFINDID+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25755,586,"simplebuffer.bm");}while(r);
S_35930:;
while((-(*_FUNC_FINDBUFREV_LONG_CPOS> 0 ))||is_error_pending()){
if(qbevent){evnt(25755,587,"simplebuffer.bm");if(r)goto S_35930;}
S_35931:;
if(qbevent){evnt(25755,588,"simplebuffer.bm");if(r)goto S_35931;}
S_35932:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD<( 0 )))||is_error_pending()){
if(qbevent){evnt(25755,589,"simplebuffer.bm");if(r)goto S_35932;}
S_35933:;
if ((qbs_cleanup(qbs_tmp_base,-(func_instr(NULL,_FUNC_FINDBUFREV_STRING_FIND,func_chr(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFREV_LONG_CPOS)),0)== 0 )))||is_error_pending()){
if(qbevent){evnt(25755,589,"simplebuffer.bm");if(r)goto S_35933;}
do{
goto ww_exit_4206;
if(!qbevent)break;evnt(25755,589,"simplebuffer.bm");}while(r);
}
sc_ec_124_end:;
goto sc_4207_end;
}
S_35936:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD>( 0 )))||is_error_pending()){
if(qbevent){evnt(25755,590,"simplebuffer.bm");if(r)goto S_35936;}
S_35937:;
if ((qbs_cleanup(qbs_tmp_base,-(func_instr(NULL,_FUNC_FINDBUFREV_STRING_FIND,func_chr(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFREV_LONG_CPOS)),0)> 0 )))||is_error_pending()){
if(qbevent){evnt(25755,590,"simplebuffer.bm");if(r)goto S_35937;}
do{
goto ww_exit_4206;
if(!qbevent)break;evnt(25755,590,"simplebuffer.bm");}while(r);
}
sc_ec_125_end:;
goto sc_4207_end;
}
S_35941:;
fornext_value4209= 1 ;
fornext_finalvalue4209=*_FUNC_FINDBUFREV_LONG_FLEN;
fornext_step4209= 1 ;
if (fornext_step4209<0) fornext_step_negative4209=1; else fornext_step_negative4209=0;
if (is_error_pending()) goto fornext_error4209;
goto fornext_entrylabel4209;
while(1){
fornext_value4209=fornext_step4209+(*_FUNC_FINDBUFREV_LONG_CH);
fornext_entrylabel4209:
*_FUNC_FINDBUFREV_LONG_CH=fornext_value4209;
if (fornext_step_negative4209){
if (fornext_value4209<fornext_finalvalue4209) break;
}else{
if (fornext_value4209>fornext_finalvalue4209) break;
}
fornext_error4209:;
if(qbevent){evnt(25755,592,"simplebuffer.bm");if(r)goto S_35941;}
do{
*_FUNC_FINDBUFREV_LONG_BPOS=*_FUNC_FINDBUFREV_LONG_CPOS+*_FUNC_FINDBUFREV_LONG_CH- 1 ;
if(!qbevent)break;evnt(25755,593,"simplebuffer.bm");}while(r);
S_35943:;
if ((-(*_FUNC_FINDBUFREV_LONG_BPOS>=*_FUNC_FINDBUFREV_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(25755,593,"simplebuffer.bm");if(r)goto S_35943;}
do{
goto fornext_exit_4208;
if(!qbevent)break;evnt(25755,593,"simplebuffer.bm");}while(r);
}
S_35946:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFREV_LONG_BPOS)!=qbs_asc(_FUNC_FINDBUFREV_STRING_FIND,*_FUNC_FINDBUFREV_LONG_CH))))||is_error_pending()){
if(qbevent){evnt(25755,594,"simplebuffer.bm");if(r)goto S_35946;}
do{
goto fornext_exit_4208;
if(!qbevent)break;evnt(25755,594,"simplebuffer.bm");}while(r);
}
fornext_continue_4208:;
}
fornext_exit_4208:;
S_35950:;
if ((-(*_FUNC_FINDBUFREV_LONG_CH>*_FUNC_FINDBUFREV_LONG_FLEN))||is_error_pending()){
if(qbevent){evnt(25755,596,"simplebuffer.bm");if(r)goto S_35950;}
do{
goto ww_exit_4206;
if(!qbevent)break;evnt(25755,596,"simplebuffer.bm");}while(r);
}
sc_4207_end:;
do{
*_FUNC_FINDBUFREV_LONG_CPOS=*_FUNC_FINDBUFREV_LONG_CPOS- 1 ;
if(!qbevent)break;evnt(25755,598,"simplebuffer.bm");}while(r);
ww_continue_4206:;
}
ww_exit_4206:;
}else{
do{
qbs_set(_FUNC_FINDBUFREV_STRING_FIND,qbs_ucase(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+*_FUNC_FINDBUFREV_INTEGER_SBFINDID+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])]))));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25755,601,"simplebuffer.bm");}while(r);
S_35958:;
while((-(*_FUNC_FINDBUFREV_LONG_CPOS> 0 ))||is_error_pending()){
if(qbevent){evnt(25755,602,"simplebuffer.bm");if(r)goto S_35958;}
S_35959:;
if(qbevent){evnt(25755,603,"simplebuffer.bm");if(r)goto S_35959;}
S_35960:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD<( 0 )))||is_error_pending()){
if(qbevent){evnt(25755,604,"simplebuffer.bm");if(r)goto S_35960;}
S_35961:;
if ((qbs_cleanup(qbs_tmp_base,-(func_instr(NULL,_FUNC_FINDBUFREV_STRING_FIND,qbs_ucase(func_chr(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFREV_LONG_CPOS))),0)== 0 )))||is_error_pending()){
if(qbevent){evnt(25755,604,"simplebuffer.bm");if(r)goto S_35961;}
do{
goto ww_exit_4210;
if(!qbevent)break;evnt(25755,604,"simplebuffer.bm");}while(r);
}
sc_ec_126_end:;
goto sc_4211_end;
}
S_35964:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD>( 0 )))||is_error_pending()){
if(qbevent){evnt(25755,605,"simplebuffer.bm");if(r)goto S_35964;}
S_35965:;
if ((qbs_cleanup(qbs_tmp_base,-(func_instr(NULL,_FUNC_FINDBUFREV_STRING_FIND,qbs_ucase(func_chr(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFREV_LONG_CPOS))),0)> 0 )))||is_error_pending()){
if(qbevent){evnt(25755,605,"simplebuffer.bm");if(r)goto S_35965;}
do{
goto ww_exit_4210;
if(!qbevent)break;evnt(25755,605,"simplebuffer.bm");}while(r);
}
sc_ec_127_end:;
goto sc_4211_end;
}
S_35969:;
fornext_value4213= 1 ;
fornext_finalvalue4213=*_FUNC_FINDBUFREV_LONG_FLEN;
fornext_step4213= 1 ;
if (fornext_step4213<0) fornext_step_negative4213=1; else fornext_step_negative4213=0;
if (is_error_pending()) goto fornext_error4213;
goto fornext_entrylabel4213;
while(1){
fornext_value4213=fornext_step4213+(*_FUNC_FINDBUFREV_LONG_CH);
fornext_entrylabel4213:
*_FUNC_FINDBUFREV_LONG_CH=fornext_value4213;
if (fornext_step_negative4213){
if (fornext_value4213<fornext_finalvalue4213) break;
}else{
if (fornext_value4213>fornext_finalvalue4213) break;
}
fornext_error4213:;
if(qbevent){evnt(25755,607,"simplebuffer.bm");if(r)goto S_35969;}
do{
*_FUNC_FINDBUFREV_LONG_BPOS=*_FUNC_FINDBUFREV_LONG_CPOS+*_FUNC_FINDBUFREV_LONG_CH- 1 ;
if(!qbevent)break;evnt(25755,608,"simplebuffer.bm");}while(r);
S_35971:;
if ((-(*_FUNC_FINDBUFREV_LONG_BPOS>=*_FUNC_FINDBUFREV_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(25755,608,"simplebuffer.bm");if(r)goto S_35971;}
do{
goto fornext_exit_4212;
if(!qbevent)break;evnt(25755,608,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_INTEGER_CHV=qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFREV_LONG_BPOS);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25755,609,"simplebuffer.bm");}while(r);
S_35975:;
if (((-(*_FUNC_FINDBUFREV_INTEGER_CHV>= 97 ))&(-(*_FUNC_FINDBUFREV_INTEGER_CHV<= 122 )))||is_error_pending()){
if(qbevent){evnt(25755,610,"simplebuffer.bm");if(r)goto S_35975;}
do{
*_FUNC_FINDBUFREV_INTEGER_CHV=*_FUNC_FINDBUFREV_INTEGER_CHV- 32 ;
if(!qbevent)break;evnt(25755,610,"simplebuffer.bm");}while(r);
}
S_35978:;
if ((qbs_cleanup(qbs_tmp_base,-(*_FUNC_FINDBUFREV_INTEGER_CHV!=qbs_asc(_FUNC_FINDBUFREV_STRING_FIND,*_FUNC_FINDBUFREV_LONG_CH))))||is_error_pending()){
if(qbevent){evnt(25755,611,"simplebuffer.bm");if(r)goto S_35978;}
do{
goto fornext_exit_4212;
if(!qbevent)break;evnt(25755,611,"simplebuffer.bm");}while(r);
}
fornext_continue_4212:;
}
fornext_exit_4212:;
S_35982:;
if ((-(*_FUNC_FINDBUFREV_LONG_CH>*_FUNC_FINDBUFREV_LONG_FLEN))||is_error_pending()){
if(qbevent){evnt(25755,613,"simplebuffer.bm");if(r)goto S_35982;}
do{
goto ww_exit_4210;
if(!qbevent)break;evnt(25755,613,"simplebuffer.bm");}while(r);
}
sc_4211_end:;
do{
*_FUNC_FINDBUFREV_LONG_CPOS=*_FUNC_FINDBUFREV_LONG_CPOS- 1 ;
if(!qbevent)break;evnt(25755,615,"simplebuffer.bm");}while(r);
ww_continue_4210:;
}
ww_exit_4210:;
}
S_35989:;
if ((-(*_FUNC_FINDBUFREV_LONG_CPOS> 0 ))||is_error_pending()){
if(qbevent){evnt(25755,619,"simplebuffer.bm");if(r)goto S_35989;}
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 1 , 4 ,l2string(*_FUNC_FINDBUFREV_LONG_CPOS),1);
if(!qbevent)break;evnt(25755,619,"simplebuffer.bm");}while(r);
}
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFREV_LONG_BUF+ 3 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFREV_INTEGER_SBFINDID* 4 , 4 ,l2string(*_FUNC_FINDBUFREV_LONG_CPOS),1);
if(!qbevent)break;evnt(25755,620,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_FINDBUFREV=*_FUNC_FINDBUFREV_LONG_CPOS;
if(!qbevent)break;evnt(25755,621,"simplebuffer.bm");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free161.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;
return *_FUNC_FINDBUFREV_LONG_FINDBUFREV;
}
