int32 FUNC_SEEKBUF(int16*_FUNC_SEEKBUF_INTEGER_HANDLE,int32*_FUNC_SEEKBUF_LONG_DISPLACE,int16*_FUNC_SEEKBUF_INTEGER_MODE){
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 "data162.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,690,"simplebuffer.bm");}while(r);
S_35995:;
if ((~(FUNC_CHECKHANDLE(_FUNC_SEEKBUF_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(25755,692,"simplebuffer.bm");if(r)goto S_35995;}
do{
error( 258 );
if(!qbevent)break;evnt(25755,692,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(25755,692,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_SEEKBUF_LONG_BUF=*_FUNC_SEEKBUF_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(25755,693,"simplebuffer.bm");}while(r);
do{
*_FUNC_SEEKBUF_LONG_CUR=FUNC_GETBUFPOS(_FUNC_SEEKBUF_INTEGER_HANDLE);
if(!qbevent)break;evnt(25755,695,"simplebuffer.bm");}while(r);
do{
*_FUNC_SEEKBUF_LONG_EOB=FUNC_GETBUFLEN(_FUNC_SEEKBUF_INTEGER_HANDLE)+ 1 ;
if(!qbevent)break;evnt(25755,695,"simplebuffer.bm");}while(r);
do{
qbs_set(_FUNC_SEEKBUF_STRING_BRC,FUNC_BUFEOLSEQ(_FUNC_SEEKBUF_INTEGER_HANDLE));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25755,696,"simplebuffer.bm");}while(r);
do{
*_FUNC_SEEKBUF_INTEGER_BRL=_FUNC_SEEKBUF_STRING_BRC->len;
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25755,696,"simplebuffer.bm");}while(r);
S_36004:;
if(qbevent){evnt(25755,698,"simplebuffer.bm");if(r)goto S_36004;}
S_36005:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -21ll )))||is_error_pending()){
if(qbevent){evnt(25755,699,"simplebuffer.bm");if(r)goto S_36005;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN= 0 ;
if(!qbevent)break;evnt(25755,699,"simplebuffer.bm");}while(r);
sc_ec_128_end:;
goto sc_4215_end;
}
S_36007:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -22ll )))||is_error_pending()){
if(qbevent){evnt(25755,700,"simplebuffer.bm");if(r)goto S_36007;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN= 1 ;
if(!qbevent)break;evnt(25755,700,"simplebuffer.bm");}while(r);
sc_ec_129_end:;
goto sc_4215_end;
}
S_36009:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -23ll )))||is_error_pending()){
if(qbevent){evnt(25755,701,"simplebuffer.bm");if(r)goto S_36009;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR;
if(!qbevent)break;evnt(25755,701,"simplebuffer.bm");}while(r);
sc_ec_130_end:;
goto sc_4215_end;
}
S_36011:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -24ll )))||is_error_pending()){
if(qbevent){evnt(25755,702,"simplebuffer.bm");if(r)goto S_36011;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_EOB;
if(!qbevent)break;evnt(25755,702,"simplebuffer.bm");}while(r);
sc_ec_131_end:;
goto sc_4215_end;
}
S_36013:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -25ll )))||is_error_pending()){
if(qbevent){evnt(25755,703,"simplebuffer.bm");if(r)goto S_36013;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR;
if(!qbevent)break;evnt(25755,704,"simplebuffer.bm");}while(r);
S_36015:;
if (((-(*_FUNC_SEEKBUF_LONG_CUR> 1 ))&(-(*_FUNC_SEEKBUF_LONG_CUR<*_FUNC_SEEKBUF_LONG_EOB)))||is_error_pending()){
if(qbevent){evnt(25755,705,"simplebuffer.bm");if(r)goto S_36015;}
S_36016:;
if ((qbs_cleanup(qbs_tmp_base,(-(*_FUNC_SEEKBUF_INTEGER_BRL== 2 ))&(-(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_SEEKBUF_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_SEEKBUF_LONG_CUR- 1 )== 13 ))&(-(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_SEEKBUF_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_SEEKBUF_LONG_CUR)== 10 ))))||is_error_pending()){
if(qbevent){evnt(25755,706,"simplebuffer.bm");if(r)goto S_36016;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR- 1 ;
if(!qbevent)break;evnt(25755,707,"simplebuffer.bm");}while(r);
}
}
S_36020:;
while((-(*_FUNC_SEEKBUF_LONG_ORIGIN> 1 ))||is_error_pending()){
if(qbevent){evnt(25755,710,"simplebuffer.bm");if(r)goto S_36020;}
S_36021:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_SEEKBUF_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_SEEKBUF_LONG_ORIGIN- 1 ,*_FUNC_SEEKBUF_INTEGER_BRL,0|1),_FUNC_SEEKBUF_STRING_BRC)))||is_error_pending()){
if(qbevent){evnt(25755,711,"simplebuffer.bm");if(r)goto S_36021;}
S_36022:;
if ((-(*_FUNC_SEEKBUF_INTEGER_BRL== 2 ))||is_error_pending()){
if(qbevent){evnt(25755,712,"simplebuffer.bm");if(r)goto S_36022;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_ORIGIN+ 1 ;
if(!qbevent)break;evnt(25755,712,"simplebuffer.bm");}while(r);
}
do{
goto ww_exit_4216;
if(!qbevent)break;evnt(25755,713,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_ORIGIN- 1 ;
if(!qbevent)break;evnt(25755,715,"simplebuffer.bm");}while(r);
ww_continue_4216:;
}
ww_exit_4216:;
sc_ec_132_end:;
goto sc_4215_end;
}
S_36029:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -26ll )))||is_error_pending()){
if(qbevent){evnt(25755,717,"simplebuffer.bm");if(r)goto S_36029;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR;
if(!qbevent)break;evnt(25755,718,"simplebuffer.bm");}while(r);
S_36031:;
if (((-(*_FUNC_SEEKBUF_LONG_CUR> 1 ))&(-(*_FUNC_SEEKBUF_LONG_CUR<*_FUNC_SEEKBUF_LONG_EOB)))||is_error_pending()){
if(qbevent){evnt(25755,719,"simplebuffer.bm");if(r)goto S_36031;}
S_36032:;
if ((qbs_cleanup(qbs_tmp_base,(-(*_FUNC_SEEKBUF_INTEGER_BRL== 2 ))&(-(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_SEEKBUF_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_SEEKBUF_LONG_CUR- 1 )== 13 ))&(-(qbs_asc(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_SEEKBUF_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_SEEKBUF_LONG_CUR)== 10 ))))||is_error_pending()){
if(qbevent){evnt(25755,720,"simplebuffer.bm");if(r)goto S_36032;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR- 1 ;
if(!qbevent)break;evnt(25755,721,"simplebuffer.bm");}while(r);
}
}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=func_instr(*_FUNC_SEEKBUF_LONG_ORIGIN,((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_SEEKBUF_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),_FUNC_SEEKBUF_STRING_BRC,0|1);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(25755,724,"simplebuffer.bm");}while(r);
S_36037:;
if ((-(*_FUNC_SEEKBUF_LONG_ORIGIN== 0 ))||is_error_pending()){
if(qbevent){evnt(25755,725,"simplebuffer.bm");if(r)goto S_36037;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_EOB;
if(!qbevent)break;evnt(25755,725,"simplebuffer.bm");}while(r);
}
sc_ec_133_end:;
goto sc_4215_end;
}
S_36040:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE>( 0 )))||is_error_pending()){
if(qbevent){evnt(25755,726,"simplebuffer.bm");if(r)goto S_36040;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=FUNC_GETBUFMARK(_FUNC_SEEKBUF_INTEGER_HANDLE,_FUNC_SEEKBUF_INTEGER_MODE);
if(!qbevent)break;evnt(25755,727,"simplebuffer.bm");}while(r);
S_36042:;
if ((-(*_FUNC_SEEKBUF_LONG_ORIGIN< 0 ))||is_error_pending()){
if(qbevent){evnt(25755,728,"simplebuffer.bm");if(r)goto S_36042;}
do{
*_FUNC_SEEKBUF_LONG_SEEKBUF=*_FUNC_SEEKBUF_LONG_ORIGIN;
if(!qbevent)break;evnt(25755,728,"simplebuffer.bm");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25755,728,"simplebuffer.bm");}while(r);
}
sc_ec_134_end:;
goto sc_4215_end;
}
do{
*_FUNC_SEEKBUF_LONG_SEEKBUF= -11ll ;
if(!qbevent)break;evnt(25755,730,"simplebuffer.bm");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(25755,731,"simplebuffer.bm");}while(r);
sc_4215_end:;
do{
*_FUNC_SEEKBUF_LONG_NEWPOS=*_FUNC_SEEKBUF_LONG_ORIGIN+*_FUNC_SEEKBUF_LONG_DISPLACE;
if(!qbevent)break;evnt(25755,734,"simplebuffer.bm");}while(r);
S_36051:;
if (((-(*_FUNC_SEEKBUF_LONG_NEWPOS< 1 ))|(-(*_FUNC_SEEKBUF_LONG_NEWPOS>*_FUNC_SEEKBUF_LONG_EOB)))||is_error_pending()){
if(qbevent){evnt(25755,735,"simplebuffer.bm");if(r)goto S_36051;}
do{
*_FUNC_SEEKBUF_LONG_SEEKBUF= -12ll ;
if(!qbevent)break;evnt(25755,736,"simplebuffer.bm");}while(r);
}else{
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_SEEKBUF_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 1 , 4 ,l2string(*_FUNC_SEEKBUF_LONG_NEWPOS),1);
if(!qbevent)break;evnt(25755,738,"simplebuffer.bm");}while(r);
do{
*_FUNC_SEEKBUF_LONG_SEEKBUF=*_FUNC_SEEKBUF_LONG_CUR;
if(!qbevent)break;evnt(25755,739,"simplebuffer.bm");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free162.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_SEEKBUF_LONG_SEEKBUF;
}
