int32 FUNC_FINDBUFFWD(int16*_FUNC_FINDBUFFWD_INTEGER_HANDLE,int16*_FUNC_FINDBUFFWD_INTEGER_SBFINDID,int16*_FUNC_FINDBUFFWD_INTEGER_METHOD,int16*_FUNC_FINDBUFFWD_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 "data187.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,514,"simplebuffer.bm");}while(r);
S_38538:;
if ((~(FUNC_CHECKHANDLE(_FUNC_FINDBUFFWD_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(28168,516,"simplebuffer.bm");if(r)goto S_38538;}
do{
error( 258 );
if(!qbevent)break;evnt(28168,516,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(28168,516,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFFWD_LONG_BUF=*_FUNC_FINDBUFFWD_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(28168,517,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFFWD_LONG_FINDBUFFWD= -13ll ;
if(!qbevent)break;evnt(28168,519,"simplebuffer.bm");}while(r);
S_38544:;
if ((qbs_cleanup(qbs_tmp_base,((-(*_FUNC_FINDBUFFWD_INTEGER_SBFINDID< 1 ))|(-(*_FUNC_FINDBUFFWD_INTEGER_SBFINDID> 100 )))&(-(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])]))->len== 16 ))))||is_error_pending()){
if(qbevent){evnt(28168,520,"simplebuffer.bm");if(r)goto S_38544;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,520,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFFWD_LONG_CPOS=FUNC_GETBUFPOS(_FUNC_FINDBUFFWD_INTEGER_HANDLE);
if(!qbevent)break;evnt(28168,522,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFFWD_LONG_EOB=FUNC_GETBUFLEN(_FUNC_FINDBUFFWD_INTEGER_HANDLE)+ 1 ;
if(!qbevent)break;evnt(28168,522,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFFWD_LONG_FPOS=string2l(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 3 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFFWD_INTEGER_SBFINDID* 4 , 4 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,523,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFFWD_LONG_FLEN=string2l(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFFWD_INTEGER_SBFINDID* 4 , 4 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,524,"simplebuffer.bm");}while(r);
S_38551:;
if (((-(*_FUNC_FINDBUFFWD_LONG_FPOS> 0 ))&(-(*_FUNC_FINDBUFFWD_LONG_FPOS<*_FUNC_FINDBUFFWD_LONG_EOB))&(-(*_FUNC_FINDBUFFWD_LONG_CPOS==*_FUNC_FINDBUFFWD_LONG_FPOS)))||is_error_pending()){
if(qbevent){evnt(28168,525,"simplebuffer.bm");if(r)goto S_38551;}
do{
*_FUNC_FINDBUFFWD_LONG_CPOS=*_FUNC_FINDBUFFWD_LONG_CPOS+ 1 ;
if(!qbevent)break;evnt(28168,525,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFFWD_LONG_FINDBUFFWD= -14ll ;
if(!qbevent)break;evnt(28168,526,"simplebuffer.bm");}while(r);
S_38555:;
if ((-(*_FUNC_FINDBUFFWD_LONG_FLEN== -889275714 ))||is_error_pending()){
if(qbevent){evnt(28168,526,"simplebuffer.bm");if(r)goto S_38555;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,526,"simplebuffer.bm");}while(r);
}
S_38558:;
if ((-(*_FUNC_FINDBUFFWD_INTEGER_TREAT== 0 ))||is_error_pending()){
if(qbevent){evnt(28168,528,"simplebuffer.bm");if(r)goto S_38558;}
do{
qbs_set(_FUNC_FINDBUFFWD_STRING_FIND,((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+*_FUNC_FINDBUFFWD_INTEGER_SBFINDID+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,529,"simplebuffer.bm");}while(r);
S_38560:;
while((-(*_FUNC_FINDBUFFWD_LONG_CPOS<*_FUNC_FINDBUFFWD_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(28168,530,"simplebuffer.bm");if(r)goto S_38560;}
S_38561:;
if(qbevent){evnt(28168,531,"simplebuffer.bm");if(r)goto S_38561;}
S_38562:;
if (((*_FUNC_FINDBUFFWD_INTEGER_METHOD<( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,532,"simplebuffer.bm");if(r)goto S_38562;}
S_38563:;
if ((qbs_cleanup(qbs_tmp_base,-(func_instr(NULL,_FUNC_FINDBUFFWD_STRING_FIND,func_chr(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFFWD_LONG_CPOS)),0)== 0 )))||is_error_pending()){
if(qbevent){evnt(28168,532,"simplebuffer.bm");if(r)goto S_38563;}
do{
goto ww_exit_4627;
if(!qbevent)break;evnt(28168,532,"simplebuffer.bm");}while(r);
}
sc_ec_128_end:;
goto sc_4628_end;
}
S_38566:;
if (((*_FUNC_FINDBUFFWD_INTEGER_METHOD>( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,533,"simplebuffer.bm");if(r)goto S_38566;}
S_38567:;
if ((qbs_cleanup(qbs_tmp_base,-(func_instr(NULL,_FUNC_FINDBUFFWD_STRING_FIND,func_chr(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFFWD_LONG_CPOS)),0)> 0 )))||is_error_pending()){
if(qbevent){evnt(28168,533,"simplebuffer.bm");if(r)goto S_38567;}
do{
goto ww_exit_4627;
if(!qbevent)break;evnt(28168,533,"simplebuffer.bm");}while(r);
}
sc_ec_129_end:;
goto sc_4628_end;
}
S_38571:;
fornext_value4630= 1 ;
fornext_finalvalue4630=*_FUNC_FINDBUFFWD_LONG_FLEN;
fornext_step4630= 1 ;
if (fornext_step4630<0) fornext_step_negative4630=1; else fornext_step_negative4630=0;
if (is_error_pending()) goto fornext_error4630;
goto fornext_entrylabel4630;
while(1){
fornext_value4630=fornext_step4630+(*_FUNC_FINDBUFFWD_LONG_CH);
fornext_entrylabel4630:
*_FUNC_FINDBUFFWD_LONG_CH=fornext_value4630;
if (fornext_step_negative4630){
if (fornext_value4630<fornext_finalvalue4630) break;
}else{
if (fornext_value4630>fornext_finalvalue4630) break;
}
fornext_error4630:;
if(qbevent){evnt(28168,535,"simplebuffer.bm");if(r)goto S_38571;}
do{
*_FUNC_FINDBUFFWD_LONG_BPOS=*_FUNC_FINDBUFFWD_LONG_CPOS+*_FUNC_FINDBUFFWD_LONG_CH- 1 ;
if(!qbevent)break;evnt(28168,536,"simplebuffer.bm");}while(r);
S_38573:;
if ((-(*_FUNC_FINDBUFFWD_LONG_BPOS>=*_FUNC_FINDBUFFWD_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(28168,536,"simplebuffer.bm");if(r)goto S_38573;}
do{
goto fornext_exit_4629;
if(!qbevent)break;evnt(28168,536,"simplebuffer.bm");}while(r);
}
S_38576:;
if ((qbs_cleanup(qbs_tmp_base,-(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFFWD_LONG_BPOS)!=qbs_asc(_FUNC_FINDBUFFWD_STRING_FIND,*_FUNC_FINDBUFFWD_LONG_CH))))||is_error_pending()){
if(qbevent){evnt(28168,537,"simplebuffer.bm");if(r)goto S_38576;}
do{
goto fornext_exit_4629;
if(!qbevent)break;evnt(28168,537,"simplebuffer.bm");}while(r);
}
fornext_continue_4629:;
}
fornext_exit_4629:;
S_38580:;
if ((-(*_FUNC_FINDBUFFWD_LONG_CH>*_FUNC_FINDBUFFWD_LONG_FLEN))||is_error_pending()){
if(qbevent){evnt(28168,539,"simplebuffer.bm");if(r)goto S_38580;}
do{
goto ww_exit_4627;
if(!qbevent)break;evnt(28168,539,"simplebuffer.bm");}while(r);
}
sc_4628_end:;
do{
*_FUNC_FINDBUFFWD_LONG_CPOS=*_FUNC_FINDBUFFWD_LONG_CPOS+ 1 ;
if(!qbevent)break;evnt(28168,541,"simplebuffer.bm");}while(r);
ww_continue_4627:;
}
ww_exit_4627:;
}else{
do{
qbs_set(_FUNC_FINDBUFFWD_STRING_FIND,qbs_ucase(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+*_FUNC_FINDBUFFWD_INTEGER_SBFINDID+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])]))));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,544,"simplebuffer.bm");}while(r);
S_38588:;
while((-(*_FUNC_FINDBUFFWD_LONG_CPOS<*_FUNC_FINDBUFFWD_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(28168,545,"simplebuffer.bm");if(r)goto S_38588;}
S_38589:;
if(qbevent){evnt(28168,546,"simplebuffer.bm");if(r)goto S_38589;}
S_38590:;
if (((*_FUNC_FINDBUFFWD_INTEGER_METHOD<( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,547,"simplebuffer.bm");if(r)goto S_38590;}
S_38591:;
if ((qbs_cleanup(qbs_tmp_base,-(func_instr(NULL,_FUNC_FINDBUFFWD_STRING_FIND,qbs_ucase(func_chr(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFFWD_LONG_CPOS))),0)== 0 )))||is_error_pending()){
if(qbevent){evnt(28168,547,"simplebuffer.bm");if(r)goto S_38591;}
do{
goto ww_exit_4631;
if(!qbevent)break;evnt(28168,547,"simplebuffer.bm");}while(r);
}
sc_ec_130_end:;
goto sc_4632_end;
}
S_38594:;
if (((*_FUNC_FINDBUFFWD_INTEGER_METHOD>( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,548,"simplebuffer.bm");if(r)goto S_38594;}
S_38595:;
if ((qbs_cleanup(qbs_tmp_base,-(func_instr(NULL,_FUNC_FINDBUFFWD_STRING_FIND,qbs_ucase(func_chr(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFFWD_LONG_CPOS))),0)> 0 )))||is_error_pending()){
if(qbevent){evnt(28168,548,"simplebuffer.bm");if(r)goto S_38595;}
do{
goto ww_exit_4631;
if(!qbevent)break;evnt(28168,548,"simplebuffer.bm");}while(r);
}
sc_ec_131_end:;
goto sc_4632_end;
}
S_38599:;
fornext_value4634= 1 ;
fornext_finalvalue4634=*_FUNC_FINDBUFFWD_LONG_FLEN;
fornext_step4634= 1 ;
if (fornext_step4634<0) fornext_step_negative4634=1; else fornext_step_negative4634=0;
if (is_error_pending()) goto fornext_error4634;
goto fornext_entrylabel4634;
while(1){
fornext_value4634=fornext_step4634+(*_FUNC_FINDBUFFWD_LONG_CH);
fornext_entrylabel4634:
*_FUNC_FINDBUFFWD_LONG_CH=fornext_value4634;
if (fornext_step_negative4634){
if (fornext_value4634<fornext_finalvalue4634) break;
}else{
if (fornext_value4634>fornext_finalvalue4634) break;
}
fornext_error4634:;
if(qbevent){evnt(28168,550,"simplebuffer.bm");if(r)goto S_38599;}
do{
*_FUNC_FINDBUFFWD_LONG_BPOS=*_FUNC_FINDBUFFWD_LONG_CPOS+*_FUNC_FINDBUFFWD_LONG_CH- 1 ;
if(!qbevent)break;evnt(28168,551,"simplebuffer.bm");}while(r);
S_38601:;
if ((-(*_FUNC_FINDBUFFWD_LONG_BPOS>=*_FUNC_FINDBUFFWD_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(28168,551,"simplebuffer.bm");if(r)goto S_38601;}
do{
goto fornext_exit_4633;
if(!qbevent)break;evnt(28168,551,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_FINDBUFFWD_INTEGER_CHV=qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFFWD_LONG_BPOS);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,552,"simplebuffer.bm");}while(r);
S_38605:;
if (((-(*_FUNC_FINDBUFFWD_INTEGER_CHV>= 97 ))&(-(*_FUNC_FINDBUFFWD_INTEGER_CHV<= 122 )))||is_error_pending()){
if(qbevent){evnt(28168,553,"simplebuffer.bm");if(r)goto S_38605;}
do{
*_FUNC_FINDBUFFWD_INTEGER_CHV=*_FUNC_FINDBUFFWD_INTEGER_CHV- 32 ;
if(!qbevent)break;evnt(28168,553,"simplebuffer.bm");}while(r);
}
S_38608:;
if ((qbs_cleanup(qbs_tmp_base,-(*_FUNC_FINDBUFFWD_INTEGER_CHV!=qbs_asc(_FUNC_FINDBUFFWD_STRING_FIND,*_FUNC_FINDBUFFWD_LONG_CH))))||is_error_pending()){
if(qbevent){evnt(28168,554,"simplebuffer.bm");if(r)goto S_38608;}
do{
goto fornext_exit_4633;
if(!qbevent)break;evnt(28168,554,"simplebuffer.bm");}while(r);
}
fornext_continue_4633:;
}
fornext_exit_4633:;
S_38612:;
if ((-(*_FUNC_FINDBUFFWD_LONG_CH>*_FUNC_FINDBUFFWD_LONG_FLEN))||is_error_pending()){
if(qbevent){evnt(28168,556,"simplebuffer.bm");if(r)goto S_38612;}
do{
goto ww_exit_4631;
if(!qbevent)break;evnt(28168,556,"simplebuffer.bm");}while(r);
}
sc_4632_end:;
do{
*_FUNC_FINDBUFFWD_LONG_CPOS=*_FUNC_FINDBUFFWD_LONG_CPOS+ 1 ;
if(!qbevent)break;evnt(28168,558,"simplebuffer.bm");}while(r);
ww_continue_4631:;
}
ww_exit_4631:;
}
S_38619:;
if ((-(*_FUNC_FINDBUFFWD_LONG_CPOS<*_FUNC_FINDBUFFWD_LONG_EOB))||is_error_pending()){
if(qbevent){evnt(28168,562,"simplebuffer.bm");if(r)goto S_38619;}
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 1 , 4 ,l2string(*_FUNC_FINDBUFFWD_LONG_CPOS),1);
if(!qbevent)break;evnt(28168,562,"simplebuffer.bm");}while(r);
}else{
do{
*_FUNC_FINDBUFFWD_LONG_CPOS= 0 ;
if(!qbevent)break;evnt(28168,562,"simplebuffer.bm");}while(r);
}
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_FINDBUFFWD_LONG_BUF+ 3 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_FINDBUFFWD_INTEGER_SBFINDID* 4 , 4 ,l2string(*_FUNC_FINDBUFFWD_LONG_CPOS),1);
if(!qbevent)break;evnt(28168,563,"simplebuffer.bm");}while(r);
do{
*_FUNC_FINDBUFFWD_LONG_FINDBUFFWD=*_FUNC_FINDBUFFWD_LONG_CPOS;
if(!qbevent)break;evnt(28168,564,"simplebuffer.bm");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free187.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_FINDBUFFWD_LONG_FINDBUFFWD;
}
