qbs* FUNC_READBUFLINE(int16*_FUNC_READBUFLINE_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 "data175.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,183,"simplebuffer.bm");}while(r);
S_38304:;
if ((~(FUNC_CHECKHANDLE(_FUNC_READBUFLINE_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(28168,185,"simplebuffer.bm");if(r)goto S_38304;}
do{
error( 258 );
if(!qbevent)break;evnt(28168,185,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(28168,185,"simplebuffer.bm");}while(r);
}
do{
*_FUNC_READBUFLINE_LONG_BUF=*_FUNC_READBUFLINE_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(28168,186,"simplebuffer.bm");}while(r);
do{
*_FUNC_READBUFLINE_LONG_CUR=FUNC_GETBUFPOS(_FUNC_READBUFLINE_INTEGER_HANDLE);
if(!qbevent)break;evnt(28168,188,"simplebuffer.bm");}while(r);
do{
*_FUNC_READBUFLINE_INTEGER64_CBL=FUNC_GETBUFLEN(_FUNC_READBUFLINE_INTEGER_HANDLE);
if(!qbevent)break;evnt(28168,188,"simplebuffer.bm");}while(r);
do{
qbs_set(_FUNC_READBUFLINE_STRING_BRC,FUNC_BUFEOLSEQ(_FUNC_READBUFLINE_INTEGER_HANDLE));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,189,"simplebuffer.bm");}while(r);
do{
*_FUNC_READBUFLINE_INTEGER_BRL=_FUNC_READBUFLINE_STRING_BRC->len;
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,189,"simplebuffer.bm");}while(r);
do{
*_FUNC_READBUFLINE_LONG_EOL=func_instr(*_FUNC_READBUFLINE_LONG_CUR,((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_READBUFLINE_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),_FUNC_READBUFLINE_STRING_BRC,0|1);
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,191,"simplebuffer.bm");}while(r);
S_38314:;
if (((-(*_FUNC_READBUFLINE_LONG_EOL== 0 ))|(-(*_FUNC_READBUFLINE_LONG_EOL>*_FUNC_READBUFLINE_INTEGER64_CBL)))||is_error_pending()){
if(qbevent){evnt(28168,192,"simplebuffer.bm");if(r)goto S_38314;}
do{
*_FUNC_READBUFLINE_LONG_EOL=*_FUNC_READBUFLINE_INTEGER64_CBL+ 1 ;
if(!qbevent)break;evnt(28168,192,"simplebuffer.bm");}while(r);
do{
*_FUNC_READBUFLINE_INTEGER_BRL= 0 ;
if(!qbevent)break;evnt(28168,192,"simplebuffer.bm");}while(r);
}
do{
qbs_set(_FUNC_READBUFLINE_STRING_READBUFLINE,func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_READBUFLINE_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),*_FUNC_READBUFLINE_LONG_CUR,*_FUNC_READBUFLINE_LONG_EOL-*_FUNC_READBUFLINE_LONG_CUR,0|1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,194,"simplebuffer.bm");}while(r);
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_FUNC_READBUFLINE_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 1 , 4 ,l2string(*_FUNC_READBUFLINE_LONG_EOL+*_FUNC_READBUFLINE_INTEGER_BRL),1);
if(!qbevent)break;evnt(28168,195,"simplebuffer.bm");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free175.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;
qbs_maketmp(_FUNC_READBUFLINE_STRING_READBUFLINE);return _FUNC_READBUFLINE_STRING_READBUFLINE;
}
