void SUB_BUFINSERTBUF(int16*_SUB_BUFINSERTBUF_INTEGER_HANDLE,int16*_SUB_BUFINSERTBUF_INTEGER_FROMHANDLE){
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 "data174.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,170,"simplebuffer.bm");}while(r);
S_38293:;
if ((~(FUNC_CHECKHANDLE(_SUB_BUFINSERTBUF_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(28168,172,"simplebuffer.bm");if(r)goto S_38293;}
do{
error( 258 );
if(!qbevent)break;evnt(28168,172,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(28168,172,"simplebuffer.bm");}while(r);
}
S_38297:;
if ((~(FUNC_CHECKHANDLE(_SUB_BUFINSERTBUF_INTEGER_FROMHANDLE)))||is_error_pending()){
if(qbevent){evnt(28168,173,"simplebuffer.bm");if(r)goto S_38297;}
do{
error( 258 );
if(!qbevent)break;evnt(28168,173,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(28168,173,"simplebuffer.bm");}while(r);
}
do{
*_SUB_BUFINSERTBUF_LONG_FBUF=*_SUB_BUFINSERTBUF_INTEGER_FROMHANDLE* 106 ;
if(!qbevent)break;evnt(28168,174,"simplebuffer.bm");}while(r);
do{
SUB_WRITEBUFRAWDATA(_SUB_BUFINSERTBUF_INTEGER_HANDLE,qbs_left(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_BUFINSERTBUF_LONG_FBUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),FUNC_GETBUFLEN(_SUB_BUFINSERTBUF_INTEGER_FROMHANDLE)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,176,"simplebuffer.bm");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free174.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;
}
