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 "data152.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(24221,571,"simplebuffer.bm");}while(r);
S_34387:;
if ((~(FUNC_CHECKHANDLE(_FUNC_FINDBUFREV_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(24221,573,"simplebuffer.bm");if(r)goto S_34387;}
do{
error( 258 );
if(!qbevent)break;evnt(24221,573,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(24221,573,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_LONG_BUF=*_FUNC_FINDBUFREV_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(24221,574,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_FINDBUFREV= -13ll ;
if(!qbevent)break;evnt(24221,576,"simplebuffer.bm");}while(r);
S_34393:;
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(24221,577,"simplebuffer.bm");if(r)goto S_34393;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24221,577,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_LONG_CPOS=FUNC_GETBUFPOS(_FUNC_FINDBUFREV_INTEGER_HANDLE);
if(!qbevent)break;evnt(24221,579,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_EOB=FUNC_GETBUFLEN(_FUNC_FINDBUFREV_INTEGER_HANDLE)+ 1 ;
if(!qbevent)break;evnt(24221,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(24221,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(24221,581,"simplebuffer.bm");}while(r);
S_34400:;
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(24221,582,"simplebuffer.bm");if(r)goto S_34400;}
do{
*_FUNC_FINDBUFREV_LONG_CPOS=*_FUNC_FINDBUFREV_LONG_CPOS- 1 ;
if(!qbevent)break;evnt(24221,582,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_LONG_FINDBUFREV= -14ll ;
if(!qbevent)break;evnt(24221,583,"simplebuffer.bm");}while(r);
S_34404:;
if ((-(*_FUNC_FINDBUFREV_LONG_FLEN== -889275714 ))||is_error_pending()){
if(qbevent){evnt(24221,583,"simplebuffer.bm");if(r)goto S_34404;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24221,583,"simplebuffer.bm");}while(r);
}
S_34407:;
if ((-(*_FUNC_FINDBUFREV_INTEGER_TREAT== 0 ))||is_error_pending()){
if(qbevent){evnt(24221,585,"simplebuffer.bm");if(r)goto S_34407;}
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(24221,586,"simplebuffer.bm");}while(r);
S_34409:;
while((-(*_FUNC_FINDBUFREV_LONG_CPOS> 0 ))||is_error_pending()){
if(qbevent){evnt(24221,587,"simplebuffer.bm");if(r)goto S_34409;}
S_34410:;
if(qbevent){evnt(24221,588,"simplebuffer.bm");if(r)goto S_34410;}
S_34411:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD<( 0 )))||is_error_pending()){
if(qbevent){evnt(24221,589,"simplebuffer.bm");if(r)goto S_34411;}
S_34412:;
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(24221,589,"simplebuffer.bm");if(r)goto S_34412;}
do{
goto ww_exit_3975;
if(!qbevent)break;evnt(24221,589,"simplebuffer.bm");}while(r);
}
sc_ec_124_end:;
goto sc_3976_end;
}
S_34415:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD>( 0 )))||is_error_pending()){
if(qbevent){evnt(24221,590,"simplebuffer.bm");if(r)goto S_34415;}
S_34416:;
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(24221,590,"simplebuffer.bm");if(r)goto S_34416;}
do{
goto ww_exit_3975;
if(!qbevent)break;evnt(24221,590,"simplebuffer.bm");}while(r);
}
sc_ec_125_end:;
goto sc_3976_end;
}
S_34420:;
fornext_value3978= 1 ;
fornext_finalvalue3978=*_FUNC_FINDBUFREV_LONG_FLEN;
fornext_step3978= 1 ;
if (fornext_step3978<0) fornext_step_negative3978=1; else fornext_step_negative3978=0;
if (is_error_pending()) goto fornext_error3978;
goto fornext_entrylabel3978;
while(1){
fornext_value3978=fornext_step3978+(*_FUNC_FINDBUFREV_LONG_CH);
fornext_entrylabel3978:
*_FUNC_FINDBUFREV_LONG_CH=fornext_value3978;
if (fornext_step_negative3978){
if (fornext_value3978<fornext_finalvalue3978) break;
}else{
if (fornext_value3978>fornext_finalvalue3978) break;
}
fornext_error3978:;
if(qbevent){evnt(24221,592,"simplebuffer.bm");if(r)goto S_34420;}
do{
*_FUNC_FINDBUFREV_LONG_BPOS=*_FUNC_FINDBUFREV_LONG_CPOS+*_FUNC_FINDBUFREV_LONG_CH- 1 ;
if(!qbevent)break;evnt(24221,593,"simplebuffer.bm");}while(r);
S_34422:;
if ((-(*_FUNC_FINDBUFREV_LONG_BPOS>=*_FUNC_FINDBUFREV_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(24221,593,"simplebuffer.bm");if(r)goto S_34422;}
do{
goto fornext_exit_3977;
if(!qbevent)break;evnt(24221,593,"simplebuffer.bm");}while(r);
}
S_34425:;
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(24221,594,"simplebuffer.bm");if(r)goto S_34425;}
do{
goto fornext_exit_3977;
if(!qbevent)break;evnt(24221,594,"simplebuffer.bm");}while(r);
}
fornext_continue_3977:;
}
fornext_exit_3977:;
S_34429:;
if ((-(*_FUNC_FINDBUFREV_LONG_CH>*_FUNC_FINDBUFREV_LONG_FLEN))||is_error_pending()){
if(qbevent){evnt(24221,596,"simplebuffer.bm");if(r)goto S_34429;}
do{
goto ww_exit_3975;
if(!qbevent)break;evnt(24221,596,"simplebuffer.bm");}while(r);
}
sc_3976_end:;
do{
*_FUNC_FINDBUFREV_LONG_CPOS=*_FUNC_FINDBUFREV_LONG_CPOS- 1 ;
if(!qbevent)break;evnt(24221,598,"simplebuffer.bm");}while(r);
ww_continue_3975:;
}
ww_exit_3975:;
}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(24221,601,"simplebuffer.bm");}while(r);
S_34437:;
while((-(*_FUNC_FINDBUFREV_LONG_CPOS> 0 ))||is_error_pending()){
if(qbevent){evnt(24221,602,"simplebuffer.bm");if(r)goto S_34437;}
S_34438:;
if(qbevent){evnt(24221,603,"simplebuffer.bm");if(r)goto S_34438;}
S_34439:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD<( 0 )))||is_error_pending()){
if(qbevent){evnt(24221,604,"simplebuffer.bm");if(r)goto S_34439;}
S_34440:;
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(24221,604,"simplebuffer.bm");if(r)goto S_34440;}
do{
goto ww_exit_3979;
if(!qbevent)break;evnt(24221,604,"simplebuffer.bm");}while(r);
}
sc_ec_126_end:;
goto sc_3980_end;
}
S_34443:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD>( 0 )))||is_error_pending()){
if(qbevent){evnt(24221,605,"simplebuffer.bm");if(r)goto S_34443;}
S_34444:;
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(24221,605,"simplebuffer.bm");if(r)goto S_34444;}
do{
goto ww_exit_3979;
if(!qbevent)break;evnt(24221,605,"simplebuffer.bm");}while(r);
}
sc_ec_127_end:;
goto sc_3980_end;
}
S_34448:;
fornext_value3982= 1 ;
fornext_finalvalue3982=*_FUNC_FINDBUFREV_LONG_FLEN;
fornext_step3982= 1 ;
if (fornext_step3982<0) fornext_step_negative3982=1; else fornext_step_negative3982=0;
if (is_error_pending()) goto fornext_error3982;
goto fornext_entrylabel3982;
while(1){
fornext_value3982=fornext_step3982+(*_FUNC_FINDBUFREV_LONG_CH);
fornext_entrylabel3982:
*_FUNC_FINDBUFREV_LONG_CH=fornext_value3982;
if (fornext_step_negative3982){
if (fornext_value3982<fornext_finalvalue3982) break;
}else{
if (fornext_value3982>fornext_finalvalue3982) break;
}
fornext_error3982:;
if(qbevent){evnt(24221,607,"simplebuffer.bm");if(r)goto S_34448;}
do{
*_FUNC_FINDBUFREV_LONG_BPOS=*_FUNC_FINDBUFREV_LONG_CPOS+*_FUNC_FINDBUFREV_LONG_CH- 1 ;
if(!qbevent)break;evnt(24221,608,"simplebuffer.bm");}while(r);
S_34450:;
if ((-(*_FUNC_FINDBUFREV_LONG_BPOS>=*_FUNC_FINDBUFREV_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(24221,608,"simplebuffer.bm");if(r)goto S_34450;}
do{
goto fornext_exit_3981;
if(!qbevent)break;evnt(24221,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(24221,609,"simplebuffer.bm");}while(r);
S_34454:;
if (((-(*_FUNC_FINDBUFREV_INTEGER_CHV>= 97 ))&(-(*_FUNC_FINDBUFREV_INTEGER_CHV<= 122 )))||is_error_pending()){
if(qbevent){evnt(24221,610,"simplebuffer.bm");if(r)goto S_34454;}
do{
*_FUNC_FINDBUFREV_INTEGER_CHV=*_FUNC_FINDBUFREV_INTEGER_CHV- 32 ;
if(!qbevent)break;evnt(24221,610,"simplebuffer.bm");}while(r);
}
S_34457:;
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(24221,611,"simplebuffer.bm");if(r)goto S_34457;}
do{
goto fornext_exit_3981;
if(!qbevent)break;evnt(24221,611,"simplebuffer.bm");}while(r);
}
fornext_continue_3981:;
}
fornext_exit_3981:;
S_34461:;
if ((-(*_FUNC_FINDBUFREV_LONG_CH>*_FUNC_FINDBUFREV_LONG_FLEN))||is_error_pending()){
if(qbevent){evnt(24221,613,"simplebuffer.bm");if(r)goto S_34461;}
do{
goto ww_exit_3979;
if(!qbevent)break;evnt(24221,613,"simplebuffer.bm");}while(r);
}
sc_3980_end:;
do{
*_FUNC_FINDBUFREV_LONG_CPOS=*_FUNC_FINDBUFREV_LONG_CPOS- 1 ;
if(!qbevent)break;evnt(24221,615,"simplebuffer.bm");}while(r);
ww_continue_3979:;
}
ww_exit_3979:;
}
S_34468:;
if ((-(*_FUNC_FINDBUFREV_LONG_CPOS> 0 ))||is_error_pending()){
if(qbevent){evnt(24221,619,"simplebuffer.bm");if(r)goto S_34468;}
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(24221,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(24221,620,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_FINDBUFREV=*_FUNC_FINDBUFREV_LONG_CPOS;
if(!qbevent)break;evnt(24221,621,"simplebuffer.bm");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free152.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;
}
