int32 FUNC_GETBUFMARK(int16*_FUNC_GETBUFMARK_INTEGER_HANDLE,int16*_FUNC_GETBUFMARK_INTEGER_MARKID){
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 "data147.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,438,"simplebuffer.bm");}while(r);
S_34236:;
if ((~(FUNC_CHECKHANDLE(_FUNC_GETBUFMARK_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(24221,440,"simplebuffer.bm");if(r)goto S_34236;}
do{
error( 258 );
if(!qbevent)break;evnt(24221,440,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(24221,440,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_GETBUFMARK_LONG_BUF=*_FUNC_GETBUFMARK_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(24221,441,"simplebuffer.bm");}while(r);
do{
*_FUNC_GETBUFMARK_LONG_GETBUFMARK= -13ll ;
if(!qbevent)break;evnt(24221,443,"simplebuffer.bm");}while(r);
S_34242:;
if ((qbs_cleanup(qbs_tmp_base,((-(*_FUNC_GETBUFMARK_INTEGER_MARKID< 1 ))|(-(*_FUNC_GETBUFMARK_INTEGER_MARKID> 100 )))&(-(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_GETBUFMARK_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])]))->len== 16 ))))||is_error_pending()){
if(qbevent){evnt(24221,444,"simplebuffer.bm");if(r)goto S_34242;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24221,444,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_GETBUFMARK_LONG_MARKPOS=string2l(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_GETBUFMARK_LONG_BUF+ 2 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_GETBUFMARK_INTEGER_MARKID* 4 , 4 ,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24221,446,"simplebuffer.bm");}while(r);
S_34246:;
if(qbevent){evnt(24221,447,"simplebuffer.bm");if(r)goto S_34246;}
S_34247:;
if (((*_FUNC_GETBUFMARK_LONG_MARKPOS==( -889275714 )))||is_error_pending()){
if(qbevent){evnt(24221,448,"simplebuffer.bm");if(r)goto S_34247;}
do{
*_FUNC_GETBUFMARK_LONG_GETBUFMARK= -14ll ;
if(!qbevent)break;evnt(24221,448,"simplebuffer.bm");}while(r);
sc_ec_118_end:;
goto sc_3960_end;
}
S_34249:;
if (((*_FUNC_GETBUFMARK_LONG_MARKPOS==( -559038737 )))||is_error_pending()){
if(qbevent){evnt(24221,449,"simplebuffer.bm");if(r)goto S_34249;}
do{
*_FUNC_GETBUFMARK_LONG_GETBUFMARK= -15ll ;
if(!qbevent)break;evnt(24221,449,"simplebuffer.bm");}while(r);
sc_ec_119_end:;
goto sc_3960_end;
}
do{
*_FUNC_GETBUFMARK_LONG_GETBUFMARK=*_FUNC_GETBUFMARK_LONG_MARKPOS;
if(!qbevent)break;evnt(24221,450,"simplebuffer.bm");}while(r);
sc_3960_end:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free147.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_GETBUFMARK_LONG_GETBUFMARK;
}
