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 "data188.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,571,"simplebuffer.bm");}while(r);
S_38627:;
if ((~(FUNC_CHECKHANDLE(_FUNC_FINDBUFREV_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(28168,573,"simplebuffer.bm");if(r)goto S_38627;}
do{
error( 258 );
if(!qbevent)break;evnt(28168,573,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(28168,573,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_LONG_BUF=*_FUNC_FINDBUFREV_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(28168,574,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_FINDBUFREV= -13ll ;
if(!qbevent)break;evnt(28168,576,"simplebuffer.bm");}while(r);
S_38633:;
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(28168,577,"simplebuffer.bm");if(r)goto S_38633;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,577,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_LONG_CPOS=FUNC_GETBUFPOS(_FUNC_FINDBUFREV_INTEGER_HANDLE);
if(!qbevent)break;evnt(28168,579,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_EOB=FUNC_GETBUFLEN(_FUNC_FINDBUFREV_INTEGER_HANDLE)+ 1 ;
if(!qbevent)break;evnt(28168,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(28168,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(28168,581,"simplebuffer.bm");}while(r);
S_38640:;
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(28168,582,"simplebuffer.bm");if(r)goto S_38640;}
do{
*_FUNC_FINDBUFREV_LONG_CPOS=*_FUNC_FINDBUFREV_LONG_CPOS- 1 ;
if(!qbevent)break;evnt(28168,582,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFREV_LONG_FINDBUFREV= -14ll ;
if(!qbevent)break;evnt(28168,583,"simplebuffer.bm");}while(r);
S_38644:;
if ((-(*_FUNC_FINDBUFREV_LONG_FLEN== -889275714 ))||is_error_pending()){
if(qbevent){evnt(28168,583,"simplebuffer.bm");if(r)goto S_38644;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,583,"simplebuffer.bm");}while(r);
}
S_38647:;
if ((-(*_FUNC_FINDBUFREV_INTEGER_TREAT== 0 ))||is_error_pending()){
if(qbevent){evnt(28168,585,"simplebuffer.bm");if(r)goto S_38647;}
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(28168,586,"simplebuffer.bm");}while(r);
S_38649:;
while((-(*_FUNC_FINDBUFREV_LONG_CPOS> 0 ))||is_error_pending()){
if(qbevent){evnt(28168,587,"simplebuffer.bm");if(r)goto S_38649;}
S_38650:;
if(qbevent){evnt(28168,588,"simplebuffer.bm");if(r)goto S_38650;}
S_38651:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD<( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,589,"simplebuffer.bm");if(r)goto S_38651;}
S_38652:;
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(28168,589,"simplebuffer.bm");if(r)goto S_38652;}
do{
goto ww_exit_4636;
if(!qbevent)break;evnt(28168,589,"simplebuffer.bm");}while(r);
}
sc_ec_132_end:;
goto sc_4637_end;
}
S_38655:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD>( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,590,"simplebuffer.bm");if(r)goto S_38655;}
S_38656:;
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(28168,590,"simplebuffer.bm");if(r)goto S_38656;}
do{
goto ww_exit_4636;
if(!qbevent)break;evnt(28168,590,"simplebuffer.bm");}while(r);
}
sc_ec_133_end:;
goto sc_4637_end;
}
S_38660:;
fornext_value4639= 1 ;
fornext_finalvalue4639=*_FUNC_FINDBUFREV_LONG_FLEN;
fornext_step4639= 1 ;
if (fornext_step4639<0) fornext_step_negative4639=1; else fornext_step_negative4639=0;
if (is_error_pending()) goto fornext_error4639;
goto fornext_entrylabel4639;
while(1){
fornext_value4639=fornext_step4639+(*_FUNC_FINDBUFREV_LONG_CH);
fornext_entrylabel4639:
*_FUNC_FINDBUFREV_LONG_CH=fornext_value4639;
if (fornext_step_negative4639){
if (fornext_value4639<fornext_finalvalue4639) break;
}else{
if (fornext_value4639>fornext_finalvalue4639) break;
}
fornext_error4639:;
if(qbevent){evnt(28168,592,"simplebuffer.bm");if(r)goto S_38660;}
do{
*_FUNC_FINDBUFREV_LONG_BPOS=*_FUNC_FINDBUFREV_LONG_CPOS+*_FUNC_FINDBUFREV_LONG_CH- 1 ;
if(!qbevent)break;evnt(28168,593,"simplebuffer.bm");}while(r);
S_38662:;
if ((-(*_FUNC_FINDBUFREV_LONG_BPOS>=*_FUNC_FINDBUFREV_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(28168,593,"simplebuffer.bm");if(r)goto S_38662;}
do{
goto fornext_exit_4638;
if(!qbevent)break;evnt(28168,593,"simplebuffer.bm");}while(r);
}
S_38665:;
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(28168,594,"simplebuffer.bm");if(r)goto S_38665;}
do{
goto fornext_exit_4638;
if(!qbevent)break;evnt(28168,594,"simplebuffer.bm");}while(r);
}
fornext_continue_4638:;
}
fornext_exit_4638:;
S_38669:;
if ((-(*_FUNC_FINDBUFREV_LONG_CH>*_FUNC_FINDBUFREV_LONG_FLEN))||is_error_pending()){
if(qbevent){evnt(28168,596,"simplebuffer.bm");if(r)goto S_38669;}
do{
goto ww_exit_4636;
if(!qbevent)break;evnt(28168,596,"simplebuffer.bm");}while(r);
}
sc_4637_end:;
do{
*_FUNC_FINDBUFREV_LONG_CPOS=*_FUNC_FINDBUFREV_LONG_CPOS- 1 ;
if(!qbevent)break;evnt(28168,598,"simplebuffer.bm");}while(r);
ww_continue_4636:;
}
ww_exit_4636:;
}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(28168,601,"simplebuffer.bm");}while(r);
S_38677:;
while((-(*_FUNC_FINDBUFREV_LONG_CPOS> 0 ))||is_error_pending()){
if(qbevent){evnt(28168,602,"simplebuffer.bm");if(r)goto S_38677;}
S_38678:;
if(qbevent){evnt(28168,603,"simplebuffer.bm");if(r)goto S_38678;}
S_38679:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD<( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,604,"simplebuffer.bm");if(r)goto S_38679;}
S_38680:;
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(28168,604,"simplebuffer.bm");if(r)goto S_38680;}
do{
goto ww_exit_4640;
if(!qbevent)break;evnt(28168,604,"simplebuffer.bm");}while(r);
}
sc_ec_134_end:;
goto sc_4641_end;
}
S_38683:;
if (((*_FUNC_FINDBUFREV_INTEGER_METHOD>( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,605,"simplebuffer.bm");if(r)goto S_38683;}
S_38684:;
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(28168,605,"simplebuffer.bm");if(r)goto S_38684;}
do{
goto ww_exit_4640;
if(!qbevent)break;evnt(28168,605,"simplebuffer.bm");}while(r);
}
sc_ec_135_end:;
goto sc_4641_end;
}
S_38688:;
fornext_value4643= 1 ;
fornext_finalvalue4643=*_FUNC_FINDBUFREV_LONG_FLEN;
fornext_step4643= 1 ;
if (fornext_step4643<0) fornext_step_negative4643=1; else fornext_step_negative4643=0;
if (is_error_pending()) goto fornext_error4643;
goto fornext_entrylabel4643;
while(1){
fornext_value4643=fornext_step4643+(*_FUNC_FINDBUFREV_LONG_CH);
fornext_entrylabel4643:
*_FUNC_FINDBUFREV_LONG_CH=fornext_value4643;
if (fornext_step_negative4643){
if (fornext_value4643<fornext_finalvalue4643) break;
}else{
if (fornext_value4643>fornext_finalvalue4643) break;
}
fornext_error4643:;
if(qbevent){evnt(28168,607,"simplebuffer.bm");if(r)goto S_38688;}
do{
*_FUNC_FINDBUFREV_LONG_BPOS=*_FUNC_FINDBUFREV_LONG_CPOS+*_FUNC_FINDBUFREV_LONG_CH- 1 ;
if(!qbevent)break;evnt(28168,608,"simplebuffer.bm");}while(r);
S_38690:;
if ((-(*_FUNC_FINDBUFREV_LONG_BPOS>=*_FUNC_FINDBUFREV_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(28168,608,"simplebuffer.bm");if(r)goto S_38690;}
do{
goto fornext_exit_4642;
if(!qbevent)break;evnt(28168,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(28168,609,"simplebuffer.bm");}while(r);
S_38694:;
if (((-(*_FUNC_FINDBUFREV_INTEGER_CHV>= 97 ))&(-(*_FUNC_FINDBUFREV_INTEGER_CHV<= 122 )))||is_error_pending()){
if(qbevent){evnt(28168,610,"simplebuffer.bm");if(r)goto S_38694;}
do{
*_FUNC_FINDBUFREV_INTEGER_CHV=*_FUNC_FINDBUFREV_INTEGER_CHV- 32 ;
if(!qbevent)break;evnt(28168,610,"simplebuffer.bm");}while(r);
}
S_38697:;
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(28168,611,"simplebuffer.bm");if(r)goto S_38697;}
do{
goto fornext_exit_4642;
if(!qbevent)break;evnt(28168,611,"simplebuffer.bm");}while(r);
}
fornext_continue_4642:;
}
fornext_exit_4642:;
S_38701:;
if ((-(*_FUNC_FINDBUFREV_LONG_CH>*_FUNC_FINDBUFREV_LONG_FLEN))||is_error_pending()){
if(qbevent){evnt(28168,613,"simplebuffer.bm");if(r)goto S_38701;}
do{
goto ww_exit_4640;
if(!qbevent)break;evnt(28168,613,"simplebuffer.bm");}while(r);
}
sc_4641_end:;
do{
*_FUNC_FINDBUFREV_LONG_CPOS=*_FUNC_FINDBUFREV_LONG_CPOS- 1 ;
if(!qbevent)break;evnt(28168,615,"simplebuffer.bm");}while(r);
ww_continue_4640:;
}
ww_exit_4640:;
}
S_38708:;
if ((-(*_FUNC_FINDBUFREV_LONG_CPOS> 0 ))||is_error_pending()){
if(qbevent){evnt(28168,619,"simplebuffer.bm");if(r)goto S_38708;}
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(28168,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(28168,620,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFREV_LONG_FINDBUFREV=*_FUNC_FINDBUFREV_LONG_CPOS;
if(!qbevent)break;evnt(28168,621,"simplebuffer.bm");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free188.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;
}
