void SUB_CLOSEMAIN(){
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 "data22.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;
S_17796:;
if ((-(FUNC_GETRCSTATEVAR((void*)( ((char*)(__UDT_VWATCHON)) + ((0+0)) ))== 1 ))||is_error_pending()){
if(qbevent){evnt(15348);if(r)goto S_17796;}
do{
SUB_VWATCHADDLABEL(&(pass2617= 0 ),&(pass2618= -1 ));
if(!qbevent)break;evnt(15348);}while(r);
}
do{
SUB_XEND();
if(!qbevent)break;evnt(15349);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2619=*__LONG_MAINTXTBUF),qbs_new_txt_len("return;",7));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15350);}while(r);
S_17801:;
if ((-(FUNC_GETRCSTATEVAR((void*)( ((char*)(__UDT_VWATCHON)) + ((0+0)) ))== 1 ))||is_error_pending()){
if(qbevent){evnt(15351);if(r)goto S_17801;}
do{
SUB_WRITEBUFLINE(&(pass2620=*__LONG_MAINTXTBUF),qbs_new_txt_len("VWATCH_SETNEXTLINE:;",20));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15352);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2621=*__LONG_MAINTXTBUF),qbs_new_txt_len("switch (*__LONG_VWATCH_GOTO) {",30));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15353);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2622=*__LONG_MAINTXTBUF),qbs_add(qbs_add(qbs_add(qbs_new_txt_len("#include ",9),func_chr( 34 )),qbs_new_txt_len("vw_main_dispatch.txt",20)),func_chr( 34 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15354);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2623=*__LONG_MAINTXTBUF),qbs_new_txt_len("    default:",12));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15355);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2624=*__LONG_MAINTXTBUF),qbs_new_txt_len("        *__LONG_VWATCH_GOTO=*__LONG_VWATCH_LINENUMBER;",54));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15356);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2625=*__LONG_MAINTXTBUF),qbs_new_txt_len("        goto VWATCH_SETNEXTLINE;",32));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15357);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2626=*__LONG_MAINTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15358);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2627=*__LONG_MAINTXTBUF),qbs_new_txt_len("VWATCH_SKIPLINE:;",17));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15360);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2628=*__LONG_MAINTXTBUF),qbs_new_txt_len("switch (*__LONG_VWATCH_GOTO) {",30));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15361);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2629=*__LONG_MAINTXTBUF),qbs_add(qbs_add(qbs_add(qbs_new_txt_len("#include ",9),func_chr( 34 )),qbs_new_txt_len("vw_main_skip.txt",16)),func_chr( 34 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15362);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2630=*__LONG_MAINTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15363);}while(r);
}
do{
SUB_WRITEBUFLINE(&(pass2631=*__LONG_MAINTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15366);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2632=*__LONG_RETTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15367);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2633=*__LONG_RETTXTBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15368);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2634=*__LONG_RETTXTBUF),qbs_new_txt_len("error(3);",9));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15369);}while(r);
do{
*_SUB_CLOSEMAIN_LONG_MAININCBUF=FUNC_OPENBUFFER(qbs_new_txt_len("O",1),qbs_add(__STRING_TMPDIR,qbs_new_txt_len("main.txt",8)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15371);}while(r);
S_17819:;
fornext_value2636= 0 ;
fornext_finalvalue2636=*__LONG_SUBFUNCNLAST;
fornext_step2636= 1 ;
if (fornext_step2636<0) fornext_step_negative2636=1; else fornext_step_negative2636=0;
if (is_error_pending()) goto fornext_error2636;
goto fornext_entrylabel2636;
while(1){
fornext_value2636=fornext_step2636+(*_SUB_CLOSEMAIN_LONG_I);
fornext_entrylabel2636:
*_SUB_CLOSEMAIN_LONG_I=fornext_value2636;
if (fornext_step_negative2636){
if (fornext_value2636<fornext_finalvalue2636) break;
}else{
if (fornext_value2636>fornext_finalvalue2636) break;
}
fornext_error2636:;
if(qbevent){evnt(15372);if(r)goto S_17819;}
do{
SUB_WRITEBUFLINE(&(pass2637=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_new_txt_len("#include ",9),func_chr( 34 )),qbs_new_txt_len("main",4)),qbs__tostr((int32)(*_SUB_CLOSEMAIN_LONG_I),NULL,0)),qbs_new_txt_len(".txt",4)),func_chr( 34 )));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15373);}while(r);
fornext_continue_2635:;
}
fornext_exit_2635:;
do{
SUB_WRITEBUFLINE(&(pass2638=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("qbs *func__compdate() {",23));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15375);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2639=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("return qbs_new_txt(__DATE__);",29));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15376);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2640=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15377);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2641=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("qbs *func__comptime() {",23));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15378);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2642=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("return qbs_new_txt(__TIME__);",29));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15379);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2643=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15380);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2644=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("qbs *func__compvers() {",23));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15381);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2645=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_add(qbs_add(qbs_add(qbs_add(qbs_add(qbs_new_txt_len("return qbs_new_txt(",19),func_chr( 34 )),qbs_new_txt_len("QB64-PE v",9)),__STRING_VERSION),func_chr( 34 )),qbs_new_txt_len(");",2)));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15382);}while(r);
do{
SUB_WRITEBUFLINE(&(pass2646=*_SUB_CLOSEMAIN_LONG_MAININCBUF),qbs_new_txt_len("}",1));
qbs_cleanup(qbs_tmp_base,0);
if(!qbevent)break;evnt(15383);}while(r);
do{
*__LONG_FIRSTLINENUMBERLABELVWATCH= 0 ;
if(!qbevent)break;evnt(15385);}while(r);
exit_subfunc:;
free_mem_lock(sf_mem_lock);
#include "free22.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;
}
