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 "data183.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,438,"simplebuffer.bm");}while(r);
S_38476:;
if ((~(FUNC_CHECKHANDLE(_FUNC_GETBUFMARK_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(28168,440,"simplebuffer.bm");if(r)goto S_38476;}
do{
error( 258 );
if(!qbevent)break;evnt(28168,440,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(28168,440,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_GETBUFMARK_LONG_BUF=*_FUNC_GETBUFMARK_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(28168,441,"simplebuffer.bm");}while(r);
do{
*_FUNC_GETBUFMARK_LONG_GETBUFMARK= -13ll ;
if(!qbevent)break;evnt(28168,443,"simplebuffer.bm");}while(r);
S_38482:;
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(28168,444,"simplebuffer.bm");if(r)goto S_38482;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,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(28168,446,"simplebuffer.bm");}while(r);
S_38486:;
if(qbevent){evnt(28168,447,"simplebuffer.bm");if(r)goto S_38486;}
S_38487:;
if (((*_FUNC_GETBUFMARK_LONG_MARKPOS==( -889275714 )))||is_error_pending()){
if(qbevent){evnt(28168,448,"simplebuffer.bm");if(r)goto S_38487;}
do{
*_FUNC_GETBUFMARK_LONG_GETBUFMARK= -14ll ;
if(!qbevent)break;evnt(28168,448,"simplebuffer.bm");}while(r);
sc_ec_126_end:;
goto sc_4621_end;
}
S_38489:;
if (((*_FUNC_GETBUFMARK_LONG_MARKPOS==( -559038737 )))||is_error_pending()){
if(qbevent){evnt(28168,449,"simplebuffer.bm");if(r)goto S_38489;}
do{
*_FUNC_GETBUFMARK_LONG_GETBUFMARK= -15ll ;
if(!qbevent)break;evnt(28168,449,"simplebuffer.bm");}while(r);
sc_ec_127_end:;
goto sc_4621_end;
}
do{
*_FUNC_GETBUFMARK_LONG_GETBUFMARK=*_FUNC_GETBUFMARK_LONG_MARKPOS;
if(!qbevent)break;evnt(28168,450,"simplebuffer.bm");}while(r);
sc_4621_end:;
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free183.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;
}
