void SUB_DELETEBUFLINE(int16*_SUB_DELETEBUFLINE_INTEGER_HANDLE){
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 "data177.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,243,"simplebuffer.bm");}while(r);
S_38356:;
if ((~(FUNC_CHECKHANDLE(_SUB_DELETEBUFLINE_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(28168,245,"simplebuffer.bm");if(r)goto S_38356;}
do{
error( 258 );
if(!qbevent)break;evnt(28168,245,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(28168,245,"simplebuffer.bm");}while(r);
}
do{
*_SUB_DELETEBUFLINE_LONG_BUF=*_SUB_DELETEBUFLINE_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(28168,246,"simplebuffer.bm");}while(r);
do{
*_SUB_DELETEBUFLINE_LONG_CUR=FUNC_GETBUFPOS(_SUB_DELETEBUFLINE_INTEGER_HANDLE);
if(!qbevent)break;evnt(28168,248,"simplebuffer.bm");}while(r);
do{
*_SUB_DELETEBUFLINE_INTEGER64_CBL=FUNC_GETBUFLEN(_SUB_DELETEBUFLINE_INTEGER_HANDLE);
if(!qbevent)break;evnt(28168,248,"simplebuffer.bm");}while(r);
do{
qbs_set(_SUB_DELETEBUFLINE_STRING_BRC,FUNC_BUFEOLSEQ(_SUB_DELETEBUFLINE_INTEGER_HANDLE));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,249,"simplebuffer.bm");}while(r);
do{
*_SUB_DELETEBUFLINE_INTEGER_BRL=_SUB_DELETEBUFLINE_STRING_BRC->len;
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,249,"simplebuffer.bm");}while(r);
do{
*_SUB_DELETEBUFLINE_LONG_EOL=func_instr(*_SUB_DELETEBUFLINE_LONG_CUR,((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_DELETEBUFLINE_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),_SUB_DELETEBUFLINE_STRING_BRC,0|1);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,251,"simplebuffer.bm");}while(r);
S_38366:;
if (((-(*_SUB_DELETEBUFLINE_LONG_EOL== 0 ))|(-(*_SUB_DELETEBUFLINE_LONG_EOL>*_SUB_DELETEBUFLINE_INTEGER64_CBL)))||is_error_pending()){
if(qbevent){evnt(28168,252,"simplebuffer.bm");if(r)goto S_38366;}
do{
*_SUB_DELETEBUFLINE_LONG_EOL=*_SUB_DELETEBUFLINE_INTEGER64_CBL+ 1 ;
if(!qbevent)break;evnt(28168,252,"simplebuffer.bm");}while(r);
do{
*_SUB_DELETEBUFLINE_INTEGER_BRL= 0 ;
if(!qbevent)break;evnt(28168,252,"simplebuffer.bm");}while(r);
}
do{
*_SUB_DELETEBUFLINE_LONG_CHG=(*_SUB_DELETEBUFLINE_LONG_EOL+*_SUB_DELETEBUFLINE_INTEGER_BRL)-*_SUB_DELETEBUFLINE_LONG_CUR;
if(!qbevent)break;evnt(28168,253,"simplebuffer.bm");}while(r);
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_DELETEBUFLINE_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_SUB_DELETEBUFLINE_LONG_CUR,0,func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_DELETEBUFLINE_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_SUB_DELETEBUFLINE_LONG_EOL+*_SUB_DELETEBUFLINE_INTEGER_BRL,*_SUB_DELETEBUFLINE_INTEGER64_CBL-(*_SUB_DELETEBUFLINE_LONG_EOL+*_SUB_DELETEBUFLINE_INTEGER_BRL)+ 1 ,0|1),0);
if(!qbevent)break;evnt(28168,255,"simplebuffer.bm");}while(r);
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_DELETEBUFLINE_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 5 , 4 ,l2string(*_SUB_DELETEBUFLINE_INTEGER64_CBL-*_SUB_DELETEBUFLINE_LONG_CHG),1);
if(!qbevent)break;evnt(28168,256,"simplebuffer.bm");}while(r);
S_38373:;
if ((-(*_SUB_DELETEBUFLINE_LONG_CHG> 0 ))||is_error_pending()){
if(qbevent){evnt(28168,257,"simplebuffer.bm");if(r)goto S_38373;}
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_DELETEBUFLINE_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 13 , 4 ,l2string( -1 ),1);
if(!qbevent)break;evnt(28168,258,"simplebuffer.bm");}while(r);
do{
*_SUB_DELETEBUFLINE_LONG_EXT=(((*_SUB_DELETEBUFLINE_INTEGER64_CBL-*_SUB_DELETEBUFLINE_LONG_CHG+ 1 )+ 16383 )& -16384 );
if(!qbevent)break;evnt(28168,260,"simplebuffer.bm");}while(r);
do{
*_SUB_DELETEBUFLINE_LONG_FSZ=((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_DELETEBUFLINE_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])]))->len-*_SUB_DELETEBUFLINE_LONG_EXT;
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,261,"simplebuffer.bm");}while(r);
S_38377:;
if ((qbs_cleanup(qbs_tmp_base,-(*_SUB_DELETEBUFLINE_LONG_FSZ>=(qb_safe_idiv(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_DELETEBUFLINE_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])]))->len, 4 )))))||is_error_pending()){
if(qbevent){evnt(28168,262,"simplebuffer.bm");if(r)goto S_38377;}
do{
tmp_long=array_check((*_SUB_DELETEBUFLINE_LONG_BUF+ 0 )-__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_left(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_DELETEBUFLINE_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_SUB_DELETEBUFLINE_LONG_EXT));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,263,"simplebuffer.bm");}while(r);
}
}
do{
SUB_RECALCMARKS(_SUB_DELETEBUFLINE_INTEGER_HANDLE,_SUB_DELETEBUFLINE_LONG_CUR,&(pass4608=-(*_SUB_DELETEBUFLINE_LONG_CHG)));
if(!qbevent)break;evnt(28168,267,"simplebuffer.bm");}while(r);
do{
SUB_RECALCFINDS(_SUB_DELETEBUFLINE_INTEGER_HANDLE,_SUB_DELETEBUFLINE_LONG_CUR,&(pass4609=-(*_SUB_DELETEBUFLINE_LONG_CHG)));
if(!qbevent)break;evnt(28168,268,"simplebuffer.bm");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free177.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;
}
