int16 FUNC_REMOVEBUFFIND(int16*_FUNC_REMOVEBUFFIND_INTEGER_HANDLE,int16*_FUNC_REMOVEBUFFIND_INTEGER_SBFINDID){
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 "data150.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,496,"simplebuffer.bm");}while(r);
S_34284:;
if ((~(FUNC_CHECKHANDLE(_FUNC_REMOVEBUFFIND_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(24221,498,"simplebuffer.bm");if(r)goto S_34284;}
do{
error( 258 );
if(!qbevent)break;evnt(24221,498,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(24221,498,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_REMOVEBUFFIND_LONG_BUF=*_FUNC_REMOVEBUFFIND_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(24221,499,"simplebuffer.bm");}while(r);
do{
*_FUNC_REMOVEBUFFIND_INTEGER_REMOVEBUFFIND= -13ll ;
if(!qbevent)break;evnt(24221,501,"simplebuffer.bm");}while(r);
S_34290:;
if ((qbs_cleanup(qbs_tmp_base,((-(*_FUNC_REMOVEBUFFIND_INTEGER_SBFINDID< 1 ))|(-(*_FUNC_REMOVEBUFFIND_INTEGER_SBFINDID> 100 )))&(-(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_REMOVEBUFFIND_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])]))->len== 16 ))))||is_error_pending()){
if(qbevent){evnt(24221,502,"simplebuffer.bm");if(r)goto S_34290;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(24221,502,"simplebuffer.bm");}while(r);
}
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_REMOVEBUFFIND_LONG_BUF+ 3 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_REMOVEBUFFIND_INTEGER_SBFINDID* 4 , 4 ,l2string( -889275714 ),1);
if(!qbevent)break;evnt(24221,504,"simplebuffer.bm");}while(r);
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_REMOVEBUFFIND_LONG_BUF+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_REMOVEBUFFIND_INTEGER_SBFINDID* 4 , 4 ,l2string( -889275714 ),1);
if(!qbevent)break;evnt(24221,505,"simplebuffer.bm");}while(r);
do{
tmp_long=array_check((*_FUNC_REMOVEBUFFIND_LONG_BUF+*_FUNC_REMOVEBUFFIND_INTEGER_SBFINDID+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5]);
if (!is_error_pending()) qbs_set( ((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[tmp_long])),qbs_new_txt_len("",0));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(24221,506,"simplebuffer.bm");}while(r);
do{
*_FUNC_REMOVEBUFFIND_INTEGER_REMOVEBUFFIND= 0 ;
if(!qbevent)break;evnt(24221,507,"simplebuffer.bm");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free150.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_REMOVEBUFFIND_INTEGER_REMOVEBUFFIND;
}
