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 "data189.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,690,"simplebuffer.bm");}while(r);
S_38714:;
if ((~(FUNC_CHECKHANDLE(_FUNC_SEEKBUF_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(28168,692,"simplebuffer.bm");if(r)goto S_38714;}
do{
error( 258 );
if(!qbevent)break;evnt(28168,692,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(28168,692,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_SEEKBUF_LONG_BUF=*_FUNC_SEEKBUF_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(28168,693,"simplebuffer.bm");}while(r);
do{
*_FUNC_SEEKBUF_LONG_CUR=FUNC_GETBUFPOS(_FUNC_SEEKBUF_INTEGER_HANDLE);
if(!qbevent)break;evnt(28168,695,"simplebuffer.bm");}while(r);
do{
*_FUNC_SEEKBUF_LONG_EOB=FUNC_GETBUFLEN(_FUNC_SEEKBUF_INTEGER_HANDLE)+ 1 ;
if(!qbevent)break;evnt(28168,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(28168,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(28168,696,"simplebuffer.bm");}while(r);
S_38723:;
if(qbevent){evnt(28168,698,"simplebuffer.bm");if(r)goto S_38723;}
S_38724:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -21ll )))||is_error_pending()){
if(qbevent){evnt(28168,699,"simplebuffer.bm");if(r)goto S_38724;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN= 0 ;
if(!qbevent)break;evnt(28168,699,"simplebuffer.bm");}while(r);
sc_ec_136_end:;
goto sc_4645_end;
}
S_38726:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -22ll )))||is_error_pending()){
if(qbevent){evnt(28168,700,"simplebuffer.bm");if(r)goto S_38726;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN= 1 ;
if(!qbevent)break;evnt(28168,700,"simplebuffer.bm");}while(r);
sc_ec_137_end:;
goto sc_4645_end;
}
S_38728:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -23ll )))||is_error_pending()){
if(qbevent){evnt(28168,701,"simplebuffer.bm");if(r)goto S_38728;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR;
if(!qbevent)break;evnt(28168,701,"simplebuffer.bm");}while(r);
sc_ec_138_end:;
goto sc_4645_end;
}
S_38730:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -24ll )))||is_error_pending()){
if(qbevent){evnt(28168,702,"simplebuffer.bm");if(r)goto S_38730;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_EOB;
if(!qbevent)break;evnt(28168,702,"simplebuffer.bm");}while(r);
sc_ec_139_end:;
goto sc_4645_end;
}
S_38732:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -25ll )))||is_error_pending()){
if(qbevent){evnt(28168,703,"simplebuffer.bm");if(r)goto S_38732;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR;
if(!qbevent)break;evnt(28168,704,"simplebuffer.bm");}while(r);
S_38734:;
if (((-(*_FUNC_SEEKBUF_LONG_CUR> 1 ))&(-(*_FUNC_SEEKBUF_LONG_CUR<*_FUNC_SEEKBUF_LONG_EOB)))||is_error_pending()){
if(qbevent){evnt(28168,705,"simplebuffer.bm");if(r)goto S_38734;}
S_38735:;
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(28168,706,"simplebuffer.bm");if(r)goto S_38735;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR- 1 ;
if(!qbevent)break;evnt(28168,707,"simplebuffer.bm");}while(r);
}
}
S_38739:;
while((-(*_FUNC_SEEKBUF_LONG_ORIGIN> 1 ))||is_error_pending()){
if(qbevent){evnt(28168,710,"simplebuffer.bm");if(r)goto S_38739;}
S_38740:;
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(28168,711,"simplebuffer.bm");if(r)goto S_38740;}
S_38741:;
if ((-(*_FUNC_SEEKBUF_INTEGER_BRL== 2 ))||is_error_pending()){
if(qbevent){evnt(28168,712,"simplebuffer.bm");if(r)goto S_38741;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_ORIGIN+ 1 ;
if(!qbevent)break;evnt(28168,712,"simplebuffer.bm");}while(r);
}
do{
goto ww_exit_4646;
if(!qbevent)break;evnt(28168,713,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_ORIGIN- 1 ;
if(!qbevent)break;evnt(28168,715,"simplebuffer.bm");}while(r);
ww_continue_4646:;
}
ww_exit_4646:;
sc_ec_140_end:;
goto sc_4645_end;
}
S_38748:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE==( -26ll )))||is_error_pending()){
if(qbevent){evnt(28168,717,"simplebuffer.bm");if(r)goto S_38748;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR;
if(!qbevent)break;evnt(28168,718,"simplebuffer.bm");}while(r);
S_38750:;
if (((-(*_FUNC_SEEKBUF_LONG_CUR> 1 ))&(-(*_FUNC_SEEKBUF_LONG_CUR<*_FUNC_SEEKBUF_LONG_EOB)))||is_error_pending()){
if(qbevent){evnt(28168,719,"simplebuffer.bm");if(r)goto S_38750;}
S_38751:;
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(28168,720,"simplebuffer.bm");if(r)goto S_38751;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_CUR- 1 ;
if(!qbevent)break;evnt(28168,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(28168,724,"simplebuffer.bm");}while(r);
S_38756:;
if ((-(*_FUNC_SEEKBUF_LONG_ORIGIN== 0 ))||is_error_pending()){
if(qbevent){evnt(28168,725,"simplebuffer.bm");if(r)goto S_38756;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=*_FUNC_SEEKBUF_LONG_EOB;
if(!qbevent)break;evnt(28168,725,"simplebuffer.bm");}while(r);
}
sc_ec_141_end:;
goto sc_4645_end;
}
S_38759:;
if (((*_FUNC_SEEKBUF_INTEGER_MODE>( 0 )))||is_error_pending()){
if(qbevent){evnt(28168,726,"simplebuffer.bm");if(r)goto S_38759;}
do{
*_FUNC_SEEKBUF_LONG_ORIGIN=FUNC_GETBUFMARK(_FUNC_SEEKBUF_INTEGER_HANDLE,_FUNC_SEEKBUF_INTEGER_MODE);
if(!qbevent)break;evnt(28168,727,"simplebuffer.bm");}while(r);
S_38761:;
if ((-(*_FUNC_SEEKBUF_LONG_ORIGIN< 0 ))||is_error_pending()){
if(qbevent){evnt(28168,728,"simplebuffer.bm");if(r)goto S_38761;}
do{
*_FUNC_SEEKBUF_LONG_SEEKBUF=*_FUNC_SEEKBUF_LONG_ORIGIN;
if(!qbevent)break;evnt(28168,728,"simplebuffer.bm");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,728,"simplebuffer.bm");}while(r);
}
sc_ec_142_end:;
goto sc_4645_end;
}
do{
*_FUNC_SEEKBUF_LONG_SEEKBUF= -11ll ;
if(!qbevent)break;evnt(28168,730,"simplebuffer.bm");}while(r);
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,731,"simplebuffer.bm");}while(r);
sc_4645_end:;
do{
*_FUNC_SEEKBUF_LONG_NEWPOS=*_FUNC_SEEKBUF_LONG_ORIGIN+*_FUNC_SEEKBUF_LONG_DISPLACE;
if(!qbevent)break;evnt(28168,734,"simplebuffer.bm");}while(r);
S_38770:;
if (((-(*_FUNC_SEEKBUF_LONG_NEWPOS< 1 ))|(-(*_FUNC_SEEKBUF_LONG_NEWPOS>*_FUNC_SEEKBUF_LONG_EOB)))||is_error_pending()){
if(qbevent){evnt(28168,735,"simplebuffer.bm");if(r)goto S_38770;}
do{
*_FUNC_SEEKBUF_LONG_SEEKBUF= -12ll ;
if(!qbevent)break;evnt(28168,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(28168,738,"simplebuffer.bm");}while(r);
do{
*_FUNC_SEEKBUF_LONG_SEEKBUF=*_FUNC_SEEKBUF_LONG_CUR;
if(!qbevent)break;evnt(28168,739,"simplebuffer.bm");}while(r);
}
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free189.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;
}
