void SUB_CONVBUFTOWINEOL(int16*_SUB_CONVBUFTOWINEOL_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 "data197.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,861,"simplebuffer.bm");}while(r);
S_38863:;
if ((~(FUNC_CHECKHANDLE(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE)))||is_error_pending()){
if(qbevent){evnt(28168,863,"simplebuffer.bm");if(r)goto S_38863;}
do{
error( 258 );
if(!qbevent)break;evnt(28168,863,"simplebuffer.bm");}while(r);
do{
close_program=1;
end();
if(!qbevent)break;evnt(28168,863,"simplebuffer.bm");}while(r);
}
do{
*_SUB_CONVBUFTOWINEOL_LONG_BUF=*_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE* 106 ;
if(!qbevent)break;evnt(28168,864,"simplebuffer.bm");}while(r);
S_38868:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 9 , 4 ,0|1),qbs_new_txt_len("EolW",4))))||is_error_pending()){
if(qbevent){evnt(28168,866,"simplebuffer.bm");if(r)goto S_38868;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,866,"simplebuffer.bm");}while(r);
}
S_38871:;
if ((qbs_cleanup(qbs_tmp_base,(qbs_equal(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 9 , 4 ,0|1),qbs_new_txt_len("EolN",4)))&(-(((int32)(FUNC_BUFEOLSEQ(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE))->len)== 2 ))))||is_error_pending()){
if(qbevent){evnt(28168,867,"simplebuffer.bm");if(r)goto S_38871;}
do{
goto exit_subfunc;
if(!qbevent)break;evnt(28168,867,"simplebuffer.bm");}while(r);
}
S_38874:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 9 , 4 ,0|1),qbs_new_txt_len("EolU",4))))||is_error_pending()){
if(qbevent){evnt(28168,868,"simplebuffer.bm");if(r)goto S_38874;}
do{
SUB_CONVBUFTOLNXMACEOL(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE);
if(!qbevent)break;evnt(28168,868,"simplebuffer.bm");}while(r);
}
do{
tmp_long=array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 1 )-__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_add(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),func_chr( 16 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,870,"simplebuffer.bm");}while(r);
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 2 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 101 * 4 , 4 ,func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 1 , 4 ,0|1),1);
if(!qbevent)break;evnt(28168,871,"simplebuffer.bm");}while(r);
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 4 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 101 * 4 , 4 ,l2string( 1 ),1);
if(!qbevent)break;evnt(28168,872,"simplebuffer.bm");}while(r);
do{
tmp_long=array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 101 + 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])),func_chr( 10 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,872,"simplebuffer.bm");}while(r);
do{
*_SUB_CONVBUFTOWINEOL_LONG_RES=FUNC_SEEKBUF(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE,&(pass4661= 0 ),&(pass4662= -22ll ));
if(!qbevent)break;evnt(28168,874,"simplebuffer.bm");}while(r);
S_38882:;
do{
if(qbevent){evnt(28168,875,"simplebuffer.bm");if(r)goto S_38882;}
do{
*_SUB_CONVBUFTOWINEOL_LONG_PO=FUNC_FINDBUFFWD(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE,&(pass4664= 101 ),&(pass4665= 0ll ),&(pass4666= 0ll ));
if(!qbevent)break;evnt(28168,876,"simplebuffer.bm");}while(r);
S_38884:;
if ((-(*_SUB_CONVBUFTOWINEOL_LONG_PO> 0 ))||is_error_pending()){
if(qbevent){evnt(28168,877,"simplebuffer.bm");if(r)goto S_38884;}
do{
SUB_WRITEBUFRAWDATA(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE,func_chr( 13 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,877,"simplebuffer.bm");}while(r);
}
S_38887:;
dl_continue_4663:;
}while((!(-(*_SUB_CONVBUFTOWINEOL_LONG_PO== 0 )))&&(!is_error_pending()));
dl_exit_4663:;
if(qbevent){evnt(28168,878,"simplebuffer.bm");if(r)goto S_38887;}
do{
sub_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 9 , 4 ,qbs_new_txt_len("EolW",4),1);
if(!qbevent)break;evnt(28168,879,"simplebuffer.bm");}while(r);
do{
*_SUB_CONVBUFTOWINEOL_LONG_RES=FUNC_SEEKBUF(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE,&(pass4667= 0 ),&(pass4668= 101 ));
if(!qbevent)break;evnt(28168,881,"simplebuffer.bm");}while(r);
S_38890:;
if ((qbs_cleanup(qbs_tmp_base,qbs_equal(func_mid(((qbs*)(((uint64*)(__ARRAY_STRING_SIMPLEBUFFER_ARRAY[0]))[array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 0 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])),FUNC_GETBUFPOS(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE), 1 ,0|1),func_chr( 10 ))))||is_error_pending()){
if(qbevent){evnt(28168,882,"simplebuffer.bm");if(r)goto S_38890;}
do{
*_SUB_CONVBUFTOWINEOL_LONG_RES=FUNC_SEEKBUF(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE,&(pass4669= 0 ),&(pass4670= -26ll ));
if(!qbevent)break;evnt(28168,883,"simplebuffer.bm");}while(r);
}
do{
*_SUB_CONVBUFTOWINEOL_LONG_RES=FUNC_REMOVEBUFFIND(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE,&(pass4671= 101 ));
if(!qbevent)break;evnt(28168,885,"simplebuffer.bm");}while(r);
do{
*_SUB_CONVBUFTOWINEOL_LONG_RES=FUNC_REMOVEBUFMARK(_SUB_CONVBUFTOWINEOL_INTEGER_HANDLE,&(pass4672= 101 ));
if(!qbevent)break;evnt(28168,886,"simplebuffer.bm");}while(r);
do{
tmp_long=array_check((*_SUB_CONVBUFTOWINEOL_LONG_BUF+ 1 )-__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_CONVBUFTOWINEOL_LONG_BUF+ 1 )-__ARRAY_STRING_SIMPLEBUFFER_ARRAY[4],__ARRAY_STRING_SIMPLEBUFFER_ARRAY[5])])), 16 ));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(28168,887,"simplebuffer.bm");}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free197.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;
}
